function MD(){var a=window.location.pathname.toLowerCase(),b=a.indexOf("/",1);if(b!=-1)a=a.substring(0,b+1);b=false;if(a=="/en/"){a=window.location.pathname.toLowerCase().substring(3);b=a.indexOf("/",1);if(b!=-1)a=a.substring(0,b+1);a="/en"+a}$("#m a[href='"+a+"']").toggleClass("d",true)}function MS(){var a=window.location.pathname,b=a.indexOf("?");if(b!=-1)a=a.substring(0,b-1);if(a.length>20)a=a.match(/\/\w+\/.*?\/+/ig);$(".s-m a[href='"+a+"']").toggleClass("d",true)}
function MS_EN(){var a=window.location.pathname.replace("/en/","/"),b=a.indexOf("?");if(b!=-1)a=a.substring(0,b-1);if(a.length>20)a=a.match(/\/\w+\/.*?\/+/ig);a="/en"+a;$(".s-m a[href='"+a+"']").toggleClass("d",true)}function _scroll(a){window.opera?$("html").animate({scrollTop:a},1E3):$("html,body").animate({scrollTop:a},1E3)}function StrNumeric(a,b){a=a.toString();if(a.length<b){for(var d="",c=1;c<=b-a.length;c++)d+="0";a=d+a}return a}
function _S(a){var b=document.createElement("SCRIPT");b.setAttribute("src",a);b.setAttribute("type","text/javascript");document.body.appendChild(b)}function _I(a){var b=document.createElement("IMG");b.setAttribute("src",a);b.setAttribute("width",16);b.setAttribute("height",16);b.style.display="none";document.body.appendChild(b)}function _R(a){window.location.href=a}
function Search(a,b){if(a!=""){var d=document.createElement("FORM"),c=document.createElement("INPUT");d.setAttribute("action",b?"/en/search":"/search");d.setAttribute("method","GET");c.setAttribute("type","hidden");c.setAttribute("name","q");c.setAttribute("value",a);d.appendChild(c);document.body.appendChild(d);d.submit()}}
function FlashPlay(a,b,d,c,h,f){var e=document.createElement("embed");e.setAttribute("width",d);e.setAttribute("height",c);e.setAttribute("menu","false");e.setAttribute("quality","high");e.setAttribute("src",a);if(typeof f!="undfined"&&f!=null)for(var g in f)e.setAttribute(g,f[g]);h&&e.setAttribute("wmode","transparent");document.getElementById(b).appendChild(e)}
function AutoMove(a,b,d){var c=$(d).width()/2,h=$(d).height()/2,f=0,e=0;f=a>c?c-a:(a-c)*-1;e=b>h?-5:+5;$("div",d).each(function(){var g=f*($(this).index()+1);g=g/4-200;$(this).css({marginLeft:g+"px"})})}
function Animacia(){var a=$("#ie7problem").offset().left,b=$("#animacia"),d=$("#telo").innerHeight()-470,c=Math.floor(Math.random()*d)+$("#telo").offset().top;if((new Date).getMilliseconds()%2==0){b.css({backgroundPosition:a+"px "+c+"px"});b.animate({backgroundPosition:a-200+"px "+c+"px"},500)}else{b.css({backgroundPosition:a+"px "+c+"px"});b.animate({backgroundPosition:a+220+"px "+c+"px"},500)}setTimeout(function(){b.animate({backgroundPosition:a+"px "+c+"px"},200)},1500)}
function _S(a){var b=document.createElement("SCRIPT");b.setAttribute("src",a);b.setAttribute("type","text/javascript");document.body.appendChild(b)}function _I(a){var b=document.createElement("IMG");b.setAttribute("src",a);b.setAttribute("width",16);b.setAttribute("height",16);b.style.display="none";document.body.appendChild(b)};

