now=new Date();random=now.getTime();function cleanUI(b){if(b!=null){if(b.indexOf("ui=")!=0){b="ui="+b}}else{b=""}return(b)}function popWindowSizeReg(g,f,e,b){if(checkRegistration()){windowsize="width="+g+",height="+f}else{windowsize="width="+e+",height="+b}return windowsize}function popSizedWinProtected(h,g,l,j,b,f){b=b+35;var e=window.location.hostname;if(f==null){f=1}if((e.indexOf("gamespy")==-1)&&(f!=0)&&(!checkSubscription())){window.location.href="http://my.ign.com/my/sb?action=userauth&customMsg=userauthSubMedia4&network=1&category=subscription&RegPath=2&destination="+urlEncode(window.location.href)}else{var m=window.open(h,g,"width="+j+",height="+b+",resizable=no,scrollbars=no")}}function popSizedWinProtected2(h,g,l,j,b,f){var e=window.location.hostname;if(f==null){f=1}if((e.indexOf("gamespy")==-1)&&(f!=0)&&(!checkSubscription())){window.location.href="http://my.ign.com/my/sb?action=userauth&customMsg=userauthSubMedia4&network=1&category=subscription&RegPath=2&destination="+urlEncode(window.location.href)}else{var m=window.open(h,g,"width="+j+",height="+b+",resizable=no,scrollbars=no")}}function clickCheck(){if(!checkSubscription()){alert("You must be logged in as an IGN Insider to access this content.")}}function checkParam(g,f){p=new String(document.location);p=p.substring(p.indexOf("?")+1,p.length);var e=new String(g);if(p.indexOf(e)>-1){var b=new String(f);pArray=p.split("&");k=pArray.length;for(i=0;i<k;i++){keyVal=pArray[i].split("=");if(keyVal.length!=2){continue}if(keyVal[0]==e&&keyVal[1]==b){return true}}}return false}function getParm(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b="[\\?&]"+e+"=([^&#]*)";var g=new RegExp(b);var f=g.exec(window.location.href);if(f==null){return""}else{return f[1]}}function stf(e){var b=top.document.location;if(e){b=e}var f="http://www.ign.com/stf/index.html?pst=1&url="+b;var g=window.open(f,"","status,height=500,width=450")}function stf_spy(e){var b=top.document.location;if(e){b=e}var f="http://www.gamespy.com/stf/index.html?pst=1&url="+b;var g=window.open(f,"","status,height=500,width=450")}function goLogin(){windowgoto="http://my.ign.com/my/sb?paction=relogin&params="+urlEncode("#action#protect#location#"+urlEncode(window.location));document.location=windowgoto;return false}function urlEncode(b){b=new String(b);outStr=" ";for(i=0;i<b.length;i++){aChar=b.substring(i,i+1);switch(aChar){case"%":outStr+="%25";break;case",":outStr+="%2C";break;case"/":outStr+="%2F";break;case":":outStr+="%3A";break;case"~":outStr+="%7E";break;case"!":outStr+="%21";break;case'"':outStr+="%22";break;case"#":outStr+="%23";break;case"$":outStr+="%24";break;case"'":outStr+="%27";break;case"`":outStr+="%60";break;case"^":outStr+="%5E";break;case"&":outStr+="%26";break;case"(":outStr+="%28";break;case")":outStr+="%29";break;case"+":outStr+="%2B";break;case"{":outStr+="%7B";break;case"|":outStr+="%7C";break;case"}":outStr+="%7D";break;case";":outStr+="%3B";break;case"<":outStr+="%3C";break;case"=":outStr+="%3D";break;case">":outStr+="%3E";break;case"?":outStr+="%3F";break;case"[":outStr+="%5B";break;case"\\":outStr+="%5C";break;case"]":outStr+="%5D";break;case" ":outStr+="+";break;default:outStr+=aChar}}return outStr.substring(1,outStr.length)}function js_replace(e,j,g){var l=e.length;var h=j.length;if((l==0)||(h==0)){return e}var b=e.indexOf(j);if((!b)&&(j!=e.substring(0,h))){return e}if(b==-1){return e}var f=e.substring(0,b)+g;if(b+h<l){f+=js_replace(e.substring(b+h,l),j,g)}return f}function trackclick(f,l){var b=new Date();var g=b.getTime();var h="&r="+escape(document.location);h=h.split("/").join("%2F");h=h.split(".").join("%2E");h=h.split("%").join("$");var m=document.location.toString().substring(7);m=m.substring(0,m.indexOf("/"));f=f+"-"+m;var j="&p=http://www.ignlinktrack.com/"+f;j=j.split("/").join("%2F");j=j.split(".").join("%2E");j=j.split("%").join("$");var n="&pagetype=";ptstring=ataxscript.substr(ataxscript.indexOf("pagetype=")+9);n=n+ptstring.substr(0,ptstring.indexOf("&"));var e="";if(l!=null){e="&aggregate="+l}i=new Image();i.src="http://atax.ign.com/network=ign&size=1x1"+j+h+n+e+"&name=ATAtracker?"+g+'" height="1" width="1" style="position: absolute; visibility: hidden'}function trackclickSwf(e,b){trackclick(e);document.location=b}function gspy_trackclick(h){var e=new Date();var g=e.getTime();var f="&r="+escape(document.location);f=f.split("/").join("%2F");f=f.split(".").join("%2E");f=f.split("%").join("$");var b=document.location.toString().substring(7);b=b.substring(0,b.indexOf("/"));h=h+"-"+b;var j="&p=http://www.ignlinktrack.com/"+h;j=j.split("/").join("%2F");j=j.split(".").join("%2E");j=j.split("%").join("$");i=new Image();i.src="http://atax.gamespy.com/network=gamespy&size=1x1"+j+f+"&name=ATAtracker?"+g+'" height="1" width="1" style="position: absolute; visibility: hidden'}function s_trim(b){if(b.length<1){return""}b=StringTrim(b,"right");b=StringTrim(b,"left");if(b==""){return""}else{return b}}function StringTrim(g,j){var l=g.length;if(l<0){return""}var f=j;var h=String.fromCharCode(32);var e="";if(f=="right"){var b=l-1;while(b>-1){if(g.charAt(b)==h){}else{e=g.substring(0,b+1);break}b=b-1}}else{var b=0;while(b<l){if(g.charAt(b)==h){}else{e=g.substring(b,l);break}b=b+1}}return e}function checkUK(){p=new String(document.location);if((p.substring(0,10)=="http://uk.")||(checkParam("isUKtest","true"))){return true}return false}function checkLocale(b){urlLocale=getLocale();paramLocale=b;if(urlLocale==paramLocale){return true}if(checkParam("setLocale",paramLocale)){return true}return false}function getLocale(){p=new String(document.location);regx=/\/\/(\w.*?)\./;result=p.match(regx);if(result!=null){return result[1]}}function multiSiteSearchSubmit(e){var f=document.location.href;qry=urlEncode(e.query.value);if(qry==""){alert("Please type in your search query.");return}redir="";if(e.domain[0].checked){redir="http://search.ign.com/web?query="+qry}else{if(e.domain[1].checked){redir="http://search.ign.com/products?query="+qry}else{if(f.match(/boards\.ign\.com/)){redir="http://boards.ign.com/ASP/search_boards.asp?search_phrase="+qry}else{var b=e.objtName.value;searchTerm="http://search.ign.com/products?genNav=true&query=";additionalSearchTerm="&objtName="+b;if(b=="game"){additionalSearchTerm="&platformSearch="+e.platformSearch.value}if(b=="article"){searchTerm="http://search.ign.com/articles?genNav=true&typeName="+e.typeName.value+"&query="}redir=searchTerm+qry+additionalSearchTerm}}}gotoval=redir;if(gotoval!=""){document.location=gotoval}return}function showSummary(f,e){var g=document.getElementById(f);var h=document.getElementById(e);if(g.style.display!="none"){g.style.display="none";h.style.display=""}else{if(h.style.display!="none"){g.style.display="";h.style.display="none"}}}function onBodyLoad(){}function letterStyleOn(b){var e=document.getElementById(b);e.style.backgroundColor="#adadad";e.style.color="#fff"}function JSONscriptRequest(b){this.fullUrl=b;this.noCacheIE="&noCacheIE="+(new Date()).getTime();this.headLoc=document.getElementsByTagName("head").item(0);this.scriptId="YJscriptId"+JSONscriptRequest.scriptCounter++}JSONscriptRequest.scriptCounter=1;JSONscriptRequest.prototype.buildScriptTag=function(){this.scriptObj=document.createElement("script");this.scriptObj.setAttribute("type","text/javascript");this.scriptObj.setAttribute("src",this.fullUrl+this.noCacheIE);this.scriptObj.setAttribute("id",this.scriptId)};JSONscriptRequest.prototype.removeScriptTag=function(){this.headLoc.removeChild(this.scriptObj)};JSONscriptRequest.prototype.addScriptTag=function(){this.headLoc.appendChild(this.scriptObj)};function getSubmittedData(b){aObj=new JSONscriptRequest(b);aObj.buildScriptTag();aObj.addScriptTag()}var cookieBeacon="";var checkedBeacon=false;var cookieIgnlogin="";var checkedIgnlogin=false;var cookieFrogger="";var checkedFrogger=false;var cookieAta="";var checkedAta=false;var cookieFavTab="";var checkedFavTab=false;function getCookieData(e){var h=e.length;var f=document.cookie;if(f){var g=document.cookie.length;if(g>0){var b=f.indexOf(e+"=");if(b>-1){var j=f.indexOf(";",b);j=(j==-1?g:j);return(unescape(f.substring(b+h+1,j)))}}}return("")}function getBeacon(){if(cookieBeacon.length==0&&!checkedBeacon){cookieBeacon=getCookieData("Beacon");checkedBeacon=true}return cookieBeacon}function getIgnlogin(){if(cookieIgnlogin.length==0&&!checkedIgnlogin){cookieIgnlogin=getCookieData("ignlogin");checkedIgnlogin=true}return cookieIgnlogin}function getFrogger(){if(cookieFrogger.length==0&&!checkedFrogger){cookieFrogger=getCookieData("Frogger");checkedFrogger=true}return cookieFrogger}function getAta(){if(cookieAta.length==0&&!checkedAta){cookieAta=getCookieData("ATA");checkedAta=true}return cookieAta}function getFavTab(){if(cookieFavTab.length==0&&!checkedFavTab){cookieFavTab=getCookieData("FavTab");checkedFavTab=true}return cookieFavTab}function getBeaconValue(b){var f=getBeacon();if(f!=null&&f.length>0&&f.indexOf(".")>-1){var e=f.split(".");if(e!=null&&e.length>b+1){if(e[b]!=null){return(e[b])}}}return(null)}function hasBeaconValue(e,b){return cookieHasValue(getBeacon(),".",e,b)}function hasIgnloginValue(e,b){var f=getIgnlogin();return cookieHasValue(getIgnlogin(),"\\",e,b)}function cookieHasValue(g,h,e,b){if(g!=null&&g.length>0&&g.indexOf(h)>-1){var f=g.split(h);if(f!=null&&f.length>e){if(f[e]!=null&&f[e].indexOf(b)>-1){return(true)}}}return(false)}function getUserName(){var f=getUsernameFromIgnLogin();if(f!=null&&f.length!=0){return f}var e=getBeacon();if(e==null||e.length==0){return null}var b=e.split(".");f=b[2];f=f.replace("#",".");return(f)}function getUsernameFromIgnLogin(){var e=getIgnlogin();var b=e.split("\\");return b[3]}function checkRegistration(){checkSubscription();return(getIgnlogin()!=null&&getIgnlogin().length>0)||hasBeaconValue(7,"0")}function checkSubscription(){return hasIgnloginValue(4,"1")||hasBeaconValue(6,"subscription")}function checkFounder(){return true}function showIntrusiveAds(){return(hasBeaconValue(8,"1")||!(getCookieData("adtoggle").length!=0))}function getFroggerPiece(e){var g=getFrogger();var h=g.length;var b=0;var j=0;if(e=="collection"){var f=g.indexOf("*cc");b=g.indexOf("*c",f+3);j=g.indexOf("*",b+2)}else{if(e=="collectioncount"){b=g.indexOf("*cc")+6;j=g.indexOf("*",b)}else{if(e=="wishlist"){b=g.indexOf("*wr");j=g.indexOf("*wa",b+2)}else{if(e=="reviewed"){b=g.indexOf("*r");j=h}}}}return(unescape(g.substring(b,j)))}function checkWatch(e){if(isFroggerB==true){var b=getFroggerEntry(e);if(b!=null){return b.getIsInEmailAlerts()}else{return false}}else{getFrogger();return((cookieFrogger.indexOf("="+e+"w")>-1)||(cookieFrogger.indexOf("_"+e+"w")>-1)||(cookieFrogger.indexOf("D"+e+"w")>-1))}}function checkPlaying(b){if(isFroggerB==true){var e=getFroggerEntry(b);if(e!=null){return e.getIsInNowPlaying()}else{return false}}else{getFrogger();return((cookieFrogger.indexOf("_"+b+"wn")>-1)||(cookieFrogger.indexOf("D"+b+"wn")>-1)||(cookieFrogger.indexOf("_"+b+"n")>-1)||(cookieFrogger.indexOf("D"+b+"n")>-1))}}function checkFavorites(e){if(isFroggerB==true){var b=getFroggerEntry(e);if(b!=null){return b.getIsInFavorites()}else{return false}}else{getFrogger();return((cookieFrogger.indexOf("_"+e+"wnf")>-1)||(cookieFrogger.indexOf("D"+e+"wnf")>-1)||(cookieFrogger.indexOf("_"+e+"nf")>-1)||(cookieFrogger.indexOf("D"+e+"nf")>-1)||(cookieFrogger.indexOf("_"+e+"wf")>-1)||(cookieFrogger.indexOf("D"+e+"wf")>-1)||(cookieFrogger.indexOf("_"+e+"f")>-1)||(cookieFrogger.indexOf("D"+e+"f")>-1))}}function checkWishlist(e){if(isFroggerB==true){var f=getFroggerEntry(e);if(f!=null){return f.getIsInWishlist()}else{return false}}else{var b=getFroggerPiece("wishlist");if(b.indexOf(e)>-1){return(true)}else{return(false)}}}function checkCollection(e){if(isFroggerB==true){var b=getFroggerEntry(e);if(b!=null){return b.getIsInCollection()}else{return false}}else{var f=getFroggerPiece("collection");if(f.indexOf(e)>-1){return(true)}return(false)}}function checkReviewed(b){if(isFroggerB==true){var e=getFroggerEntry(b);if(e!=null){return e.getHasReviewed()}else{return false}}else{var f=getFroggerPiece("reviewed");if(f.indexOf(b)>-1){return(true)}return(false)}}function toggleListAction(b,h,f,g){cbox=b;var e=g;elementID="iconClubList"+e+"_"+h;if(checkRegistration()){cluburl="http://club.ign.com/b/edit/editprof/AddRemoveProfile?type=xml&obj="+h+"&objt="+f+"&cList="+e;if(b.checked){b.checked=true;cluburl+="&act=put"}else{b.checked=false;cluburl+="&act=rem"}if(e!=9){iclub=new Image();iclub.src=cluburl;cbox.setAttribute("disabled","disabled");setTimeout('cbox.removeAttribute("disabled")',2000)}else{cluburl="http://club.ign.com/b/edit/editprof/AddRemoveProfile?type=js&obj="+h+"&objt="+f+"&cList=0&act=rem";iclub=new Image();iclub.src=cluburl;cluburl="http://club.ign.com/b/edit/editprof/AddRemoveProfile?type=js&obj="+h+"&objt="+f+"&cList=1&act=rem";iclub2=new Image();iclub2.src=cluburl}if(document.getElementById(elementID)!=null&&document.getElementById(elementID).src!=null){if(f==1&&(g==1000||g==10)){document.getElementById(elementID).src="http://media.ignimgs.com/media/ign/images/loader.gif";setTimeout('document.getElementById(elementID).src = "http://media.ignimgs.com/media/ign/images/icon_club_list'+e+"_"+f+'.gif"',1000)}else{document.getElementById(elementID).src="http://media.ignimgs.com/media/ign/images/loader.gif";setTimeout('document.getElementById(elementID).src = "http://media.ignimgs.com/media/ign/images/icon_club_list'+e+'.gif"',1000)}}cbox.setAttribute("disabled","disabled");setTimeout('cbox.removeAttribute("disabled")',10)}else{goLogin()}return false}function trackClickToggleList(b,e,f,g){trackclick(b.id);toggleListAction(b,e,f,g)}function toggleWatch(b,e){type=1;list=1100;toggleListAction(b,e,type,list);return false}function togglePlaying(b,e){type=1;list=1000;toggleListAction(b,e,type,list);return false}function togglePlayed(b,e){type=1;list=10;toggleListAction(b,e,type,list);return false}function toggleWishlist(b,e){type=1;list=0;toggleListAction(b,e,type,list);return false}function toggleCollection(b,e){type=1;list=1;toggleListAction(b,e,type,list);return false}function toggleFavorites(b,e){type=1;list=2;toggleListAction(b,e,type,list);return false}function addNotePopup(e){if(checkWishlist(e)){windowgoto="http://club.ign.com/b/do/gamerprof/edit/editprof/EditProfile?objt=1&cList=0&objs="+e}else{if(checkCollection(e)){windowgoto="http://club.ign.com/b/do/gamerprof/edit/editprof/EditProfile?objt=1&cList=1&objs="+e}}var b=window.open(windowgoto,"","toolbar=yes,resizable=yes,scrollbars=yes,location=yes");return false}function addWatchPopup(e){windowgoto="http://my.ign.com/my/sb?action=addToUserGameList&ownedGames=w&gameId=";var b=window.open(windowgoto+e,"","addWatch,"+popWindowSizeReg(362,500,770,900)+",resizable=yes,scrollbars=yes,location=yes")}function addWishlistPopup(e){windowgoto="http://my.ign.com/my/sb?action=addToUserGameList&ownedGames=n&affPop=y&gameId=";var b=window.open(windowgoto+e,"","addWishlist,"+popWindowSizeReg(362,500,770,900)+",resizable=yes,scrollbars=yes,location=yes")}function addCollectionPopup(e){windowgoto="http://my.ign.com/my/sb?action=addToUserGameList&ownedGames=y&affPop=y&move=y&gameId=";var b=window.open(windowgoto+e,"","addCollection,"+popWindowSizeReg(362,500,770,900)+",resizable=yes,scrollbars=yes,location=yes")}function submitScorePopup(f){var e="http://my.ign.com/my/sb?action=rateSingleGame&game=";var b=window.open(e+f,"submitScore","status,"+popWindowSizeReg(650,350,600,700)+",resizable=yes,scrollbars=yes")}function getCollectionTotal(){var b=getFroggerPiece("collectioncount");if(b==""){b="0"}return b}if((getCookieData("ignlogin").length!=0)||(getCookieData("Beacon").length!=0)){document.write('<img src="http://login.ign.com/cookieupdate.aspx" border=0 style="position: absolute; visibility: hidden;">')}var dbits;var canary=244837814094590;var j_lm=((canary&16777215)==15715070);function BigInteger(f,e,g){if(f!=null){if("number"==typeof f){this.fromNumber(f,e,g)}else{if(e==null&&"string"!=typeof f){this.fromString(f,256)}else{this.fromString(f,e)}}}}function nbi(){return new BigInteger(null)}function am1(h,b,e,g,m,l){while(--l>=0){var f=b*this[h++]+e[g]+m;m=Math.floor(f/67108864);e[g++]=f&67108863}return m}function am2(o,u,y,g,s,b){var r=u&32767,t=u>>15;while(--b>=0){var f=this[o]&32767;var q=this[o++]>>15;var e=t*f+q*r;f=r*f+((e&32767)<<15)+y[g]+(s&1073741823);s=(f>>>30)+(e>>>15)+t*q+(s>>>30);y[g++]=f&1073741823}return s}function am3(o,u,y,g,s,b){var r=u&16383,t=u>>14;while(--b>=0){var f=this[o]&16383;var q=this[o++]>>14;var e=t*f+q*r;f=r*f+((e&16383)<<14)+y[g]+s;s=(f>>28)+(e>>14)+t*q;y[g++]=f&268435455}return s}if(j_lm&&(navigator.appName=="Microsoft Internet Explorer")){BigInteger.prototype.am=am2;dbits=30}else{if(j_lm&&(navigator.appName!="Netscape")){BigInteger.prototype.am=am1;dbits=26}else{BigInteger.prototype.am=am3;dbits=28}}BigInteger.prototype.DB=dbits;BigInteger.prototype.DM=((1<<dbits)-1);BigInteger.prototype.DV=(1<<dbits);var BI_FP=52;BigInteger.prototype.FV=Math.pow(2,BI_FP);BigInteger.prototype.F1=BI_FP-dbits;BigInteger.prototype.F2=2*dbits-BI_FP;var BI_RM="0123456789abcdefghijklmnopqrstuvwxyz";var BI_RC=new Array();var rr,vv;rr="0".charCodeAt(0);for(vv=0;vv<=9;++vv){BI_RC[rr++]=vv}rr="a".charCodeAt(0);for(vv=10;vv<36;++vv){BI_RC[rr++]=vv}rr="A".charCodeAt(0);for(vv=10;vv<36;++vv){BI_RC[rr++]=vv}function int2char(b){return BI_RM.charAt(b)}function intAt(e,b){var f=BI_RC[e.charCodeAt(b)];return(f==null)?-1:f}function bnpCopyTo(e){for(var b=this.t-1;b>=0;--b){e[b]=this[b]}e.t=this.t;e.s=this.s}function bnpFromInt(b){this.t=1;this.s=(b<0)?-1:0;if(b>0){this[0]=b}else{if(b<-1){this[0]=b+DV}else{this.t=0}}}function nbv(b){var e=nbi();e.fromInt(b);return e}function bnpFromString(m,f){var h;if(f==16){h=4}else{if(f==8){h=3}else{if(f==256){h=8}else{if(f==2){h=1}else{if(f==32){h=5}else{if(f==4){h=2}else{this.fromRadix(m,f);return}}}}}}this.t=0;this.s=0;var l=m.length,g=false,j=0;while(--l>=0){var e=(h==8)?m[l]&255:intAt(m,l);if(e<0){if(m.charAt(l)=="-"){g=true}continue}g=false;if(j==0){this[this.t++]=e}else{if(j+h>this.DB){this[this.t-1]|=(e&((1<<(this.DB-j))-1))<<j;this[this.t++]=(e>>(this.DB-j))}else{this[this.t-1]|=e<<j}}j+=h;if(j>=this.DB){j-=this.DB}}if(h==8&&(m[0]&128)!=0){this.s=-1;if(j>0){this[this.t-1]|=((1<<(this.DB-j))-1)<<j}}this.clamp();if(g){BigInteger.ZERO.subTo(this,this)}}function bnpClamp(){var b=this.s&this.DM;while(this.t>0&&this[this.t-1]==b){--this.t}}function bnToString(f){if(this.s<0){return"-"+this.negate().toString(f)}var g;if(f==16){g=4}else{if(f==8){g=3}else{if(f==2){g=1}else{if(f==32){g=5}else{if(f==4){g=2}else{return this.toRadix(f)}}}}}var j=(1<<g)-1,o,e=false,l="",h=this.t;var n=this.DB-(h*this.DB)%g;if(h-->0){if(n<this.DB&&(o=this[h]>>n)>0){e=true;l=int2char(o)}while(h>=0){if(n<g){o=(this[h]&((1<<n)-1))<<(g-n);o|=this[--h]>>(n+=this.DB-g)}else{o=(this[h]>>(n-=g))&j;if(n<=0){n+=this.DB;--h}}if(o>0){e=true}if(e){l+=int2char(o)}}}return e?l:"0"}function bnNegate(){var b=nbi();BigInteger.ZERO.subTo(this,b);return b}function bnAbs(){return(this.s<0)?this.negate():this}function bnCompareTo(b){var f=this.s-b.s;if(f!=0){return f}var e=this.t;f=e-b.t;if(f!=0){return f}while(--e>=0){if((f=this[e]-b[e])!=0){return f}}return 0}function nbits(b){var f=1,e;if((e=b>>>16)!=0){b=e;f+=16}if((e=b>>8)!=0){b=e;f+=8}if((e=b>>4)!=0){b=e;f+=4}if((e=b>>2)!=0){b=e;f+=2}if((e=b>>1)!=0){b=e;f+=1}return f}function bnBitLength(){if(this.t<=0){return 0}return this.DB*(this.t-1)+nbits(this[this.t-1]^(this.s&this.DM))}function bnpDLShiftTo(f,e){var b;for(b=this.t-1;b>=0;--b){e[b+f]=this[b]}for(b=f-1;b>=0;--b){e[b]=0}e.t=this.t+f;e.s=this.s}function bnpDRShiftTo(f,e){for(var b=f;b<this.t;++b){e[b-f]=this[b]}e.t=Math.max(this.t-f,0);e.s=this.s}function bnpLShiftTo(m,g){var e=m%this.DB;var b=this.DB-e;var j=(1<<b)-1;var h=Math.floor(m/this.DB),l=(this.s<<e)&this.DM,f;for(f=this.t-1;f>=0;--f){g[f+h+1]=(this[f]>>b)|l;l=(this[f]&j)<<e}for(f=h-1;f>=0;--f){g[f]=0}g[h]=l;g.t=this.t+h+1;g.s=this.s;g.clamp()}function bnpRShiftTo(l,g){g.s=this.s;var h=Math.floor(l/this.DB);if(h>=this.t){g.t=0;return}var e=l%this.DB;var b=this.DB-e;var j=(1<<e)-1;g[0]=this[h]>>e;for(var f=h+1;f<this.t;++f){g[f-h-1]|=(this[f]&j)<<b;g[f-h]=this[f]>>e}if(e>0){g[this.t-h-1]|=(this.s&j)<<b}g.t=this.t-h;g.clamp()}function bnpSubTo(e,g){var f=0,h=0,b=Math.min(e.t,this.t);while(f<b){h+=this[f]-e[f];g[f++]=h&this.DM;h>>=this.DB}if(e.t<this.t){h-=e.s;while(f<this.t){h+=this[f];g[f++]=h&this.DM;h>>=this.DB}h+=this.s}else{h+=this.s;while(f<e.t){h-=e[f];g[f++]=h&this.DM;h>>=this.DB}h-=e.s}g.s=(h<0)?-1:0;if(h<-1){g[f++]=this.DV+h}else{if(h>0){g[f++]=h}}g.t=f;g.clamp()}function bnpMultiplyTo(e,g){var b=this.abs(),h=e.abs();var f=b.t;g.t=f+h.t;while(--f>=0){g[f]=0}for(f=0;f<h.t;++f){g[f+b.t]=b.am(0,h[f],g,f,0,b.t)}g.s=0;g.clamp();if(this.s!=e.s){BigInteger.ZERO.subTo(g,g)}}function bnpSquareTo(f){var b=this.abs();var e=f.t=2*b.t;while(--e>=0){f[e]=0}for(e=0;e<b.t-1;++e){var g=b.am(e,b[e],f,2*e,0,1);if((f[e+b.t]+=b.am(e+1,2*b[e],f,2*e+1,g,b.t-e-1))>=b.DV){f[e+b.t]-=b.DV;f[e+b.t+1]=1}}if(f.t>0){f[f.t-1]+=b.am(e,b[e],f,2*e,0,1)}f.s=0;f.clamp()}function bnpDivRemTo(w,o,n){var D=w.abs();if(D.t<=0){return}var s=this.abs();if(s.t<D.t){if(o!=null){o.fromInt(0)}if(n!=null){this.copyTo(n)}return}if(n==null){n=nbi()}var h=nbi(),b=this.s,u=w.s;var C=this.DB-nbits(D[D.t-1]);if(C>0){D.lShiftTo(C,h);s.lShiftTo(C,n)}else{D.copyTo(h);s.copyTo(n)}var z=h.t;var f=h[z-1];if(f==0){return}var x=f*(1<<this.F1)+((z>1)?h[z-2]>>this.F2:0);var G=this.FV/x,F=(1<<this.F1)/x,E=1<<this.F2;var B=n.t,A=B-z,l=(o==null)?nbi():o;h.dlShiftTo(A,l);if(n.compareTo(l)>=0){n[n.t++]=1;n.subTo(l,n)}BigInteger.ONE.dlShiftTo(z,l);l.subTo(h,h);while(h.t<z){h[h.t++]=0}while(--A>=0){var g=(n[--B]==f)?this.DM:Math.floor(n[B]*G+(n[B-1]+E)*F);if((n[B]+=h.am(0,g,n,A,0,z))<g){h.dlShiftTo(A,l);n.subTo(l,n);while(n[B]<--g){n.subTo(l,n)}}}if(o!=null){n.drShiftTo(z,o);if(b!=u){BigInteger.ZERO.subTo(o,o)}}n.t=z;n.clamp();if(C>0){n.rShiftTo(C,n)}if(b<0){BigInteger.ZERO.subTo(n,n)}}function bnMod(b){var e=nbi();this.abs().divRemTo(b,null,e);if(this.s<0&&e.compareTo(BigInteger.ZERO)>0){b.subTo(e,e)}return e}function Classic(b){this.m=b}function cConvert(b){if(b.s<0||b.compareTo(this.m)>=0){return b.mod(this.m)}else{return b}}function cRevert(b){return b}function cReduce(b){b.divRemTo(this.m,null,b)}function cMulTo(b,f,e){b.multiplyTo(f,e);this.reduce(e)}function cSqrTo(b,e){b.squareTo(e);this.reduce(e)}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;function bnpInvDigit(){if(this.t<1){return 0}var b=this[0];if((b&1)==0){return 0}var e=b&3;e=(e*(2-(b&15)*e))&15;e=(e*(2-(b&255)*e))&255;e=(e*(2-(((b&65535)*e)&65535)))&65535;e=(e*(2-b*e%this.DV))%this.DV;return(e>0)?this.DV-e:-e}function Montgomery(b){this.m=b;this.mp=b.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<<(b.DB-15))-1;this.mt2=2*b.t}function montConvert(b){var e=nbi();b.abs().dlShiftTo(this.m.t,e);e.divRemTo(this.m,null,e);if(b.s<0&&e.compareTo(BigInteger.ZERO)>0){this.m.subTo(e,e)}return e}function montRevert(b){var e=nbi();b.copyTo(e);this.reduce(e);return e}function montReduce(b){while(b.t<=this.mt2){b[b.t++]=0}for(var f=0;f<this.m.t;++f){var e=b[f]&32767;var g=(e*this.mpl+(((e*this.mph+(b[f]>>15)*this.mpl)&this.um)<<15))&b.DM;e=f+this.m.t;b[e]+=this.m.am(0,g,b,f,0,this.m.t);while(b[e]>=b.DV){b[e]-=b.DV;b[++e]++}}b.clamp();b.drShiftTo(this.m.t,b);if(b.compareTo(this.m)>=0){b.subTo(this.m,b)}}function montSqrTo(b,e){b.squareTo(e);this.reduce(e)}function montMulTo(b,f,e){b.multiplyTo(f,e);this.reduce(e)}Montgomery.prototype.convert=montConvert;Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;function bnpIsEven(){return((this.t>0)?(this[0]&1):this.s)==0}function bnpExp(m,n){if(m>4294967295||m<1){return BigInteger.ONE}var l=nbi(),b=nbi(),j=n.convert(this),h=nbits(m)-1;j.copyTo(l);while(--h>=0){n.sqrTo(l,b);if((m&(1<<h))>0){n.mulTo(b,j,l)}else{var f=l;l=b;b=f}}return n.revert(l)}function bnModPowInt(f,b){var g;if(f<256||b.isEven()){g=new Classic(b)}else{g=new Montgomery(b)}return this.exp(f,g)}BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);function bnClone(){var b=nbi();this.copyTo(b);return b}function bnIntValue(){if(this.s<0){if(this.t==1){return this[0]-this.DV}else{if(this.t==0){return -1}}}else{if(this.t==1){return this[0]}else{if(this.t==0){return 0}}}return((this[1]&((1<<(32-this.DB))-1))<<this.DB)|this[0]}function bnByteValue(){return(this.t==0)?this.s:(this[0]<<24)>>24}function bnShortValue(){return(this.t==0)?this.s:(this[0]<<16)>>16}function bnpChunkSize(b){return Math.floor(Math.LN2*this.DB/Math.log(b))}function bnSigNum(){if(this.s<0){return -1}else{if(this.t<=0||(this.t==1&&this[0]<=0)){return 0}else{return 1}}}function bnpToRadix(e){if(e==null){e=10}if(this.signum()==0||e<2||e>36){return"0"}var g=this.chunkSize(e);var f=Math.pow(e,g);var l=nbv(f),m=nbi(),j=nbi(),h="";this.divRemTo(l,m,j);while(m.signum()>0){h=(f+j.intValue()).toString(e).substr(1)+h;m.divRemTo(l,m,j)}return j.intValue().toString(e)+h}function bnpFromRadix(q,m){this.fromInt(0);if(m==null){m=10}var h=this.chunkSize(m);var l=Math.pow(m,h),g=false,e=0,o=0;for(var f=0;f<q.length;++f){var n=intAt(q,f);if(n<0){if(q.charAt(f)=="-"&&this.signum()==0){g=true}continue}o=m*o+n;if(++e>=h){this.dMultiply(l);this.dAddOffset(o,0);e=0;o=0}}if(e>0){this.dMultiply(Math.pow(m,e));this.dAddOffset(o,0)}if(g){BigInteger.ZERO.subTo(this,this)}}function bnpFromNumber(g,f,j){if("number"==typeof f){if(g<2){this.fromInt(1)}else{this.fromNumber(g,j);if(!this.testBit(g-1)){this.bitwiseTo(BigInteger.ONE.shiftLeft(g-1),op_or,this)}if(this.isEven()){this.dAddOffset(1,0)}while(!this.isProbablePrime(f)){this.dAddOffset(2,0);if(this.bitLength()>g){this.subTo(BigInteger.ONE.shiftLeft(g-1),this)}}}}else{var e=new Array(),h=g&7;e.length=(g>>3)+1;f.nextBytes(e);if(h>0){e[0]&=((1<<h)-1)}else{e[0]=0}this.fromString(e,256)}}function bnToByteArray(){var e=this.t,f=new Array();f[0]=this.s;var g=this.DB-(e*this.DB)%8,h,b=0;if(e-->0){if(g<this.DB&&(h=this[e]>>g)!=(this.s&this.DM)>>g){f[b++]=h|(this.s<<(this.DB-g))}while(e>=0){if(g<8){h=(this[e]&((1<<g)-1))<<(8-g);h|=this[--e]>>(g+=this.DB-8)}else{h=(this[e]>>(g-=8))&255;if(g<=0){g+=this.DB;--e}}if((h&128)!=0){h|=-256}if(b==0&&(this.s&128)!=(h&128)){++b}if(b>0||h!=this.s){f[b++]=h}}}return f}function bnEquals(b){return(this.compareTo(b)==0)}function bnMin(b){return(this.compareTo(b)<0)?this:b}function bnMax(b){return(this.compareTo(b)>0)?this:b}function bnpBitwiseTo(e,l,h){var g,j,b=Math.min(e.t,this.t);for(g=0;g<b;++g){h[g]=l(this[g],e[g])}if(e.t<this.t){j=e.s&this.DM;for(g=b;g<this.t;++g){h[g]=l(this[g],j)}h.t=this.t}else{j=this.s&this.DM;for(g=b;g<e.t;++g){h[g]=l(j,e[g])}h.t=e.t}h.s=l(this.s,e.s);h.clamp()}function op_and(b,e){return b&e}function bnAnd(b){var e=nbi();this.bitwiseTo(b,op_and,e);return e}function op_or(b,e){return b|e}function bnOr(b){var e=nbi();this.bitwiseTo(b,op_or,e);return e}function op_xor(b,e){return b^e}function bnXor(b){var e=nbi();this.bitwiseTo(b,op_xor,e);return e}function op_andnot(b,e){return b&~e}function bnAndNot(b){var e=nbi();this.bitwiseTo(b,op_andnot,e);return e}function bnNot(){var e=nbi();for(var b=0;b<this.t;++b){e[b]=this.DM&~this[b]}e.t=this.t;e.s=~this.s;return e}function bnShiftLeft(e){var b=nbi();if(e<0){this.rShiftTo(-e,b)}else{this.lShiftTo(e,b)}return b}function bnShiftRight(e){var b=nbi();if(e<0){this.lShiftTo(-e,b)}else{this.rShiftTo(e,b)}return b}function lbit(b){if(b==0){return -1}var e=0;if((b&65535)==0){b>>=16;e+=16}if((b&255)==0){b>>=8;e+=8}if((b&15)==0){b>>=4;e+=4}if((b&3)==0){b>>=2;e+=2}if((b&1)==0){++e}return e}function bnGetLowestSetBit(){for(var b=0;b<this.t;++b){if(this[b]!=0){return b*this.DB+lbit(this[b])}}if(this.s<0){return this.t*this.DB}return -1}function cbit(b){var e=0;while(b!=0){b&=b-1;++e}return e}function bnBitCount(){var f=0,b=this.s&this.DM;for(var e=0;e<this.t;++e){f+=cbit(this[e]^b)}return f}function bnTestBit(e){var b=Math.floor(e/this.DB);if(b>=this.t){return(this.s!=0)}return((this[b]&(1<<(e%this.DB)))!=0)}function bnpChangeBit(f,e){var b=BigInteger.ONE.shiftLeft(f);this.bitwiseTo(b,e,b);return b}function bnSetBit(b){return this.changeBit(b,op_or)}function bnClearBit(b){return this.changeBit(b,op_andnot)}function bnFlipBit(b){return this.changeBit(b,op_xor)}function bnpAddTo(e,g){var f=0,h=0,b=Math.min(e.t,this.t);while(f<b){h+=this[f]+e[f];g[f++]=h&this.DM;h>>=this.DB}if(e.t<this.t){h+=e.s;while(f<this.t){h+=this[f];g[f++]=h&this.DM;h>>=this.DB}h+=this.s}else{h+=this.s;while(f<e.t){h+=e[f];g[f++]=h&this.DM;h>>=this.DB}h+=e.s}g.s=(h<0)?-1:0;if(h>0){g[f++]=h}else{if(h<-1){g[f++]=this.DV+h}}g.t=f;g.clamp()}function bnAdd(b){var e=nbi();this.addTo(b,e);return e}function bnSubtract(b){var e=nbi();this.subTo(b,e);return e}function bnMultiply(b){var e=nbi();this.multiplyTo(b,e);return e}function bnDivide(b){var e=nbi();this.divRemTo(b,e,null);return e}function bnRemainder(b){var e=nbi();this.divRemTo(b,null,e);return e}function bnDivideAndRemainder(b){var f=nbi(),e=nbi();this.divRemTo(b,f,e);return new Array(f,e)}function bnpDMultiply(b){this[this.t]=this.am(0,b-1,this,0,0,this.t);++this.t;this.clamp()}function bnpDAddOffset(e,b){while(this.t<=b){this[this.t++]=0}this[b]+=e;while(this[b]>=this.DV){this[b]-=this.DV;if(++b>=this.t){this[this.t++]=0}++this[b]}}function NullExp(){}function nNop(b){return b}function nMulTo(b,f,e){b.multiplyTo(f,e)}function nSqrTo(b,e){b.squareTo(e)}NullExp.prototype.convert=nNop;NullExp.prototype.revert=nNop;NullExp.prototype.mulTo=nMulTo;NullExp.prototype.sqrTo=nSqrTo;function bnPow(b){return this.exp(b,new NullExp())}function bnpMultiplyLowerTo(b,h,g){var f=Math.min(this.t+b.t,h);g.s=0;g.t=f;while(f>0){g[--f]=0}var e;for(e=g.t-this.t;f<e;++f){g[f+this.t]=this.am(0,b[f],g,f,0,this.t)}for(e=Math.min(b.t,h);f<e;++f){this.am(0,b[f],g,f,0,h-f)}g.clamp()}function bnpMultiplyUpperTo(b,g,f){--g;var e=f.t=this.t+b.t-g;f.s=0;while(--e>=0){f[e]=0}for(e=Math.max(g-this.t,0);e<b.t;++e){f[this.t+e-g]=this.am(g-e,b[e],f,0,0,this.t+e-g)}f.clamp();f.drShiftTo(1,f)}function Barrett(b){this.r2=nbi();this.q3=nbi();BigInteger.ONE.dlShiftTo(2*b.t,this.r2);this.mu=this.r2.divide(b);this.m=b}function barrettConvert(b){if(b.s<0||b.t>2*this.m.t){return b.mod(this.m)}else{if(b.compareTo(this.m)<0){return b}else{var e=nbi();b.copyTo(e);this.reduce(e);return e}}}function barrettRevert(b){return b}function barrettReduce(b){b.drShiftTo(this.m.t-1,this.r2);if(b.t>this.m.t+1){b.t=this.m.t+1;b.clamp()}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(b.compareTo(this.r2)<0){b.dAddOffset(1,this.m.t+1)}b.subTo(this.r2,b);while(b.compareTo(this.m)>=0){b.subTo(this.m,b)}}function barrettSqrTo(b,e){b.squareTo(e);this.reduce(e)}function barrettMulTo(b,f,e){b.multiplyTo(f,e);this.reduce(e)}Barrett.prototype.convert=barrettConvert;Barrett.prototype.revert=barrettRevert;Barrett.prototype.reduce=barrettReduce;Barrett.prototype.mulTo=barrettMulTo;Barrett.prototype.sqrTo=barrettSqrTo;function bnModPow(y,o){var u=y.bitLength(),q,f=nbv(1),C;if(u<=0){return f}else{if(u<18){q=1}else{if(u<48){q=3}else{if(u<144){q=4}else{if(u<768){q=5}else{q=6}}}}}if(u<8){C=new Classic(o)}else{if(o.isEven()){C=new Barrett(o)}else{C=new Montgomery(o)}}var x=new Array(),l=3,A=q-1,b=(1<<q)-1;x[1]=C.convert(this);if(q>1){var F=nbi();C.sqrTo(x[1],F);while(l<=b){x[l]=nbi();C.mulTo(F,x[l-2],x[l]);l+=2}}var s=y.t-1,D,B=true,h=nbi(),E;u=nbits(y[s])-1;while(s>=0){if(u>=A){D=(y[s]>>(u-A))&b}else{D=(y[s]&((1<<(u+1))-1))<<(A-u);if(s>0){D|=y[s-1]>>(this.DB+u-A)}}l=q;while((D&1)==0){D>>=1;--l}if((u-=l)<0){u+=this.DB;--s}if(B){x[D].copyTo(f);B=false}else{while(l>1){C.sqrTo(f,h);C.sqrTo(h,f);l-=2}if(l>0){C.sqrTo(f,h)}else{E=f;f=h;h=E}C.mulTo(h,x[D],f)}while(s>=0&&(y[s]&(1<<u))==0){C.sqrTo(f,h);E=f;f=h;h=E;if(--u<0){u=this.DB-1;--s}}}return C.revert(f)}function bnGCD(e){var b=(this.s<0)?this.negate():this.clone();var l=(e.s<0)?e.negate():e.clone();if(b.compareTo(l)<0){var h=b;b=l;l=h}var f=b.getLowestSetBit(),j=l.getLowestSetBit();if(j<0){return b}if(f<j){j=f}if(j>0){b.rShiftTo(j,b);l.rShiftTo(j,l)}while(b.signum()>0){if((f=b.getLowestSetBit())>0){b.rShiftTo(f,b)}if((f=l.getLowestSetBit())>0){l.rShiftTo(f,l)}if(b.compareTo(l)>=0){b.subTo(l,b);b.rShiftTo(1,b)}else{l.subTo(b,l);l.rShiftTo(1,l)}}if(j>0){l.lShiftTo(j,l)}return l}function bnpModInt(g){if(g<=0){return 0}var f=this.DV%g,e=(this.s<0)?g-1:0;if(this.t>0){if(f==0){e=this[0]%g}else{for(var b=this.t-1;b>=0;--b){e=(f*e+this[b])%g}}}return e}function bnModInverse(f){var l=f.isEven();if((this.isEven()&&l)||f.signum()==0){return BigInteger.ZERO}var j=f.clone(),h=this.clone();var g=nbv(1),e=nbv(0),o=nbv(0),n=nbv(1);while(j.signum()!=0){while(j.isEven()){j.rShiftTo(1,j);if(l){if(!g.isEven()||!e.isEven()){g.addTo(this,g);e.subTo(f,e)}g.rShiftTo(1,g)}else{if(!e.isEven()){e.subTo(f,e)}}e.rShiftTo(1,e)}while(h.isEven()){h.rShiftTo(1,h);if(l){if(!o.isEven()||!n.isEven()){o.addTo(this,o);n.subTo(f,n)}o.rShiftTo(1,o)}else{if(!n.isEven()){n.subTo(f,n)}}n.rShiftTo(1,n)}if(j.compareTo(h)>=0){j.subTo(h,j);if(l){g.subTo(o,g)}e.subTo(n,e)}else{h.subTo(j,h);if(l){o.subTo(g,o)}n.subTo(e,n)}}if(h.compareTo(BigInteger.ONE)!=0){return BigInteger.ZERO}if(n.compareTo(f)>=0){return n.subtract(f)}if(n.signum()<0){n.addTo(f,n)}else{return n}if(n.signum()<0){return n.add(f)}else{return n}}var lowprimes=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509];var lplim=(1<<26)/lowprimes[lowprimes.length-1];function bnIsProbablePrime(h){var g,e=this.abs();if(e.t==1&&e[0]<=lowprimes[lowprimes.length-1]){for(g=0;g<lowprimes.length;++g){if(e[0]==lowprimes[g]){return true}}return false}if(e.isEven()){return false}g=1;while(g<lowprimes.length){var b=lowprimes[g],f=g+1;while(f<lowprimes.length&&b<lplim){b*=lowprimes[f++]}b=e.modInt(b);while(g<f){if(b%lowprimes[g++]==0){return false}}}return e.millerRabin(h)}function bnpMillerRabin(h){var l=this.subtract(BigInteger.ONE);var e=l.getLowestSetBit();if(e<=0){return false}var m=l.shiftRight(e);h=(h+1)>>1;if(h>lowprimes.length){h=lowprimes.length}var b=nbi();for(var g=0;g<h;++g){b.fromInt(lowprimes[g]);var n=b.modPow(m,this);if(n.compareTo(BigInteger.ONE)!=0&&n.compareTo(l)!=0){var f=1;while(f++<e&&n.compareTo(l)!=0){n=n.modPowInt(2,this);if(n.compareTo(BigInteger.ONE)==0){return false}}if(n.compareTo(l)!=0){return false}}}return true}BigInteger.prototype.chunkSize=bnpChunkSize;BigInteger.prototype.toRadix=bnpToRadix;BigInteger.prototype.fromRadix=bnpFromRadix;BigInteger.prototype.fromNumber=bnpFromNumber;BigInteger.prototype.bitwiseTo=bnpBitwiseTo;BigInteger.prototype.changeBit=bnpChangeBit;BigInteger.prototype.addTo=bnpAddTo;BigInteger.prototype.dMultiply=bnpDMultiply;BigInteger.prototype.dAddOffset=bnpDAddOffset;BigInteger.prototype.multiplyLowerTo=bnpMultiplyLowerTo;BigInteger.prototype.multiplyUpperTo=bnpMultiplyUpperTo;BigInteger.prototype.modInt=bnpModInt;BigInteger.prototype.millerRabin=bnpMillerRabin;BigInteger.prototype.clone=bnClone;BigInteger.prototype.intValue=bnIntValue;BigInteger.prototype.byteValue=bnByteValue;BigInteger.prototype.shortValue=bnShortValue;BigInteger.prototype.signum=bnSigNum;BigInteger.prototype.toByteArray=bnToByteArray;BigInteger.prototype.equals=bnEquals;BigInteger.prototype.min=bnMin;BigInteger.prototype.max=bnMax;BigInteger.prototype.and=bnAnd;BigInteger.prototype.or=bnOr;BigInteger.prototype.xor=bnXor;BigInteger.prototype.andNot=bnAndNot;BigInteger.prototype.not=bnNot;BigInteger.prototype.shiftLeft=bnShiftLeft;BigInteger.prototype.shiftRight=bnShiftRight;BigInteger.prototype.getLowestSetBit=bnGetLowestSetBit;BigInteger.prototype.bitCount=bnBitCount;BigInteger.prototype.testBit=bnTestBit;BigInteger.prototype.setBit=bnSetBit;BigInteger.prototype.clearBit=bnClearBit;BigInteger.prototype.flipBit=bnFlipBit;BigInteger.prototype.add=bnAdd;BigInteger.prototype.subtract=bnSubtract;BigInteger.prototype.multiply=bnMultiply;BigInteger.prototype.divide=bnDivide;BigInteger.prototype.remainder=bnRemainder;BigInteger.prototype.divideAndRemainder=bnDivideAndRemainder;BigInteger.prototype.modPow=bnModPow;BigInteger.prototype.modInverse=bnModInverse;BigInteger.prototype.pow=bnPow;BigInteger.prototype.gcd=bnGCD;BigInteger.prototype.isProbablePrime=bnIsProbablePrime;var froggerCookie=null;function FroggerEntry(){var b;var f;var e;this.getIsInCollection=function(){return this.getIsIn(1)};this.getIsInWishlist=function(){return this.getIsIn(2)};this.getIsInEmailAlerts=function(){return this.getIsIn(4)};this.getIsInNowPlaying=function(){return this.getIsIn(8)};this.getIsInPlayed=function(){return this.getIsIn(16)};this.getIsInFavorites=function(){return this.getIsIn(32)};this.getHasReviewed=function(){return this.getIsIn(64)};this.getIsIn=function(g){return(this.listLocs&g)!=0}}function FroggerCookie(e,b){this.versionNum=e;this.entries=b;this.getEntry=function(g){if(b==null){return null}for(var f=0;f<b.length;++f){if(b[f].objId==g){return b[f]}}return null}}function getFroggerCookie(){if(froggerCookie==null){froggerCookie=parseFroggerB()}return froggerCookie}function getFroggerEntry(e){var b=getFroggerCookie();return b.getEntry(e)}function logFroggerEntry(b){document.getElementById("log").innerHTML+="ENTRY: objId="+b.objId+" rating="+b.userRating+" listLocs="+b.listLocs+"<br>"}var COOKIE_NAME="FroggerB";var MAX_NUMBER_OF_COOKIES=1;var NUMBITS_objIdBitSize=5;var NUMBITS_locsBitSize=5;function parseFroggerB(){var f=getCookieStr();if(f==null){return null}f=unescape(f);var e="v=3*";var b="v4_";if(e==f.substring(0,e.length)){return parseFroggerBForVersion3(f)}else{if(b==f.substring(0,b.length)){return parseFroggerBForVersion4(f)}}return null}function getCookieStr(){var e=null;for(var f=0;f<MAX_NUMBER_OF_COOKIES;++f){var b=getCookie(COOKIE_NAME+f);if(b==null){break}else{if(e==null){e=b}else{e+=b}}}return e}function parseFroggerBForVersion4(b){b=b.substring(b.lastIndexOf("_")+2);if(b==null||""==b){return null}var e=b64tohex(b);var f=new BigInteger(e,16);return parseFroggerBForVersionWithBigInteger(4,f)}function parseFroggerBForVersion3(b){b=b.substring(b.lastIndexOf("*")+3);var e=convertFromBase65(b);if(e==null||e==""){return null}return parseFroggerBForVersionWithBigInteger(3,e)}function parseFroggerBForVersionWithBigInteger(g,q){var f=q.and(getMask(NUMBITS_locsBitSize,0)).intValue();if(q.bitLength>900&&f!=7){f=7}else{q=q.shiftRight(NUMBITS_locsBitSize)}var j=q.and(getMask(NUMBITS_objIdBitSize,0)).intValue();if(q.bitLength>900&&j!=21){j=21}else{q=q.shiftRight(NUMBITS_objIdBitSize)}var e=7;var l=j+e+f;var m=getMask(j,e+f);var r=getMask(e,f);var s=getMask(f,0);var h=new Array(Math.ceil(q.bitLength()/l));var n=h.length-1;while(q.compareTo(BigInteger.ZERO)>0){var o=new FroggerEntry();o.objId=m.and(q).shiftRight(e+f).intValue();var b=r.and(q).shiftRight(f).intValue();o.listLocs=s.and(q).intValue();o.userRating=null;if(b>=0&&b<=100){o.userRating=b/10}h[n]=o;q=q.shiftRight(l);--n}return new FroggerCookie(g,h)}function getMask(e,f){var b=new BigInteger("1");b=b.shiftLeft(e);b=b.subtract(new BigInteger("1"));b=b.shiftLeft(f);return b}var baseDigits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-_";var baseBig=new BigInteger(""+baseDigits.length,10);function convertFromBase65(h){var l=new BigInteger("1");var g=new BigInteger("0");for(var b=h.length-1;b>=0;--b){var j=h.charAt(b);var e=baseDigits.indexOf(j);var f=new BigInteger(""+e);g=g.add(l.multiply(f));l=l.multiply(baseBig)}return g}var b64map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*/";var b64pad="=";function hex2b64(f){var e;var g;var b="";for(e=0;e+3<=f.length;e+=3){g=parseInt(f.substring(e,e+3),16);b+=b64map.charAt(g>>6)+b64map.charAt(g&63)}if(e+1==f.length){g=parseInt(f.substring(e,e+1),16);b+=b64map.charAt(g<<2)}else{if(e+2==f.length){g=parseInt(f.substring(e,e+2),16);b+=b64map.charAt(g>>2)+b64map.charAt((g&3)<<4)}}while((b.length&3)>0){b+=b64pad}return b}function b64tohex(h){var f="";var g;var b=0;var e;for(g=0;g<h.length;++g){if(h.charAt(g)==b64pad){break}v=b64map.indexOf(h.charAt(g));if(v<0){continue}if(b==0){f+=int2char(v>>2);e=v&3;b=1}else{if(b==1){f+=int2char((e<<2)|(v>>4));e=v&15;b=2}else{if(b==2){f+=int2char(e);f+=int2char(v>>2);e=v&3;b=3}else{f+=int2char((e<<2)|(v>>4));f+=int2char(v&15);b=0}}}}if(b==1){f+=int2char(e<<2)}return f}function b64toBA(g){var f=b64tohex(g);var e;var b=new Array();for(e=0;2*e<f.length;++e){b[e]=parseInt(f.substring(2*e,2*e+2),16)}return b}function getCookie(g){var e=g+"=";var l=e.length;var b=document.cookie.length;var h=0;while(h<b){var f=h+l;if(document.cookie.substring(h,f)==e){return getCookieVal(f)}h=document.cookie.indexOf(" ",h)+1;if(h==0){break}}return null}function getCookieVal(e){var b=document.cookie.indexOf(";",e);if(b==-1){b=document.cookie.length}return unescape(document.cookie.substring(e,b))}function setCookie(f,h){var b=setCookie.arguments;var m=setCookie.arguments.length;var e=(m>2)?b[2]:null;var l=(m>3)?b[3]:null;var g=(m>4)?b[4]:null;var j=(m>5)?b[5]:false;document.cookie=f+"="+escape(h)+((e==null)?"":("; expires="+e.toGMTString()))+((l==null)?"":("; path="+l))+((g==null)?"":("; domain="+g))+((j==true)?"; secure":"")}function deleteCookie(b,f,e){if(getCookie(b)){document.cookie=b+"=;expires=Thu, 01-Jan-1970 00:00:01 GMT"}}var isFroggerB=false;if(getFroggerCookie()!=null){if(getFroggerCookie().versionNum>3){isFroggerB=true}}if(checkParam("mpref","full")){var today=new Date();expires=1000*60*60*24*31;var expires_date=new Date(today.getTime()+(expires));setCookie("mobile_redirect",false,null,"/","e3.ign.com")}var c=navigator.userAgent,a=window.location,d=document.cookie;if((a.toString().indexOf("http://e3.ign.com")>-1)&&(c.match(/iP(od|hone)/i)||c.match(/Android/i))){if(d.indexOf("mobile_redirect=false")<0){a.href="http://m.e3.ign.com"}}(function(){var W=this,ab,F=W.jQuery,S=W.$,T=W.jQuery=W.$=function(e,b){return new T.fn.init(e,b)},M=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ac=/^.[^:#\[\.,]*$/;T.fn=T.prototype={init:function(h,e){h=h||document;if(h.nodeType){this[0]=h;this.length=1;this.context=h;return this}if(typeof h==="string"){var f=M.exec(h);if(f&&(f[1]||!e)){if(f[1]){h=T.clean([f[1]],e)}else{var b=document.getElementById(f[3]);if(b&&b.id!=f[3]){return T().find(h)}var g=T(b||[]);g.context=document;g.selector=h;return g}}else{return T(e).find(h)}}else{if(T.isFunction(h)){return T(document).ready(h)}}if(h.selector&&h.context){this.selector=h.selector;this.context=h.context}return this.setArray(T.isArray(h)?h:T.makeArray(h))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(b){return b===ab?Array.prototype.slice.call(this):this[b]},pushStack:function(f,b,g){var e=T(f);e.prevObject=this;e.context=this.context;if(b==="find"){e.selector=this.selector+(this.selector?" ":"")+g}else{if(b){e.selector=this.selector+"."+b+"("+g+")"}}return e},setArray:function(b){this.length=0;Array.prototype.push.apply(this,b);return this},each:function(b,e){return T.each(this,b,e)},index:function(b){return T.inArray(b&&b.jquery?b[0]:b,this)},attr:function(f,b,e){var g=f;if(typeof f==="string"){if(b===ab){return this[0]&&T[e||"attr"](this[0],f)}else{g={};g[f]=b}}return this.each(function(h){for(f in g){T.attr(e?this.style:this,f,T.prop(this,g[f],e,h,f))}})},css:function(e,b){if((e=="width"||e=="height")&&parseFloat(b)<0){b=ab}return this.attr(e,b,"curCSS")},text:function(b){if(typeof b!=="object"&&b!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(b))}var e="";T.each(b||this,function(){T.each(this.childNodes,function(){if(this.nodeType!=8){e+=this.nodeType!=1?this.nodeValue:T.fn.text([this])}})});return e},wrapAll:function(e){if(this[0]){var b=T(e,this[0].ownerDocument).clone();if(this[0].parentNode){b.insertBefore(this[0])}b.map(function(){var f=this;while(f.firstChild){f=f.firstChild}return f}).append(this)}return this},wrapInner:function(b){return this.each(function(){T(this).contents().wrapAll(b)})},wrap:function(b){return this.each(function(){T(this).wrapAll(b)})},append:function(){return this.domManip(arguments,true,function(b){if(this.nodeType==1){this.appendChild(b)}})},prepend:function(){return this.domManip(arguments,true,function(b){if(this.nodeType==1){this.insertBefore(b,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)})},after:function(){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)})},end:function(){return this.prevObject||T([])},push:[].push,sort:[].sort,splice:[].splice,find:function(e){if(this.length===1){var b=this.pushStack([],"find",e);b.length=0;T.find(e,this[0],b);return b}else{return this.pushStack(T.unique(T.map(this,function(f){return T.find(e,f)})),"find",e)}},clone:function(e){var g=this.map(function(){if(!T.support.noCloneEvent&&!T.isXMLDoc(this)){var j=this.outerHTML;if(!j){var h=this.ownerDocument.createElement("div");h.appendChild(this.cloneNode(true));j=h.innerHTML}return T.clean([j.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(e===true){var b=this.find("*").andSelf(),f=0;g.find("*").andSelf().each(function(){if(this.nodeName!==b[f].nodeName){return}var l=T.data(b[f],"events");for(var h in l){for(var j in l[h]){T.event.add(this,h,l[h][j],l[h][j].data)}}f++})}return g},filter:function(b){return this.pushStack(T.isFunction(b)&&T.grep(this,function(e,f){return b.call(e,f)})||T.multiFilter(b,T.grep(this,function(e){return e.nodeType===1})),"filter",b)},closest:function(f){var b=T.expr.match.POS.test(f)?T(f):null,e=0;return this.map(function(){var g=this;while(g&&g.ownerDocument){if(b?b.index(g)>-1:T(g).is(f)){T.data(g,"closest",e);return g}g=g.parentNode;e++}})},not:function(e){if(typeof e==="string"){if(ac.test(e)){return this.pushStack(T.multiFilter(e,this,true),"not",e)}else{e=T.multiFilter(e,this)}}var b=e.length&&e[e.length-1]!==ab&&!e.nodeType;return this.filter(function(){return b?T.inArray(this,e)<0:this!=e})},add:function(b){return this.pushStack(T.unique(T.merge(this.get(),typeof b==="string"?T(b):T.makeArray(b))))},is:function(b){return !!b&&T.multiFilter(b,this).length>0},hasClass:function(b){return !!b&&this.is("."+b)},val:function(f){if(f===ab){var n=this[0];if(n){if(T.nodeName(n,"option")){return(n.attributes.value||{}).specified?n.value:n.text}if(T.nodeName(n,"select")){var h=n.selectedIndex,e=[],b=n.options,j=n.type=="select-one";if(h<0){return null}for(var m=j?h:0,g=j?h+1:b.length;m<g;m++){var l=b[m];if(l.selected){f=T(l).val();if(j){return f}e.push(f)}}return e}return(n.value||"").replace(/\r/g,"")}return ab}if(typeof f==="number"){f+=""}return this.each(function(){if(this.nodeType!=1){return}if(T.isArray(f)&&/radio|checkbox/.test(this.type)){this.checked=(T.inArray(this.value,f)>=0||T.inArray(this.name,f)>=0)}else{if(T.nodeName(this,"select")){var o=T.makeArray(f);T("option",this).each(function(){this.selected=(T.inArray(this.value,o)>=0||T.inArray(this.text,o)>=0)});if(!o.length){this.selectedIndex=-1}}else{this.value=f}}})},html:function(b){return b===ab?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(b)},replaceWith:function(b){return this.after(b).remove()},eq:function(b){return this.slice(b,+b+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(b){return this.pushStack(T.map(this,function(e,f){return b.call(e,f,e)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(g,b,e){if(this[0]){var h=(this[0].ownerDocument||this[0]).createDocumentFragment(),m=T.clean(g,(this[0].ownerDocument||this[0]),h),j=h.firstChild;if(j){for(var l=0,n=this.length;l<n;l++){e.call(f(this[l],j),this.length>1||l>0?h.cloneNode(true):h)}}if(m){T.each(m,E)}}return this;function f(q,o){return b&&T.nodeName(q,"table")&&T.nodeName(o,"tr")?(q.getElementsByTagName("tbody")[0]||q.appendChild(q.ownerDocument.createElement("tbody"))):q}}};T.fn.init.prototype=T.fn;function E(e,b){if(b.src){T.ajax({url:b.src,async:false,dataType:"script"})}else{T.globalEval(b.text||b.textContent||b.innerHTML||"")}if(b.parentNode){b.parentNode.removeChild(b)}}function ad(){return +new Date}T.extend=T.fn.extend=function(){var f=arguments[0]||{},h=1,g=arguments.length,m=false,j;if(typeof f==="boolean"){m=f;f=arguments[1]||{};h=2}if(typeof f!=="object"&&!T.isFunction(f)){f={}}if(g==h){f=this;--h}for(;h<g;h++){if((j=arguments[h])!=null){for(var l in j){var e=f[l],b=j[l];if(f===b){continue}if(m&&b&&typeof b==="object"&&!b.nodeType){f[l]=T.extend(m,e||(b.length!=null?[]:{}),b)}else{if(b!==ab){f[l]=b}}}}}return f};var ag=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},L=Object.prototype.toString;T.extend({noConflict:function(b){W.$=S;if(b){W.jQuery=F}return T},isFunction:function(b){return L.call(b)==="[object Function]"},isArray:function(b){return L.call(b)==="[object Array]"},isXMLDoc:function(b){return b.nodeType===9&&b.documentElement.nodeName!=="HTML"||!!b.ownerDocument&&T.isXMLDoc(b.ownerDocument)},globalEval:function(b){if(b&&/\S/.test(b)){var e=document.getElementsByTagName("head")[0]||document.documentElement,f=document.createElement("script");f.type="text/javascript";if(T.support.scriptEval){f.appendChild(document.createTextNode(b))}else{f.text=b}e.insertBefore(f,e.firstChild);e.removeChild(f)}},nodeName:function(b,e){return b.nodeName&&b.nodeName.toUpperCase()==e.toUpperCase()},each:function(h,b,j){var l,g=0,f=h.length;if(j){if(f===ab){for(l in h){if(b.apply(h[l],j)===false){break}}}else{for(;g<f;){if(b.apply(h[g++],j)===false){break}}}}else{if(f===ab){for(l in h){if(b.call(h[l],l,h[l])===false){break}}}else{for(var e=h[0];g<f&&b.call(e,g,e)!==false;e=h[++g]){}}}return h},prop:function(e,b,f,g,h){if(T.isFunction(b)){b=b.call(e,g)}return typeof b==="number"&&f=="curCSS"&&!ag.test(h)?b+"px":b},className:{add:function(e,b){T.each((b||"").split(/\s+/),function(g,f){if(e.nodeType==1&&!T.className.has(e.className,f)){e.className+=(e.className?" ":"")+f}})},remove:function(e,b){if(e.nodeType==1){e.className=b!==ab?T.grep(e.className.split(/\s+/),function(f){return !T.className.has(b,f)}).join(" "):""}},has:function(b,e){return b&&T.inArray(e,(b.className||b).toString().split(/\s+/))>-1}},swap:function(e,f,b){var h={};for(var g in f){h[g]=e.style[g];e.style[g]=f[g]}b.call(e);for(var g in f){e.style[g]=h[g]}},css:function(h,l,f,m){if(l=="width"||l=="height"){var b,j={position:"absolute",visibility:"hidden",display:"block"},e=l=="width"?["Left","Right"]:["Top","Bottom"];function g(){b=l=="width"?h.offsetWidth:h.offsetHeight;if(m==="border"){return}T.each(e,function(){if(!m){b-=parseFloat(T.curCSS(h,"padding"+this,true))||0}if(m==="margin"){b+=parseFloat(T.curCSS(h,"margin"+this,true))||0}else{b-=parseFloat(T.curCSS(h,"border"+this+"Width",true))||0}})}if(h.offsetWidth!==0){g()}else{T.swap(h,j,g)}return Math.max(0,Math.round(b))}return T.curCSS(h,l,f)},curCSS:function(h,m,l){var e,n=h.style;if(m=="opacity"&&!T.support.opacity){e=T.attr(n,"opacity");return e==""?"1":e}if(m.match(/float/i)){m=H}if(!l&&n&&n[m]){e=n[m]}else{if(Q.getComputedStyle){if(m.match(/float/i)){m="float"}m=m.replace(/([A-Z])/g,"-$1").toLowerCase();var b=Q.getComputedStyle(h,null);if(b){e=b.getPropertyValue(m)}if(m=="opacity"&&e==""){e="1"}}else{if(h.currentStyle){var g=m.replace(/\-(\w)/g,function(q,o){return o.toUpperCase()});e=h.currentStyle[m]||h.currentStyle[g];if(!/^\d+(px)?$/i.test(e)&&/^\d/.test(e)){var j=n.left,f=h.runtimeStyle.left;h.runtimeStyle.left=h.currentStyle.left;n.left=e||0;e=n.pixelLeft+"px";n.left=j;h.runtimeStyle.left=f}}}}return e},clean:function(l,e,g){e=e||document;if(typeof e.createElement==="undefined"){e=e.ownerDocument||e[0]&&e[0].ownerDocument||document}if(!g&&l.length===1&&typeof l[0]==="string"){var h=/^<(\w+)\s*\/?>$/.exec(l[0]);if(h){return[e.createElement(h[1])]}}var j=[],m=[],b=e.createElement("div");T.each(l,function(r,n){if(typeof n==="number"){n+=""}if(!n){return}if(typeof n==="string"){n=n.replace(/(<(\w+)[^>]*?)\/>/g,function(x,w,y){return y.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?x:w+"></"+y+">"});var s=n.replace(/^\s+/,"").substring(0,10).toLowerCase();var q=!s.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!s.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||s.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!s.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!s.indexOf("<td")||!s.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!s.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!T.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];b.innerHTML=q[1]+n+q[2];while(q[0]--){b=b.lastChild}if(!T.support.tbody){var o=/<tbody/i.test(n),t=!s.indexOf("<table")&&!o?b.firstChild&&b.firstChild.childNodes:q[1]=="<table>"&&!o?b.childNodes:[];for(var u=t.length-1;u>=0;--u){if(T.nodeName(t[u],"tbody")&&!t[u].childNodes.length){t[u].parentNode.removeChild(t[u])}}}if(!T.support.leadingWhitespace&&/^\s/.test(n)){b.insertBefore(e.createTextNode(n.match(/^\s*/)[0]),b.firstChild)}n=T.makeArray(b.childNodes)}if(n.nodeType){j.push(n)}else{j=T.merge(j,n)}});if(g){for(var f=0;j[f];f++){if(T.nodeName(j[f],"script")&&(!j[f].type||j[f].type.toLowerCase()==="text/javascript")){m.push(j[f].parentNode?j[f].parentNode.removeChild(j[f]):j[f])}else{if(j[f].nodeType===1){j.splice.apply(j,[f+1,0].concat(T.makeArray(j[f].getElementsByTagName("script"))))}g.appendChild(j[f])}}return m}return j},attr:function(f,j,e){if(!f||f.nodeType==3||f.nodeType==8){return ab}var h=!T.isXMLDoc(f),b=e!==ab;j=h&&T.props[j]||j;if(f.tagName){var l=/href|src|style/.test(j);if(j=="selected"&&f.parentNode){f.parentNode.selectedIndex}if(j in f&&h&&!l){if(b){if(j=="type"&&T.nodeName(f,"input")&&f.parentNode){throw"type property can't be changed"}f[j]=e}if(T.nodeName(f,"form")&&f.getAttributeNode(j)){return f.getAttributeNode(j).nodeValue}if(j=="tabIndex"){var g=f.getAttributeNode("tabIndex");return g&&g.specified?g.value:f.nodeName.match(/(button|input|object|select|textarea)/i)?0:f.nodeName.match(/^(a|area)$/i)&&f.href?0:ab}return f[j]}if(!T.support.style&&h&&j=="style"){return T.attr(f.style,"cssText",e)}if(b){f.setAttribute(j,""+e)}var m=!T.support.hrefNormalized&&h&&l?f.getAttribute(j,2):f.getAttribute(j);return m===null?ab:m}if(!T.support.opacity&&j=="opacity"){if(b){f.zoom=1;f.filter=(f.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(e)+""=="NaN"?"":"alpha(opacity="+e*100+")")}return f.filter&&f.filter.indexOf("opacity=")>=0?(parseFloat(f.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}j=j.replace(/-([a-z])/ig,function(o,n){return n.toUpperCase()});if(b){f[j]=e}return f[j]},trim:function(b){return(b||"").replace(/^\s+|\s+$/g,"")},makeArray:function(b){var f=[];if(b!=null){var e=b.length;if(e==null||typeof b==="string"||T.isFunction(b)||b.setInterval){f[0]=b}else{while(e){f[--e]=b[e]}}}return f},inArray:function(e,b){for(var g=0,f=b.length;g<f;g++){if(b[g]===e){return g}}return -1},merge:function(e,h){var g=0,f,b=e.length;if(!T.support.getAll){while((f=h[g++])!=null){if(f.nodeType!=8){e[b++]=f}}}else{while((f=h[g++])!=null){e[b++]=f}}return e},unique:function(b){var j=[],l={};try{for(var h=0,g=b.length;h<g;h++){var e=T.data(b[h]);if(!l[e]){l[e]=true;j.push(b[h])}}}catch(f){j=b}return j},grep:function(h,b,j){var g=[];for(var f=0,e=h.length;f<e;f++){if(!j!=!b(h[f],f)){g.push(h[f])}}return g},map:function(j,b){var h=[];for(var g=0,f=j.length;g<f;g++){var e=b(j[g],g);if(e!=null){h[h.length]=e}}return h.concat.apply([],h)}});var O=navigator.userAgent.toLowerCase();T.browser={version:(O.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(O),opera:/opera/.test(O),msie:/msie/.test(O)&&!/opera/.test(O),mozilla:/mozilla/.test(O)&&!/(compatible|webkit)/.test(O)};T.each({parent:function(b){return b.parentNode},parents:function(b){return T.dir(b,"parentNode")},next:function(b){return T.nth(b,2,"nextSibling")},prev:function(b){return T.nth(b,2,"previousSibling")},nextAll:function(b){return T.dir(b,"nextSibling")},prevAll:function(b){return T.dir(b,"previousSibling")},siblings:function(b){return T.sibling(b.parentNode.firstChild,b)},children:function(b){return T.sibling(b.firstChild)},contents:function(b){return T.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:T.makeArray(b.childNodes)}},function(e,b){T.fn[e]=function(g){var f=T.map(this,b);if(g&&typeof g=="string"){f=T.multiFilter(g,f)}return this.pushStack(T.unique(f),e,g)}});T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,b){T.fn[e]=function(m){var h=[],f=T(m);for(var g=0,l=f.length;g<l;g++){var j=(g>0?this.clone(true):this).get();T.fn[b].apply(T(f[g]),j);h=h.concat(j)}return this.pushStack(h,e,m)}});T.each({removeAttr:function(b){T.attr(this,b,"");if(this.nodeType==1){this.removeAttribute(b)}},addClass:function(b){T.className.add(this,b)},removeClass:function(b){T.className.remove(this,b)},toggleClass:function(b,e){if(typeof e!=="boolean"){e=!T.className.has(this,b)}T.className[e?"add":"remove"](this,b)},remove:function(b){if(!b||T.filter(b,[this]).length){T("*",this).add([this]).each(function(){T.event.remove(this);T.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){T(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(e,b){T.fn[e]=function(){return this.each(b,arguments)}});function Y(e,b){return e[0]&&parseInt(T.curCSS(e[0],b,true),10)||0}var aa="jQuery"+ad(),I=0,R={};T.extend({cache:{},data:function(f,g,e){f=f==W?R:f;var b=f[aa];if(!b){b=f[aa]=++I}if(g&&!T.cache[b]){T.cache[b]={}}if(e!==ab){T.cache[b][g]=e}return g?T.cache[b][g]:b},removeData:function(f,g){f=f==W?R:f;var b=f[aa];if(g){if(T.cache[b]){delete T.cache[b][g];g="";for(g in T.cache[b]){break}if(!g){T.removeData(f)}}}else{try{delete f[aa]}catch(e){if(f.removeAttribute){f.removeAttribute(aa)}}delete T.cache[b]}},queue:function(f,g,b){if(f){g=(g||"fx")+"queue";var e=T.data(f,g);if(!e||T.isArray(b)){e=T.data(f,g,T.makeArray(b))}else{if(b){e.push(b)}}}return e},dequeue:function(b,e){var g=T.queue(b,e),f=g.shift();if(!e||e==="fx"){f=g[0]}if(f!==ab){f.call(b)}}});T.fn.extend({data:function(g,e){var b=g.split(".");b[1]=b[1]?"."+b[1]:"";if(e===ab){var f=this.triggerHandler("getData"+b[1]+"!",[b[0]]);if(f===ab&&this.length){f=T.data(this[0],g)}return f===ab&&b[1]?this.data(b[0]):f}else{return this.trigger("setData"+b[1]+"!",[b[0],e]).each(function(){T.data(this,g,e)})}},removeData:function(b){return this.each(function(){T.removeData(this,b)})},queue:function(e,b){if(typeof e!=="string"){b=e;e="fx"}if(b===ab){return T.queue(this[0],e)}return this.each(function(){var f=T.queue(this,e,b);if(e=="fx"&&f.length==1){f[0].call(this)}})},dequeue:function(b){return this.each(function(){T.dequeue(this,b)})}});(function(){var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,m=0,r=Object.prototype.toString;var t=function(y,C,aq,ap){aq=aq||[];C=C||document;if(C.nodeType!==1&&C.nodeType!==9){return[]}if(!y||typeof y!=="string"){return aq}var x=[],A,am,aj,D,ao,B,z=true;e.lastIndex=0;while((A=e.exec(y))!==null){x.push(A[1]);if(A[2]){B=RegExp.rightContext;break}}if(x.length>1&&l.exec(y)){if(x.length===2&&q.relative[x[0]]){am=o(x[0]+x[1],C)}else{am=q.relative[x[0]]?[C]:t(x.shift(),C);while(x.length){y=x.shift();if(q.relative[y]){y+=x.shift()}am=o(y,am)}}}else{var an=ap?{expr:x.pop(),set:u(ap)}:t.find(x.pop(),x.length===1&&C.parentNode?C.parentNode:C,f(C));am=t.filter(an.expr,an.set);if(x.length>0){aj=u(am)}else{z=false}while(x.length){var ak=x.pop(),al=ak;if(!q.relative[ak]){ak=""}else{al=x.pop()}if(al==null){al=C}q.relative[ak](aj,al,f(C))}}if(!aj){aj=am}if(!aj){throw"Syntax error, unrecognized expression: "+(ak||y)}if(r.call(aj)==="[object Array]"){if(!z){aq.push.apply(aq,aj)}else{if(C.nodeType===1){for(var w=0;aj[w]!=null;w++){if(aj[w]&&(aj[w]===true||aj[w].nodeType===1&&n(C,aj[w]))){aq.push(am[w])}}}else{for(var w=0;aj[w]!=null;w++){if(aj[w]&&aj[w].nodeType===1){aq.push(am[w])}}}}}else{u(aj,aq)}if(B){t(B,C,aq,ap);if(s){hasDuplicate=false;aq.sort(s);if(hasDuplicate){for(var w=1;w<aq.length;w++){if(aq[w]===aq[w-1]){aq.splice(w--,1)}}}}}return aq};t.matches=function(x,w){return t(x,null,null,w)};t.find=function(w,D,ai){var x,z;if(!w){return[]}for(var A=0,B=q.order.length;A<B;A++){var y=q.order[A],z;if((z=q.match[y].exec(w))){var C=RegExp.leftContext;if(C.substr(C.length-1)!=="\\"){z[1]=(z[1]||"").replace(/\\/g,"");x=q.find[y](z,D,ai);if(x!=null){w=w.replace(q.match[y],"");break}}}}if(!x){x=D.getElementsByTagName("*")}return{set:x,expr:w}};t.filter=function(ao,ap,al,A){var B=ao,aj=[],w=ap,y,D,x=ap&&ap[0]&&f(ap[0]);while(ao&&ap.length){for(var aq in q.filter){if((y=q.match[aq].exec(ao))!=null){var C=q.filter[aq],ak,am;D=false;if(w==aj){aj=[]}if(q.preFilter[aq]){y=q.preFilter[aq](y,w,al,aj,A,x);if(!y){D=ak=true}else{if(y===true){continue}}}if(y){for(var z=0;(am=w[z])!=null;z++){if(am){ak=C(am,y,z,w);var an=A^!!ak;if(al&&ak!=null){if(an){D=true}else{w[z]=false}}else{if(an){aj.push(am);D=true}}}}}if(ak!==ab){if(!al){w=aj}ao=ao.replace(q.match[aq],"");if(!D){return[]}break}}}if(ao==B){if(D==null){throw"Syntax error, unrecognized expression: "+ao}else{break}}B=ao}return w};var q=t.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(w){return w.getAttribute("href")}},relative:{"+":function(w,D,x){var z=typeof D==="string",ai=z&&!/\W/.test(D),y=z&&!ai;if(ai&&!x){D=D.toUpperCase()}for(var A=0,B=w.length,C;A<B;A++){if((C=w[A])){while((C=C.previousSibling)&&C.nodeType!==1){}w[A]=y||C&&C.nodeName===D?C||false:C===D}}if(y){t.filter(D,w,true)}},">":function(B,y,A){var D=typeof y==="string";if(D&&!/\W/.test(y)){y=A?y:y.toUpperCase();for(var x=0,z=B.length;x<z;x++){var C=B[x];if(C){var w=C.parentNode;B[x]=w.nodeName===y?w:false}}}else{for(var x=0,z=B.length;x<z;x++){var C=B[x];if(C){B[x]=D?C.parentNode:C.parentNode===y}}if(D){t.filter(y,B,true)}}},"":function(w,y,A){var x=m++,z=b;if(!y.match(/\W/)){var B=y=A?y:y.toUpperCase();z=g}z("parentNode",y,x,w,B,A)},"~":function(w,y,A){var x=m++,z=b;if(typeof y==="string"&&!y.match(/\W/)){var B=y=A?y:y.toUpperCase();z=g}z("previousSibling",y,x,w,B,A)}},find:{ID:function(y,x,w){if(typeof x.getElementById!=="undefined"&&!w){var z=x.getElementById(y[1]);return z?[z]:[]}},NAME:function(x,B,A){if(typeof B.getElementsByName!=="undefined"){var y=[],C=B.getElementsByName(x[1]);for(var w=0,z=C.length;w<z;w++){if(C[w].getAttribute("name")===x[1]){y.push(C[w])}}return y.length===0?null:y}},TAG:function(x,w){return w.getElementsByTagName(x[1])}},preFilter:{CLASS:function(w,y,x,z,B,A){w=" "+w[1].replace(/\\/g,"")+" ";if(A){return w}for(var D=0,C;(C=y[D])!=null;D++){if(C){if(B^(C.className&&(" "+C.className+" ").indexOf(w)>=0)){if(!x){z.push(C)}}else{if(x){y[D]=false}}}}return false},ID:function(w){return w[1].replace(/\\/g,"")},TAG:function(x,y){for(var w=0;y[w]===false;w++){}return y[w]&&f(y[w])?x[1]:x[1].toUpperCase()},CHILD:function(x){if(x[1]=="nth"){var w=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(x[2]=="even"&&"2n"||x[2]=="odd"&&"2n+1"||!/\D/.test(x[2])&&"0n+"+x[2]||x[2]);x[2]=(w[1]+(w[2]||1))-0;x[3]=w[3]-0}x[0]=m++;return x},ATTR:function(C,y,x,z,B,A){var w=C[1].replace(/\\/g,"");if(!A&&q.attrMap[w]){C[1]=q.attrMap[w]}if(C[2]==="~="){C[4]=" "+C[4]+" "}return C},PSEUDO:function(B,y,x,z,A){if(B[1]==="not"){if(B[3].match(e).length>1||/^\w/.test(B[3])){B[3]=t(B[3],null,null,y)}else{var w=t.filter(B[3],y,x,true^A);if(!x){z.push.apply(z,w)}return false}}else{if(q.match.POS.test(B[0])||q.match.CHILD.test(B[0])){return true}}return B},POS:function(w){w.unshift(true);return w}},filters:{enabled:function(w){return w.disabled===false&&w.type!=="hidden"},disabled:function(w){return w.disabled===true},checked:function(w){return w.checked===true},selected:function(w){w.parentNode.selectedIndex;return w.selected===true},parent:function(w){return !!w.firstChild},empty:function(w){return !w.firstChild},has:function(w,x,y){return !!t(y[3],w).length},header:function(w){return/h\d/i.test(w.nodeName)},text:function(w){return"text"===w.type},radio:function(w){return"radio"===w.type},checkbox:function(w){return"checkbox"===w.type},file:function(w){return"file"===w.type},password:function(w){return"password"===w.type},submit:function(w){return"submit"===w.type},image:function(w){return"image"===w.type},reset:function(w){return"reset"===w.type},button:function(w){return"button"===w.type||w.nodeName.toUpperCase()==="BUTTON"},input:function(w){return/input|select|textarea|button/i.test(w.nodeName)}},setFilters:{first:function(w,x){return x===0},last:function(x,y,z,w){return y===w.length-1},even:function(w,x){return x%2===0},odd:function(w,x){return x%2===1},lt:function(w,x,y){return x<y[3]-0},gt:function(w,x,y){return x>y[3]-0},nth:function(w,x,y){return y[3]-0==x},eq:function(w,x,y){return y[3]-0==x}},filter:{PSEUDO:function(B,x,w,A){var y=x[1],D=q.filters[y];if(D){return D(B,w,x,A)}else{if(y==="contains"){return(B.textContent||B.innerText||"").indexOf(x[3])>=0}else{if(y==="not"){var C=x[3];for(var w=0,z=C.length;w<z;w++){if(C[w]===B){return false}}return true}}}},CHILD:function(D,A){var x=A[1],C=D;switch(x){case"only":case"first":while(C=C.previousSibling){if(C.nodeType===1){return false}}if(x=="first"){return true}C=D;case"last":while(C=C.nextSibling){if(C.nodeType===1){return false}}return true;case"nth":var B=A[2],ai=A[3];if(B==1&&ai==0){return true}var y=A[0],aj=D.parentNode;if(aj&&(aj.sizcache!==y||!D.nodeIndex)){var z=0;for(C=aj.firstChild;C;C=C.nextSibling){if(C.nodeType===1){C.nodeIndex=++z}}aj.sizcache=y}var w=D.nodeIndex-ai;if(B==0){return w==0}else{return(w%B==0&&w/B>=0)}}},ID:function(w,x){return w.nodeType===1&&w.getAttribute("id")===x},TAG:function(w,x){return(x==="*"&&w.nodeType===1)||w.nodeName===x},CLASS:function(w,x){return(" "+(w.className||w.getAttribute("class"))+" ").indexOf(x)>-1},ATTR:function(B,w){var x=w[1],z=q.attrHandle[x]?q.attrHandle[x](B):B[x]!=null?B[x]:B.getAttribute(x),A=z+"",C=w[2],y=w[4];return z==null?C==="!=":C==="="?A===y:C==="*="?A.indexOf(y)>=0:C==="~="?(" "+A+" ").indexOf(y)>=0:!y?A&&z!==false:C==="!="?A!=y:C==="^="?A.indexOf(y)===0:C==="$="?A.substr(A.length-y.length)===y:C==="|="?A===y||A.substr(0,y.length+1)===y+"-":false},POS:function(B,y,x,A){var z=y[2],w=q.setFilters[z];if(w){return w(B,x,y,A)}}}};var l=q.match.POS;for(var h in q.match){q.match[h]=RegExp(q.match[h].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var u=function(w,x){w=Array.prototype.slice.call(w);if(x){x.push.apply(x,w);return x}return w};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(j){u=function(A,w){var y=w||[];if(r.call(A)==="[object Array]"){Array.prototype.push.apply(y,A)}else{if(typeof A.length==="number"){for(var x=0,z=A.length;x<z;x++){y.push(A[x])}}else{for(var x=0;A[x];x++){y.push(A[x])}}}return y}}var s;if(document.documentElement.compareDocumentPosition){s=function(x,y){var w=x.compareDocumentPosition(y)&4?-1:x===y?0:1;if(w===0){hasDuplicate=true}return w}}else{if("sourceIndex" in document.documentElement){s=function(x,y){var w=x.sourceIndex-y.sourceIndex;if(w===0){hasDuplicate=true}return w}}else{if(document.createRange){s=function(w,y){var x=w.ownerDocument.createRange(),z=y.ownerDocument.createRange();x.selectNode(w);x.collapse(true);z.selectNode(y);z.collapse(true);var A=x.compareBoundaryPoints(Range.START_TO_END,z);if(A===0){hasDuplicate=true}return A}}}}(function(){var x=document.createElement("form"),w="script"+(new Date).getTime();x.innerHTML="<input name='"+w+"'/>";var y=document.documentElement;y.insertBefore(x,y.firstChild);if(!!document.getElementById(w)){q.find.ID=function(C,B,A){if(typeof B.getElementById!=="undefined"&&!A){var z=B.getElementById(C[1]);return z?z.id===C[1]||typeof z.getAttributeNode!=="undefined"&&z.getAttributeNode("id").nodeValue===C[1]?[z]:ab:[]}};q.filter.ID=function(A,z){var B=typeof A.getAttributeNode!=="undefined"&&A.getAttributeNode("id");return A.nodeType===1&&B&&B.nodeValue===z}}y.removeChild(x)})();(function(){var w=document.createElement("div");w.appendChild(document.createComment(""));if(w.getElementsByTagName("*").length>0){q.find.TAG=function(z,A){var B=A.getElementsByTagName(z[1]);if(z[1]==="*"){var x=[];for(var y=0;B[y];y++){if(B[y].nodeType===1){x.push(B[y])}}B=x}return B}}w.innerHTML="<a href='#'></a>";if(w.firstChild&&typeof w.firstChild.getAttribute!=="undefined"&&w.firstChild.getAttribute("href")!=="#"){q.attrHandle.href=function(x){return x.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var x=t,w=document.createElement("div");w.innerHTML="<p class='TEST'></p>";if(w.querySelectorAll&&w.querySelectorAll(".TEST").length===0){return}t=function(B,C,z,y){C=C||document;if(!y&&C.nodeType===9&&!f(C)){try{return u(C.querySelectorAll(B),z)}catch(A){}}return x(B,C,z,y)};t.find=x.find;t.filter=x.filter;t.selectors=x.selectors;t.matches=x.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var w=document.createElement("div");w.innerHTML="<div class='test e'></div><div class='test'></div>";if(w.getElementsByClassName("e").length===0){return}w.lastChild.className="e";if(w.getElementsByClassName("e").length===1){return}q.order.splice(1,0,"CLASS");q.find.CLASS=function(z,y,x){if(typeof y.getElementsByClassName!=="undefined"&&!x){return y.getElementsByClassName(z[1])}}})()}function g(C,x,y,ai,w,aj){var ak=C=="previousSibling"&&!aj;for(var A=0,B=ai.length;A<B;A++){var D=ai[A];if(D){if(ak&&D.nodeType===1){D.sizcache=y;D.sizset=A}D=D[C];var z=false;while(D){if(D.sizcache===y){z=ai[D.sizset];break}if(D.nodeType===1&&!aj){D.sizcache=y;D.sizset=A}if(D.nodeName===x){z=D;break}D=D[C]}ai[A]=z}}}function b(C,x,y,ai,w,aj){var ak=C=="previousSibling"&&!aj;for(var A=0,B=ai.length;A<B;A++){var D=ai[A];if(D){if(ak&&D.nodeType===1){D.sizcache=y;D.sizset=A}D=D[C];var z=false;while(D){if(D.sizcache===y){z=ai[D.sizset];break}if(D.nodeType===1){if(!aj){D.sizcache=y;D.sizset=A}if(typeof x!=="string"){if(D===x){z=true;break}}else{if(t.filter(x,[D]).length>0){z=D;break}}}D=D[C]}ai[A]=z}}}var n=document.compareDocumentPosition?function(w,x){return w.compareDocumentPosition(x)&16}:function(w,x){return w!==x&&(w.contains?w.contains(x):true)};var f=function(w){return w.nodeType===9&&w.documentElement.nodeName!=="HTML"||!!w.ownerDocument&&f(w.ownerDocument)};var o=function(z,B){var w=[],D="",C,x=B.nodeType?[B]:B;while((C=q.match.PSEUDO.exec(z))){D+=C[0];z=z.replace(q.match.PSEUDO,"")}z=q.relative[z]?z+"*":z;for(var A=0,y=x.length;A<y;A++){t(z,x[A],w)}return t.filter(D,w)};T.find=t;T.filter=t.filter;T.expr=t.selectors;T.expr[":"]=T.expr.filters;t.selectors.filters.hidden=function(w){return w.offsetWidth===0||w.offsetHeight===0};t.selectors.filters.visible=function(w){return w.offsetWidth>0||w.offsetHeight>0};t.selectors.filters.animated=function(w){return T.grep(T.timers,function(x){return w===x.elem}).length};T.multiFilter=function(w,y,x){if(x){w=":not("+w+")"}return t.matches(w,y)};T.dir=function(x,y){var z=[],w=x[y];while(w&&w!=document){if(w.nodeType==1){z.push(w)}w=w[y]}return z};T.nth=function(A,z,x,w){z=z||1;var y=0;for(;A;A=A[x]){if(A.nodeType==1&&++y==z){break}}return A};T.sibling=function(w,x){var y=[];for(;w;w=w.nextSibling){if(w.nodeType==1&&w!=x){y.push(w)}}return y};return;W.Sizzle=t})();T.event={add:function(f,j,g,b){if(f.nodeType==3||f.nodeType==8){return}if(f.setInterval&&f!=W){f=W}if(!g.guid){g.guid=this.guid++}if(b!==ab){var h=g;g=this.proxy(h);g.data=b}var l=T.data(f,"events")||T.data(f,"events",{}),e=T.data(f,"handle")||T.data(f,"handle",function(){return typeof T!=="undefined"&&!T.event.triggered?T.event.handle.apply(arguments.callee.elem,arguments):ab});e.elem=f;T.each(j.split(/\s+/),function(q,o){var n=o.split(".");o=n.shift();g.type=n.slice().sort().join(".");var m=l[o];if(T.event.specialAll[o]){T.event.specialAll[o].setup.call(f,b,n)}if(!m){m=l[o]={};if(!T.event.special[o]||T.event.special[o].setup.call(f,b,n)===false){if(f.addEventListener){f.addEventListener(o,e,false)}else{if(f.attachEvent){f.attachEvent("on"+o,e)}}}}m[g.guid]=g;T.event.global[o]=true});f=null},guid:1,global:{},remove:function(e,h,f){if(e.nodeType==3||e.nodeType==8){return}var j=T.data(e,"events"),l,m;if(j){if(h===ab||(typeof h==="string"&&h.charAt(0)==".")){for(var g in j){this.remove(e,g+(h||""))}}else{if(h.type){f=h.handler;h=h.type}T.each(h.split(/\s+/),function(s,q){var n=q.split(".");q=n.shift();var r=RegExp("(^|\\.)"+n.slice().sort().join(".*\\.")+"(\\.|$)");if(j[q]){if(f){delete j[q][f.guid]}else{for(var o in j[q]){if(r.test(j[q][o].type)){delete j[q][o]}}}if(T.event.specialAll[q]){T.event.specialAll[q].teardown.call(e,n)}for(l in j[q]){break}if(!l){if(!T.event.special[q]||T.event.special[q].teardown.call(e,n)===false){if(e.removeEventListener){e.removeEventListener(q,T.data(e,"handle"),false)}else{if(e.detachEvent){e.detachEvent("on"+q,T.data(e,"handle"))}}}l=null;delete j[q]}}})}for(l in j){break}if(!l){var b=T.data(e,"handle");if(b){b.elem=null}T.removeData(e,"events");T.removeData(e,"handle")}}},trigger:function(g,e,h,m){var j=g.type||g;if(!m){g=typeof g==="object"?g[aa]?g:T.extend(T.Event(j),g):T.Event(j);if(j.indexOf("!")>=0){g.type=j=j.slice(0,-1);g.exclusive=true}if(!h){g.stopPropagation();if(this.global[j]){T.each(T.cache,function(){if(this.events&&this.events[j]){T.event.trigger(g,e,this.handle.elem)}})}}if(!h||h.nodeType==3||h.nodeType==8){return ab}g.result=ab;g.target=h;e=T.makeArray(e);e.unshift(g)}g.currentTarget=h;var f=T.data(h,"handle");if(f){f.apply(h,e)}if((!h[j]||(T.nodeName(h,"a")&&j=="click"))&&h["on"+j]&&h["on"+j].apply(h,e)===false){g.result=false}if(!m&&h[j]&&!g.isDefaultPrevented()&&!(T.nodeName(h,"a")&&j=="click")){this.triggered=true;try{h[j]()}catch(b){}}this.triggered=false;if(!g.isPropagationStopped()){var l=h.parentNode||h.ownerDocument;if(l){T.event.trigger(g,e,l,true)}}},handle:function(e){var f,m;e=arguments[0]=T.event.fix(e||W.event);e.currentTarget=this;var b=e.type.split(".");e.type=b.shift();f=!b.length&&!e.exclusive;var g=RegExp("(^|\\.)"+b.slice().sort().join(".*\\.")+"(\\.|$)");m=(T.data(this,"events")||{})[e.type];for(var j in m){var h=m[j];if(f||g.test(h.type)){e.handler=h;e.data=h.data;var l=h.apply(this,arguments);if(l!==ab){e.result=l;if(l===false){e.preventDefault();e.stopPropagation()}}if(e.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(f){if(f[aa]){return f}var h=f;f=T.Event(h);for(var g=this.props.length,b;g;){b=this.props[--g];f[b]=h[b]}if(!f.target){f.target=f.srcElement||document}if(f.target.nodeType==3){f.target=f.target.parentNode}if(!f.relatedTarget&&f.fromElement){f.relatedTarget=f.fromElement==f.target?f.toElement:f.fromElement}if(f.pageX==null&&f.clientX!=null){var e=document.documentElement,j=document.body;f.pageX=f.clientX+(e&&e.scrollLeft||j&&j.scrollLeft||0)-(e.clientLeft||0);f.pageY=f.clientY+(e&&e.scrollTop||j&&j.scrollTop||0)-(e.clientTop||0)}if(!f.which&&((f.charCode||f.charCode===0)?f.charCode:f.keyCode)){f.which=f.charCode||f.keyCode}if(!f.metaKey&&f.ctrlKey){f.metaKey=f.ctrlKey}if(!f.which&&f.button){f.which=(f.button&1?1:(f.button&2?3:(f.button&4?2:0)))}return f},proxy:function(b,e){e=e||function(){return b.apply(this,arguments)};e.guid=b.guid=b.guid||e.guid||this.guid++;return e},special:{ready:{setup:P,teardown:function(){}}},specialAll:{live:{setup:function(e,b){T.event.add(this,b[0],af)},teardown:function(b){if(b.length){var f=0,e=RegExp("(^|\\.)"+b[0]+"(\\.|$)");T.each((T.data(this,"events").live||{}),function(){if(e.test(this.type)){f++}});if(f<1){T.event.remove(this,b[0],af)}}}}}};T.Event=function(b){if(!this.preventDefault){return new T.Event(b)}if(b&&b.type){this.originalEvent=b;this.type=b.type}else{this.type=b}this.timeStamp=ad();this[aa]=true};function X(){return false}function J(){return true}T.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var b=this.originalEvent;if(!b){return}if(b.preventDefault){b.preventDefault()}b.returnValue=false},stopPropagation:function(){this.isPropagationStopped=J;var b=this.originalEvent;if(!b){return}if(b.stopPropagation){b.stopPropagation()}b.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:X,isPropagationStopped:X,isImmediatePropagationStopped:X};var ah=function(e){var f=e.relatedTarget;while(f&&f!=this){try{f=f.parentNode}catch(b){f=this}}if(f!=this){e.type=e.data;T.event.handle.apply(this,arguments)}};T.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(b,e){T.event.special[e]={setup:function(){T.event.add(this,b,ah,e)},teardown:function(){T.event.remove(this,b,ah)}}});T.fn.extend({bind:function(e,b,f){return e=="unload"?this.one(e,b,f):this.each(function(){T.event.add(this,e,f||b,f&&b)})},one:function(e,b,f){var g=T.event.proxy(f||b,function(h){T(this).unbind(h,g);return(f||b).apply(this,arguments)});return this.each(function(){T.event.add(this,e,g,f&&b)})},unbind:function(b,e){return this.each(function(){T.event.remove(this,b,e)})},trigger:function(e,b){return this.each(function(){T.event.trigger(e,b,this)})},triggerHandler:function(f,b){if(this[0]){var e=T.Event(f);e.preventDefault();e.stopPropagation();T.event.trigger(e,b,this[0]);return e.result}},toggle:function(b){var f=arguments,e=1;while(e<f.length){T.event.proxy(b,f[e++])}return this.click(T.event.proxy(b,function(g){this.lastToggle=(this.lastToggle||0)%e;g.preventDefault();return f[this.lastToggle++].apply(this,arguments)||false}))},hover:function(e,b){return this.mouseenter(e).mouseleave(b)},ready:function(b){P();if(T.isReady){b.call(document,T)}else{T.readyList.push(b)}return this},live:function(b,e){var f=T.event.proxy(e);f.guid+=this.selector+b;T(document).bind(Z(b,this.selector),this.selector,f);return this},die:function(b,e){T(document).unbind(Z(b,this.selector),e?{guid:e.guid+this.selector+b}:null);return this}});function af(b){var g=RegExp("(^|\\.)"+b.type+"(\\.|$)"),e=true,f=[];T.each(T.data(this,"events").live||[],function(l,j){if(g.test(j.type)){var h=T(b.target).closest(j.data)[0];if(h){f.push({elem:h,fn:j})}}});f.sort(function(h,j){return T.data(h.elem,"closest")-T.data(j.elem,"closest")});T.each(f,function(){if(this.fn.call(this.elem,b,this.fn.data)===false){return(e=false)}});return e}function Z(b,e){return["live",b,e.replace(/\./g,"`").replace(/ /g,"|")].join(".")}T.extend({isReady:false,readyList:[],ready:function(){if(!T.isReady){T.isReady=true;if(T.readyList){T.each(T.readyList,function(){this.call(document,T)});T.readyList=null}T(document).triggerHandler("ready")}}});var G=false;function P(){if(G){return}G=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);T.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);T.ready()}});if(document.documentElement.doScroll&&W==W.top){(function(){if(T.isReady){return}try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}T.ready()})()}}}T.event.add(W,"load",T.ready)}T.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(b,e){T.fn[e]=function(f){return f?this.bind(e,f):this.trigger(e)}});T(W).bind("unload",function(){for(var b in T.cache){if(b!=1&&T.cache[b].handle){T.event.remove(T.cache[b].handle.elem)}}});(function(){T.support={};var j=document.documentElement,h=document.createElement("script"),b=document.createElement("div"),e="script"+(new Date).getTime();b.style.display="none";b.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var g=b.getElementsByTagName("*"),l=b.getElementsByTagName("a")[0];if(!g||!g.length||!l){return}T.support={leadingWhitespace:b.firstChild.nodeType==3,tbody:!b.getElementsByTagName("tbody").length,objectAll:!!b.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(l.getAttribute("style")),hrefNormalized:l.getAttribute("href")==="/a",opacity:l.style.opacity==="0.5",cssFloat:!!l.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};h.type="text/javascript";try{h.appendChild(document.createTextNode("window."+e+"=1;"))}catch(f){}j.insertBefore(h,j.firstChild);if(W[e]){T.support.scriptEval=true;delete W[e]}j.removeChild(h);if(b.attachEvent&&b.fireEvent){b.attachEvent("onclick",function(){T.support.noCloneEvent=false;b.detachEvent("onclick",arguments.callee)});b.cloneNode(true).fireEvent("onclick")}T(function(){var m=document.createElement("div");m.style.width=m.style.paddingLeft="1px";document.body.appendChild(m);T.boxModel=T.support.boxModel=m.offsetWidth===2;document.body.removeChild(m).style.display="none"})})();var H=T.support.cssFloat?"cssFloat":"styleFloat";T.props={"for":"htmlFor","class":"className","float":H,cssFloat:H,styleFloat:H,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};T.fn.extend({_load:T.fn.load,load:function(h,e,b){if(typeof h!=="string"){return this._load(h)}var f=h.indexOf(" ");if(f>=0){var l=h.slice(f,h.length);h=h.slice(0,f)}var g="GET";if(e){if(T.isFunction(e)){b=e;e=null}else{if(typeof e==="object"){e=T.param(e);g="POST"}}}var j=this;T.ajax({url:h,type:g,dataType:"html",data:e,complete:function(n,m){if(m=="success"||m=="notmodified"){j.html(l?T("<div/>").append(n.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(l):n.responseText)}if(b){j.each(b,[n.responseText,m,n])}}});return this},serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?T.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(f,e){var b=T(this).val();return b==null?null:T.isArray(b)?T.map(b,function(g,h){return{name:e.name,value:g}}):{name:e.name,value:b}}).get()}});T.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(e,b){T.fn[b]=function(f){return this.bind(b,f)}});var N=ad();T.extend({get:function(g,e,b,f){if(T.isFunction(e)){b=e;e=null}return T.ajax({type:"GET",url:g,data:e,success:b,dataType:f})},getScript:function(e,b){return T.get(e,null,b,"script")},getJSON:function(f,e,b){return T.get(f,e,b,"json")},post:function(g,e,b,f){if(T.isFunction(e)){b=e;e={}}return T.ajax({type:"POST",url:g,data:e,success:b,dataType:f})},ajaxSetup:function(b){T.extend(T.ajaxSettings,b)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return W.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(q){q=T.extend(true,q,T.extend(true,{},T.ajaxSettings,q));var b,y=/=\?(&|$)/g,j,e,x=q.type.toUpperCase();if(q.data&&q.processData&&typeof q.data!=="string"){q.data=T.param(q.data)}if(q.dataType=="jsonp"){if(x=="GET"){if(!q.url.match(y)){q.url+=(q.url.match(/\?/)?"&":"?")+(q.jsonp||"callback")+"=?"}}else{if(!q.data||!q.data.match(y)){q.data=(q.data?q.data+"&":"")+(q.jsonp||"callback")+"=?"}}q.dataType="json"}if(q.dataType=="json"&&(q.data&&q.data.match(y)||q.url.match(y))){b="jsonp"+N++;if(q.data){q.data=(q.data+"").replace(y,"="+b+"$1")}q.url=q.url.replace(y,"="+b+"$1");q.dataType="script";W[b]=function(B){e=B;u();r();W[b]=ab;try{delete W[b]}catch(A){}if(w){w.removeChild(g)}}}if(q.dataType=="script"&&q.cache==null){q.cache=false}if(q.cache===false&&x=="GET"){var z=ad();var f=q.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+z+"$2");q.url=f+((f==q.url)?(q.url.match(/\?/)?"&":"?")+"_="+z:"")}if(q.data&&x=="GET"){q.url+=(q.url.match(/\?/)?"&":"?")+q.data;q.data=null}if(q.global&&!T.active++){T.event.trigger("ajaxStart")}var l=/^(\w+:)?\/\/([^\/?#]+)/.exec(q.url);if(q.dataType=="script"&&x=="GET"&&l&&(l[1]&&l[1]!=location.protocol||l[2]!=location.host)){var w=document.getElementsByTagName("head")[0];var g=document.createElement("script");g.src=q.url;if(q.scriptCharset){g.charset=q.scriptCharset}if(!b){var n=false;g.onload=g.onreadystatechange=function(){if(!n&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){n=true;u();r();g.onload=g.onreadystatechange=null;w.removeChild(g)}}}w.appendChild(g);return ab}var s=false;var t=q.xhr();if(q.username){t.open(x,q.url,q.async,q.username,q.password)}else{t.open(x,q.url,q.async)}try{if(q.data){t.setRequestHeader("Content-Type",q.contentType)}if(q.ifModified){t.setRequestHeader("If-Modified-Since",T.lastModified[q.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}t.setRequestHeader("X-Requested-With","XMLHttpRequest");t.setRequestHeader("Accept",q.dataType&&q.accepts[q.dataType]?q.accepts[q.dataType]+", */*":q.accepts._default)}catch(h){}if(q.beforeSend&&q.beforeSend(t,q)===false){if(q.global&&!--T.active){T.event.trigger("ajaxStop")}t.abort();return false}if(q.global){T.event.trigger("ajaxSend",[t,q])}var o=function(C){if(t.readyState==0){if(m){clearInterval(m);m=null;if(q.global&&!--T.active){T.event.trigger("ajaxStop")}}}else{if(!s&&t&&(t.readyState==4||C=="timeout")){s=true;if(m){clearInterval(m);m=null}j=C=="timeout"?"timeout":!T.httpSuccess(t)?"error":q.ifModified&&T.httpNotModified(t,q.url)?"notmodified":"success";if(j=="success"){try{e=T.httpData(t,q.dataType,q)}catch(A){j="parsererror"}}if(j=="success"){var B;try{B=t.getResponseHeader("Last-Modified")}catch(A){}if(q.ifModified&&B){T.lastModified[q.url]=B}if(!b){u()}}else{T.handleError(q,t,j)}r();if(C){t.abort()}if(q.async){t=null}}}};if(q.async){var m=setInterval(o,13);if(q.timeout>0){setTimeout(function(){if(t&&!s){o("timeout")}},q.timeout)}}try{t.send(q.data)}catch(h){T.handleError(q,t,null,h)}if(!q.async){o()}function u(){if(q.success){q.success(e,j)}if(q.global){T.event.trigger("ajaxSuccess",[t,q])}}function r(){if(q.complete){q.complete(t,j)}if(q.global){T.event.trigger("ajaxComplete",[t,q])}if(q.global&&!--T.active){T.event.trigger("ajaxStop")}}return t},handleError:function(f,b,g,e){if(f.error){f.error(b,g,e)}if(f.global){T.event.trigger("ajaxError",[b,f,e])}},active:0,httpSuccess:function(b){try{return !b.status&&location.protocol=="file:"||(b.status>=200&&b.status<300)||b.status==304||b.status==1223}catch(e){}return false},httpNotModified:function(e,g){try{var b=e.getResponseHeader("Last-Modified");return e.status==304||b==T.lastModified[g]}catch(f){}return false},httpData:function(b,f,g){var h=b.getResponseHeader("content-type"),j=f=="xml"||!f&&h&&h.indexOf("xml")>=0,e=j?b.responseXML:b.responseText;if(j&&e.documentElement.tagName=="parsererror"){throw"parsererror"}if(g&&g.dataFilter){e=g.dataFilter(e,f)}if(typeof e==="string"){if(f=="script"){T.globalEval(e)}if(f=="json"){e=W["eval"]("("+e+")")}}return e},param:function(g){var e=[];function b(j,h){e[e.length]=encodeURIComponent(j)+"="+encodeURIComponent(h)}if(T.isArray(g)||g.jquery){T.each(g,function(){b(this.name,this.value)})}else{for(var f in g){if(T.isArray(g[f])){T.each(g[f],function(){b(f,this)})}else{b(f,T.isFunction(g[f])?g[f]():g[f])}}}return e.join("&").replace(/%20/g,"+")}});var V={},U,ae=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function K(e,f){var b={};T.each(ae.concat.apply([],ae.slice(0,f)),function(){b[this]=e});return b}T.fn.extend({show:function(f,b){if(f){return this.animate(K("show",3),f,b)}else{for(var h=0,l=this.length;h<l;h++){var m=T.data(this[h],"olddisplay");this[h].style.display=m||"";if(T.css(this[h],"display")==="none"){var j=this[h].tagName,e;if(V[j]){e=V[j]}else{var g=T("<"+j+" />").appendTo("body");e=g.css("display");if(e==="none"){e="block"}g.remove();V[j]=e}T.data(this[h],"olddisplay",e)}}for(var h=0,l=this.length;h<l;h++){this[h].style.display=T.data(this[h],"olddisplay")||""}return this}},hide:function(e,b){if(e){return this.animate(K("hide",3),e,b)}else{for(var f=0,g=this.length;f<g;f++){var h=T.data(this[f],"olddisplay");if(!h&&h!=="none"){T.data(this[f],"olddisplay",T.css(this[f],"display"))}}for(var f=0,g=this.length;f<g;f++){this[f].style.display="none"}return this}},_toggle:T.fn.toggle,toggle:function(b,e){var f=typeof b==="boolean";return T.isFunction(b)&&T.isFunction(e)?this._toggle.apply(this,arguments):b==null||f?this.each(function(){var g=f?b:T(this).is(":hidden");T(this)[g?"show":"hide"]()}):this.animate(K("toggle",3),b,e)},fadeTo:function(f,b,e){return this.animate({opacity:b},f,e)},animate:function(b,g,e,f){var h=T.speed(g,e,f);return this[h.queue===false?"each":"queue"](function(){var l=T.extend({},h),n,j=this.nodeType==1&&T(this).is(":hidden"),m=this;for(n in b){if(b[n]=="hide"&&j||b[n]=="show"&&!j){return l.complete.call(this)}if((n=="height"||n=="width")&&this.style){l.display=T.css(this,"display");l.overflow=this.style.overflow}}if(l.overflow!=null){this.style.overflow="hidden"}l.curAnim=T.extend({},b);T.each(b,function(u,q){var r=new T.fx(m,l,u);if(/toggle|show|hide/.test(q)){r[q=="toggle"?j?"show":"hide":q](b)}else{var s=q.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),o=r.cur(true)||0;if(s){var w=parseFloat(s[2]),t=s[3]||"px";if(t!="px"){m.style[u]=(w||1)+t;o=((w||1)/r.cur(true))*o;m.style[u]=o+t}if(s[1]){w=((s[1]=="-="?-1:1)*w)+o}r.custom(o,w,t)}else{r.custom(o,q,"")}}});return true})},stop:function(e,f){var b=T.timers;if(e){this.queue([])}this.each(function(){for(var g=b.length-1;g>=0;g--){if(b[g].elem==this){if(f){b[g](true)}b.splice(g,1)}}});if(!f){this.dequeue()}return this}});T.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(e,b){T.fn[e]=function(g,f){return this.animate(b,g,f)}});T.extend({speed:function(e,b,f){var g=typeof e==="object"?e:{complete:f||!f&&b||T.isFunction(e)&&e,duration:e,easing:f&&b||b&&!T.isFunction(b)&&b};g.duration=T.fx.off?0:typeof g.duration==="number"?g.duration:T.fx.speeds[g.duration]||T.fx.speeds._default;g.old=g.complete;g.complete=function(){if(g.queue!==false){T(this).dequeue()}if(T.isFunction(g.old)){g.old.call(this)}};return g},easing:{linear:function(e,b,g,f){return g+f*e},swing:function(e,b,g,f){return((-Math.cos(e*Math.PI)/2)+0.5)*f+g}},timers:[],fx:function(e,f,b){this.options=f;this.elem=e;this.prop=b;if(!f.orig){f.orig={}}}});T.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(T.fx.step[this.prop]||T.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(b){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var e=parseFloat(T.css(this.elem,this.prop,b));return e&&e>-10000?e:parseFloat(T.curCSS(this.elem,this.prop))||0},custom:function(b,e,f){this.startTime=ad();this.start=b;this.end=e;this.unit=f||this.unit||"px";this.now=this.start;this.pos=this.state=0;var h=this;function g(j){return h.step(j)}g.elem=this.elem;if(g()&&T.timers.push(g)&&!U){U=setInterval(function(){var j=T.timers;for(var l=0;l<j.length;l++){if(!j[l]()){j.splice(l--,1)}}if(!j.length){clearInterval(U);U=ab}},13)}},show:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());T(this.elem).show()},hide:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(f){var g=ad();if(f||g>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var j=true;for(var h in this.options.curAnim){if(this.options.curAnim[h]!==true){j=false}}if(j){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(T.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){T(this.elem).hide()}if(this.options.hide||this.options.show){for(var e in this.options.curAnim){T.attr(this.elem.style,e,this.options.orig[e])}}this.options.complete.call(this.elem)}return false}else{var b=g-this.startTime;this.state=b/this.options.duration;this.pos=T.easing[this.options.easing||(T.easing.swing?"swing":"linear")](this.state,b,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};T.extend(T.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){T.attr(b.elem.style,"opacity",b.now)},_default:function(b){if(b.elem.style&&b.elem.style[b.prop]!=null){b.elem.style[b.prop]=b.now+b.unit}else{b.elem[b.prop]=b.now}}}});if(document.documentElement.getBoundingClientRect){T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}var j=this[0].getBoundingClientRect(),f=this[0].ownerDocument,l=f.body,m=f.documentElement,b=m.clientTop||l.clientTop||0,e=m.clientLeft||l.clientLeft||0,g=j.top+(self.pageYOffset||T.boxModel&&m.scrollTop||l.scrollTop)-b,h=j.left+(self.pageXOffset||T.boxModel&&m.scrollLeft||l.scrollLeft)-e;return{top:g,left:h}}}else{T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}T.offset.initialized||T.offset.initialize();var j=this[0],n=j.offsetParent,o=j,b=j.ownerDocument,f,m=b.documentElement,h=b.body,g=b.defaultView,q=g.getComputedStyle(j,null),e=j.offsetTop,l=j.offsetLeft;while((j=j.parentNode)&&j!==h&&j!==m){f=g.getComputedStyle(j,null);e-=j.scrollTop,l-=j.scrollLeft;if(j===n){e+=j.offsetTop,l+=j.offsetLeft;if(T.offset.doesNotAddBorder&&!(T.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(j.tagName))){e+=parseInt(f.borderTopWidth,10)||0,l+=parseInt(f.borderLeftWidth,10)||0}o=n,n=j.offsetParent}if(T.offset.subtractsBorderForOverflowNotVisible&&f.overflow!=="visible"){e+=parseInt(f.borderTopWidth,10)||0,l+=parseInt(f.borderLeftWidth,10)||0}q=f}if(q.position==="relative"||q.position==="static"){e+=h.offsetTop,l+=h.offsetLeft}if(q.position==="fixed"){e+=Math.max(m.scrollTop,h.scrollTop),l+=Math.max(m.scrollLeft,h.scrollLeft)}return{top:e,left:l}}}T.offset={initialize:function(){if(this.initialized){return}var f=document.body,n=document.createElement("div"),l,m,b,j,e,o,h=f.style.marginTop,g='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';e={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(o in e){n.style[o]=e[o]}n.innerHTML=g;f.insertBefore(n,f.firstChild);l=n.firstChild,m=l.firstChild,j=l.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(m.offsetTop!==5);this.doesAddBorderForTableAndCells=(j.offsetTop===5);l.style.overflow="hidden",l.style.position="relative";this.subtractsBorderForOverflowNotVisible=(m.offsetTop===-5);f.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(f.offsetTop===0);f.style.marginTop=h;f.removeChild(n);this.initialized=true},bodyOffset:function(f){T.offset.initialized||T.offset.initialize();var b=f.offsetTop,e=f.offsetLeft;if(T.offset.doesNotIncludeMarginInBodyOffset){b+=parseInt(T.curCSS(f,"marginTop",true),10)||0,e+=parseInt(T.curCSS(f,"marginLeft",true),10)||0}return{top:b,left:e}}};T.fn.extend({position:function(){var e=0,f=0,h;if(this[0]){var g=this.offsetParent(),b=this.offset(),j=/^body|html$/i.test(g[0].tagName)?{top:0,left:0}:g.offset();b.top-=Y(this,"marginTop");b.left-=Y(this,"marginLeft");j.top+=Y(g,"borderTopWidth");j.left+=Y(g,"borderLeftWidth");h={top:b.top-j.top,left:b.left-j.left}}return h},offsetParent:function(){var b=this[0].offsetParent||document.body;while(b&&(!/^body|html$/i.test(b.tagName)&&T.css(b,"position")=="static")){b=b.offsetParent}return T(b)}});T.each(["Left","Top"],function(e,f){var b="scroll"+f;T.fn[b]=function(g){if(!this[0]){return null}return g!==ab?this.each(function(){this==W||this==document?W.scrollTo(!e?g:T(W).scrollLeft(),e?g:T(W).scrollTop()):this[b]=g}):this[0]==W||this[0]==document?self[e?"pageYOffset":"pageXOffset"]||T.boxModel&&document.documentElement[b]||document.body[b]:this[0][b]}});T.each(["Height","Width"],function(e,g){var j=e?"Left":"Top",f=e?"Right":"Bottom",h=g.toLowerCase();T.fn["inner"+g]=function(){return this[0]?T.css(this[0],h,false,"padding"):null};T.fn["outer"+g]=function(l){return this[0]?T.css(this[0],h,false,l?"margin":"border"):null};var b=g.toLowerCase();T.fn[b]=function(l){return this[0]==W?document.compatMode=="CSS1Compat"&&document.documentElement["client"+g]||document.body["client"+g]:this[0]==document?Math.max(document.documentElement["client"+g],document.body["scroll"+g],document.documentElement["scroll"+g],document.body["offset"+g],document.documentElement["offset"+g]):l===ab?(this.length?T.css(this[0],b):null):this.css(b,typeof l==="string"?l:l+"px")}})})();function searchEscape(b){b=new String(b);outStr=" ";for(i=0;i<b.length;i++){aChar=b.substring(i,i+1);switch(aChar){case"+":outStr+="\\+";break;case"-":outStr+="\\-";break;case"&":if(b.substring(i+1,i+2)=="&"){outStr+="\\&&";i++}break;case"|":if(b.substring(i+1,i+2)=="|"){outStr+="\\||";i++}break;case"!":outStr+="\\!";break;case"(":outStr+="\\(";break;case")":outStr+="\\)";break;case"{":outStr+="\\{";break;case"}":outStr+="\\}";break;case"[":outStr+="\\[";break;case"]":outStr+="\\]";break;case"^":outStr+="\\^";break;case'"':outStr+='\\"';break;case"~":outStr+="\\~";break;case"*":outStr+="\\*";break;case"?":outStr+="\\?";break;case":":outStr+="\\:";break;case"\\":outStr+="\\\\";break;default:outStr+=aChar}}return outStr.substring(1,outStr.length)}(function(b){b.fn.extend({autocomplete:function(e,f){var g=typeof e=="string";f=b.extend({},b.Autocompleter.defaults,{url:g?e:null,data:g?null:e,delay:g?b.Autocompleter.defaults.delay:10,max:f&&!f.scroll?10:150},f);f.highlight=f.highlight||function(h){return h};f.formatMatch=f.formatMatch||f.formatItem;return this.each(function(){new b.Autocompleter(this,f)})},result:function(e){return this.bind("result",e)},search:function(e){return this.trigger("search",[e])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(e){return this.trigger("setOptions",[e])},unautocomplete:function(){return this.trigger("unautocomplete")}});b.Autocompleter=function(s,m){var f={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var e=b(s).attr("autocomplete","off").addClass(m.inputClass);var q;var x="";var t=b.Autocompleter.Cache(m);var j=0;var C;var F={mouseDownOnSelect:false};var z=b.Autocompleter.Select(m,s,h,F);var E;b.browser.opera&&b(s.form).bind("submit.autocomplete",function(){if(E){E=false;return false}});e.bind((b.browser.opera?"keypress":"keydown")+".autocomplete",function(G){j=1;C=G.keyCode;switch(G.keyCode){case f.UP:G.preventDefault();if(z.visible()){z.prev()}else{B(0,true)}break;case f.DOWN:G.preventDefault();if(z.visible()){z.next()}else{B(0,true)}break;case f.PAGEUP:G.preventDefault();if(z.visible()){z.pageUp()}else{B(0,true)}break;case f.PAGEDOWN:G.preventDefault();if(z.visible()){z.pageDown()}else{B(0,true)}break;case m.multiple&&b.trim(m.multipleSeparator)==","&&f.COMMA:case f.RETURN:if(h()){G.preventDefault();E=true;return false}break;case f.ESC:z.hide();break;default:clearTimeout(q);q=setTimeout(B,m.delay);break}}).focus(function(){j++}).blur(function(){j=0;if(!F.mouseDownOnSelect){A()}}).click(function(){if(j++>1&&!z.visible()){B(0,true)}}).bind("search",function(){var G=(arguments.length>1)?arguments[1]:null;function H(L,K){var I;if(K&&K.length){for(var J=0;J<K.length;J++){if(K[J].result.toLowerCase()==L.toLowerCase()){I=K[J];break}}}if(typeof G=="function"){G(I)}else{e.trigger("result",I&&[I.data,I.value])}}b.each(n(e.val()),function(I,J){l(J,H,H)})}).bind("flushCache",function(){t.flush()}).bind("setOptions",function(){b.extend(m,arguments[1]);if("data" in arguments[1]){t.populate()}}).bind("unautocomplete",function(){z.unbind();e.unbind();b(s.form).unbind(".autocomplete")});b(window).resize(function(){g()});function h(){var J=z.selected();if(!J){return false}var G=J.result;x=G;if(m.multiple){var M=n(e.val());if(M.length>1){var I=m.multipleSeparator.length;var L=b(s).selection().start;var K,H=0;b.each(M,function(N,O){H+=O.length;if(L<=H){K=N;return false}H+=I});M[K]=G;G=M.join(m.multipleSeparator)}G+=m.multipleSeparator}e.val(G);D();e.trigger("result",[J.data,J.value]);return true}function B(I,H){if(C==f.DEL){z.hide();return}var G=e.val();if(!H&&G==x){return}x=G;G=o(G);if(G.length>=m.minChars){e.addClass(m.loadingClass);if(!m.matchCase){G=G.toLowerCase()}l(G,r,D)}else{u();z.hide()}}function n(G){if(!G){return[""]}if(!m.multiple){return[b.trim(G)]}return b.map(G.split(m.multipleSeparator),function(H){return b.trim(G).length?b.trim(H):null})}function o(G){if(!m.multiple){return G}var I=n(G);if(I.length==1){return I[0]}var H=b(s).selection().start;if(H==G.length){I=n(G)}else{I=n(G.replace(G.substring(H),""))}return I[I.length-1]}function y(G,H){if(m.autoFill&&(o(e.val()).toLowerCase()==G.toLowerCase())&&C!=f.BACKSPACE){e.val(e.val()+H.substring(o(x).length));b(s).selection(x.length,x.length+H.length)}}function A(){clearTimeout(q);q=setTimeout(D,200)}function D(){var G=z.visible();z.hide();clearTimeout(q);u();if(m.mustMatch){e.search(function(H){if(!H){if(m.multiple){var I=n(e.val()).slice(0,-1);e.val(I.join(m.multipleSeparator)+(I.length?m.multipleSeparator:""))}else{e.val("");e.trigger("result",null)}}})}}function g(){z.positionResults()}function r(H,G){if(G&&G.length&&j){u();z.display(G,H);y(H,G[0].value);z.show()}else{D()}}function l(H,J,G){if(!m.matchCase){H=H.toLowerCase()}var I=t.load(H);if(I&&I.length){J(H,I)}else{if((typeof m.url=="string")&&(m.url.length>0)){var K={timestamp:+new Date()};b.each(m.extraParams,function(L,M){K[L]=typeof M=="function"?M():M});b.ajax({mode:"abort",port:"autocomplete"+s.name,dataType:m.dataType,url:m.url,data:b.extend({q:searchEscape(o(H)),limit:m.max},K),success:function(M){var L=m.parse&&m.parse(M)||w(M);t.add(H,L);J(H,L)}})}else{z.emptyList();G(H)}}}function w(J){var G=[];var I=J.split("\n");for(var H=0;H<I.length;H++){var K=b.trim(I[H]);if(K){K=K.split("|");G[G.length]={data:K,value:K[0],result:m.formatResult&&m.formatResult(K,K[0])||K[0]}}}return G}function u(){e.removeClass(m.loadingClass)}};b.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(e){return e[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(f,e){return f.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+e.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:true,scrollHeight:300};b.Autocompleter.Cache=function(f){var j={};var g=0;function m(q,o){if(!f.matchCase){q=q.toLowerCase()}var n=q.indexOf(o);if(f.matchContains=="word"){n=q.toLowerCase().search("\\b"+o.toLowerCase())}if(n==-1){return false}return n==0||f.matchContains}function l(o,n){if(g>f.cacheLength){e()}if(!j[o]){g++}j[o]=n}function h(){if(!f.data){return false}var o={},n=0;if(!f.url){f.cacheLength=1}o[""]=[];for(var r=0,q=f.data.length;r<q;r++){var u=f.data[r];u=(typeof u=="string")?[u]:u;var t=f.formatMatch(u,r+1,f.data.length);if(t===false){continue}var s=t.charAt(0).toLowerCase();if(!o[s]){o[s]=[]}var w={value:t,data:u,result:f.formatResult&&f.formatResult(u)||t};o[s].push(w);if(n++<f.max){o[""].push(w)}}b.each(o,function(x,y){f.cacheLength++;l(x,y)})}setTimeout(h,25);function e(){j={};g=0}return{flush:e,add:l,populate:h,load:function(s){if(!f.cacheLength||!g){return null}if(!f.url&&f.matchContains){var r=[];for(var n in j){if(n.length>0){var t=j[n];b.each(t,function(u,q){if(m(q.value,s)){r.push(q)}})}}return r}else{if(j[s]){return j[s]}else{if(f.matchSubset){for(var o=s.length-1;o>=f.minChars;o--){var t=j[s.substr(0,o)];if(t){var r=[];b.each(t,function(u,q){if(m(q.value,s)){r[r.length]=q}});return r}}}}}return null}}};b.Autocompleter.Select=function(h,o,r,w){var n={ACTIVE:"ac_over"};var q,j=-1,y,s="",z=true,f,u;function t(){if(!z){return}f=b("<div/>").hide().addClass(h.resultsClass).css("position","absolute").appendTo(document.body);u=b("<ul/>").appendTo(f).mouseover(function(A){if(x(A).nodeName&&x(A).nodeName.toUpperCase()=="LI"){j=b("li",u).removeClass(n.ACTIVE).index(x(A));b(x(A)).addClass(n.ACTIVE)}}).click(function(A){b(x(A)).addClass(n.ACTIVE);r();o.focus();return false}).mousedown(function(){w.mouseDownOnSelect=true}).mouseup(function(){w.mouseDownOnSelect=false});if(h.width>0){f.css("width",h.width)}z=false}function x(B){var A=B.target;while(A&&A.tagName!="LI"){A=A.parentNode}if(!A){return[]}return A}function m(A){q.slice(j,j+1).removeClass(n.ACTIVE);l(A);var C=q.slice(j,j+1).addClass(n.ACTIVE);if(h.scroll){var B=0;q.slice(0,j).each(function(){B+=this.offsetHeight});if((B+C[0].offsetHeight-u.scrollTop())>u[0].clientHeight){u.scrollTop(B+C[0].offsetHeight-u.innerHeight())}else{if(B<u.scrollTop()){u.scrollTop(B)}}}}function l(A){j+=A;if(j<0){j=q.size()-1}else{if(j>=q.size()){j=0}}}function e(A){return h.max&&h.max<A?h.max:A}function g(){u.empty();var B=e(y.length);for(var C=0;C<B;C++){if(!y[C]){continue}var D=h.formatItem(y[C].data,C+1,B,y[C].value,s);if(D===false){continue}var A=b("<li/>").html(h.highlight(D,s)).addClass(C%2==0?"ac_even":"ac_odd").appendTo(u)[0];b.data(A,"ac_data",y[C])}q=u.find("li");if(h.selectFirst){q.slice(0,1).addClass(n.ACTIVE);j=0}if(b.fn.bgiframe){u.bgiframe()}}return{display:function(B,A){t();y=B;s=A;g()},next:function(){m(1)},prev:function(){m(-1)},pageUp:function(){if(j!=0&&j-8<0){m(-j)}else{m(-8)}},pageDown:function(){if(j!=q.size()-1&&j+8>q.size()){m(q.size()-1-j)}else{m(8)}},hide:function(){f&&f.hide();q&&q.removeClass(n.ACTIVE);j=-1},visible:function(){return f&&f.is(":visible")},current:function(){return this.visible()&&(q.filter("."+n.ACTIVE)[0]||h.selectFirst&&q[0])},positionResults:function(){if(f){var C=b(o).offset();f.css({width:typeof h.width=="string"||h.width>0?h.width:b(o).width(),top:C.top+o.offsetHeight,left:C.left-6});if(h.scroll){u.scrollTop(0);u.css({maxHeight:h.scrollHeight,overflow:"auto"});if(b.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var A=0;q.each(function(){A+=this.offsetHeight});var B=A>h.scrollHeight;u.css("height",B?h.scrollHeight:A);if(!B){q.width(u.width()-parseInt(q.css("padding-left"))-parseInt(q.css("padding-right")))}}}}},show:function(){var C=b(o).offset();f.css({width:typeof h.width=="string"||h.width>0?h.width:b(o).width(),top:C.top+o.offsetHeight,left:C.left-6}).show();if(h.scroll){u.scrollTop(0);u.css({maxHeight:h.scrollHeight,overflow:"auto"});if(b.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var A=0;q.each(function(){A+=this.offsetHeight});var B=A>h.scrollHeight;u.css("height",B?h.scrollHeight:A);if(!B){q.width(u.width()-parseInt(q.css("padding-left"))-parseInt(q.css("padding-right")))}}}},selected:function(){var A=q&&q.filter("."+n.ACTIVE).removeClass(n.ACTIVE);return A&&A.length&&b.data(A[0],"ac_data")},emptyList:function(){u&&u.empty()},unbind:function(){f&&f.remove()}}};b.fn.selection=function(n,e){if(n!==undefined){return this.each(function(){if(this.createTextRange){var o=this.createTextRange();if(e===undefined||n==e){o.move("character",n);o.select()}else{o.collapse(true);o.moveStart("character",n);o.moveEnd("character",e);o.select()}}else{if(this.setSelectionRange){this.setSelectionRange(n,e)}else{if(this.selectionStart){this.selectionStart=n;this.selectionEnd=e}}}})}var l=this[0];if(l.createTextRange){var f=document.selection.createRange(),m=l.value,j="<->",g=f.text.length;f.text=j;var h=l.value.indexOf(j);l.value=m;this.selection(h,h+g);return{start:h,end:h+g}}else{if(l.selectionStart!==undefined){return{start:l.selectionStart,end:l.selectionEnd}}}}})(jQuery);if(typeof IGN==="undefined"||!IGN){var IGN={}}$j=jQuery;IGN.GlobalNav=function(){var f=300;var g="";var e=function(h){var h=$j(h);h.removeClass("selected");h.find(".left-corner").removeClass("left-corner-selected");h.find(".right-corner").removeClass("right-corner-selected");h.find(".dark").removeClass("no-bg");h.find(".light").removeClass("no-bg");h.find(".curve").removeClass("curve-selected")};var b=function(h){var h=$j(h);h.addClass("selected");h.find(".dark").addClass("no-bg");h.find(".light").addClass("no-bg");h.find(".left-corner").addClass("left-corner-selected");h.find(".right-corner").addClass("right-corner-selected");h.find(".curve").addClass("curve-selected");h.find(".sub-bullets ul li:first").css("list-style-type","none");h.find(".sub-bullets ul li:last").css("list-style-type","none");h.find(".sub-bullets ul li.all").css("margin-top","5px")};return{init:function(){$j(".nav-item.sub-nav.hub-nav").hover(function(){clearTimeout(g);$j("#nav-global > .sub-nav").each(function(){if($j(this).hasClass("selected")){e(this)}});b(this)},function(){var h=this;g=setTimeout(function(){e(h)},f)})}}}();IGN.Search=function(){var f="selected",j="http://search.ign.com/web?query=",g="http://search.ign.com/product?query=";var l=$j,h;var b=function(n){n.preventDefault();h=$j(h);var m,o="",m=$j("#search-global").val();selectedValue=$j("#search-domain").val();if(m===""){alert("Please type in your search query.");return false}if(selectedValue==="web"){o=j+urlEncode(m)}else{if(selectedValue==="ign"){o=g+urlEncode(m)}else{o=g+urlEncode(m)}}if(o!==""){document.location=o}};var e=function(m){};return{init:function(m){h=m;l("#"+m).submit(b);l("#search-type").click(function(q){var n=l(q.target);if(n.hasClass("label")){n=n.parent();if(n.hasClass(f)){n.removeClass(f)}else{n.addClass(f)}}else{if(n.hasClass("input")){var o=n.parent().parent();selectedLabel=n.html().replace(/^\s+|\s+$/g,"");$j(".label",o).html(selectedLabel);selectedLabel=selectedLabel.toLowerCase();$j("#search-domain").val(selectedLabel);o.removeClass("selected")}}})}}}();IGN.LoginBox=function(){var e="selected";var g="http://media.ignimgs.com/boards/img/default/icon_default_80.jpg";var b=function(){var l=getUserName();f(l);$j("#username").text(l);$j("#lnk-logout").attr("href","http://my.ign.com/my/sb?paction=logout&network=1&cb="+random);$j("#masthead-logout").hide();$j("#masthead-login").show();$j("#account-tools-prof").attr("href","http://club.ign.com/b/about?username-"+l);$j("#account-tools-alerts").attr("href","http://club.ign.com/b/list/custom?owner="+l+"&mode=edit&lid=100063");$j("#account-tools-wish").attr("href","http://club.ign.com/b/list/custom?owner="+l+"&mode=edit&lid=0");$j("#account-tools-coll").attr("href","http://club.ign.com/b/list/custom?owner="+l+"&mode=edit&lid=1");$j("#account-tools-blog").attr("href","http://blogs.ign.com/"+l+"/");$j.getScript('http://boards.ign.com/PrivateMessages/NewPMCount.aspx?caption=New&zero=false&rand=0">',function(){if($j("#newPmCountLayer").text()!=""){$j("#boards-pm").show()}})};var j=function(){var l=""+window.location;$j("#lnk-logout-avatar").attr("href","http://my.ign.com/my/sb?paction=relogin&params="+urlEncode("#action#protect#location#"+urlEncode(l)));$j("#lnk-login").attr("href","http://my.ign.com/my/sb?paction=relogin&params="+urlEncode("#action#protect#location#"+urlEncode(l)));$j("#lnk-reg").attr("href","http://my.ign.com/my/sb?regAction=reg&params="+urlEncode("#action#protect#location#"+urlEncode(l)));$j("#masthead-login").hide();$j("#masthead-logout").show()};var f=function(m){if(m){var l="http://boards.ign.com/ServicesV31/UserServices.asmx/JSON_GetUserIcon?username="+m;$j.getJSON(l+"&callback=?",function(n){if(typeof(n)!="undefined"){$j("#user-avatar").attr("src",n)}})}};var h=function(){if(checkRegistration()){b()}else{j()}};return{init:function(l){$j(".container-sub-nav",$j("#"+l)).hover(function(m){$j(this).addClass(e)},function(m){$j(this).removeClass(e)});h()}}}();$j(document).ready(function(){IGN.LoginBox.init("masthead-login");IGN.GlobalNav.init();IGN.Search.init("masthead-search")});function htmlDecode(b){var f=document.createElement("div");f.innerHTML=b;return f.childNodes[0].nodeValue}function getAutocompleteText(b){switch(b){case"Xbox 360":return"X360";break;case"PlayStation 3":return"PS3";break;case"Nintendo Wii":return"Wii";break;case"PlayStation Portable":return"PSP";break;case"Nintendo DS":return"DS";break;case"Nintendo 64":return"N64";break;case"PlayStation 2":return"PS2";break;case"TVSeries":return"TV Series";break;case"TVSeason":return"TV Season";break;case"TVEpisode":return"TV Episode";break;case"Nintendo DS":return"DS";break;case"StarCharacter":return"Star Character";break;case"umd":return"UMD";break;case"":return" ";break;default:return b}}jQuery(document).ready(function(){jQuery("#search-global").autocomplete("http://search-api.ign.com/solr/ign.media.object/select/?wt=json&json.wrf=?",{dataType:"jsonp",selectFirst:false,width:255,scrollHeight:500,extraParams:{rows:5,df:"title"},minChars:1,parse:function(e){var b=jQuery.map(e.response.docs,function(f){var h;if(typeof f.platformName!="undefined"){h=getAutocompleteText(f.platformName[0])}else{h=" "}var j;if(typeof f.objectType!="undefined"){j=getAutocompleteText(f.objectType[0])}else{j=" "}var l;if(typeof f.url!="undefined"){if(f.url[0]!=""){var l=f.url[0]}else{l=" "}}else{l=" "}var g={title:htmlDecode(f.title[0]),platform:h,object:j,url:l};return{data:g,value:"yo",result:f.title[0]}});return b},formatItem:function(b,e){b.item="search_autocomplete_0"+e;+"_lnk";if(b.object=="Game"){return"<div class='ac_itemTitle'>"+b.title+"</div><div class='ac_itemInfo'>"+b.platform+"</div>"}else{if(b.object=="DVD"||b.object=="TV"||b.object=="Comics"||b.object=="Stars"){return"<div class='ac_itemTitle'>"+b.title+"</div><div class='ac_itemInfo'>"+b.platform+"</div>"}else{return"<div class='ac_itemTitle'>"+b.title+"</div><div class='ac_itemInfo'>"+b.object+" "+b.platform+"</div>"}}}}).result(function(b,e){IGN.omni.omniTrackLink("header_autocomplete",e.item);location.href=e.url})});
