// soubor javascript.js pro skoky.net - © Copyright - Vsechna prava vyhrazena - Ondrej Lazar Krynek

var day="";
var month="";
var myweekday="";
var year="";
newdate = new Date();
mydate = new Date();
dston =  new Date('April 4, 1999 2:59:59');
dstoff = new Date('october 31, 1999 2:59:59');
var myzone = newdate.getTimezoneOffset();
newtime=newdate.getTime();

var zone = -1;

if (newdate > dston && newdate < dstoff ) {
zonea = zone - 1 ;
dst = "";
}
else {
zonea = zone ; dst = "";
}
var newzone = (zonea*60*60*1000);
newtimea = newtime+(myzone*60*1000)-newzone;
mydate.setTime(newtimea);
myday = mydate.getDay();
mymonth = mydate.getMonth();
myweekday= mydate.getDate();
myyear= mydate.getYear();
year = myyear;

if (year < 2000)
year = year + 1900;
myhours = mydate.getHours();
if (myhours >= 24) {
myhours = (myhours == 24) ? 24 : myhours - 24; mm = "";
}
else {
myhours = (myhours == 00) ? 00 : myhours; mm = "";
}
myminutes = mydate.getMinutes();
if (myminutes < 10){
mytime = ":0" + myminutes;
}
else {
mytime = ":" + myminutes;
};
arday = new Array("neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota")
armonth = new Array("1.","2.","3.","4.","5.","6.","7.","8.","9.", "10.","11.","12.")
ardate = new Array("0.","1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12.","13.","14.","15.","16.","17.","18.","19.","20.","21.","22.","23.","24.","25.","26.","27.","28.","29.","30.","31.");

var time = ("Dnes je " + arday[myday] +" "+ardate[myweekday] + "" + armonth[mymonth] +"" + year+" - " + myhours + mytime+"");

var name = (""+ document.referrer +"" )
document.write("<script language=\"JavaScript\" src=\"pocitadlo/counter.php?referer="+name+'" type="text/javascript"></script>');


function addSearchEngine(engineURL, iconURL, suggestedTitle, suggestedCategory){ var msg="Přidání vyhledávacího pluginu selhalo - "; if((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")){ if(engineURL == null || engineURL == ""){ alert(msg + "nebyla zadána jeho URL."); return false; } if(iconURL == null || iconURL == ""){ alert(msg + "nebyla zadána URL ikony."); return false; } if(engineURL.search(/^http:\/\//i) == -1 || engineURL.search(/\.src$/i) == -1){ alert(msg + "nebyla zadána platná URL."); return false; } if(iconURL.search(/^http:\/\//i) == -1 || iconURL.search(/\.(gif|jpg|jpeg|png)$/i) == -1){ alert(msg + " nebyla platné URL ikony."); return false; } if(suggestedTitle == null) suggestedTitle = ""; if(suggestedCategory == null) suggestedCategory = ""; window.sidebar.addSearchEngine(engineURL, iconURL, suggestedTitle, suggestedCategory); }else{ alert("Váš prohlížeč nepodporuje tuto funkci. Zkuste Firefox."); } return false; }

document.write("<script src=\"http://www.google-analytics.com/urchin.js\" type=\"text/javascript\"></script>")
document.write("<script src=\"ga.js\" type=\"text/javascript\"></script>")

var polozky = new Array();
polozky = Array("display1","display2","display3","display4","display5","display6");
polozek = 5;
function skrytP(){
for(i=0;i<=polozek;i++){
document.getElementById(''+polozky[i]+'').style.display = "none";
}
}

function ukazPoradi(ClickMenu){
if(document.getElementById(ClickMenu).style.display=="none"){
skrytP();
document.getElementById(ClickMenu).style.display = "block";
}else{
document.getElementById(ClickMenu).style.display = "block";
}
}

function openGALWindow(url, jmeno, w, h) {
	iMyWidth = (window.screen.width / 2) - ((w / 2) + 14); iMyHeight = (window.screen.height / 2) - ((h / 2) + 50);
	Okno = window.open(url, jmeno, "width=" + w + ", height=" + h + ", left=" + iMyWidth + ", top=" + iMyHeight + ", screenX=" + iMyWidth + ", screenY=" + iMyHeight + ", resizable=no, scrollbars=no");
	Okno.focus();
}


// konec javascriptu