 function creMe(actPageT, yearP, dirNameP) { var tm = '<div id="ctwo">\n'+ '<div id="ctop">topHorizontalmenu</div>\n'+ '<div id="cpll">pulldownmenu</div>\n'+ '</div>\n'; document.write(tm); var tpm = new tpMenu(actPageT); var pdm = new PdMenu(yearP, dirNameP); } function tpMenu(actPage) { var nt = (meTab.length) / 2; var label = meTab[actPage * 2]; var title = meTab[(actPage * 2) + 1]; var acti = '<li id="acti"><span title="' + title + '">' + label + '</span></li>'; var indx = '<li id="indx"><a href="index.php" title="'+ meTab[1] +'">'+ meTab[0] +'</a></li>'; var num = "00"; var tm = '<ul class="topc">\n'+ '<li id="year"><span>Year</span></li>\n'; for (var i = 0; i < nt; i++) { label = meTab[i * 2]; title = meTab[(i * 2) + 1]; if(i < 10) {num = "0" + i.toString();} else {num = i.toString();} if(i==actPage){ tm = tm + acti; } else { if(i == 0) { tm = tm + indx; } else { tm = tm + '<li id="nb' + num + '"><a href="NB' + num + '.php" title="' + title + '">' + label + '</a></li>'; } } } tm = tm + '</ul>\n'; document.getElementById("ctop").innerHTML = tm; } function PdMenu(year, dirName){ var raIn="The Rapid Chess Tournament of Individuals (2x15 min)"; var blIn="The Blitz Chess Tournament of Individuals"; var blDo="The Blitz Chess Tournament of Doubles"; var blTe="The Blitz Chess Tournament of Teams"; var chIn="The Chess Tournament of Individuals"; var y2011 = new Array(); y2011.year = "2011"; y2011[0] = { a:"2011.01.06 Margecany", d:"110106MA", t:blDo + "\nNovoročný turnaj dvojíc v bleskovom šachu" }; var y2010 = new Array(); y2010.year = "2010"; y2010[1] = { a:"2010.07.31 Prešov", d:"100731PR", t:chIn + "\nPrešov Open 2010"}; y2010[0] = { a:"2010.01.02 Margecany", d:"100102MA", t:blDo + "\nNovoročný turnaj dvojíc v bleskovom šachu" }; var y2009 = new Array(); y2009.year = "2009"; y2009[1] = { a:"2009.08.01 Prešov", d:"090801PR", t:chIn + "\nPrešov Open 2009" }; y2009[0] = { a:"2009.01.03 Margecany", d:"090103MA", t:blDo + "\nNovoročný turnaj dvojíc v bleskovom šachu" }; var y2008 = new Array(); y2008.year = "2008"; y2008[2] = { a:"2008.04.27 Gelnica", d:"080427GE", t:blIn + "\nPohár Oslobodenia - 22. ročník turnaja v bleskovom šachu"} ; y2008[1] = { a:"2008.02.22 Prešov", d:"080222PR", t:blIn + "\nAlenka Mrvová - Anniversary Blitz Tournament - I. year" }; y2008[0] = { a:"2008.01.05 Margecany", d:"080105MA", t:blDo + "\nNovoročný turnaj dvojíc v bleskovom šachu" }; var y2007 = new Array(); y2007.year = "2007"; y2007[0] = { a:"2007.12.29 Prešov", d:"071229PR", t:blIn + "\nMemorial Rudolfa Blahu 2007 v bleskovom šachu I. ročník" }; var y2006 = new Array(); y2006.year = "2006"; y2006[2] = { a:"2006.05.08 Sabinov", d:"060508SA", t:blIn + "\nSanas Open 2006" }; y2006[1] = { a:"2006.05.05 Prešov", d:"060505PR", t:blIn + "\nJaro Bánoci - Anniversary Blitz Tournament" }; y2006[0] = { a:"2006.04.23 Gelnica", d:"060423GE", t:blIn }; var y2005 = new Array(); y2005.year = "2005"; y2005[4] = { a:"2005.12.30 Prešov", d:"051230PR", t:blIn + "\nNew Year 2006\n& Peter Grilli - Anniversary Blitz Tournament" }; y2005[3] = { a:"2005.11.19 Košice", d:"051119KO", t:raIn + "\nUS Steel Košice 2005"}; y2005[2] = { a:"2005.05.20 Prešov", d:"050520PR", t:blIn + "\nVojto Rahl - Anniversary Blitz Tournament I. year" }; y2005[1] = { a:"2005.04.24 Gelnica", d:"050424GE", t:blIn}; y2005[0] = { a:"2005.01.08 Margecany", d:"050108MA", t:blDo + "\nNovoročný turnaj dvojíc v bleskovom šachu" }; var y2004 = new Array(); y2004.year = "2004"; y2004[5] = { a:"2004.12.31 Prešov", d:"041231PR", t:blIn + "\nSilvestrovský turnaj v bleskovom šachu" }; y2004[4] = { a:"2004.12.27 Prešov", d:"041227PR", t:blIn + "\n3. ročník Vianočného turnaja v bleskovom šachu" }; y2004[3] = { a:"2004.09.18 Ťahanovce", d:"040918TA", t:raIn + "\nŤahanovce 2004 (near Košice)" }; y2004[2] = { a:"2004.05.16 Margecany", d:"040516MA", t:raIn + "\nKavulič Jan - Memorial 2004" }; y2004[1] = { a:"2004.05.01 Poprad", d:"040501PO", t:raIn + "\nKrajňak Open 2004" }; y2004[0] = { a:"2004.04.25 Gelnica", d:"040425GE", t:blIn }; var y2003 = new Array(); y2003.year = "2003"; y2003[2] = { a:"2003.12.27 Prešov", d:"031227PR", t:"The Blitz Chess Championship of Slovakia" }; y2003[1] = { a:"2003.05.10 Košice", d:"030510KO", t:blIn }; y2003[0] = { a:"2003.04.27 Gelnica", d:"030427GE", t:blIn }; var y2002 = new Array(); y2002.year = "2002"; y2002[0] = { a:"2002.12.28 Prešov", d:"021228PR", t:blIn }; var y0000 = new Array(); y0000.year = "0000"; y0000[0] = { a:"Dušan Kriško", d:"EV00", t:"start page" }; var mm = [y2011,y2010,y2009,y2008,y2007,y2006,y2005,y2004,y2003,y2002,y0000]; var mmL = mm.length; var smL = 0; var label = ""; var dir = ""; var title = ""; var yearC = ""; var M = '<ul id="ma01" class="mac01">\n'; for(var i=0; i<mmL; i++){ yearC = mm[i].year; if(yearC == year){ M = M + '<li><span id="' + yearC + '" class="mActive">' + yearC + ' ></span></li>\n'; } else { M = M + '<li><span id="' + yearC + '">' + yearC + ' ></span></li>\n'; } } M = M + '</ul>\n'; for(var i=0; i<mmL; i++){ smL = mm[i].length; M = M + '<ul id="' + mm[i].year + 's" class="subm">\n'; for(var j=0; j<smL; j++){ dir = mm[i][j].d; title = mm[i][j].t; label = mm[i][j].a; if(dir == dirName){ M = M + '<li id="' + dir + '"><span class="sActive" title="' + title + '" >' + label + '</span></li>\n'; } else { M = M + '<li id="' + dir + '"><a href="../' + dir + '/" title="' + title + '" >' + label + '</a></li>\n'; } } M = M + '</ul>\n'; } document.getElementById("cpll").innerHTML = M; var opsbID = "#0000s"; function shSub(){ var sID = this.id; var spEl = $("#" + sID); var pos = spEl.position(); var spWi = spEl.outerWidth(); $(opsbID).css("display", "none"); var uID = "#" + sID + "s"; opsbID = uID; $(uID).css({"top": pos.top, "left": spWi, "display":"block"}); } var anim = false; var mmOp = false; function shMpl(){ if(mmOp){ return; } if(anim){ return; } mnEnter(); anim = true; $("#ma01").slideDown("slow", function(){ anim = false; mmOp = true; }); } function hdMn(){ if(!mmOp){ return; } if(anim) { return; } anim = true; $("#ma01 span").unbind("mouseenter", shSub); $(opsbID).css("display", "none"); $("#ma01").slideUp("slow", function(){ anim = false; mmOp = false; $("#ma01 span").mouseenter(shSub); }); } function hdMn1(){ if(!mmOp){ return; } if(anim){ return; } anim = true; $(opsbID).css("display", "none"); $("#ma01").slideUp("slow", function(){ anim = false; mmOp = false; $(opsbID).css("display", "none"); }); } var tmrID = 0; var tmOut = 1000; function mnEnter(){ window.clearTimeout(tmrID); } function mnLeave(){ tmrID = window.setTimeout(hdMn, tmOut); } $(document).ready(function(){ $("#year").mouseenter(shMpl).mouseleave(mnLeave); $("#ma01 span").mouseenter(shSub); $("#ma01, ul.subm").mouseenter(mnEnter).mouseleave(mnLeave); }); } function PictReHi(divID){ var imgID = "I_"+divID; if(document.getElementById(imgID) == null){ var oldContent = $("#" + divID).html(); var img = "<img class='imgH' " + eval(divID) + " />"; $("#" + divID).html(oldContent + img); $("#" + divID + " > img").attr("id", imgID); } window.setTimeout(function(){ $("#" + imgID).toggle("slow"); }, 0); } function galleryObj(divID) { var butt = "b_" + divID; var gall = "g_" + divID; if (PicNum > 999){alert("Picture number is > 999.\nBacha This is error!!!"); return;}; function GallReHi(){ if(document.getElementById(gall) == null){ var oldContent = $("#" + divID).html(); $("#" + divID).html(oldContent + gallTable()); } window.setTimeout(function(){ $("#" + butt).unbind("click", GallReHi); $("#" + gall).toggle(5000, function() { $("#" + butt).toggleClass("cloGal"); $("#" + butt).click(GallReHi); }); }, 0); } function gallButton(){ return '<div id="' + butt + '" class="opeGal" title="click to open/close the Photo Gallery"></div>\n'; } var PDcnt = PicNum; var Cnt1 = ColNum; var _ColNum = ColNum; var _FuncName = FuncName; var _File = File; var _RelAdd = RelAdd; function gallTable() { var PUcnt = 1; var PUs = "0"; var iname = "something"; var ImNm = "xcvxcv"; var remark = ""; var textUP = ""; var gallHTM = ""; gallHTM += '<div id="' + gall + '" style="display:none;">\n'+ '<p class="br01">Click on a thumbnail to open new window with a picture<br />\n'+ '1x klikni na náhľad, otvorí sa nové okno s obrázkom<br />\n'+ '</p>\n'; gallHTM += '<table class="ga1" cellspacing="10" cols="' + _ColNum+'">'+ '<tbody>'; while (PDcnt > 0){ gallHTM += '<tr>'; Cnt1 = _ColNum; while (PDcnt > 0 & Cnt1 > 0){ PUs=PUcnt.toString(); if (PUcnt < 10) {PUs="00"+PUs;} else {if (PUcnt < 100) {PUs="0"+PUs;}}; if (Titles[PUcnt] == null) {remark="";} else {remark=Titles[PUcnt];}; if (TxUP[PUcnt] == null) {textUP="";} else {textUP=TxUP[PUcnt];}; iname = _File + PUs; ImNm="ImageName = '"+iname+"'; "; gallHTM += '<td><img name="' + iname + '" src="' + _RelAdd + iname + '.jpg"' + 'title=" '+remark+' ('+iname+') " onclick="' + ImNm + _FuncName + '"><br clear="left" />'+textUP+'</td>'; PDcnt--; Cnt1--; PUcnt++; }; gallHTM += '</tr>'; }; gallHTM += '</tbody>'+ '</table>'+ '</div>'; return gallHTM; } var title = $("#" + divID).html(); $("#" + divID).html(title + gallButton()); $(document).ready(function() { $("#" + butt).click(GallReHi); }); } var ImageName = " "; function FullRes(PictDir, PicToCnt, CntLog, FrameText){ var vfeatures = "hotkeys=0,location=0,menubar=0,status=0,resizable=1,width=120,height=600"; var getParameters ="?r1="+PictDir+"&r3="+CntLog+"&ft="+FrameText+"&pn="+ImageName; var NW = window.open(PicToCnt+getParameters, ImageName, vfeatures); } function W3Cv() { document.write( '<div id="w3c0">'+ ' <div id="w3c1">'+ ' <a href="http://validator.w3.org/check?uri=referer"'+ ' title="check this page for valid XHTML 1.0 Strict - otestuj stránku na platnosť XHTML 1.0 Strict">'+ ' <img src="../cPICT/W3Cxhtml.png" alt="check this page for valid XHTML 1.0 Strict"'+ ' style="width:88px; height:31px; border:0px; float:left;" />'+ ' </a>'+ ' <a href="http://jigsaw.w3.org/css-validator/check?uri=referer"'+ ' title="check this page for valid CSS level 2.1 - otestuj stránku na platnosť CSS 2.1">'+ ' <img src="../cPICT/W3Ccss2.gif" alt="check this page for valid CSS level 2.1"'+ ' style="width:88px; height:31px; border:0px; float:right;" />'+ ' </a>'+ ' </div>'+ '</div>' ); } function W3Cicons() { $('#bt').unbind('mouseenter'); $('#w3c1').fadeIn(1000); $('#w3c1').delay(8000).fadeOut(1000, function() {$('#bt').mouseenter(W3Cicons);}); } var Tm=""; var DoNa=""; function Inf() { DoNa="http://"+DoNa+"/"; document.write( '<div id="bt">'+ ' <span id="getInfo">'+Tm+'</span>'+ ' <span style="float:right;" title="marian@chovan.org">'+ 'Play chess for a pleasure ... &nbsp; &nbsp; (c) 2010 &nbsp;ch.m.</span>'+ '</div>' ); } $(document).ready(function() { $("#bt").mouseenter(W3Cicons); $("#getInfo").dblclick(function(){ EnPa(); }); }); function EnPa() { $("#getInfo").unbind("dblclick"); var dst0="width:180px; border:2px ridge khaki; padding:15px; padding-bottom:0px; "+ "margin-top:100px; margin-bottom:100px; margin-left:auto; margin-right:auto;"; var dst1="this.style.background='#006666';"; var dst2="this.style.background='#004900';"; var ist0="margin-top:10px; margin-bottom:20px; font-weight:bold; "+ "padding:1px; padding-left:15px; padding-right:15px; background:darkseagreen; color:black;"; var ist1="this.style.background='#004900'; this.style.color='khaki'"; var ist2="this.style.background='darkseagreen'; this.style.color='black'"; var pswFrm = '<div style="'+dst0+'" onmouseover="'+dst1+'" onmouseout="'+dst2+'">'+ '<div>The password please...<br />'+ '<input id="PgPassID" name="Psswrd" type="password" style="margin:10px;" />'+ '<input style="'+ist0+'" type="submit" value="OK" onclick="VerifyFrm();" onmouseover="'+ist1+'" onmouseout="'+ist2+'" />'+ '</div>'+ '</div>'; $("div.d01").html(pswFrm); } function VerifyFrm() { var tmp1 = document.getElementById("PgPassID").value.length; if (tmp1<5){ alert("Typenin 5 characters minimally ...\n\nZadaj minimálne 5 znakov ..."); document.getElementById("PgPassID").focus(); return; } var passTx = document.getElementById("PgPassID").value; $.get("../cSSJS/getInfo.php", {"cntLogReadPathName":cntLogReadPathName, "passTx":passTx}, getInfoHandle, "text"); } function getInfoHandle(sData){ $("div.d01").html(sData); } function imRe() { var imgID = this.id; var dmImg = document.getElementById(imgID); if(!dmImg.tagName == "IMG") { alert("You click on " + dmImg.tagName + "not on IMG\nimgResize() event handler improper call"); } var jQimg = $("#" + imgID); var jQWidth = jQimg.attr("width"); var jQHeight = jQimg.attr("height"); var orgImg = new Image(); orgImg.src = jQimg.attr("src"); var orgWidth = orgImg.width; var orgHeight = orgImg.height; var cliWidth = document.body.clientWidth - 40; var newWidth = Math.min(orgWidth, cliWidth); var newHeight = Math.round((newWidth / jQWidth) * jQHeight); imgExtend(); var ext = "click to extend again / klikni pre opätovné zväčšenie"; var shr = "click to shrink / klikni pre zmenšenie"; function imgExtend(){ $("#" + imgID).attr("title", "").unbind("click"); jQimg.animate({width:newWidth, height:newHeight}, 8000, function(){ $("#" + imgID).click(imgShrink).attr("title", shr); }); } function imgShrink(){ $("#" + imgID).attr("title", "").unbind("click"); jQimg.animate({width:jQWidth, height:jQHeight}, 8000, function(){ $("#" + imgID).click(imgExtend).attr("title", ext); }); } } function Showobjectproperties(obj,objName){ var result = ""; for (var i in obj){result += objName+"."+i+" = "+obj[i]+"<br />";} return result; } var wwi = 400; var whe = 250; var xpo = (screen.width-wwi)/2; var ypo = (screen.height-whe)/2; var pro = "resizable=yes, left="+xpo+", top="+ypo+", width="+wwi+", height="+whe; function ww() { var BrNm = navigator.userAgent.search("MSIE "); var BrVn = Number(navigator.userAgent.substr(BrNm+5,1)); if(BrNm>1 && BrVn>6) {return;} top.location="../cSSJS/WarningPage.htm"; BrNm = navigator.userAgent.search("Chrome"); if(BrNm>1) {return;} top.location="../cSSJS/WarningPage.htm"; } function ww2() { var ag = navigator.userAgent.search("MSIE "); if (ag>0) {var nn = navigator.userAgent.substr(ag+5,1); eval("nn="+nn);} if (ag<0 || nn<7) {top.location="../cSSJS/WarningPage.htm";} } function ww1() { if (ag>0) {var nn = navigator.userAgent.substr(ag+5,1); eval("nn="+nn);} if (ag<0 || nn<5) {WarWin = window.open("../cSSJS/warning.htm","warning", pro); WarWin.focus();} } 
