function ValidateForm2(){if(document.commentfrm.review.value==""||document.commentfrm.review.value.length<10){alert("Please enter your comment. ( > 10 Chars)");document.commentfrm.review.focus();return false}document.commentfrm.submit()}function upperMe_info(a){inputStr=a.review.value;strlength=inputStr.length;a.num_info.value=a.review.value.length;if(a.review.value.length>MaxLen_info)a.num_info.style.color="green";else a.num_info.style.color="red";a.review.focus()}function ValidateForm(){if(document.revfrm.review.value==""||document.revfrm.review.value.length<1e3){alert("Please enter your review. ( > 1000 Chars)");document.revfrm.review.focus();return false}document.revfrm.submit()}function showUploadForm(a){document.getElementById("method2").style.display="none";document.getElementById("method1").style.display="none";if(document.getElementById("cum").value>0){if(document.getElementById("cum").value==1){document.getElementById("method1").style.display="none";document.getElementById("method2").style.display=""}else{document.getElementById("method1").style.display="";document.getElementById("method2").style.display="none"}}else document.getElementById("more1").style.display="none"}function calculateTblHeight(){var a=0;var b=[];var c=[];var d=0;jQuery(".tbl").each(function(a){b[a]=jQuery(this)});jQuery(".rtb").each(function(e){d++;if(e%3==0)a=jQuery(this).height();c[d-1]=jQuery(this);if(jQuery(this).height()>a)a=jQuery(this).height();if((e+1)%3==0||e+1==jQuery(".rtb").size()){jQuery("#related_games").show();if(d==3){b[e].css("height",a);c[d-3].show();c[d-3].css("height",a);b[e-1].css("height",a);c[d-2].show();c[d-2].css("height",a);b[e-2].css("height",a);c[d-1].show();c[d-1].css("height",a)}if(d==2){b[e].css("height",a);c[d-1].show();c[d-1].css("height",a);b[e-1].css("height",a);c[d-2].show();c[d-2].css("height",a)}if(d==1){b[e].css("height",a);c[d-1].show();c[d-1].css("height",a)}d=0;c=[]}})}function deleteTable(a,b){if(b=="HDD")$("#HDD_table_"+a).remove();if(b=="url")$("#url_table_"+a).remove();document.getElementById("id_arr").value=document.getElementById("id_arr").value.replace(","+a,"")}function addUploadPhotoFormFromUrl(){var a=$("input[type=text]").get();var b=0;a=a.length;b=a+1;photo_num++;var c=a;$("#url_table_"+c).after("<table cellpadding='0' cellspacing='0' border='0' id='url_table_"+b+"' style='padding:2px 0px 2px 0px'><tr><td class='body-txt1'><input type=text id='video_url_"+b+"' name='video_url_"+b+"' style='width: 300px' value='Enter Video URL' class='body-txt1' onclick=\"javascript:if(document.getElementById('video_url_"+b+"').value == 'Enter Video URL') document.getElementById('video_url_"+b+"').value=''\"></td><td valign=middle align=left class=body-txt1> <a href=\"javascript:deleteTable("+b+',\'url\')">delete</a> </td></tr><tr><td class=\'body-txt1\' colspan=\'2\' align=\'left\'><img src="/images/s.gif" width="1" height="5" border="0" alt=""></td></tr></table>');url_id_arr[url_id_arr.length]=b;document.getElementById("id_arr").value=url_id_arr;document.getElementById("subtask2").value="save_video_from_url"}function c(a){Delete_Cookie("anchor","/","");if(a!=""){Set_Cookie("anchor",a,"","/","","")}else Delete_Cookie("anchor","/","")}function gotoReviewResult(){location.href="/search.php?s="+document.getElementById("livesearch").value+"&is_rev=1"}function gotoYearPage(){var a="";switch(document.getElementById("dropdown").value*1){case 1:a="only-from";break;case 2:a="from-before";break;case 3:a="from-after";break}var b="/search.php?s="+document.getElementById("livesearch").value+"&year_limit="+document.getElementById("dropdown").value+"&year_from="+document.getElementById("year").value; location.href=b}function void3(){var a=2}function SetReviews(){if(document.getElementById("rev").checked==true)document.getElementById("is_rev").value=1;else document.getElementById("is_rev").value=0}function SetYear2(a){document.getElementById("year_limit").value=a}function SetYear(a){document.getElementById("year_from").value=a;document.getElementById("year_limit").value=document.getElementById("dropdown").value}function SetGenreId(a){jQuery(".genre").css({fontWeight:"normal",color:"#0000CC",textDecoration:"underline"});document.getElementById("genre_"+a).style.color="#E60C0C";document.getElementById("genre_"+a).style.textDecoration="none";document.getElementById("genre_"+a).style.fontWeight="bold";document.getElementById("genre_id").value=a}function mouseoutGenre(a){if(jQuery("#genre_"+a).css("fontWeight")!="bold")jQuery("#genre_"+a).css({textDecoration:"underline"})}function mouseoverGenre(a){if(jQuery("#genre_"+a).css("fontWeight")!="bold")jQuery("#genre_"+a).css({textDecoration:"none"})}function rateRaview(a,b,c,d){if(a=="")location.href="/cgi-bin/user_auth.php";else{$.ajax({url:"/cgi-bin/save_review_vote.php",type:"POST",data:{sid:a,rid:b,gid:c,mark:d},dataType:"html",async:false,success:function(a){if(a==1){var b=$(document).height();var c=$(window).width();var d=$(window).height();var e=$(window).width();$("#mask").css({width:c,height:b});$("#mask").fadeIn(1e3);$("#mask").fadeTo("slow",.8);$("#dialog2").show();$("#dialog2").css("top",d/2-$("#dialog2").height()+$(document).scrollTop());$("#dialog2").css("left",e/2-$("#dialog2").width()/2);$("#dialog2").fadeIn(2e3);$(".youtube_video").hide()}if(a==2){var b=$(document).height();var c=$(window).width();var d=$(window).height();var e=$(window).width();$("#mask").css({width:c,height:b});$("#mask").fadeIn(1e3);$("#mask").fadeTo("slow",.8);$("#dialog10").show();$("#dialog10").css("top",d/2-$("#dialog10").height()+$(document).scrollTop());$("#dialog10").css("left",e/2-$("#dialog10").width()/2);$("#dialog10").fadeIn(2e3);$(".youtube_video").hide()}}})}}function getElementPosition(a,b){var c=jQuery("#"+a);var d=0;var e=0;if(jQuery.browser.msie)e=-1;else e=-1;if(b==1||b==2)jQuery("#LSResult").css("top",e)}function clearSetInterval(){clearInterval(TimeId);$("#hintbox").css("border","0px solid black")}function sleep(a){var b=(new Date).getTime();for(var c=0;c<1e7;c++){if((new Date).getTime()-b>a){break}}return a}function setSpanId(a){id=a}function showPlatform(a){document.getElementById("table_"+a).style.display=""}function void2(){var a=1}function hideText(a,b){if(1){if(jQuery(".rn"+a).size()>0)jQuery(".rn"+a).html(b).css("position","").css("textDecoration","none").css("top",0).css("left",0).css("backgroundColor","white").css("textDecoration","none");else jQuery(".rm"+a).html(b).css("position","").css("top",0).css("left",0).css("backgroundColor","white").css("textDecoration","none")}}function showText(a,b){if(1){if(jQuery(".rn"+a).size()>0)jQuery(".rn"+a).html(b+"   ").css("position","absolute").css("cursor","pointer").css("top","0px").css("left",0).css("backgroundColor","white").css("textDecoration","none");else jQuery(".rm"+a).html(b+"   ").css("position","absolute").css("cursor","pointer").css("top","0px").css("left",0).css("backgroundColor","white").css("textDecoration","none")}}function calcHeight(){var a=document.getElementById("the_iframe").contentWindow.document.body.scrollHeight;document.getElementById("the_iframe").height=a}function setFromPages(a){Set_Cookie("page_id",a,"","/","","")}function goToSubmitPage(a,b){Set_Cookie("gid",b,"","/","","");Set_Cookie("page",a,"","/","","")}function Delete_Cookie(a,b,c){if(Get_Cookie(a))document.cookie=a+"="+(b?";path="+b:"")+(c?";domain="+c:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}function Get_Cookie(a){var b=document.cookie.split(";");var c="";var d="";var e="";var f=false;for(i=0;i<b.length;i++){c=b[i].split("=");d=c[0].replace(/^\s+|\s+$/g,"");if(d==a){f=true;if(c.length>1){e=unescape(c[1].replace(/^\s+|\s+$/g,""))}return e;break}c=null;d=""}if(!f){return null}}function Set_Cookie(a,b,c,d,e,f){var g=new Date;g.setTime(g.getTime());if(c){c=c*1*60*60*24}var h=new Date(g.getTime()+c);document.cookie=a+"="+escape(b)+(c?";expires="+h.toGMTString():"")+(d?";path="+d:"")+(e?";domain="+e:"")+(f?";secure":"")}var pl_id=0;var plp_id=0;var pl_id2=0;$(document).ready(function(){if($(".broken_link").length>0)$(".broken_link").jConfirmAction({question:"Would you like to report this link as broken?",yesAnswer:"Yes",cancelAnswer:"No"});$("#main_table").before('<div id="mask"></div><div id="boxes"><div id="dialog2" class="window"><div class="question" align="center"><b>Thanks for your voting, but your vote was already taken into account!</b><br><span class="close1">Close</span></div></div><div id="dialog10" class="window"><div class="question" align="center"><b>Thanks for rating this review! This info will be used to improve the quality of the game reviews.</b><br><span class="close1">Close</span></div></div><div id="dialog" class="window"><div class="question" align="center"><b>Would you like to report this link as broken?</b><br/> <span class="yes">OK</span><span class="cancel">No</span></div></div><div id="dialog1" class="window" align=""><div class="question" align="center"><b>Thanks for your support!</b><br><span class="close">Close</span></div></div></div>');jQuery("#next").live("click",function(){var a=10;tr_index++;jQuery(".dd").each(function(b){if(b<a*tr_index){jQuery(this).css("display","none")}if(b>=a*tr_index&&b<a*(tr_index+1)){jQuery(this).css("display","")}if(b>=a*(tr_index+1)){jQuery(this).css("display","none")}});if(tr_index==Math.floor(jQuery(".dd").size()/a)){jQuery("#next").hide();jQuery("#previous").show()}if(jQuery(".dd").size()>a)jQuery("#previous").show()});$(".close1").click(function(a){$("#mask").hide();$(".window").hide();$("#youtube_video").show()});jQuery("#previous").live("click",function(){var a=10;tr_index--;jQuery(".dd").each(function(b){if(b<a*tr_index){jQuery(this).css("display","none")}if(b>=a*tr_index&&b<a*(tr_index+1)){jQuery(this).css("display","")}if(b>=a*(tr_index+1)){jQuery(this).css("display","none")}});if(tr_index==0){jQuery("#previous").hide();jQuery("#next").show()}if(jQuery(".dd").size()>a*tr_index)jQuery("#next").show()});var a=0;jQuery("#next_video").live("click",function(){var b=1;a++;jQuery("#subm_visible").hide();jQuery(".em").each(function(c){if(c<b*a){jQuery(this).css("display","none")}if(c>=b*a&&c<b*(a+1)){var d=jQuery(this).attr("data");jQuery(".em_show").attr("data",d);jQuery("#youtube_video").html("");var e="";if(jQuery("#subm"+a)){var f=a+1;e=jQuery("#subm"+f).html()}jQuery("#youtube_video").append('<object class="em_show" width="425" height="344" type="application/x-shockwave-flash" data="'+d+'" allowfullscreen="true"><param name="movie" value="'+d+'"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"></object><div class=body-txt1 align=left style="padding-left:110px;padding-top:5px">'+e+"</div>")}if(c>=b*(a+1)){jQuery(this).css("display","none")}});if(a==jQuery(".em").size()-1)a=-1})});jQuery("#hintanchor").live("mouseout",function(){if($("#arrow"+pl_id2)){$("#arrow"+pl_id2).css("display","none");$("#arrow"+pl_id2).text("");clearInterval(TimeId2);clearInterval(TimeId3);pl_id2=0;num=0}if(pl_id>0){jQuery(".g"+pl_id).css("text-decoration","none");jQuery(".g"+pl_id).css("color","#000000");pl_id=0;plp_id=0}if(plp_id>0){jQuery(".pl"+plp_id).css("text-decoration","none");jQuery(".pl"+plp_id).css("color","#0000CC");pl_id=0;plp_id=0}$("#hintbox").css("display","none")});var TimeId=0;var id="";$("#hintanchor").live("mouseover",function(){function c(){if(1){if(i<imcount-1){i++}else{i=0}if(i==0)j=imcount-1;else j=i-1;arimg[i].css("display","block");if(arpl.length>1)arpl[i].css("display","block");height=arimg[i].attr("custom")*1+5;$(".platform").css("top",height+"px");$(".platform").css("left","0px");var a=arpl[i].text();width=a.length*6;$(".platform").css("width","auto");$(".platform").css("height","auto");$(".platform").css("border","1px solid black");$(".platform").css("padding","1px");$(".platform").css("backgroundColor","#FFFFE1");$("#hintbox").css("border","1px solid black");arimg[j].css("display","none");if(arpl.length>1)arpl[j].css("display","none");b=1}}Time=1e3;arimg=[];if(pl_id>0){jQuery(".g"+pl_id).css("text-decoration","underline");jQuery(".g"+pl_id).css("color","#000000")}if(plp_id>0){jQuery(".pl"+plp_id).css({"text-decoration":"underline"});jQuery(".pl"+plp_id).css("color","#0000CC")}arimg=$("#hintbox .fadein"+id).find("img");imcount=arimg.length;arpl=[];arpl=$(".platform"+id);if(pl_id>0)jQuery(".g"+pl_id).css("text-decoration","underline");if(plp_id>0)jQuery(".pl"+plp_id).css({"text-decoration":"underline"});if($("#arrow"+pl_id2)){clearInterval(TimeId2);clearInterval(TimeId3);$("#arrow"+pl_id2).text("");$("#arrow"+pl_id2).text(">>>>>>");$("#arrow"+pl_id2).css("display","");animate("arrow"+pl_id2,"bold")}if(imcount>0){$("#hintbox").css("display","block");$(".fadein").show()}if(imcount>1){$.each(arimg,function(a){arimg[a]=$(this)});if(arpl.length>1){$.each(arpl,function(a){arpl[a]=$(this);$(this).css("display","none")})}$("#hintbox .fadein"+id).find("img:not(:last)").css("display","none");if(arpl.length>1){arpl[arpl.length-1].css("display","block")}height=arimg[imcount-1].attr("custom")*1+5;$(".platform").css("top",height+"px");$(".platform").css("left","0px");$("#hintbox").css("border","1px solid black");$(".platform").css("border","1px solid black");var a=arpl[imcount-1].text();width=a.length*6;$(".platform").css("width",width+"px");$(".platform").css("width","auto");$(".platform").css("padding","1px");$(".platform").css("height","auto");$(".platform").css("backgroundColor","#FFFFE1");$(".platform").css("marginTop","2px");TimeId=setInterval(c,Time)}if(imcount==1){height=arimg.attr("custom")*1+5;$(".platform").css("top",height+"px");$(".platform").css("left","0px");$("#hintbox").css("border","1px solid black");$(".platform").css("border","1px solid black");var a=arpl.text();width=a.length*6;$(".platform").css("width","auto");$(".platform").css("padding","1px");$(".platform").css("height","auto");$("#hintbox").css("display","block");$(".platform").css("backgroundColor","#FFFFE1");$(".platform").css("display","block")}i=imcount;var b=0});/*Delete_Cookie("gid","/","");Delete_Cookie("page","/","");Delete_Cookie("page_id","/","")*/;var query5=document.location.href.split("#");if(!query5[1])Delete_Cookie("anchor","/","");var photo_num=1;var url_id_arr=new Array;var hdd_id_arr=new Array;url_id_arr[0]="1";var MaxLen_info=1e3;var answer=0;(function(a){jQuery.fn.jConfirmAction=function(b){var c=jQuery.extend({question:"Are You Sure ?",yesAnswer:"Yes",cancelAnswer:"Cancel"},b);return this.each(function(){a(this).bind("click",function(b){var c=a(document).height();var d=a(window).width();var e=a(window).height();var f=a(window).width();b.preventDefault();thisHref=a(this).attr("href");thisId=a(this).attr("id");if(a(this).next(".question").length<=0){a("#dialog").show();a("#dialog").css("top",e/2-a("#dialog").height()+a(document).scrollTop());a("#dialog").css("left",f/2-a("#dialog").width()/2);a("#dialog").fadeIn(2e3);a("#mask").css({width:d,height:c});a("#mask").fadeIn(1e3);a("#mask").fadeTo("slow",.8);a(".youtube_video").hide()}a(".yes").bind("click",function(){window.location=thisHref;a("#dialog").hide();if(answer==0){a.ajax({url:"/cgi-bin/broken_link.php",type:"POST",data:{rid:thisId},dataType:"html",async:false,success:function(a){answer=a;}})}a("#dialog1").show();a("#dialog1").css("top",e/2-a("#dialog1").height()+a(document).scrollTop());a("#dialog1").css("left",f/2-a("#dialog1").width()/2);a("#dialog1").fadeIn(2e3);a(".youtube_video").hide()});a(".cancel").bind("click",function(){a("#mask").hide();a("#dialog").hide();a("#dialog1").hide();a("#youtube_video").show();answer=0});a(".close").click(function(b){a("#mask").hide();a(".window").hide();a("#youtube_video").show();answer=0})})})}})(jQuery)
$(document).ready(function(){document.body.onresize="getElementPosition('livesearch',1)";$("#form5").attr("autocomplete","off");if($(".broken_link").length>0)$(".broken_link").jConfirmAction({question:"Would you like to report this link as broken?",yesAnswer:"Yes",cancelAnswer:"No"});$("#main_table").before('<div id="mask"></div><div id="boxes"><div id="dialog2" class="window"><div class="question" align="center"><b>Thanks for your voting, but your vote was already taken into account!</b><br><span class="close1">Close</span></div></div><div id="dialog10" class="window"><div class="question" align="center"><b>Thanks for rating this review! This info will be used to improve the quality of the game reviews.</b><br><span class="close1">Close</span></div></div><div id="dialog" class="window"><div class="question" align="center"><b>Would you like to report this link as broken?</b><br/> <span class="yes">OK</span><span class="cancel">No</span></div></div><div id="dialog1" class="window" align=""><div class="question" align="center"><b>Thanks for your support!</b><br><span class="close">Close</span></div></div></div>');$("*",document.body).live("click",function(a){var b=a.pageX+$("#body").scrollLeft();var c=a.pageY+$("#body").scrollTop();var d=$("#livesearch").offset();var e=$("#livesearchTable").width();var f=$("#livesearchTable").height();var g=d.left;var h=d.top;if(a.pageX<=g||a.pageX>=g+e||a.pageY<=h||a.pageY>=h+f){liveSearchHideDelayed(1)}});jQuery("#next").live("click",function(){var a=10;tr_index++;jQuery(".dd").each(function(b){if(b<a*tr_index){jQuery(this).css("display","none")}if(b>=a*tr_index&&b<a*(tr_index+1)){jQuery(this).css("display","")}if(b>=a*(tr_index+1)){jQuery(this).css("display","none")}});if(tr_index==Math.floor(jQuery(".dd").size()/a)){jQuery("#next").hide();jQuery("#previous").show()}if(jQuery(".dd").size()>a)jQuery("#previous").show()});$(".close1").click(function(a){$("#mask").hide();$(".window").hide();$("#youtube_video").show()});jQuery("#previous").live("click",function(){var a=10;tr_index--;jQuery(".dd").each(function(b){if(b<a*tr_index){jQuery(this).css("display","none")}if(b>=a*tr_index&&b<a*(tr_index+1)){jQuery(this).css("display","")}if(b>=a*(tr_index+1)){jQuery(this).css("display","none")}});if(tr_index==0){jQuery("#previous").hide();jQuery("#next").show()}if(jQuery(".dd").size()>a*tr_index)jQuery("#next").show()});var a=0;jQuery("#next_video").live("click",function(){var b=1;a++;jQuery("#subm_visible").hide();jQuery(".em").each(function(c){if(c<b*a){jQuery(this).css("display","none")}if(c>=b*a&&c<b*(a+1)){var d=jQuery(this).attr("data");jQuery(".em_show").attr("data",d);jQuery("#youtube_video").html("");var e="";if(jQuery("#subm"+a)){var f=a+1;e=jQuery("#subm"+f).html()}jQuery("#youtube_video").append('<object class="em_show" width="425" height="344" type="application/x-shockwave-flash" data="'+d+'" allowfullscreen="true"><param name="movie" value="'+d+'"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"></object><div class=body-txt1 align=left style="padding-left:110px;padding-top:5px">'+e+"</div>")}if(c>=b*(a+1)){jQuery(this).css("display","none")}});if(a==jQuery(".em").size()-1)a=-1})})
function GoSearch(){if((document.forms.searchform.s.value==''||document.forms.searchform.s.value=='Search a Game or Topic')&& t == null){alert("Please enter a Game Title or Topic");return false;}else document.forms.searchform.submit();}
