if(typeof GAMES=="undefined"){var GAMES={};}if(typeof GAMES.widget=="undefined"){GAMES.widget={};}if(typeof GAMES.widget.customCatSorted=="undefined"){GAMES.widget.customCatSorted={};}GAMES.widget.customCatSorted.ajaxReq=function(gridURL){try{var now=new Date();gridURL+="&n="+now.getTime();reqURL=serverPath+"platform-widgets/gamelistwidget/customCatSorted"+gridURL;var handleSuccess=function(o){if(o.responseText!==undefined){var fadeIn=new YAHOO.util.Anim("results4majax",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();document.getElementById("results4majax").innerHTML=o.responseText;}window.scrollTo(180,180);};var callback={success:handleSuccess};var request=YAHOO.util.Connect.asyncRequest("GET",reqURL,callback);}catch(e){}};GAMES.widget.customCatSorted.sortByMode=function(sortByURL){try{var sSortMode=document.getElementById("sortby").value;if(sSortMode=="releaseDate"){sortByURL+="&sortByMode=releaseDate&orderByClause=-1";}else{if(sSortMode=="name"){sortByURL+="&sortByMode=name&orderByClause=1";}else{if(sSortMode=="avgRating"){sortByURL+="&sortByMode=avgRating&orderByClause=-1";}else{sortByURL+="&sortByMode=popularity&orderByClause=1";}}}GAMES.widget.customCatSorted.ajaxReq(sortByURL);}catch(e){}};GAMES.widget.customCatSorted.onlineGameLink=function(onlineGameUrl){try{var webWindow=window.open(onlineGameUrl,"onlinePlayPage","status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=1,scrollbars=1,width=1010,height=700");webWindow.focus();}catch(e){}};if(typeof GAMES=="undefined"){var GAMES={};}if(typeof GAMES.widget=="undefined"){GAMES.widget={};}if(typeof GAMES.widget.customListPageable=="undefined"){GAMES.widget.customListPageable={};}GAMES.widget.customListPageable.ajaxReq=function(gridURL){try{var now=new Date();gridURL+="&n="+now.getTime();reqURL=serverPath+"platform-widgets/gamelistwidget/customListPageable"+gridURL;var handleSuccess=function(o){if(o.responseText!==undefined){var fadeIn=new YAHOO.util.Anim("results4majax",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();document.getElementById("results4majax").innerHTML=o.responseText;}window.scrollTo(180,180);};var callback={success:handleSuccess};var request=YAHOO.util.Connect.asyncRequest("GET",reqURL,callback);}catch(e){}};GAMES.widget.customListPageable.sortByMode=function(sortByURL){try{var sSortMode=document.getElementById("sortby").value;if(sSortMode=="releaseDate"){sortByURL+="&sortByMode=releaseDate&orderByClause=-1";}else{if(sSortMode=="name"){sortByURL+="&sortByMode=name&orderByClause=1";}else{if(sSortMode=="avgRating"){sortByURL+="&sortByMode=avgRating&orderByClause=-1";}else{sortByURL+="&sortByMode=popularity&orderByClause=1";}}}GAMES.widget.customListPageable.ajaxReq(sortByURL);}catch(e){}};GAMES.widget.customListPageable.onlineGameLink=function(onlineGameUrl){try{var webWindow=window.open(onlineGameUrl,"onlinePlayPage","status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=1,scrollbars=1,width=1010,height=700");webWindow.focus();}catch(e){}};if("undefined"==typeof GAMES){var GAMES={};}if(!GAMES.widget){GAMES.widget={};}if(!GAMES.widget.customSorted){GAMES.widget.customSorted={};}GAMES.widget.customSorted.ajaxReq=function(gridURL,sortMode,path){try{var now=new Date();gridURL+="&n="+now.getTime()+"&ajax=true";if(sortMode=="1"){reqURL=path+"gamelistwidget/customSorted"+gridURL;}else{reqURL=path+"gamelistwidget/genericSorted"+gridURL;}var handleSuccess=function(o){if(o.responseText!==undefined){var fadeIn=new YAHOO.util.Anim("results4majax",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();document.getElementById("results4majax").innerHTML=o.responseText;}window.scrollTo(180,180);};var callback={success:handleSuccess};var request=YAHOO.util.Connect.asyncRequest("GET",reqURL,callback);}catch(e){}};GAMES.widget.customSorted.sortByMode=function(path){try{var sSortMode="0";var sortByURL="";for(var i=0;i<document.sortform.pc_web_mac.length;i++){if(document.sortform.pc_web_mac[i].checked){sSortMode=document.sortform.pc_web_mac[i].value;}}if(sSortMode=="1"){sortByURL+="?listName=games.macAllGames.gh&isMac=true&gameType=download&sortByMode=${param.sortByMode}&orderByClause=${param.orderByClause}&listBegin=0&listEnd=99&chunkSize=100&sortOption=1";}else{if(sSortMode=="2"){sortByURL+="?listName=games.webAllGames.gh&gameType=web&sortByMode=${param.sortByMode}&orderByClause=${param.orderByClause}&listBegin=0&listEnd=99&chunkSize=100&sortOption=2";}else{sortByURL+="?listName=games.pcAllGames.gh&gameType=download&sortByMode=${param.sortByMode}&orderByClause=${param.orderByClause}&listBegin=0&listEnd=99&chunkSize=100&sortOption=0";}}GAMES.widget.customSorted.ajaxReq(sortByURL,sSortMode,path);}catch(e){}};GAMES.widget.customSorted.SsnLink=function(ssnEndUrl){try{popUpOnlineGame(ssnEndUrl,"onlinePlayPage");}catch(e){}};if("undefined"==typeof GAMES){var GAMES={};}if(!GAMES.widget){GAMES.widget={};}if(!GAMES.widget.freeGames){GAMES.widget.freeGames={};}GAMES.widget.freeGames.ajaxReq=function(gridURL,path){try{var now=new Date();gridURL+="&n="+now.getTime()+"&ajax=true";reqURL=path+"/platform-widgets/gamelistwidget/freeGames"+gridURL;var handleSuccess=function(o){if(o.responseText!==undefined){var fadeIn=new YAHOO.util.Anim("results4majax",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();document.getElementById("results4majax").innerHTML=o.responseText;}window.scrollTo(180,180);};var callback={success:handleSuccess};var request=YAHOO.util.Connect.asyncRequest("GET",reqURL,callback);}catch(e){}};GAMES.widget.freeGames.sortByMode=function(el,sortByURL,path){try{var sSortMode=el.value;if(sSortMode=="releaseDate"){sortByURL+="&sortByMode=releaseDate&orderByClause=-1";}else{if(sSortMode=="name"){sortByURL+="&sortByMode=name&orderByClause=1";}else{if(sSortMode=="avgRating"){sortByURL+="&sortByMode=avgRating&orderByClause=-1";}else{sortByURL+="&sortByMode=popularity";}}}GAMES.widget.freeGames.ajaxReq(sortByURL,path);}catch(e){}};if(typeof GAMES=="undefined"){var GAMES={};}if(typeof GAMES.widget=="undefined"){GAMES.widget={};}if(typeof GAMES.widget.gamesByKeywordPageable=="undefined"){GAMES.widget.gamesByKeywordPageable={};}GAMES.widget.gamesByKeywordPageable.ajaxReq=function(gridURL){try{var now=new Date();gridURL+="&n="+now.getTime();reqURL=serverPath+"platform-widgets/gamelistwidget/gamesByKeywordPageable"+gridURL;var handleSuccess=function(o){if(o.responseText!==undefined){var fadeIn=new YAHOO.util.Anim("results4majax",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();document.getElementById("results4majax").innerHTML=o.responseText;}window.scrollTo(180,180);};var callback={success:handleSuccess};var request=YAHOO.util.Connect.asyncRequest("GET",reqURL,callback);}catch(e){}};GAMES.widget.gamesByKeywordPageable.sortByMode=function(sortByURL){try{var sSortMode=document.getElementById("sortby").value;if(sSortMode=="releaseDate"){sortByURL+="&sortByMode=releaseDate&orderByClause=-1";}else{if(sSortMode=="name"){sortByURL+="&sortByMode=name&orderByClause=1";}else{if(sSortMode=="avgRating"){sortByURL+="&sortByMode=avgRating&orderByClause=-1";}else{sortByURL+="&sortByMode=popularity&orderByClause=1";}}}GAMES.widget.gamesByKeywordPageable.ajaxReq(sortByURL);}catch(e){}};if(typeof GAMES=="undefined"){var GAMES={};}if(typeof GAMES.widget=="undefined"){GAMES.widget={};}if(typeof GAMES.widget.genericCatPageable=="undefined"){GAMES.widget.genericCatPageable={};}GAMES.widget.genericCatPageable.ajaxReq=function(gridURL){try{var now=new Date();gridURL+="&n="+now.getTime();reqURL=serverPath+"platform-widgets/gamelistwidget/genericCatPageable"+gridURL;var handleSuccess=function(o){if(o.responseText!==undefined){var fadeIn=new YAHOO.util.Anim("results4majax",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();document.getElementById("results4majax").innerHTML=o.responseText;}window.scrollTo(180,180);};var callback={success:handleSuccess};var request=YAHOO.util.Connect.asyncRequest("GET",reqURL,callback);}catch(e){}};GAMES.widget.genericCatPageable.sortByMode=function(sortByURL){try{var sSortMode=document.getElementById("sortby").value;if(sSortMode=="releaseDate"){sortByURL+="&sortByMode=releaseDate&orderByClause=-1";}else{if(sSortMode=="name"){sortByURL+="&sortByMode=name&orderByClause=1";}else{if(sSortMode=="avgRating"){sortByURL+="&sortByMode=avgRating&orderByClause=-1";}else{sortByURL+="&sortByMode=popularity&orderByClause=1";}}}GAMES.widget.genericCatPageable.ajaxReq(sortByURL);}catch(e){}};GAMES.widget.genericCatPageable.onlineGameLink=function(onlineGameUrl){try{var webWindow=window.open(onlineGameUrl,"onlinePlayPage","status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=1,scrollbars=1,width=1010,height=700");webWindow.focus();}catch(e){}};if(typeof GAMES=="undefined"){var GAMES={};}if(typeof GAMES.widget=="undefined"){GAMES.widget={};}if(typeof GAMES.widget.genericDevPageable=="undefined"){GAMES.widget.genericDevPageable={};}GAMES.widget.genericDevPageable.ajaxReq=function(gridURL){try{var now=new Date();gridURL+="&n="+now.getTime();reqURL=serverPath+"platform-widgets/devgamelistwidget/genericDevPageable"+gridURL;var handleSuccess=function(o){if(o.responseText!==undefined){var fadeIn=new YAHOO.util.Anim("results4majax",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();document.getElementById("results4majax").innerHTML=o.responseText;}window.scrollTo(180,180);};var callback={success:handleSuccess};var request=YAHOO.util.Connect.asyncRequest("GET",reqURL,callback);}catch(e){}};GAMES.widget.genericDevPageable.sortByMode=function(sortByURL){try{var sSortMode=document.getElementById("sortby").value;if(sSortMode=="releaseDate"){sortByURL+="&sortByMode=releaseDate&orderByClause=-1";}else{if(sSortMode=="name"){sortByURL+="&sortByMode=name&orderByClause=1";}else{if(sSortMode=="avgRating"){sortByURL+="&sortByMode=avgRating&orderByClause=-1";}else{sortByURL+="&sortByMode=popularity&orderByClause=1";}}}GAMES.widget.genericDevPageable.ajaxReq(sortByURL);}catch(e){}};GAMES.widget.genericDevPageable.onlineGameLink=function(onlineGameUrl){try{var webWindow=window.open(onlineGameUrl,"onlinePlayPage","status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=1,scrollbars=1,width=1010,height=700");webWindow.focus();}catch(e){}};if(typeof GAMES=="undefined"){var GAMES={};}if(typeof GAMES.widget=="undefined"){GAMES.widget={};}if(typeof GAMES.widget.genericListPageable=="undefined"){GAMES.widget.genericListPageable={};}GAMES.widget.genericListPageable.ajaxReq=function(gridURL){try{var now=new Date();gridURL+="&n="+now.getTime();reqURL=serverPath+"platform-widgets/gamelistwidget/genericListPageable"+gridURL;var handleSuccess=function(o){if(o.responseText!==undefined){var fadeIn=new YAHOO.util.Anim("results4majax",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();document.getElementById("results4majax").innerHTML=o.responseText;}window.scrollTo(180,180);};var callback={success:handleSuccess};var request=YAHOO.util.Connect.asyncRequest("GET",reqURL,callback);}catch(e){}};GAMES.widget.genericListPageable.sortByMode=function(sortByURL){try{var sSortMode=document.getElementById("sortby").value;if(sSortMode=="releaseDate"){sortByURL+="&sortByMode=releaseDate&orderByClause=-1";}else{if(sSortMode=="name"){sortByURL+="&sortByMode=name&orderByClause=1";}else{if(sSortMode=="avgRating"){sortByURL+="&sortByMode=avgRating&orderByClause=-1";}else{sortByURL+="&sortByMode=popularity&orderByClause=1";}}}GAMES.widget.genericListPageable.ajaxReq(sortByURL);}catch(e){}};GAMES.widget.genericListPageable.onlineGameLink=function(onlineGameUrl){try{var webWindow=window.open(onlineGameUrl,"onlinePlayPage","status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=1,scrollbars=1,width=1010,height=700");webWindow.focus();}catch(e){}};if("undefined"==typeof GAMES){var GAMES={};}if(!GAMES.widget){GAMES.widget={};}if(!GAMES.widget.genericSorted){GAMES.widget.genericSorted={};}GAMES.widget.genericSorted.ajaxReq=function(gridURL,sortMode,path){try{var now=new Date();gridURL+="&n="+now.getTime()+"&ajax=true";if(sortMode=="1"){reqURL=path+"gamelistwidget/customSorted"+gridURL;}else{reqURL=path+"gamelistwidget/genericSorted"+gridURL;}var handleSuccess=function(o){if(o.responseText!==undefined){var fadeIn=new YAHOO.util.Anim("results4majax",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();document.getElementById("results4majax").innerHTML=o.responseText;}window.scrollTo(180,180);};var callback={success:handleSuccess};var request=YAHOO.util.Connect.asyncRequest("GET",reqURL,callback);}catch(e){}};GAMES.widget.genericSorted.sortByMode=function(sortBy,orderBy,path){try{var sSortMode="0";var sortByURL="";for(var i=0;i<document.sortform.pc_web_mac.length;i++){if(document.sortform.pc_web_mac[i].checked){sSortMode=document.sortform.pc_web_mac[i].value;}}if(sSortMode=="1"){sortByURL+="?listName=games.macAllGames.gh&isMac=true&gameType=download&sortByMode="+sortBy+"&orderByClause="+orderBy+"&listBegin=0&listEnd=99&chunkSize=100&sortOption=1";}else{if(sSortMode=="2"){sortByURL+="?listName=games.webAllGames.gh&gameType=web&sortByMode="+sortBy+"&orderByClause="+orderBy+"&listBegin=0&listEnd=99&chunkSize=100&sortOption=2";}else{sortByURL+="?listName=games.pcAllGames.gh&gameType=download&sortByMode="+sortBy+"&orderByClause="+orderBy+"&listBegin=0&listEnd=99&chunkSize=100&sortOption=0";}}GAMES.widget.genericSorted.ajaxReq(sortByURL,sSortMode,path);}catch(e){}};GAMES.widget.genericSorted.SsnLink=function(ssnEndUrl){try{GAMES.popUpOnlineGame(ssnEndUrl,"onlinePlayPage");}catch(e){}};if("undefined"==typeof GAMES){var GAMES={};}if(!GAMES.widget){GAMES.widget={};}if(!GAMES.widget.largeGenericCat){GAMES.widget.largeGenericCat={};}GAMES.widget.largeGenericCat.showMacGames=function(elem){try{var container=YAHOO.util.Dom.getAncestorByClassName(elem,"nb-box_6");var fadeIn=new YAHOO.util.Anim("ghLargeGameListCat-Widget.content",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();var rows=YAHOO.util.Dom.getElementsByClassName("nb-row");var rowType=1;for(var i=0;i<rows.length;i++){var node=rows[i];var arrEls=YAHOO.util.Dom.getElementsBy(function(el){return el.name=="downloadMac";},"form",node);if(arrEls.length>0){node.style.display="block";}else{node.style.display="none";}if(node.style.display!="none"){if(rowType%2==0){YAHOO.util.Dom.getFirstChild(node).className="role-even x-clearfix";}else{YAHOO.util.Dom.getFirstChild(node).className="role-odd x-clearfix";}rowType++;}}}catch(e){}};GAMES.widget.largeGenericCat.showOnlineGames=function(elem){try{var container=YAHOO.util.Dom.getAncestorByClassName(elem,"nb-box_6");var fadeIn=new YAHOO.util.Anim("ghLargeGameListCat-Widget.content",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();var rows=YAHOO.util.Dom.getElementsByClassName("nb-row");var rowType=1;for(var i=0;i<rows.length;i++){var node=rows[i];var arrEls=YAHOO.util.Dom.getElementsBy(function(el){return el.name=="playOnline";},"form",node);if(arrEls.length>0){node.style.display="block";}else{node.style.display="none";}if(node.style.display!="none"){if(rowType%2==0){YAHOO.util.Dom.getFirstChild(node).className="role-even x-clearfix";}else{YAHOO.util.Dom.getFirstChild(node).className="role-odd x-clearfix";}rowType++;}}}catch(e){}};GAMES.widget.largeGenericCat.showAllGames=function(elem){try{var container=YAHOO.util.Dom.getAncestorByClassName(elem,"nb-box_6");var fadeIn=new YAHOO.util.Anim("ghLargeGameList-Widget.content",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();var rows=YAHOO.util.Dom.getElementsByClassName("nb-row");for(var i=0;i<rows.length;i++){var node=rows[i];node.style.display="block";if((i+1)%2==0){YAHOO.util.Dom.getFirstChild(node).className="role-even x-clearfix";}else{YAHOO.util.Dom.getFirstChild(node).className="role-odd x-clearfix";}}}catch(e){}};GAMES.widget.largeGenericCat.SsnLink=function(ssnEndUrl){try{GAMES.popUpOnlineGame(ssnEndUrl,"onlinePlayPage");}catch(e){}};if("undefined"==typeof GAMES){var GAMES={};}if(!GAMES.widget){GAMES.widget={};}if(!GAMES.widget.largeGenericSorted){GAMES.widget.largeGenericSorted={};}GAMES.widget.largeGenericSorted.showMacGames=function(sortBy,orderBy){try{var now=new Date();reqURL=serverPath+"platform-widgets/gamelistwidget/largeGenericSorted?listName=games.macAllGames.gh&begin=0&end=99&gameType=download&sortByMode="+sortBy+"&chunkSize=100&orderByClause="+orderBy+"&isMac=true&sortOption=1&n="+now.getTime();var handleSuccess=function(o){if(o.responseText!==undefined){var fadeIn=new YAHOO.util.Anim("results4majax",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();document.getElementById("results4majax").innerHTML=o.responseText;}};var callback={success:handleSuccess};var request=YAHOO.util.Connect.asyncRequest("GET",reqURL,callback);}catch(e){}};GAMES.widget.largeGenericSorted.showOnlineGames=function(sortBy,orderBy){try{var now=new Date();reqURL=serverPath+"platform-widgets/gamelistwidget/largeGenericSorted?listName=games.webAllGames.gh&begin=0&end=99&gameType=web&sortByMode="+sortBy+"&chunkSize=100&orderByClause="+orderBy+"&isMac=false&sortOption=2&n="+now.getTime();var handleSuccess=function(o){if(o.responseText!==undefined){var fadeIn=new YAHOO.util.Anim("results4majax",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();document.getElementById("results4majax").innerHTML=o.responseText;}};var callback={success:handleSuccess};var request=YAHOO.util.Connect.asyncRequest("GET",reqURL,callback);}catch(e){}};GAMES.widget.largeGenericSorted.showAllGames=function(sortBy,orderBy){try{var now=new Date();reqURL=serverPath+"platform-widgets/gamelistwidget/largeGenericSorted?listName=games.pcAllGames.gh&begin=0&end=99&gameType=download&sortByMode="+sortBy+"&chunkSize=100&orderByClause="+orderBy+"&isMac=false&sortOption=0&n="+now.getTime();var handleSuccess=function(o){if(o.responseText!==undefined){var fadeIn=new YAHOO.util.Anim("results4majax",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();document.getElementById("results4majax").innerHTML=o.responseText;}};var callback={success:handleSuccess};var request=YAHOO.util.Connect.asyncRequest("GET",reqURL,callback);}catch(e){}};GAMES.widget.largeGenericSorted.SsnLink=function(ssnEndUrl){try{GAMES.popUpOnlineGame(ssnEndUrl,"onlinePlayPage");}catch(e){}};if("undefined"==typeof GAMES){var GAMES={};}if(!GAMES.widget){GAMES.widget={};}if(!GAMES.widget.newGamesSorted){GAMES.widget.newGamesSorted={};}GAMES.widget.newGamesSorted.showMacGames=function(sortBy,orderBy){try{var now=new Date();reqURL=serverPath+"platform-widgets/gamelistwidget/newGamesCustomSorted?listName=games.macAllGames.gh&begin=0&end=99&gameType=download&sortByMode="+sortBy+"&chunkSize=100&orderByClause="+orderBy+"&isMac=true&sortOption=1&n="+now.getTime();var handleSuccess=function(o){if(o.responseText!==undefined){var fadeIn=new YAHOO.util.Anim("results4majax",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();document.getElementById("results4majax").innerHTML=o.responseText;}};var callback={success:handleSuccess};var request=YAHOO.util.Connect.asyncRequest("GET",reqURL,callback);}catch(e){}};GAMES.widget.newGamesSorted.showOnlineGames=function(sortBy,orderBy){try{var now=new Date();reqURL=serverPath+"platform-widgets/gamelistwidget/newGamesGenericSorted?listName=games.webAllGames.gh&begin=0&end=99&gameType=web&sortByMode="+sortBy+"&chunkSize=100&orderByClause="+orderBy+"&isMac=false&sortOption=2&n="+now.getTime();var handleSuccess=function(o){if(o.responseText!==undefined){var fadeIn=new YAHOO.util.Anim("results4majax",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();document.getElementById("results4majax").innerHTML=o.responseText;}};var callback={success:handleSuccess};var request=YAHOO.util.Connect.asyncRequest("GET",reqURL,callback);}catch(e){}};GAMES.widget.newGamesSorted.showAllGames=function(sortBy,orderBy){try{var now=new Date();reqURL=serverPath+"platform-widgets/gamelistwidget/newGamesGenericSorted?listName=games.pcAllGames.gh&begin=0&end=99&gameType=download&sortByMode="+sortBy+"&chunkSize=100&orderByClause="+orderBy+"&isMac=false&sortOption=0&n="+now.getTime();var handleSuccess=function(o){if(o.responseText!==undefined){var fadeIn=new YAHOO.util.Anim("results4majax",{opacity:{from:0.2,to:1}},0.8,YAHOO.util.Easing.easeOut);fadeIn.animate();document.getElementById("results4majax").innerHTML=o.responseText;}};var callback={success:handleSuccess};var request=YAHOO.util.Connect.asyncRequest("GET",reqURL,callback);}catch(e){}};GAMES.widget.newGamesSorted.SsnLink=function(ssnEndUrl){try{GAMES.popUpOnlineGame(ssnEndUrl,"onlinePlayPage");}catch(e){}};if(typeof GAMES=="undefined"){GAMES={};}if(typeof GAMES.widget=="undefined"){GAMES.widget={};}if(typeof GAMES.widget.sideBarNav=="undefined"){GAMES.widget.sideBarNav={};}GAMES.widget.sideBarNav.prefs=new Array();GAMES.widget.sideBarNav.constructPref=function(id,label,checked,expanded,showMore,showLess,bodyHeight,subListHeight,controlHeight,subListExpanded,addPref){try{this.id=id;this.label=label;this.checked=checked;this.expanded=expanded;this.showMore=showMore;this.showLess=showLess;this.subListExpanded=subListExpanded;this.bodyHeight=bodyHeight;this.subListHeight=subListHeight;this.controlHeight=controlHeight;this.addPref=addPref;}catch(e){}};GAMES.widget.sideBarNav.initList=function(id,caption,showMoreCaption,showLessCaption,defaultOn,defaultEx,addPref){try{var checked=false;var expanded=false;var bodyHeight=document.getElementById(id+"_body").offsetHeight;var controlHeight=YAHOO.env.ua.ie?document.getElementById(id+"_control").offsetHeight:YAHOO.util.Dom.getStyle(id+"_control","height").replace(/px/,"");var subListHeight="0";if(YAHOO.util.Cookie.getSub("sbNavPref",id+"_pref")=="true"){checked=true;}else{if(YAHOO.util.Cookie.getSub("sbNavPref",id+"_pref")!="false"&&defaultOn){checked=true;}}if(checked){if(YAHOO.util.Cookie.getSub("sbNavEx",id+"_ex")=="true"){document.getElementById(id+"_control").getElementsByTagName("div")[0].className="role-on";document.getElementById(id+"_control").getElementsByTagName("div")[0].getElementsByTagName("div")[0].className="role-on";expanded=true;}else{if(YAHOO.util.Cookie.getSub("sbNavEx",id+"_ex")!="false"&&defaultEx){document.getElementById(id+"_control").getElementsByTagName("div")[0].className="role-on";document.getElementById(id+"_control").getElementsByTagName("div")[0].getElementsByTagName("div")[0].className="role-on";expanded=true;}}}if(document.getElementById(id+"_list2")!=undefined){subListHeight=YAHOO.env.ua.ie?document.getElementById(id+"_list2").offsetHeight:YAHOO.util.Dom.getStyle(id+"_list2","height").replace(/px/,"");if(YAHOO.util.Cookie.getSub("sbNavMore",id+"_show")=="true"){document.getElementById(id+"_list2").style.height="";document.getElementById(id+"_show").innerHTML=showLessCaption;}else{document.getElementById(id+"_list2").style.height="0px";document.getElementById(id+"_show").innerHTML=showMoreCaption;}}if(!expanded){document.getElementById(id+"_body").style.height="0px";document.getElementById(id+"_control").getElementsByTagName("div")[0].className="role-off";document.getElementById(id+"_control").getElementsByTagName("div")[0].getElementsByTagName("div")[0].className="role-off";}if(!checked){document.getElementById(id).style.height="0px";}this.prefs[id]=new this.constructPref(id,caption,checked,expanded,showMoreCaption,showLessCaption,bodyHeight,subListHeight,controlHeight,false,addPref);}catch(e){}};GAMES.widget.sideBarNav.toggleBody=function(id){try{var listControl1=document.getElementById(id+"_control").getElementsByTagName("div")[0];var listControl2=listControl1.getElementsByTagName("div")[0];var listBody=document.getElementById(id+"_body");var listBodyHeight=this.prefs[id].bodyHeight;var exp=new Date();exp.setTime(exp.getTime()+(365*24*60*60*1000));if(document.getElementById(id+"_list2")!=undefined){listBodyHeight=parseInt(listBodyHeight)-parseInt(this.prefs[id].subListHeight);document.getElementById(id+"_list2").style.height="0px";document.getElementById(id+"_show").innerHTML=this.prefs[id].showMore;YAHOO.util.Dom.setStyle(id+"_list2","opacity",0);}var easeTime=parseInt(listBodyHeight)/600;var easeOut=new YAHOO.util.Anim(id+"_body",{height:{to:0},opacity:{to:0}},easeTime,YAHOO.util.Easing.easeOut);var easeIn=new YAHOO.util.Anim(id+"_body",{height:{to:listBodyHeight},opacity:{to:100}},easeTime,YAHOO.util.Easing.easeOut);easeIn.onComplete.subscribe(function(){listBody.style.height="";});easeOut.onComplete.subscribe(function(){listControl1.className="role-off";listControl2.className="role-off";});if(listControl1.className=="role-on"){easeOut.animate();YAHOO.util.Cookie.setSub("sbNavEx",id+"_ex","false",{path:"/",expires:exp});this.prefs[id].expanded=false;}else{listControl1.className="role-on";listControl2.className="role-on";easeIn.animate();YAHOO.util.Cookie.setSub("sbNavEx",id+"_ex","true",{path:"/",expires:exp});this.prefs[id].expanded=true;}}catch(e){}};GAMES.widget.sideBarNav.toggleSubList=function(id,expanded){try{var showMoreCaption=this.prefs[id].showMore;var showLessCaption=this.prefs[id].showLess;var subList=document.getElementById(id+"_list2");var showLink=document.getElementById(id+"_show");var listHeight=this.prefs[id].subListHeight;var easeTime=parseInt(listHeight)/600;var easeOut=new YAHOO.util.Anim(id+"_list2",{height:{to:0},opacity:{to:0}},easeTime,YAHOO.util.Easing.easeOut);var easeIn=new YAHOO.util.Anim(id+"_list2",{height:{to:listHeight},opacity:{to:100}},easeTime,YAHOO.util.Easing.easeOut);easeIn.onComplete.subscribe(function(){subList.style.height="";});var exp=new Date();exp.setTime(exp.getTime()+(365*24*60*60*1000));if(showLink.innerHTML==showLessCaption){YAHOO.util.Cookie.setSub("sbNavMore",id+"_show","false",{path:"/",expires:exp});easeOut.animate();showLink.innerHTML=showMoreCaption;this.prefs[id].subListExpanded=false;}else{YAHOO.util.Cookie.setSub("sbNavMore",id+"_show","true",{path:"/",expires:exp});easeIn.animate();showLink.innerHTML=showLessCaption;this.prefs[id].subListExpanded=true;}}catch(e){}};GAMES.widget.sideBarNav.toggleList=function(id,checked,expanded,subListExpanded){try{var list=document.getElementById(id);var listControl1=document.getElementById(id+"_control").getElementsByTagName("div")[0];var listControl2=listControl1.getElementsByTagName("div")[0];var listBody=document.getElementById(id+"_body");var listControlHeight=this.prefs[id].controlHeight;var easeOut=new YAHOO.util.Anim(list,{height:{to:0},opacity:{to:0}},0.2,YAHOO.util.Easing.easeOut);var easeIn=new YAHOO.util.Anim(list,{height:{to:listControlHeight},opacity:{to:100}},0.2,YAHOO.util.Easing.easeOut);easeIn.onComplete.subscribe(function(){list.style.height="";});var exp=new Date();exp.setTime(exp.getTime()+(365*24*60*60*1000));if(checked){easeIn.animate();if(expanded){this.toggleBody(id);if(subListExpanded){this.toggleSubList(id);}}}else{easeOut.animate();listControl1.className="role-off";listControl2.className="role-off";listBody.style.height="0px";YAHOO.util.Cookie.setSub("sbNavEx",id+"_ex","false",{path:"/",expires:exp});}}catch(e){}};GAMES.widget.sideBarNav.refreshPrefs=function(){try{var prefs=this.prefs;var subListExpanded=false;for(pref in prefs){if(!prefs[pref].checked){this.toggleList(pref,false,false);}else{if(document.getElementById(pref).style.height=="0px"){subListExpanded=YAHOO.util.Cookie.getSub("sbNavMore",pref+"_show")=="true";this.toggleList(pref,true,prefs[pref].expanded,subListExpanded);}}}this.addPrefs();}catch(e){}};GAMES.widget.sideBarNav.addPrefs=function(){try{var cont=document.getElementById(this.dialogId+"_prefs");if(cont!="undefined"){cont.innerHTML="";var i=0;for(pref in this.prefs){if(this.prefs[pref].addPref){var row=document.createElement("div");if(i==0){row.className="role-first";}else{if(i==this.prefs.length-1){row.className="role-last";}}var check=document.createElement("input");check.id=pref+"_pref";check.listId=pref;check.name=pref+"_pref";check.type="checkbox";var handleCheck=function(){GAMES.widget.sideBarNav.toggleList(this.listId,this.checked,false,false);this.blur();};check.onclick=handleCheck;var prefLabel=document.createElement("label");prefLabel.htmlFor=check.name;prefLabel.innerHTML=this.prefs[pref].label;row.appendChild(check);row.appendChild(prefLabel);cont.appendChild(row);document.getElementById(this.prefs[pref].id+"_pref").checked=this.prefs[pref].checked;}}}}catch(e){}};GAMES.widget.sideBarNav.cancelPrefs=function(){try{this.dialog.hide();YAHOO.util.Event.removeListener(this.dialogId+"_customize","click",GAMES.widget.sideBarNav.cancelPrefs);YAHOO.util.Event.addListener(this.dialogId+"_customize","click",GAMES.widget.sideBarNav.showDialog,GAMES.widget.sideBarNav,true);this.refreshPrefs();}catch(e){}};GAMES.widget.sideBarNav.submitPrefs=function(){try{this.dialog.hide();var checks=document.getElementById(this.dialogId+"_prefs").getElementsByTagName("input");var cookiePrefs=new Object();for(var i=0;i<checks.length;i++){this.prefs[checks[i].name.replace(/_pref/,"")].checked=checks[i].checked;cookiePrefs[checks[i].name]=checks[i].checked;}var exp=new Date();exp.setTime(exp.getTime()+(365*24*60*60*1000));YAHOO.util.Cookie.setSubs("sbNavPref",cookiePrefs,{path:"/",expires:new Date(exp)});YAHOO.util.Event.removeListener(this.dialogId+"_customize","click",GAMES.widget.sideBarNav.cancelPrefs);YAHOO.util.Event.addListener(this.dialogId+"_customize","click",GAMES.widget.sideBarNav.showDialog,GAMES.widget.sideBarNav,true);this.addPrefs();}catch(e){alert(e);}};GAMES.widget.sideBarNav.initDialog=function(){try{var xyCoord=YAHOO.util.Dom.getXY(this.dialogId+"_customize");xyCoord[0]=xyCoord[0]+this.overlayX;xyCoord[1]=xyCoord[1]+this.overlayY;this.dialog=new YAHOO.widget.Overlay(this.dialogId+"_dialog",{visible:false,xy:xyCoord,close:false,monitorresize:false,constraintoviewport:false,iframe:true});this.dialog.render();YAHOO.util.Event.addListener(this.dialogId+"_customize","click",GAMES.widget.sideBarNav.showDialog,GAMES.widget.sideBarNav,true);YAHOO.util.Event.addListener(this.dialogId+"_dialog_close","click",GAMES.widget.sideBarNav.cancelPrefs,GAMES.widget.sideBarNav,true);YAHOO.util.Event.addListener(this.dialogId+"_dialog_submit","click",GAMES.widget.sideBarNav.submitPrefs,GAMES.widget.sideBarNav,true);}catch(e){}};GAMES.widget.sideBarNav.showDialog=function(){try{this.dialog.show();YAHOO.util.Event.removeListener(this.dialogId+"_customize","click",GAMES.widget.sideBarNav.showDialog);YAHOO.util.Event.addListener(this.dialogId+"_customize","click",GAMES.widget.sideBarNav.cancelPrefs,GAMES.widget.sideBarNav,true);}catch(e){}};if(typeof GAMES=="undefined"){var GAMES={};}if(typeof GAMES.widget=="undefined"){GAMES.widget={};}GAMES.widget.standardAd={};GAMES.widget.standardAd.randomNumber=1;GAMES.widget.standardAd.id="";GAMES.widget.standardAd.url="";GAMES.widget.standardAd.generateRandomNumber=function(){try{rdmNumber=Math.random()*10000000000000000000;GAMES.widget.standardAd.randomNumber=rdmNumber;}catch(e){}};GAMES.widget.standardAd.init=function(id,url){try{GAMES.widget.standardAd.id=id;GAMES.widget.standardAd.url=url;}catch(e){}};GAMES.widget.standardAd.refresh=function(){try{var strId="ad_"+GAMES.widget.standardAd.id;var strAdUrl=GAMES.widget.standardAd.url;GAMES.widget.standardAd.generateRandomNumber();document.getElementById(strId).src=strAdUrl+GAMES.widget.standardAd.randomNumber;}catch(e){}};