﻿function meni_over(idGumba)
{
    /*document.getElementById(idGumba).Style.Display="none"
    document.getElementById(idGumba + 'x').Style.Display="block"
    */
    
}

function meni_out(idGumba)
{

    /*document.getElementById(idGumba).Style.Display="none"
    document.getElementById(idGumba.substr(0,idGumba.length-1)).Style.Display="block"    
    */
}
function prijaznoTiskanju(url) 
{ 
   var sOption="toolbar=no,location=no,directories=no,menubar=no,"; 
       sOption+="scrollbars=yes,width=740,height=600,left=100,top=25";

       var sWinHTML = document.getElementById('ctl00_upd1').innerHTML;
       if (url == 'http://www.mp-nepremicnine.si/default.aspxk=6') {
           var sWinHTML_2 = document.getElementById('vsebina').innerHTML;
       }
       else {
       }



   var naslovStrani = document.getElementById('ctl00_lblNaslovStrani').innerHTML;

 
   var winprint=window.open("Medvešek Pušnik nepremičnine - stanovanja, hiše, parcele, poslovni prostori ...","",sOption); 
       winprint.document.open(); 
       winprint.document.write('<html><head><title>Medvešek Pušnik nepremičnine - stanovanja, hiše, parcele, poslovni prostori ...</title>    <link href="/css/okvirji.css" rel="stylesheet" type="text/css" /><link href="/css/stili.css" rel="stylesheet" type="text/css" /><link href="/css/schedule.css" rel="stylesheet" type="text/css" /><link href="/css/koledar.css" rel="stylesheet" type="text/css" /><style>body {font-family: "Trebuchet MS";font-size: 12px;color:#464646;text-align:justify;background-image:url(/images/ozadje.gif);background-position:right bottom; background-repeat: no-repeat;}</style></head>');
       winprint.document.write('<body style="padding:8px; width:100%;"><div style="height:75px; width:700px;float:left;display:block; margin-bottom:20px; clear:right; vertical-align:bottom;"><img src="/images/print_medvesekpusnik.gif"/></div>');  
       winprint.document.write('<div style="float:right;"></div>'); 
       winprint.document.write('<div style="float:left;margin-bottom:15px; color:#464646; margin-right:10px; text-align:right;"><b>URL:</b>:' + url + '</div>');
       winprint.document.write('<div style="clear:left;"></div>');
       if (url == 'http://www.mp-nepremicnine.si/default.aspxk=6') {
           winprint.document.write('<div style="width:95%; float:left; clear:left; margin-top:15px;">' + sWinHTML_2 + '</div>');
       }
       else {

           winprint.document.write(sWinHTML);
       }          
       winprint.document.write('<table cellpadding="0" cellspacing="0" style="width:100%; float:left; clear:left; margin-top:15px;"><tr><td><img src="/images/noga_crta.gif" style="width:700px;" alt=""/></td></tr><tr><td style="text-align: center;"><span class="nogaTekst">© MedvešekPušnik Nepremičnine, d.d. | Vse pravice pridržane.</span></td></tr></table></div></body></html>'); 
       winprint.document.close(); 
       winprint.focus(); 
       winprint.print();
}
function odpriOkno(urlFotke)
{
   var sOption="toolbar=no,location=no,directories=no,menubar=no,"; 
       sOption+="scrollbars=no,width=700,height=740,left=100,top=25"; 

   var fotka_array=urlFotke.split("/");
   var fotka_array1=fotka_array[3].split("_");
   var fotka=fotka_array1[0];

   
   window.open("http://www.mp-nepremicnine.si/detail_galerija.aspx?f=" + fotka + "","detailGalerija",sOption);

}
function odpriOknoInvesticija(urlFotke, idPriloznosti)
{
    var sOption = "toolbar=no,location=no,directories=no,menubar=no,";
    sOption += "scrollbars=no,width=700,height=740,left=100,top=25";

    var fotka_array = urlFotke.split("/");
    //var fotka_array1 = fotka_array[6].split("_");
    var fotka = fotka_array[6];


    window.open("http://www.mp-nepremicnine.si/investicijske-priloznosti-v-nepremicnine/investicija_galerija.aspx?f=" + fotka + "&id=" + idPriloznosti, "detailGalerija", sOption);

}
function odpriFilmcek(imedatoteke,idNep)
{
   var sOption="toolbar=no,location=no,directories=no,menubar=no,"; 
       sOption+="scrollbars=no,width=640,height=650,left=100,top=25"; 

   window.open("http://www.mp-nepremicnine.si/filmcek.aspx?f=" + imedatoteke + "&idNep=" + idNep + "","detailFilmcek",sOption); 

}

function natisni()
{
    window.print()
}
function zapri()
{
    window.close()
}
function shadowtxt_preko(id,text,kateri) {
    var besediloInput = new Array();
    var vpisano = new String(document.getElementById(id).value.toLowerCase());
    besediloInput[0] = "Vnesite Vaše ime:";
    besediloInput[1] = "Vnesite Vašo e-pošto:";
    besediloInput[2] = "Vnesite prejemnikovo e-pošto:";
    besediloInput[3] = "Vnesite sporočilo:";

    if (parseInt(vpisano.length)>0) {


        if (vpisano.indexOf("vnesite")==-1) {

            document.getElementById(id).style.backgroundColor = "#ffffff";
            document.getElementById(id).style.color = "#000000";
        }
        else
        {

            document.getElementById(id).style.backgroundColor = "#FFFFFF";
            document.getElementById(id).style.color = "#000000";
            document.getElementById(id).value = ""
        }
     }
     else
     {
        document.getElementById(id).style.backgroundColor = "#FFFFFF";
        document.getElementById(id).style.color = "#000000";
        document.getElementById(id).value = ""
     }


}
function shadowtxt_dol(id, text, kateri) {
    var besediloInput = new Array();
    var vpisano = new String(document.getElementById(id).value.toLowerCase());

    besediloInput[0] = "Vnesite Vaše ime:";
    besediloInput[1] = "Vnesite Vašo e-pošto:";
    besediloInput[2] = "Vnesite prejemnikovo e-pošto:";
    besediloInput[3] = "Vnesite sporočilo:";

    if (parseInt(vpisano.length)!=0) {

        
            if (vpisano.indexOf("vnesite") == -1)
            {
                document.getElementById(id).style.backgroundColor = "#ffffff";
                document.getElementById(id).style.color = "#000000";
            }
            else
            {
                document.getElementById(id).style.backgroundColor = "#e8e8e9";
                document.getElementById(id).style.color = "#444444";
                document.getElementById(id).value = besediloInput[kateri]
            }
        }
        else
        {
       
        document.getElementById(id).style.backgroundColor = "#e8e8e9";
        document.getElementById(id).style.color = "#444444";
        document.getElementById(id).value = besediloInput[kateri]    
        }
}
function shadowtxt_focus(id, text, kateri) {
    var besediloInput = new Array();
    besediloInput[0] = "Vnesite Vaše ime:";
    besediloInput[1] = "Vnesite Vašo e-pošto:";
    besediloInput[2] = "Vnesite prejemnikovo e-pošto:";
    besediloInput[3] = "Vnesite sporočilo:";


    if (parseInt(vpisano.length) !=0) {

        if (vpisano.indexOf("vnesite") == -1) {

            document.getElementById(id).style.backgroundColor = "#ffffff";
            document.getElementById(id).style.color = "#000000";
        }
        else
        {

            document.getElementById(id).style.backgroundColor = "#FFFFFF";
            document.getElementById(id).style.color = "#000000";
            document.getElementById(id).value = ""
        }
        document.getElementById(id).style.backgroundColor = "#FFFFFF";
        document.getElementById(id).style.color = "#000000";
        document.getElementById(id).value = ""

    }

}
function shadowtxt_unfocus(id, text, kateri) {
    var besediloInput = new Array();
    besediloInput[0] = "Vnesite Vaše ime:";
    besediloInput[1] = "Vnesite Vašo e-pošto:";
    besediloInput[2] = "Vnesite prejemnikovo e-pošto:";
    besediloInput[3] = "Vnesite sporočilo:";


    var vpisano = new String(document.getElementById(id).value.toLowerCase())

    if (parseInt(vpisano.length) != 0) {


        if (vpisano.indexOf("vnesite") == -1) {
            document.getElementById(id).style.backgroundColor = "#ffffff";
            document.getElementById(id).style.color = "#000000";
        }
        else
        {
            document.getElementById(id).style.backgroundColor = "#e8e8e9";
            document.getElementById(id).style.color = "#444444";
            document.getElementById(id).value = besediloInput[kateri]
        }
    }
    else
    {
        document.getElementById(id).style.backgroundColor = "#e8e8e9";
        document.getElementById(id).style.color = "#444444";
        document.getElementById(id).value = besediloInput[kateri]
    }
}
