
var Class={create:function(){return function(){this.initialize.apply(this,arguments);}}};Object.extend=function(destination,source){for(var property in source)destination[property]=source[property];return destination;};Function.prototype.bind=function(object){var __method=this;return function(){return __method.apply(object,arguments);}};if(!Array.prototype.forEach){Array.prototype.forEach=function(fn,bind){for(var i=0;i<this.length;i++)fn.call(bind,this[i],i);};}
Array.prototype.each=Array.prototype.forEach;String.prototype.camelize=function(){return this.replace(/-\D/gi,function(match){return match.charAt(match.length-1).toUpperCase();});};var $A=function(iterable){var nArray=[];for(var i=0;i<iterable.length;i++)nArray.push(iterable[i]);return nArray;};function $(){if(arguments.length==1)return get$(arguments[0]);var elements=[];$c(arguments).each(function(el){elements.push(get$(el));});return elements;function get$(el){if(typeof el=='string')el=document.getElementById(el);return el;}};if(!window.Element)var Element={};Object.extend(Element,{remove:function(element){element=$(element);element.parentNode.removeChild(element);},hasClassName:function(element,className){element=$(element);return!!element.className.match(new RegExp("\\b"+className+"\\b"));},addClassName:function(element,className){element=$(element);if(!Element.hasClassName(element,className))element.className=(element.className+' '+className);},removeClassName:function(element,className){element=$(element);if(Element.hasClassName(element,className))element.className=element.className.replace(className,'');}});document.getElementsByClassName=function(className){var elements=[];var all=document.getElementsByTagName('*');$A(all).each(function(el){if(Element.hasClassName(el,className))elements.push(el);});return elements;};document.processElementsByClassName=function(className,callback){var functionPointer=callback;var all=document.getElementsByTagName('*');$A(all).each(function(el){if(Element.hasClassName(el,className)){functionPointer(el);}});};var in_array=function(needle,haystack){for(var n=0;n<haystack.length;n++){if(haystack[n]==needle){return true;}}
return false;};var array_key_exists=function(needle,haystack){for(key in haystack){if(key==needle){return true;}}
return false;};var array_unique=function(arr){var existingItems={};var prefix=String(Math.random()*9e9);var ii=0;while(ii<arr.length){if(existingItems[prefix+arr[ii]]){arr.splice(ii,1);}else{existingItems[prefix+arr[ii]]=true;++ii;}}};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");};String.prototype.ltrim=function(){return this.replace(/^\s+/,"");};String.prototype.rtrim=function(){return this.replace(/\s+$/,"");};var Fx=fx={};Fx.Base=function(){};Fx.Base.prototype={setOptions:function(options){this.options=Object.extend({onStart:function(){},onComplete:function(){},transition:Fx.Transitions.sineInOut,duration:500,unit:'px',wait:true,fps:50},options||{});},step:function(){var time=new Date().getTime();if(time<this.time+this.options.duration){this.cTime=time-this.time;this.setNow();}else{setTimeout(this.options.onComplete.bind(this,this.element),10);this.clearTimer();this.now=this.to;}
this.increase();},setNow:function(){this.now=this.compute(this.from,this.to);},compute:function(from,to){var change=to-from;return this.options.transition(this.cTime,from,change,this.options.duration);},clearTimer:function(){clearInterval(this.timer);this.timer=null;return this;},_start:function(from,to){if(!this.options.wait)this.clearTimer();if(this.timer)return;setTimeout(this.options.onStart.bind(this,this.element),10);this.from=from;this.to=to;this.time=new Date().getTime();this.timer=setInterval(this.step.bind(this),Math.round(1000/this.options.fps));return this;},custom:function(from,to){return this._start(from,to);},set:function(to){this.now=to;this.increase();return this;},hide:function(){return this.set(0);},setStyle:function(e,p,v){if(p=='opacity'){if(v==0&&e.style.visibility!="hidden")e.style.visibility="hidden";else if(e.style.visibility!="visible")e.style.visibility="visible";if(window.ActiveXObject)e.style.filter="alpha(opacity="+v*100+")";e.style.opacity=v;}else e.style[p]=v+this.options.unit;}};Fx.Style=Class.create();Fx.Style.prototype=Object.extend(new Fx.Base(),{initialize:function(el,property,options){this.element=$(el);this.setOptions(options);this.property=property.camelize();},increase:function(){this.setStyle(this.element,this.property,this.now);}});Fx.Styles=Class.create();Fx.Styles.prototype=Object.extend(new Fx.Base(),{initialize:function(el,options){this.element=$(el);this.setOptions(options);this.now={};},setNow:function(){for(p in this.from)this.now[p]=this.compute(this.from[p],this.to[p]);},custom:function(obj){if(this.timer&&this.options.wait)return;var from={};var to={};for(p in obj){from[p]=obj[p][0];to[p]=obj[p][1];}
return this._start(from,to);},increase:function(){for(var p in this.now)this.setStyle(this.element,p,this.now[p]);}});Fx.Transitions={linear:function(t,b,c,d){return c*t/d+b;},sineInOut:function(t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b;}};if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var add_listener=function(){if(window.addEventListener){return function(el,type,fn){el.addEventListener(type,fn,false);};}else if(window.attachEvent){return function(el,type,fn){var f=function(){fn.call(el,window.event);};el.attachEvent('on'+type,f);};}else{return function(el,type,fn){element['on'+type]=fn;};}}();var cursor_pos=function(e){e=e||window.event;if(e.pageX||e.pageY){return{x:e.pageX,y:e.pageY};}else{var de=document.documentElement;var b=document.body;var ex=e.clientX+(de.scrollLeft||b.scrollLeft)-(de.clientLeft||0);var wy=e.clientY+(de.scrollTop||b.scrollTop)-(de.clientTop||0);return{x:ex,y:wy};}};var get_page_scroll=function(){if(typeof(window.pageYOffset)=='number'){return window.pageYOffset;}else if(document.body&&document.body.scrollTop){return document.body.scrollTop;}else if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollTop;}else{return 0;}};var loader={_functions1:[],_functions2:[],add:function(func,lowpri){if(lowpri){loader._functions2.push(func);}
else{loader._functions1.push(func);}},_do:function(group){var count=group.length;for(var f=0;f<count;f++){if(typeof(group[f])=="function"){group[f]();}}},run:function(){loader._do(loader._functions1);loader._do(loader._functions2);}};add_listener(window,'load',loader.run);var page={hurl:'http://www.bigfishgames.com',gurl:'http://www.bigfishgames.com',games_url:'http://games.bigfishgames.com',_output:function(){var bodies=document.getElementsByTagName('body');page.body_element=bodies[0];page.link_elements=document.getElementsByTagName('a');page.link_count=page.link_elements.length;}}
loader.add(page._output);var browser={_ua:navigator.userAgent.toLowerCase(),_get_ua_name:function(){if(window.opera){return'opera';}
var browserUAs=[];browserUAs['msie']='ie';browserUAs['firefox']='firefox';browserUAs['safari']='safari';browserUAs['netscape']='netscape';browserUAs['aol']='aol';browserUAs['nintendo wii']='wii';browserUAs['konqueror']='konqueror';browserUAs['camino']='camino';browserUAs['lynx']='lynx';browserUAs['links']='links';for(b_agent in browserUAs){if(this._ua.indexOf(b_agent)!=-1){return browserUAs[b_agent];}}
return'other';},_get_os:function(){var this_os;switch(true){case((this._ua.indexOf("windows")!=-1)||(this._ua.indexOf("win")!=-1)):this_os='windows';break;case(this._ua.indexOf("mac")!=-1):this_os='mac';break;case(this._ua.indexOf("linux")!=-1):this_os='linux';break;case(this._ua.indexOf("nintendo wii")!=-1):this_os='wii';break;case((this._ua.indexOf("freebsd")!=-1)||(this._ua.indexOf("netbsd")!=-1)||(this._ua.indexOf("sunos")!=-1)):this_os='bsd';break;default:this_os='other';break;}
return this_os;},_detect_mobile:function(){if(this._get_os!='other'){return false;}
else{var mobile_clues=new Array('docomo','up.browser','nokia','symbian','phillips','phone','reqwirelessweb','imode','mobile','smartphone','sagem','samsung','netfront','cellphone','windows ce','portalmmm','sec-sghe','lge','vitelcom','nitro');var mobile_num=mobile_clues.length;for(m=0;m<mobile_num;m++){if(this._ua.indexOf(mobile_clues[m])!=-1){return true;}}
return false;}},get_page_size:function(){var xScroll=document.documentElement.scrollWidth;var yScroll=document.documentElement.scrollHeight;return{w:xScroll,h:yScroll};},get_page_width:function(){var psize=this.get_page_size;return psize.w;},get_page_height:function(){var psize=this.get_page_size;return psize.h;},_get_viewport_size:function(){if(self.innerHeight){return function(){return{w:self.innerWidth,h:self.innerHeight};}}
else if(document.documentElement&&document.documentElement.clientHeight){return function(){return{w:document.documentElement.clientWidth,h:document.documentElement.clientHeight};}}
else if(document.body){return function(){return{w:document.body.clientWidth,h:document.body.clientHeight};}}
else{return function(){return{w:0,h:0};}}},_check_cookie_support:function(){var cookies_enabled=(navigator.cookieEnabled?true:false);if(typeof navigator.cookieEnabled=="undefined"&&!cookies_enabled){document.cookie="testcookie";cookies_enabled=((document.cookie.indexOf("testcookie")!=-1)?true:false);}
return cookies_enabled;},_get_flash_version:function(){if(typeof deconcept!='undefined'){var flaver=deconcept.SWFObjectUtil.getPlayerVersion();return flaver.major;}
return 0;},_output:function(){this.ua_name=this._get_ua_name();this.version=parseInt(navigator.appVersion);if(this.ua_name=='ie'){if(window.attachEvent&&!window.createPopup){this.version=5;}
if(window.createPopup&&!document.compatMode){this.version=5.5;}
if((document.compatMode&&document.all)&&!window.XMLHttpRequest){this.version=6;}
if(window.XMLHttpRequest&&document.all){this.version=7;}}
this.is_gecko=((this._ua.indexOf('gecko')!=-1)?true:false);this.os=this._get_os();this.is_mobile=this._detect_mobile();this.cookies=this._check_cookie_support();this.flash_version=this._get_flash_version();this.get_viewport_size=this._get_viewport_size();this.viewport_size=this.get_viewport_size();this.viewport_width=this.viewport_size.w;this.viewport_height=this.viewport_size.h;this.screen_width=screen.width;this.screen_height=screen.height;this._ua=null;this._get_ua_name=null;this._get_os=null;this._detect_mobile=null;this._support_level=null;this._get_viewport_size=null;this._check_cookie_support=null;this._get_flash_version=null;}};browser._output();var resize_reset=function(){browser.viewport_size=browser.get_viewport_size();browser.viewport_width=browser.viewport_size.w;browser.viewport_height=browser.viewport_size.h;}
add_listener(window,'resize',resize_reset);var dom={insert_after:function(newElement,targetElement){var parent=targetElement.parentNode;if(parent.lastChild==targetElement){parent.appendChild(newElement);}
else{parent.insertBefore(newElement,targetElement.nextSibling);}},put_buns_in_oven:function(bun_parent,bun_list,nested){if(typeof bun_parent=='object'&&typeof bun_list=='object'){var nest_parent=bun_parent;for(var bun_name in bun_list){var new_bun=document.createElement(bun_list[bun_name]);new_bun.id=bun_name;if(nested){nest_parent.appendChild(new_bun);nest_parent=$(bun_name);}
else{bun_parent.appendChild(new_bun);}}}},shoo_children:function(den){while($(den).hasChildNodes()){$(den).removeChild($(den).firstChild);}},get_style:function(elID,cssAtt){var a=$(elID);var b;if(a.currentStyle){b=a.currentStyle[cssAtt];}
else{try{b=document.defaultView.getComputedStyle(a,null).getPropertyValue(cssAtt);}catch(e){}}
return b;},box_dimensions:function(boxID){if($(boxID)){var current_style=this.get_style;var boxDims={w:0,h:0};boxDims.w=current_style(boxID,'width');boxDims.w=boxDims.w.replace('px','');boxDims.h=current_style(boxID,'height');boxDims.h=boxDims.h.replace('px','');if(boxDims.h=='auto'){if($(boxID).style.pixelHeight){boxDims.h=$(boxID).style.pixelHeight;}
else{boxDims.h=$(boxID).offsetHeight;}}
return boxDims;}
return false;},find_pos:function(obj){var curleft=0;var curtop=0;if(obj.offsetParent){curleft=obj.offsetLeft;curtop=obj.offsetTop;while(obj=obj.offsetParent){curleft+=obj.offsetLeft;curtop+=obj.offsetTop;}
return[curleft,curtop];}
return false;},change_class_style:function(whichClass,whichStyle,newValue){var els=document.getElementsByClassName(whichClass);for(var i=0;i<els.length;i++){els[i].style[whichStyle]=newValue;}},eq_cols:function(colIDsArray){var colTopHeight=0;var colCount=colIDsArray.length;for(var c=0;c<colCount;c++){var col=$(colIDsArray[c]);if(col){var colDims=dom.box_dimensions(colIDsArray[c]);var colHeight=colDims.h;if((colHeight-0)>(colTopHeight-0)){colTopHeight=colHeight;}}}
if(colTopHeight>0){for(var d=0;d<colCount;d++){var col=$(colIDsArray[d]);if(col){col.style.height=colTopHeight+"px";}}}},slide_up:function(elID,pixels,speed){if(typeof(fx)!='undefined'){var slide_up=new fx.Styles(elID,{duration:speed,wait:false});slide_up.custom({'opacity':[1,0],'height':[pixels,0]});}},slide_down:function(elID,pixels,speed){if(typeof(fx)!='undefined'){var slide_down=new fx.Styles(elID,{duration:speed,wait:false});slide_down.custom({'opacity':[0,1],'height':[0,pixels]});}},materialize:function(op,thingID){var thing=$(thingID);if((browser.ua_name=='ie'&&browser.version<7)||(browser.os!='windows'&&browser.os!='mac')){thing.style.visibility='visible';return;}
else{if(op==0){thing.style.visibility='visible';thing.style.opacity='.1';dom.materialize(10,thingID);}
else{thing.style.visibility='visible';var new_op=parseInt(parseInt(op)+15);if(new_op<100){thing.style.opacity='.'+new_op;thing_timer=window.setTimeout("dom.materialize('"+new_op+"','"+thingID+"')",10);}
else{thing.style.opacity='1.0';}}}},toggle:function(things,css_display){var current_style=this.get_style;if(typeof(things)=='string'){things=(things.indexOf(',')>-1?things.split(','):new Array(things));}
var thing_count=things.length;for(var e=0;e<thing_count;e++){if(!$(things[e])){continue;}
if(current_style(things[e],'display')=='none'){$(things[e]).style.display=css_display;}
else{$(things[e]).style.display='none';}}},position_pop:function(popID,windowDims,buffer,position_it,event){if((typeof(browser)=='undefined')||(typeof(cursor_pos)=='undefined')){return false;}
var pop=$(popID);var tipDims=this.box_dimensions(popID);var linkPos=cursor_pos(event);var scrolled=get_page_scroll();var pinfo={go_right:true,go_up:false,go_down:false,w:tipDims.w,h:tipDims.h,x:0,y:0,abort:false};var x_space={left:linkPos.x,right:(windowDims.w-linkPos.x)};var y_space={over:(linkPos.y-scrolled),under:(windowDims.h-(linkPos.y-scrolled))};var half_h=Math.ceil(tipDims.h/2);var buf=(buffer?buffer:{left:5,right:5,over:10,under:10});var no_room_x=((x_space.right<(tipDims.w-0+buf.right))&&(x_space.left<(tipDims.w-0+buf.left)));var no_room_y=false;var cant_go_middle=((y_space.over<half_h)||(y_space.under<half_h));var cant_go_up=(y_space.over<(tipDims.h-0+buf.over));var cant_go_down=(y_space.under<(tipDims.h-0+buf.under));if(cant_go_middle){if(cant_go_up&&cant_go_down){no_room_y=true;}}
if(no_room_x||no_room_y){pinfo.abort=true;return pinfo;}
if(x_space.right<tipDims.w){pinfo.go_right=false;pinfo.x=((linkPos.x-tipDims.w)-buf.left)+'px';}
else{pinfo.x=((linkPos.x)-0+buf.right)+'px';}
if(y_space.over<half_h){pinfo.go_down=true;pinfo.y=(linkPos.y-0+buf.under)+'px';}
else if(y_space.under<half_h){pinfo.go_up=true;pinfo.y=((linkPos.y-tipDims.h)-buf.over)+'px';}
else{pinfo.y=(linkPos.y-half_h)+'px';}
if(position_it){pop.style.left=pinfo.x;pop.style.top=pinfo.y;}
return pinfo;},progress_bar:{_count:0,_cell_w:0,_box:null,_make_cell:function(){setTimeout(function(){var pb=dom.progress_bar;var p_cell=document.createElement('div');p_cell.className='pbox';p_cell.style.width=pb._cell_w;pb._box.appendChild(p_cell);if(pb._count>0){pb._count--;pb._make_cell();}},1000);},show:function(seconds,width,parentID,progressID){this._count=seconds;prog_parent=$(parentID);if(!prog_parent){return;}
var kid={};kid[progressID]='div';dom.put_buns_in_oven($(parentID),kid);this._box=$(progressID);prog_dims=dom.box_dimensions(progressID);this._cell_w=(Math.floor(prog_dims.w/seconds)-2)+'px';this._make_cell();}}};var query={_raw_query_string:window.location.search.substring(1),_get_pairs:function(){if(this._raw_query_string.length>0){if(this._raw_query_string.indexOf("&">-1)){return this._raw_query_string.split("&");}
return new Array(this._raw_query_string);}
return false;},_count:function(){var pairs=this._get_pairs();if(pairs){return pairs.length;}
return 0;},_get_all:function(){var qcount=this._count();if(qcount>0){var qarray={};var qpairs=this._get_pairs();for(var i=0;i<qcount;i++){var pair=qpairs[i].split("=");qarray[pair[0]]=pair[1];}
return qarray;}
return new Array();},_output:function(){this.list=this._get_all();this.whole=(this._raw_query_string.length>0?this._raw_query_string:'');this.count=this._count();this.get=function(key){var allqs=this.list;if(allqs[key]){return allqs[key];}
return false;}
this._raw_query_string=null;this._get_pairs=null;this._get_all=null;this._count=null;this._get_all=null;}};query._output();var set_cookie=function(name,value,days){if(days){var newDate=new Date();newDate.setTime(newDate.getTime()+(days*24*60*60*1000));var expires="; expires="+newDate.toGMTString();}else{var expires="";document.cookie=name+"="+value+expires+"; path=/";}
document.cookie=name+"="+value+expires+"; path=/";};var get_cookie=function(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0){return c.substring(nameEQ.length,c.length);}}}
return null;};var delete_cookie=function(name){set_cookie(name,"",-1);};if(document.getElementsByClassName('three_col')&&(typeof(dom)!='undefined')){loader.add(function(){var nsbuggy=new Array('col_left','col_main');dom.eq_cols(nsbuggy);},'lowpri');};var open_window=function(url,popname,wth,hgt,inst){if(wth=='full'){pwindow=window.open(url);}
else{var mywidth=(wth?wth:800);var myheight=(hgt?hgt:600);var wintype;switch(inst){case'plain':wintype=',scrollbars=no,menubar=no,status=no';break;default:wintype=',scrollbars=yes,menubar=yes,status=yes';break;}
pwindow=window.open(url,popname,'top=100,left=100,resizable=yes,width='+mywidth+',height='+myheight+wintype);}
if(window.focus){pwindow.focus();}};var link_pops=function(){var linkies=document.getElementsByTagName('a');var num_linkies=linkies.length;var popHeight=(browser.screen_height*.75);var popWidth=(browser.screen_width<780)?(browser.screen_width*.75):820;for(var l=0;l<num_linkies;l++){var linky=linkies[l];var linkClass=String(linky.className);if((linkClass.indexOf("blank75")>-1)||(linkClass.indexOf("blank75auto")>-1)){if(linkClass.indexOf("blank75auto")>-1){open_window(String(linky.getAttribute('href')),'pop75',popWidth,popHeight,'real');}
linky.onclick=function(){open_window(String(this.getAttribute('href')),'pop75',popWidth,popHeight,'real');return false;}}
else if(linkClass.indexOf("screenshot")>-1){var gameID=null;var link_rel=linky.getAttribute('rel');if(link_rel){gameID='&gid='+linky.link_rel;}
linky.onclick=function(){var screenpath=page.hurl+'/winpop.php?screenshot='+escape(this.getAttribute('href'))+gameID;open_window(screenpath,'screenshot','400','300','plain');return false;}}}};loader.add(link_pops);var faves={_mess:{opera_9up_mac:'Press Apple+D to bookmark this page.',opera_9up_pc:'Press CTRL+D to bookmark this page.',opera_8under_mac:'Press Apple+T to bookmark this page.',opera_8under_pc:'Press CTRL+T to bookmark this page.',gecko_mac:'Press Apple+D to bookmark this page.',gecko_pc:'Press CTRL+D to bookmark this page.',safari:'Press Apple+D to bookmark this page.',konqueror:'Press CTRL+B to bookmark this page.',unknown:'We\'re not sure what browser you\'re using, so we can\'t tell you how to bookmark this page, but please look in your toolbar for "Bookmarks" or "Favorites".'},_fid:'popFaves',_make:function(){var flayer=document.createElement('div');flayer.id=this._fid;flayer.style.visibility='hidden';page.body_element.appendChild(flayer);var bookMess="";if(browser.ua_name=="opera"){bookMess=(browser.os=="mac"?(browser.version>8?this._mess.opera_9up_mac:this._mess.opera_8under_mac):(browser.version>8?this._mess.opera_9up_pc:this._mess.opera_8under_pc));}
else if(browser.is_gecko||browser.ua_name=="firefox"){bookMess=(browser.os=="mac"?this._mess.gecko_mac:this._mess.gecko_pc);}
else if(browser.ua_name=="safari"){bookMess=this._mess.safari;}
else if(browser.ua_name=="konqueror"){bookMess=this._mess.konqueror;}
else{bookMess=this._mess.unknown;}
var innerMess=document.createTextNode(bookMess);$(this._fid).appendChild(innerMess);faves._mess=null;},show:function(event){var thisPage=location.href;if(thisPage.lastIndexOf('#')!=-1){thisPage=thisPage.substring(0,thisPage.lastIndexOf('#'));}
if(browser.ua_name=="ie"&&browser.os!='mac'){window.external.AddFavorite(thisPage,document.title);}
else{clearTimeout(closeMess);if(!$(this._fid)){faves._make();faves._make=null;}
if(typeof(dom)!='undefined'){var fwidth=dom.get_style(this._fid,'width');var windowDims=browser.viewport_size;var fave_buffer={left:10,right:10,over:5,under:5};var pop_info=dom.position_pop(this._fid,windowDims,fave_buffer,true,event);$(this._fid).style.visibility="visible";var closeMess=window.setTimeout(faves._close,2500);}}},_close:function(){var flayer=$(faves._fid);if(flayer){flayer.style.visibility='hidden';}}};var game_history={_cookie_name:'recently_viewed_games',_history_max:20,_get_history:function(){var viewedCookie=get_cookie(this._cookie_name);if(viewedCookie==null){return false;}
else{viewedCookie=unescape(viewedCookie);var cookieArray=((viewedCookie.indexOf(",")>-1)?viewedCookie.split(","):new Array(viewedCookie));return cookieArray;}},_make_list:function(boxID,listID,gameName,gameLink,cookieArray){var historyBox=$(boxID);var historyLister=$(listID);if(!$(historyBox)||!$(historyLister)){return;}
var gameLinkParts=gameLink.split("/");var gameID=gameLinkParts[4];var newGame=gameName+"|"+gameID;var newCookie='';if(cookieArray){if(!in_array(newGame,cookieArray)){cookieArray.unshift(newGame);if(cookieArray.length>this.history_max){cookieArray=cookieArray.slice(1,this.history_max);}}
newCookie=escape(cookieArray.join(","));set_cookie(this._cookie_name,newCookie,'7');for(var c=0;c<cookieArray.length;c++){if(cookieArray[c]==newGame){continue;}
var gameData=cookieArray[c].split("|");var gameFullPath=page.hurl+"/download-games/"+gameData[1]+"/game/index.html";var newOp=document.createElement('option');newOp.setAttribute('value',gameFullPath);var newOpText=document.createTextNode(gameData[0]);newOp.appendChild(newOpText);historyLister.appendChild(newOp);historyBox.appendChild(historyLister);historyBox.style.display="inline";}}
else{newCookie=escape(newGame);set_cookie(this._cookie_name,newCookie,'7');}},create:function(boxID,listID,gameName,gameLink){var cookieArray=this._get_history();this._make_list(boxID,listID,gameName,gameLink,cookieArray);this._get_history=null;this._make_list=null;}};if(browser.ua_name=='ie'&&browser.version==5){if(get_cookie('ie5warned')==null){alert("This site is incompatible with your browser. Please upgrade to Opera, Firefox, Safari or at least Internet Explorer 7.");set_cookie('ie5warned','warned');}};var gamelinks={os:browser.os,confirm_dl_no_mac:"This game is for PC only, and no Mac version is available. \n\nAre you sure you want to download it?",confirm_dl_no_pc:"This game is for Mac only, and no PC version is available. \n\nAre you sure you want to download it?",confirm_dl_os:"This game will not work on your operating system. \n\nAre you sure you want to download it?",confirm_buy_pc_on_mac:"This game is for PC, and your computer is a Mac. \n\nAre you sure you want to purchase it?",confirm_buy_mac_on_pc:"This game is for Mac, and your computer is a PC. \n\nAre you sure you want to purchase it?",confirm_buy_os:"This game will not work on your operating system. \n\nAre you sure you want to purchase it?",download:function(theLink){var linkRel=theLink.getAttribute('rel');if(linkRel){var relParts=linkRel.split(',');if(relParts.length>3){var relParts=linkRel.split(',');var gameID=relParts[0];var siteID=relParts[1];var langID=relParts[2];var gType=relParts[3];var otherVer=((typeof(relParts[4])!='undefined')?page.hurl+'/download-games/'+relParts[4]:false);if(typeof(video)!='undefined'){video.hide(false);}
if((gType=='pc'&&this.os=='mac')||(gType=='mac'&&this.os=='windows')){if(otherVer){theLink.setAttribute('href',otherVer);return true;}
else{var question=(this.os=='mac'?this.confirm_dl_no_mac:this.confirm_dl_no_pc);var dl_sure=confirm(question);if(dl_sure){return true;}
return false;}}
else if(this.os!='windows'&&this.os!='mac'){var dl_sure=confirm(this.confirm_dl_os);if(dl_sure){return true;}
return false;}
else{return true;}}}
return true;},buy:function(theLink){var gameOS=theLink.getAttribute('rel');if(gameOS){if((gameOS=='mac'&&this.os=='windows')||(gameOS=='pc'&&this.os=='mac')){var question=(this.os=='mac'?this.confirm_buy_pc_on_mac:this.confirm_buy_mac_on_pc);var dl_sure=confirm(question);if(dl_sure){return true;}
return false;}
else if(this.os!='windows'&&this.os!='mac'){var dl_sure=confirm(this.confirm_buy_os);if(dl_sure){return true;}
return false;}
else{return true;}}
return true;}};var select_link=function(selectID){sbox=$(selectID);if(sbox){destination=sbox.options[sbox.selectedIndex].value;if(destination){location.href=destination;}}};var form_hint={erase:function(f_el_id){var felid=$(f_el_id);if(felid){felid.value='';felid.className=$(f_el_id).className.replace(' hint','');}},set:function(f_el_id,hint_text){var felid=$(f_el_id);if(felid){felid.className+=' hint';felid.value=hint_text;felid.onfocus=function(){form_hint.erase(f_el_id);}}}};var form_focus={ok:true,set:function(){if(document.forms.length>0){var focusFields=document.getElementsByClassName('set_focus');if(form_focus.ok&&(focusFields.length>0)){focusFields[0].focus();}}},timer:function(){if(form_focus.ok){setTimeout("form_focus.set()",1);}},cancel:function(e){var targ;if(!e){var e=window.event;}
if(e.target){targ=e.target;}
else if(e.srcElement){targ=e.srcElement;}
if(targ.nodeType==3){targ=targ.parentNode;}
if(targ.nodeName=="INPUT"){form_focus.ok=false;}}};document.onclick=function(event){form_focus.cancel(event)};loader.add(form_focus.timer);