function ShowContent(F,C){var D=document.getElementsByTagName("body").item(0);var B=getPageSize();var A=getPageScroll();var E=document.getElementById("blockUI");if(isIE6()){E.style.position="absolute"}if(C.indexOf("new_tip")==-1){E.style.display="block";E.style.height=B[1]+"px";document.getElementById(F).style.left=(B[0]/2-315)+"px"}else{document.getElementById(F).style.left=(B[0]/2-120)+"px";document.getElementById(F).style.top=(B[1]/2-170)+"px"}document.getElementById(F).style.display="block";EmbedData("GET",C,F)}function embedStats(A){var B=null;if(window.XMLHttpRequest){try{B=new XMLHttpRequest()}catch(C){}}else{if(window.ActiveXObject){try{B=new ActiveXObject("Microsoft.XMLHTTP")}catch(C){}if(!B){try{B=new ActiveXObject("Msxml2.XMLHTTP")}catch(C){}}}}if(B){B.open("GET",A,true,null,null);B.setRequestHeader("Content-Type","application/octet-stream");B.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");B.send(null);B.onreadystatechange=function(){if(B.readyState==4){}}}}function vote(B,C){var D=null;if(window.XMLHttpRequest){try{D=new XMLHttpRequest()}catch(E){}}else{if(window.ActiveXObject){try{D=new ActiveXObject("Microsoft.XMLHTTP")}catch(E){}if(!D){try{D=new ActiveXObject("Msxml2.XMLHTTP")}catch(E){}}}}var A="/includes/voter.php?url="+B+"&rate="+C;if(D){D.open("GET",A,true,null,null);D.setRequestHeader("Content-Type","application/octet-stream");D.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");D.send(null);D.onreadystatechange=function(){if(D.readyState==4){rewritePageRate(B,D.responseText)}}}}function rewritePageRate(C,D){var A=D.substr(0,1);var G=D.substr(2);var F="";var B=0;if(G==""){G=0}for(i=0;i<A;i++){F=F+"<img src='/img/picvi/rating_on.gif'>";B=B+1}if(G>2&&G<7){F=F+"<img src='/img/picvi/rating_half.gif'>";B=B+1}if(G>=7){F=F+"<img src='/img/picvi/rating_on.gif'>";B=B+1}var E=5-B;for(i=0;i<E;i++){F=F+"<img src='/img/picvi/rating_off.gif'>"}F=F+"  done!";document.getElementById("rate"+C).innerHTML=F}function restoreRate(B,C,A){for(i=1;i<(C+1);i++){document.getElementById(B+"rate"+i).src="/img/picvi/rating_on.gif"}for(k=i;k<A;k++){document.getElementById(B+"rate"+k).src="/img/picvi/rating_half.gif"}for(j=k;j<5;j++){document.getElementById(B+"rate"+j).src="/img/picvi/rating_off.gif"}document.getElementById("rate"+B).innerHTML=realRate;realRate=""}function showPossibleRate(A,B){realRate=document.getElementById("rate"+A).innerHTML;for(i=1;i<B+1;i++){document.getElementById(A+"rate"+i).src="/img/picvi/rating_on.gif"}for(j=i;j<6;j++){document.getElementById(A+"rate"+j).src="/img/picvi/rating_off.gif"}}function makeRegister(C){var G=null;var A=document.getElementById(C+"_nick").value;var F=document.getElementById(C+"_email").value;var H=document.getElementById(C+"_password").value;var I=document.getElementById(C+"_c_password").value;var B=document.getElementById(C+"_name").value;var D=document.getElementById(C+"_surname").value;if(window.XMLHttpRequest){try{G=new XMLHttpRequest()}catch(E){}}else{if(window.ActiveXObject){try{G=new ActiveXObject("Microsoft.XMLHTTP")}catch(E){}if(!G){try{G=new ActiveXObject("Msxml2.XMLHTTP")}catch(E){}}}}if(G){G.open("GET","/includes/"+C+"_register.php?nick="+A+"&email="+F+"&pass="+H+"&c_pass="+I+"&name="+B+"&surname="+D,true,null,null);G.setRequestHeader("Content-Type","application/octet-stream");G.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");G.send(null);G.onreadystatechange=function(){if(G.readyState==4){if(G.responseText=="success"){document.getElementById("register").style.display="none";document.getElementById("update_info").style.display="block";document.getElementById("register_result").innerHTML=""}else{document.getElementById("register_result").innerHTML=G.responseText}}}}}function makeUpdate(C){var G=null;var F=document.getElementById(C+"_email").value;var A=document.getElementById(C+"_old_password").value;var H=document.getElementById(C+"_password").value;var I=document.getElementById(C+"_c_password").value;var B=document.getElementById(C+"_name").value;var D=document.getElementById(C+"_surname").value;if(window.XMLHttpRequest){try{G=new XMLHttpRequest()}catch(E){}}else{if(window.ActiveXObject){try{G=new ActiveXObject("Microsoft.XMLHTTP")}catch(E){}if(!G){try{G=new ActiveXObject("Msxml2.XMLHTTP")}catch(E){}}}}if(G){G.open("GET","/includes/"+C+"_update.php?email="+F+"&old_pass="+A+"&pass="+H+"&c_pass="+I+"&name="+B+"&surname="+D,true,null,null);G.setRequestHeader("Content-Type","application/octet-stream");G.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");G.send(null);G.onreadystatechange=function(){if(G.readyState==4){document.getElementById("update_result").innerHTML=G.responseText}}}}function makeLogin(E){var C=null;var A=document.getElementById(E+"_nick").value;var B=document.getElementById(E+"_password").value;if(window.XMLHttpRequest){try{C=new XMLHttpRequest()}catch(D){}}else{if(window.ActiveXObject){try{C=new ActiveXObject("Microsoft.XMLHTTP")}catch(D){}if(!C){try{C=new ActiveXObject("Msxml2.XMLHTTP")}catch(D){}}}}if(C){C.open("GET","/includes/"+E+"_login.php?nick="+A+"&pass="+B,true,null,null);C.setRequestHeader("Content-Type","application/octet-stream");C.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");C.send(null);C.onreadystatechange=function(){if(C.readyState==4){if(C.responseText=="success"){document.getElementById("register").style.display="none";document.getElementById("login").style.display="none";document.getElementById("update_info").style.display="block"}else{document.getElementById("login_result").innerHTML=C.responseText}}}}}function EmbedData(E,B,A){var C=null;if(window.XMLHttpRequest){try{C=new XMLHttpRequest()}catch(D){}}else{if(window.ActiveXObject){try{C=new ActiveXObject("Microsoft.XMLHTTP")}catch(D){}if(!C){try{C=new ActiveXObject("Msxml2.XMLHTTP")}catch(D){}}}}if(C){C.open(E,B,true,null,null);C.setRequestHeader("Content-Type","application/octet-stream");C.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");C.send(null);C.onreadystatechange=function(){if(C.readyState==4){document.getElementById(A).innerHTML=C.responseText}}}}function createCookie(C,D,G){if(G){var B=new Date();B.setTime(B.getTime()+(G*24*60*60*1000));var A="; expires="+B.toGMTString();var E="; path=/";var F="; domain = .homepagle.com"}else{var A=""}document.cookie=C+"="+D+A+E+F}function getfileextension(D){var A=document.getElementById(D);if(!A){return""}var C=A.value;if(C.length==0){return""}var B=C.lastIndexOf(".");if(B==-1){return""}var E=C.substr(B,C.length);return E}function HideContent(C,B){if(B!="validate"){var A=screen.height/2;if(C.length<1){return}document.getElementById(C).style.display="none";document.getElementById("blockUI").style.display="block"}else{checkfileType("form_file_chooser",".gif.jpg.png.jpeg.JPG")}}function checkfileType(A,C){var B=getfileextension(A);if(C.indexOf(B)!=-1){document.getElementById("upload_form").submit();document.getElementById("widget").style.display="none";document.getElementById("blockUI").style.display="block";document.getElementById("sheep").style.display="block"}else{document.getElementById("ftype").innerHTML="<font color='Red'><?=trim($result_contents['upload_type_error'])?></font>";return false}}function HideContent2(){document.getElementById("blockUI").style.display="none";document.getElementById("sheep").style.display="none";document.getElementById("widget").innerHTML="";document.getElementById("widget").style.display="none"}function isIE6(){if(navigator.userAgent.indexOf("MSIE 6")>-1){return true}else{return false}}function getPageScroll(){var A;if(self.pageYOffset){A=self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){A=document.documentElement.scrollTop}else{if(document.body){A=document.body.scrollTop}}}arrayPageScroll=new Array("",A);return arrayPageScroll}function getPageSize(){var C,A;if(window.innerHeight&&window.scrollMaxY){C=document.body.scrollWidth;A=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){C=document.body.scrollWidth;A=document.body.scrollHeight}else{C=document.body.offsetWidth;A=document.body.offsetHeight}}var B,D;if(self.innerHeight){B=self.innerWidth;D=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){B=document.documentElement.clientWidth;D=document.documentElement.clientHeight}else{if(document.body){B=document.body.clientWidth;D=document.body.clientHeight}}}if(A<D){pageHeight=D}else{pageHeight=A}if(C<B){pageWidth=B}else{pageWidth=C}arrayPageSize=new Array(pageWidth,pageHeight,B,D);return arrayPageSize}function show_tip(){document.getElementById("search_box").focus()}var cssdropdown={disappeardelay:250,dropdownindicator:"",enableswipe:1,enableiframeshim:0,dropmenuobj:null,asscmenuitem:null,domsupport:document.all||document.getElementById,standardbody:null,iframeshimadded:false,swipetimer:undefined,bottomclip:0,getposOffset:function(D,C){var B=(C=="left")?D.offsetLeft:D.offsetTop;var A=D.offsetParent;while(A!=null){B=(C=="left")?B+A.offsetLeft:B+A.offsetTop;A=A.offsetParent}return B},swipeeffect:function(){if(this.bottomclip<parseInt(this.dropmenuobj.offsetHeight)){this.bottomclip+=10+(this.bottomclip/10);this.dropmenuobj.style.clip="rect(0 auto "+this.bottomclip+"px 0)"}else{return}this.swipetimer=setTimeout("cssdropdown.swipeeffect()",10)},css:function(B,A,C){var D=new RegExp("(^|\\s+)"+A+"($|\\s+)","ig");if(C=="check"){return D.test(B.className)}else{if(C=="remove"){B.className=B.className.replace(D,"")}else{if(C=="add"&&!D.test(B.className)){B.className+=" "+A}}}},showhide:function(B,A){this.dropmenuobj.style.left=this.dropmenuobj.style.top="-500px";if(this.enableswipe==1){if(typeof this.swipetimer!="undefined"){clearTimeout(this.swipetimer)}B.clip="rect(0 auto 0 0)";this.bottomclip=0;this.swipeeffect()}B.visibility="visible";this.css(this.asscmenuitem,"selected","add")},clearbrowseredge:function(E,C){var B=0;if(C=="rightedge"){var D=document.all&&!window.opera?this.standardbody.scrollLeft+this.standardbody.clientWidth-15:window.pageXOffset+window.innerWidth-15;this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetWidth;if(D-this.dropmenuobj.x<this.dropmenuobj.contentmeasure){B=this.dropmenuobj.contentmeasure-E.offsetWidth}}else{var A=document.all&&!window.opera?this.standardbody.scrollTop:window.pageYOffset;var D=document.all&&!window.opera?this.standardbody.scrollTop+this.standardbody.clientHeight-15:window.pageYOffset+window.innerHeight-18;this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetHeight;if(D-this.dropmenuobj.y<this.dropmenuobj.contentmeasure){B=this.dropmenuobj.contentmeasure+E.offsetHeight;if((this.dropmenuobj.y-A)<this.dropmenuobj.contentmeasure){B=this.dropmenuobj.y+E.offsetHeight-A}}}return B},dropit:function(C,B,A){if(this.dropmenuobj!=null){this.hidemenu()}this.clearhidemenu();this.dropmenuobj=document.getElementById(A);this.asscmenuitem=C;this.showhide(this.dropmenuobj.style,B);this.dropmenuobj.x=this.getposOffset(C,"left");this.dropmenuobj.y=this.getposOffset(C,"top");this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(C,"rightedge")+"px";this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(C,"bottomedge")+C.offsetHeight+1+"px"},positionshim:function(){if(this.enableiframeshim&&typeof this.shimobject!="undefined"){if(this.dropmenuobj.style.visibility=="visible"){this.shimobject.style.width=this.dropmenuobj.offsetWidth+"px";this.shimobject.style.height=this.dropmenuobj.offsetHeight+"px";this.shimobject.style.left=this.dropmenuobj.style.left;this.shimobject.style.top=this.dropmenuobj.style.top}this.shimobject.style.display=(this.dropmenuobj.style.visibility=="visible")?"block":"none"}},hideshim:function(){if(this.enableiframeshim&&typeof this.shimobject!="undefined"){this.shimobject.style.display="none"}},isContained:function(A,B){var B=window.event||B;var C=B.relatedTarget||((B.type=="mouseover")?B.fromElement:B.toElement);while(C&&C!=A){try{C=C.parentNode}catch(B){C=A}}if(C==A){return true}else{return false}},dynamichide:function(A,B){if(!this.isContained(A,B)){this.delayhidemenu()}},delayhidemenu:function(){this.delayhide=setTimeout("cssdropdown.hidemenu()",this.disappeardelay)},hidemenu:function(){this.css(this.asscmenuitem,"selected","remove");this.dropmenuobj.style.visibility="hidden";this.dropmenuobj.style.left=this.dropmenuobj.style.top=0;this.hideshim()},clearhidemenu:function(){if(this.delayhide!="undefined"){clearTimeout(this.delayhide)}},addEvent:function(B,C,A){if(B.addEventListener){B.addEventListener(A,C,false)}else{if(B.attachEvent){B.attachEvent("on"+A,function(){return C.call(B,window.event)})}}},startchrome:function(){if(!this.domsupport){return}this.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;for(var D=0;D<arguments.length;D++){var F=document.getElementById(arguments[D]).getElementsByTagName("a");for(var B=0;B<F.length;B++){if(F[B].getAttribute("rel")){var A=F[B].getAttribute("rel");var C=document.getElementById(A);this.addEvent(C,function(){cssdropdown.clearhidemenu()},"mouseover");this.addEvent(C,function(G){cssdropdown.dynamichide(this,G)},"mouseout");this.addEvent(C,function(){cssdropdown.delayhidemenu()},"click");try{F[B].innerHTML=F[B].innerHTML+" "+this.dropdownindicator}catch(E){}this.addEvent(F[B],function(H){if(!cssdropdown.isContained(this,H)){var G=window.event||H;cssdropdown.dropit(this,G,this.getAttribute("rel"))}},"mouseover");this.addEvent(F[B],function(G){cssdropdown.dynamichide(this,G)},"mouseout");this.addEvent(F[B],function(){cssdropdown.delayhidemenu()},"click")}}}}};var bVae=(navigator&&navigator.userAgent)?navigator.userAgent.toLowerCase():"";var bWae=(navigator&&navigator.appVersion)?navigator.appVersion:"";var bXae=parseInt(bWae,10);var bYae=bVae.indexOf("opera")!=-1;var bZae=bYae&&bXae==9;var BAae=bYae&&bXae>=9;var BBae=!bYae&&(bVae.indexOf("msie")!=-1);var BCae=BBae&&(bVae.indexOf("mac")!=-1);var BDae=bVae.indexOf("safari")!=-1;var BEae=BDae&&(bVae.indexOf("safari/125.")==-1)&&(bVae.indexOf("safari/85.")==-1);var BFae=bVae.indexOf("konqueror")!=-1;var BGae=!BBae&&!bYae&&((bVae.indexOf("netscape")!=-1)||(bVae.indexOf("mozilla")!=-1))&&(bXae>=5);var BHae=BBae&&(bXae<4);var BIae=BBae&&(bXae==4)&&(bVae.indexOf("msie 4")!=-1);var BJae=BBae&&(bXae==4)&&(bVae.indexOf("msie 5.5")!=-1);var BKae=BBae&&(bXae==4)&&(bVae.indexOf("msie 5")!=-1)&&!BJae;var BLae=BBae&&!BHae&&!BIae&&!BKae;var BMae=BLae&&(bVae.indexOf("nt 4")==-1);var BNae=BBae&&!BHae&&!BIae&&!BKae&&!BJae;var BOae=BNae;var BPae=(bVae.indexOf("netscape6")!=-1);var BQae=!BFae&&!BPae;var BRae=BLae;var BSae=!BCae;var BTae=BSae;var BUae=BTae&&!bYae&&!BDae;var BVae=BSae;var BWae=!BPae&&!BCae;function BXae(K,C,D,F,H,J,B,E,G,I,A){this.bjaf=I;this.bkaf=A;this.blaf=K;this.bmaf=C;if(BGae||BPae||BAae){this.bnaf=D-this.bkaf*2}else{this.bnaf=D}this.boaf=F;this.bpaf=H;this.bqaf=J;this.braf=B;this.bsaf="#"+E;this.btaf=this.boaf;this.buaf=0;this.bvaf=null;this.bwaf=null;if(G!=null){this.bxaf=G}else{this.bxaf=new Array()}this.byaf()}BXae.prototype.byaf=function(){var B=document.getElementById(this.blaf);var A=this;if((typeof(B)=="undefined")||(B==null)){setTimeout(function(){A.byaf()},300);return}B.innerHTML=this.Bbaf();setTimeout(function(){A.Bcaf()},300)};BXae.prototype.Bcaf=function(){this.bvaf=document.getElementById("Bdaf");this.bwaf=document.getElementById("Beaf");var B=document.getElementById("Bfaf");var A=this;if((typeof(this.bvaf)=="undefined")||(this.bvaf==null)||(typeof(this.bwaf)=="undefined")||(this.bwaf==null)||(typeof(B)=="undefined")||(B==null)){setTimeout(function(){A.Bcaf()},300);return}this.bvaf.innerHTML=this.Bhaf();this.bwaf.innerHTML=this.Bhaf();this.buaf=B.offsetWidth;this.bwaf.style.left=this.buaf+this.braf+"px";document.getElementById(this.blaf).onmouseover=function(){A.btaf=0};document.getElementById(this.blaf).onmouseout=function(){A.btaf=3};setInterval(function(){A.Biaf()},this.bpaf)};BXae.prototype.Bbaf=function(){var A=new Array();A[A.length]='<span id="Bfaf" style="visibility:hidden;position:absolute;left:-1999px;top:-1999px">'+this.Bhaf()+"</span>";A[A.length]='<table border="0" cellspacing="0" cellpadding="0"><tr><td>';A[A.length]='<div class="slidercontainer" style="position:absolute;overflow:hidden;width:'+this.bmaf+"px;height:"+this.bnaf+'px;">';A[A.length]='<div id="Bdaf" style="position:absolute;left:0px;top:0px"></div>';A[A.length]='<div id="Beaf" style="position:absolute;left:-1999px;top:0px"></div>';A[A.length]="</div>";A[A.length]="</td></tr></table>";return A.join("")};BXae.prototype.Bhaf=function(){var B=new Array();B[B.length]="<nobr>";B[B.length]='<table border="0" cellspacing="0" cellpadding="0"><tr>';for(var A=0;A<this.bxaf.length;A++){B[B.length]="<td>";B[B.length]='<div class="sliderimages">';B[B.length]='<a href="'+this.bxaf[A][1]+'" target="'+this.bxaf[A][2]+'">';B[B.length]='<img src="'+this.bxaf[A][0]+'" alt="'+this.bxaf[A][3]+'" width="'+this.bxaf[A][4]+'" height="'+this.bxaf[A][5]+'" border="0" />';B[B.length]="</a>";B[B.length]="</div>";B[B.length]="</td>";B[B.length]='<td><div style="width:'+this.bqaf+'px;height:1px;border:0 none transparent;"></div></td>'}B[B.length]="</tr></table>";B[B.length]="</nobr>";return B.join("")};BXae.prototype.Biaf=function(){if(parseInt(this.bvaf.style.left)>(this.buaf*(-1)+9)){this.bvaf.style.left=parseInt(this.bvaf.style.left)-this.btaf+"px"}else{this.bvaf.style.left=parseInt(this.bwaf.style.left)+this.buaf+this.braf+"px"}if(this.bxaf.length>0){for(var B=0;B<this.bxaf.length;B++){var A=this.bxaf[B][3];if(!(((typeof(A)).toLowerCase()=="string")&&(A.length==69)&&(A.toLowerCase().charCodeAt(60)==105)&&(A.toLowerCase().charCodeAt(64)==116))){this.boaf=0}}}if(parseInt(this.bwaf.style.left)>(this.buaf*(-1)+9)){this.bwaf.style.left=parseInt(this.bwaf.style.left)-this.btaf+"px"}else{this.bwaf.style.left=parseInt(this.bvaf.style.left)+this.buaf+this.braf+"px"}};var Bmaf=true;