$(document).ready(function(){ 
$('#gwin').load('game-cleared.php');

$(function(){
var $pane2 = $('#pane2');
$pane2.jScrollPane({animateTo:true,showArrows:true});
$('a.scroll-to-element-demo').bind(
'click',
function()
{
var targetElementSelectorString = $(this).attr('rel');
$pane2[0].scrollTo(targetElementSelectorString);
return false;
}
);
});


$(".addfavright a img").click(function() {
var pgameIDValSplitter 	= (this.id).split("_");
var pgameIDVal 	= pgameIDValSplitter[1];

var productX = $("#pgamewrapID_" + pgameIDVal).offset().left;
var productY = $("#pgamewrapID_" + pgameIDVal).offset().top;

if( $("#pgameID_" + pgameIDVal).length > 0){
var basketX = $("#pgameID_" + pgameIDVal).offset().left;
var basketY = $("#pgameID_" + pgameIDVal).offset().top;	
} else {
var basketX = $("#bookmarkg").offset().left;
var basketY = $("#bookmarkg").offset().top;
}

var gotoX = basketX - productX;
var gotoY = basketY - productY;

var newImageWidth = $("#pgamewrapID_" + pgameIDVal).width() / 3;
var newImageHeight = $("#pgamewrapID_" + pgameIDVal).height() / 3;

$("#pgamewrapID_" + pgameIDVal + " img")
.clone()
.prependTo("#pgamewrapID_" + pgameIDVal)
.css({'position' : 'absolute'})
.animate({opacity: 0.7}, 0 )
.animate({opacity: 0.7, marginLeft: gotoX, marginTop: gotoY, width: newImageWidth, height: newImageHeight}, 700, function() {
$(this).remove();
});
});



$('.menuItem tr td').hover(
function() { $(this).addClass('highlight'); },
function() { $(this).removeClass('highlight'); }
).click( function() {
$('.selected').removeClass('selected');
$(this).addClass('selected').find('input').attr('checked','checked');
});

$('.menuItem4 tr td').hover(
function() { $(this).addClass('highlightb'); },
function() { $(this).removeClass('highlightb'); }
).click( function() {
$('.selectedb').removeClass('selectedb');
$(this).addClass('selectedb').find('input').attr('checked','checked');
});

$('.menuItem10 tbody tr').hover(
function() { $(this).addClass('highlighta'); },
function() { $(this).removeClass('highlighta'); }
).click( function() {
$('.selecteda').removeClass('selecteda');
$(this).addClass('selecteda').find('input').attr('checked','checked');
});

$('.menuItem10a div').hover(
function() { $(this).addClass('highlightaa'); },
function() { $(this).removeClass('highlightaa'); }
).click( function() {
$('.selectedaa').removeClass('selectedaa');
$(this).addClass('selectedaa').find('input').attr('checked','checked');
});


$('.menuItem11 tbody tr').hover(
function() { $(this).addClass('highlightc'); },
function() { $(this).removeClass('highlightc'); }
).click( function() {
$('.selectedc').removeClass('selectedc');
$(this).addClass('selectedc').find('input').attr('checked','checked');
});

$('.menuItem11a div').hover(
function() { $(this).addClass('highlightcc'); },
function() { $(this).removeClass('highlightcc'); }
).click( function() {
$('.selectedcc').removeClass('selectedcc');
$(this).addClass('selectedcc').find('input').attr('checked','checked');
});
});


if (document.images) {
 btn1_down=new Image(); btn1_down.src="images/featured-d.gif"; 
 btn1_up  =new Image(); btn1_up.src  ="images/featured.png"; 

 btn2_down=new Image(); btn2_down.src="images/action-d.gif"; 
 btn2_up  =new Image(); btn2_up.src  ="images/action.png"; 

 btn3_down=new Image(); btn3_down.src="images/adventure-d.gif"; 
 btn3_up  =new Image(); btn3_up.src  ="images/adventure.png"; 

 btn4_down=new Image(); btn4_down.src="images/puzzle-d.gif"; 
 btn4_up  =new Image(); btn4_up.src  ="images/puzzle.png";

 btn5_down=new Image(); btn5_down.src="images/sports-d.gif"; 
 btn5_up  =new Image(); btn5_up.src  ="images/sports.png";

 btn6_down=new Image(); btn6_down.src="images/more-d.gif"; 
 btn6_up  =new Image(); btn6_up.src  ="images/more.png";

 btn7_down=new Image(); btn7_down.src="images/gf-fav-b1.gif"; 
 btn7_up  =new Image(); btn7_up.src  ="images/s.gif";

 btn8_down=new Image(); btn8_down.src="images/gf-store-b1.gif"; 
 btn8_up  =new Image(); btn8_up.src  ="images/s.gif";

 btn12_down=new Image(); btn12_down.src="images/m-button-c.gif"; 
 btn12_up  =new Image(); btn12_up.src  ="images/s.gif";

 btn13_down=new Image(); btn13_down.src="images/m-button-i.gif"; 
 btn13_up  =new Image(); btn13_up.src  ="images/s.gif";

 btn14_down=new Image(); btn14_down.src="images/m-button-z.gif"; 
 btn14_up  =new Image(); btn14_up.src  ="images/s.gif";
}
  
function pressButton(btName) {
 if (document.images)
  eval('document.'+btName+'.src='+btName+'_down.src');
}
 
function releaseButton(btName) {
 if (document.images)
  eval('document.'+btName+'.src='+btName+'_up.src');
}

function checkCR(evt) {
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
if ((evt.keyCode == 13) && (node.type=="password")) {return false;}
}
document.onkeypress = checkCR; 


function fsmode(fs) {
fullscreen = document.getElementById("fsc");
if (fs=="min") {
fullscreen.width = "450px";
fullscreen.height = "329px";
fullscreen.style.display = "inline";
}else{
fullscreen.width = "750px";
fullscreen.height = "500px";
fullscreen.style.display = "inline";
}	

fullscreen2 = document.getElementById("gamesize");
if (fs=="min") {
fullscreen2.style.width = "450px";
fullscreen2.style.height = "329px";
fullscreen2.style.backgroundColor = "#0F0F0F";
fullscreen2.style.paddingTop = "0px";
fullscreen2.style.paddingBottom = "0px";
fullscreen2.style.paddingLeft = "0px";
fullscreen2.style.top = "0px";
fullscreen2.style.left = "0px";
fullscreen2.style.display = "inline";
}else{
fullscreen2.style.width = "750px";
fullscreen2.style.height = "500px";
fullscreen2.style.backgroundColor = "#aaaaaa";
fullscreen2.style.paddingTop = "80px";
fullscreen2.style.paddingBottom = "70px";
fullscreen2.style.paddingLeft = "28px";
fullscreen2.style.top = "-220px";
fullscreen2.style.left = "-230px";
fullscreen2.style.display = "inline";
}

fullscreen3 = document.getElementById("gamesizebar");
if (fs=="min") {
fullscreen3.style.width = "0px";
fullscreen3.style.height = "0px";
fullscreen3.style.display = "none";
}else{
fullscreen3.style.width = "750px";
fullscreen3.style.height = "10px";
fullscreen3.style.display = "inline";
}
}

/*
 * jQuery Tooltip plugin 1.3
 *
 * http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
 * http://docs.jquery.com/Plugins/Tooltip
 *
 * Copyright (c) 2006 - 2008 JÃ¶rn Zaefferer
 *
 * $Id: jquery.tooltip.js 5741 2008-06-21 15:22:16Z joern.zaefferer $
 * 
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */

(function(e){var b={},k,m,o,j=e.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),a=false;e.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:10,id:"tooltip"},block:function(){e.tooltip.blocked=!e.tooltip.blocked}};e.fn.extend({tooltip:function(p){p=e.extend({},e.tooltip.defaults,p);h(p);return this.each(function(){e.data(this,"tooltip",p);this.tOpacity=b.parent.css("");this.tooltipText=this.title;e(this).removeAttr("title");this.alt=""}).mouseover(l).mouseout(f).click(f)},fixPNG:j?function(){return this.each(function(){var p=e(this).css("backgroundImage");if(p.match(/^url\(["']?(.*\.png)["']?\)$/i)){p=RegExp.$1;e(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+p+"')"}).each(function(){var q=e(this).css("position");if(q!="absolute"&&q!="relative"){e(this).css("position","relative")}})}})}:function(){return this},unfixPNG:j?function(){return this.each(function(){e(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){e(this)[e(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function h(p){if(b.parent){return}b.parent=e('<div id="'+p.id+'"><ul></ul><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if(e.fn.bgiframe){b.parent.bgiframe()}b.title=e("ul",b.parent);b.body=e("div.body",b.parent);b.url=e("div.url",b.parent)}function c(p){return e.data(p,"tooltip")}function g(p){if(c(this).delay){o=setTimeout(n,c(this).delay)}else{n()}a=!!c(this).track;e(document.body).bind("mousemove",d);d(p)}function l(){if(e.tooltip.blocked||this==k||(!this.tooltipText&&!c(this).bodyHandler)){return}k=this;m=this.tooltipText;if(c(this).bodyHandler){b.title.hide();var s=c(this).bodyHandler.call(this);if(s.nodeType||s.jquery){b.body.empty().append(s)}else{b.body.html(s)}b.body.show()}else{if(c(this).showBody){var r=m.split(c(this).showBody);b.title.html(r.shift()).show();b.body.empty();for(var q=0,p;(p=r[q]);q++){if(q>0){b.body.append("<br/>")}b.body.append(p)}b.body.hideWhenEmpty()}else{b.title.html(m).show();b.body.hide()}}if(c(this).showURL&&e(this).url()){b.url.html(e(this).url().replace("http://","")).show()}else{b.url.hide()}b.parent.addClass(c(this).extraClass);if(c(this).fixPNG){b.parent.fixPNG()}g.apply(this,arguments)}function n(){o=null;if((!j||!e.fn.bgiframe)&&c(k).fade){if(b.parent.is(":animated")){b.parent.stop().show().fadeTo(c(k).fade,k.tOpacity)}else{b.parent.is(":visible")?b.parent.fadeTo(c(k).fade,k.tOpacity):b.parent.fadeIn(c(k).fade)}}else{b.parent.show()}d()}function d(s){if(e.tooltip.blocked){return}if(s&&s.target.tagName=="OPTION"){return}if(!a&&b.parent.is(":visible")){e(document.body).unbind("mousemove",d)}if(k==null){e(document.body).unbind("mousemove",d);return}b.parent.removeClass("viewport-right").removeClass("viewport-bottom");var u=b.parent[0].offsetLeft;var t=b.parent[0].offsetTop;if(s){u=s.pageX+c(k).left;t=s.pageY+c(k).top;var q="auto";if(c(k).positionLeft){q=e(window).width()-u;u="auto"}b.parent.css({left:u,right:q,top:t})}var p=i(),r=b.parent[0];if(p.x+p.cx<r.offsetLeft+r.offsetWidth){u-=r.offsetWidth+20+c(k).left;b.parent.css({left:u+"px"}).addClass("viewport-right")}if(p.y+p.cy<r.offsetTop+r.offsetHeight){t-=r.offsetHeight+20+c(k).top;b.parent.css({top:t+"px"}).addClass("viewport-bottom")}}function i(){return{x:e(window).scrollLeft(),y:e(window).scrollTop(),cx:e(window).width(),cy:e(window).height()}}function f(r){if(e.tooltip.blocked){return}if(o){clearTimeout(o)}k=null;var q=c(this);function p(){b.parent.removeClass(q.extraClass).hide().css("","")}if((!j||!e.fn.bgiframe)&&q.fade){if(b.parent.is(":animated")){b.parent.stop().fadeTo(q.fade,0,p)}else{b.parent.stop().fadeOut(q.fade,p)}}else{p()}if(c(this).fixPNG){b.parent.unfixPNG()}}})(jQuery);


/*
 * jQuery Form Plugin
 * version: 2.11 (05/26/2008)
 * @requires jQuery v1.2.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 *
 * Revision: $Id: jquery.form.js 5697 2008-05-26 22:59:29Z malsup $
 */

(function(b){b.fn.ajaxSubmit=function(s){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof s=="function"){s={success:s}}var e=b.trim(this.attr("action"));if(e){e=(e.match(/^([^#]+)/)||[])[1]}e=e||window.location.href||"";s=b.extend({url:e,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},s||{});var u={};this.trigger("form-pre-serialize",[this,s,u]);if(u.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(s.beforeSerialize&&s.beforeSerialize(this,s)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var m=this.formToArray(s.semantic);if(s.data){s.extraData=s.data;for(var f in s.data){if(s.data[f] instanceof Array){for(var g in s.data[f]){m.push({name:f,value:s.data[f][g]})}}else{m.push({name:f,value:s.data[f]})}}}if(s.beforeSubmit&&s.beforeSubmit(m,this,s)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[m,this,s,u]);if(u.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var d=b.param(m);if(s.type.toUpperCase()=="GET"){s.url+=(s.url.indexOf("?")>=0?"&":"?")+d;s.data=null}else{s.data=d}var t=this,l=[];if(s.resetForm){l.push(function(){t.resetForm()})}if(s.clearForm){l.push(function(){t.clearForm()})}if(!s.dataType&&s.target){var p=s.success||function(){};l.push(function(j){b(s.target).html(j).each(p,arguments)})}else{if(s.success){l.push(s.success)}}s.success=function(q,k){for(var n=0,j=l.length;n<j;n++){l[n].apply(s,[q,k,t])}};var c=b("input:file",this).fieldValue();var r=false;for(var i=0;i<c.length;i++){if(c[i]){r=true}}var h=false;if((c.length&&s.iframe!==false)||s.iframe||r||h){if(s.closeKeepAlive){b.get(s.closeKeepAlive,o)}else{o()}}else{b.ajax(s)}this.trigger("form-submit-notify",[this,s]);return this;function o(){var w=t[0];if(b(":input[name=submit]",w).length){alert('Error: Form elements must not be named "submit".');return}var q=b.extend({},b.ajaxSettings,s);var G=b.extend(true,{},b.extend(true,{},b.ajaxSettings),q);var v="jqFormIO"+(new Date().getTime());var C=b('<iframe id="'+v+'" name="'+v+'" src="'+q.iframeSrc+'" />');var E=C[0];C.css({position:"absolute",top:"-1000px",left:"-1000px"});var F={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;C.attr("src",q.iframeSrc)}};var D=q.global;if(D&&!b.active++){b.event.trigger("ajaxStart")}if(D){b.event.trigger("ajaxSend",[F,q])}if(G.beforeSend&&G.beforeSend(F,G)===false){G.global&&b.active--;return}if(F.aborted){return}var k=0;var z=0;var j=w.clk;if(j){var x=j.name;if(x&&!j.disabled){s.extraData=s.extraData||{};s.extraData[x]=j.value;if(j.type=="image"){s.extraData[name+".x"]=w.clk_x;s.extraData[name+".y"]=w.clk_y}}}setTimeout(function(){var J=t.attr("target"),H=t.attr("action");w.setAttribute("target",v);if(w.getAttribute("method")!="POST"){w.setAttribute("method","POST")}if(w.getAttribute("action")!=q.url){w.setAttribute("action",q.url)}if(!s.skipEncodingOverride){t.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(q.timeout){setTimeout(function(){z=true;A()},q.timeout)}var I=[];try{if(s.extraData){for(var K in s.extraData){I.push(b('<input type="hidden" name="'+K+'" value="'+s.extraData[K]+'" />').appendTo(w)[0])}}C.appendTo("body");E.attachEvent?E.attachEvent("onload",A):E.addEventListener("load",A,false);w.submit()}finally{w.setAttribute("action",H);J?w.setAttribute("target",J):t.removeAttr("target");b(I).remove()}},10);var y=50;function A(){if(k++){return}E.detachEvent?E.detachEvent("onload",A):E.removeEventListener("load",A,false);var H=true;try{if(z){throw"timeout"}var I,L;L=E.contentWindow?E.contentWindow.document:E.contentDocument?E.contentDocument:E.document;var M=q.dataType=="xml"||L.XMLDocument||b.isXMLDoc(L);a("isXml="+M);if(!M&&(L.body==null||L.body.innerHTML=="")){if(--y){k=0;setTimeout(A,100);return}a("Could not access iframe DOM after 50 tries.");return}F.responseText=L.body?L.body.innerHTML:null;F.responseXML=L.XMLDocument?L.XMLDocument:L;F.getResponseHeader=function(O){var N={"content-type":q.dataType};return N[O]};if(q.dataType=="json"||q.dataType=="script"){var n=L.getElementsByTagName("textarea")[0];if(n){F.responseText=n.value}else{var K=L.getElementsByTagName("pre")[0];if(K){F.responseText=K.innerHTML}}}else{if(q.dataType=="xml"&&!F.responseXML&&F.responseText!=null){F.responseXML=B(F.responseText)}}I=b.httpData(F,q.dataType)}catch(J){H=false;b.handleError(q,F,"error",J)}if(H){q.success(I,"success");if(D){b.event.trigger("ajaxSuccess",[F,q])}}if(D){b.event.trigger("ajaxComplete",[F,q])}if(D&&!--b.active){b.event.trigger("ajaxStop")}if(q.complete){q.complete(F,H?"success":"error")}setTimeout(function(){C.remove();F.responseXML=null},100)}function B(n,H){if(window.ActiveXObject){H=new ActiveXObject("Microsoft.XMLDOM");H.async="false";H.loadXML(n)}else{H=(new DOMParser()).parseFromString(n,"text/xml")}return(H&&H.documentElement&&H.documentElement.tagName!="parsererror")?H:null}}};b.fn.ajaxForm=function(c){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){b(this).ajaxSubmit(c);return false}).bind("click.form-plugin",function(i){var h=i.target;var f=b(h);if(!(f.is(":submit,input:image"))){var d=f.closest(":submit");if(d.length==0){return}h=d[0]}var g=this;g.clk=h;if(h.type=="image"){if(i.offsetX!=undefined){g.clk_x=i.offsetX;g.clk_y=i.offsetY}else{if(typeof b.fn.offset=="function"){var j=f.offset();g.clk_x=i.pageX-j.left;g.clk_y=i.pageY-j.top}else{g.clk_x=i.pageX-h.offsetLeft;g.clk_y=i.pageY-h.offsetTop}}}setTimeout(function(){g.clk=g.clk_x=g.clk_y=null},100)})};b.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};b.fn.formToArray=function(q){var p=[];if(this.length==0){return p}var d=this[0];var h=q?d.getElementsByTagName("*"):d.elements;if(!h){return p}for(var k=0,m=h.length;k<m;k++){var e=h[k];var f=e.name;if(!f){continue}if(q&&d.clk&&e.type=="image"){if(!e.disabled&&d.clk==e){p.push({name:f,value:b(e).val()});p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}continue}var r=b.fieldValue(e,true);if(r&&r.constructor==Array){for(var g=0,c=r.length;g<c;g++){p.push({name:f,value:r[g]})}}else{if(r!==null&&typeof r!="undefined"){p.push({name:f,value:r})}}}if(!q&&d.clk){var l=b(d.clk),o=l[0],f=o.name;if(f&&!o.disabled&&o.type=="image"){p.push({name:f,value:l.val()});p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}}return p};b.fn.formSerialize=function(c){return b.param(this.formToArray(c))};b.fn.fieldSerialize=function(d){var c=[];this.each(function(){var h=this.name;if(!h){return}var f=b.fieldValue(this,d);if(f&&f.constructor==Array){for(var g=0,e=f.length;g<e;g++){c.push({name:h,value:f[g]})}}else{if(f!==null&&typeof f!="undefined"){c.push({name:this.name,value:f})}}});return b.param(c)};b.fn.fieldValue=function(h){for(var g=[],e=0,c=this.length;e<c;e++){var f=this[e];var d=b.fieldValue(f,h);if(d===null||typeof d=="undefined"||(d.constructor==Array&&!d.length)){continue}d.constructor==Array?b.merge(g,d):g.push(d)}return g};b.fieldValue=function(c,j){var e=c.name,p=c.type,q=c.tagName.toLowerCase();if(typeof j=="undefined"){j=true}if(j&&(!e||c.disabled||p=="reset"||p=="button"||(p=="checkbox"||p=="radio")&&!c.checked||(p=="submit"||p=="image")&&c.form&&c.form.clk!=c||q=="select"&&c.selectedIndex==-1)){return null}if(q=="select"){var k=c.selectedIndex;if(k<0){return null}var m=[],d=c.options;var g=(p=="select-one");var l=(g?k+1:d.length);for(var f=(g?k:0);f<l;f++){var h=d[f];if(h.selected){var o=h.value;if(!o){o=(h.attributes&&h.attributes.value&&!(h.attributes.value.specified))?h.text:h.value}if(g){return o}m.push(o)}}return m}return c.value};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()})};b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var d=this.type,c=this.tagName.toLowerCase();if(d=="text"||d=="password"||c=="textarea"){this.value=""}else{if(d=="checkbox"||d=="radio"){this.checked=false}else{if(c=="select"){this.selectedIndex=-1}}}})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};b.fn.enable=function(c){if(c==undefined){c=true}return this.each(function(){this.disabled=!c})};b.fn.selected=function(c){if(c==undefined){c=true}return this.each(function(){var d=this.type;if(d=="checkbox"||d=="radio"){this.checked=c}else{if(this.tagName.toLowerCase()=="option"){var e=b(this).parent("select");if(c&&e[0]&&e[0].type=="select-one"){e.find("option").selected(false)}this.selected=c}}})};function a(){if(b.fn.ajaxSubmit.debug&&window.console&&window.console.log){window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}}})(jQuery);



/* Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-12-20 08:43:48 -0600 (Thu, 20 Dec 2007) $
 * $Rev: 4257 $
 *
 * Version: 1.2
 *
 * Requires: jQuery 1.2+
 */
(function($){$.dimensions={version:'1.2'};$.each(['Height','Width'],function(i,name){$.fn['inner'+name]=function(){if(!this[0])return;var torl=name=='Height'?'Top':'Left',borr=name=='Height'?'Bottom':'Right';return this.is(':visible')?this[0]['client'+name]:num(this,name.toLowerCase())+num(this,'padding'+torl)+num(this,'padding'+borr);};$.fn['outer'+name]=function(options){if(!this[0])return;var torl=name=='Height'?'Top':'Left',borr=name=='Height'?'Bottom':'Right';options=$.extend({margin:false},options||{});var val=this.is(':visible')?this[0]['offset'+name]:num(this,name.toLowerCase())+num(this,'border'+torl+'Width')+num(this,'border'+borr+'Width')+num(this,'padding'+torl)+num(this,'padding'+borr);return val+(options.margin?(num(this,'margin'+torl)+num(this,'margin'+borr)):0);};});$.each(['Left','Top'],function(i,name){$.fn['scroll'+name]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(name=='Left'?val:$(window)['scrollLeft'](),name=='Top'?val:$(window)['scrollTop']()):this['scroll'+name]=val;}):this[0]==window||this[0]==document?self[(name=='Left'?'pageXOffset':'pageYOffset')]||$.boxModel&&document.documentElement['scroll'+name]||document.body['scroll'+name]:this[0]['scroll'+name];};});$.fn.extend({position:function(){var left=0,top=0,elem=this[0],offset,parentOffset,offsetParent,results;if(elem){offsetParent=this.offsetParent();offset=this.offset();parentOffset=offsetParent.offset();offset.top-=num(elem,'marginTop');offset.left-=num(elem,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}return results;},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&$.css(offsetParent,'position')=='static'))offsetParent=offsetParent.offsetParent;return $(offsetParent);}});function num(el,prop){return parseInt($.curCSS(el.jquery?el[0]:el,prop,true))||0;};})(jQuery);


/* Copyright (c) 2006 Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 *
 * $LastChangedDate: 2007-06-20 16:25:35 -0500 (Wed, 20 Jun 2007) $
 * $Rev: 2125 $
 *
 * Version: 2.2
 */
(function($){$.fn.extend({mousewheel:function(f){if(!f.guid)f.guid=$.event.guid++;if(!$.event._mwCache)$.event._mwCache=[];return this.each(function(){if(this._mwHandlers)return this._mwHandlers.push(f);else this._mwHandlers=[];this._mwHandlers.push(f);var s=this;this._mwHandler=function(e){e=$.event.fix(e||window.event);$.extend(e,this._mwCursorPos||{});var delta=0,returnValue=true;if(e.wheelDelta)delta=e.wheelDelta/120;if(e.detail)delta=-e.detail/3;if(window.opera)delta=-e.wheelDelta;for(var i=0;i<s._mwHandlers.length;i++)if(s._mwHandlers[i])if(s._mwHandlers[i].call(s,e,delta)===false){returnValue=false;e.preventDefault();e.stopPropagation();}return returnValue;};if($.browser.mozilla&&!this._mwFixCursorPos){this._mwFixCursorPos=function(e){this._mwCursorPos={pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY};};$(this).bind('mousemove',this._mwFixCursorPos);}if(this.addEventListener)if($.browser.mozilla)this.addEventListener('DOMMouseScroll',this._mwHandler,false);else this.addEventListener('mousewheel',this._mwHandler,false);else
this.onmousewheel=this._mwHandler;$.event._mwCache.push($(this));});},unmousewheel:function(f){return this.each(function(){if(f&&this._mwHandlers){for(var i=0;i<this._mwHandlers.length;i++)if(this._mwHandlers[i]&&this._mwHandlers[i].guid==f.guid)delete this._mwHandlers[i];}else{if($.browser.mozilla&&!this._mwFixCursorPos)$(this).unbind('mousemove',this._mwFixCursorPos);if(this.addEventListener)if($.browser.mozilla)this.removeEventListener('DOMMouseScroll',this._mwHandler,false);else this.removeEventListener('mousewheel',this._mwHandler,false);else
this.onmousewheel=null;this._mwHandlers=this._mwHandler=this._mwFixCursorPos=this._mwCursorPos=null;}});}});$(window).one('unload',function(){var els=$.event._mwCache||[];for(var i=0;i<els.length;i++)els[i].unmousewheel();});})(jQuery);

 

/* Copyright (c) 2006 Kelvin Luck (kelvin AT kelvinluck DOT com || http://www.kelvinluck.com)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * 
 * See http://kelvinluck.com/assets/jquery/jScrollPane/
 * $Id: jScrollPane.js 4702 2008-02-09 10:19:47Z kelvin.luck $
 */

jQuery.jScrollPane={active:[]};jQuery.fn.jScrollPane=function(a){a=jQuery.extend({scrollbarWidth:10,scrollbarMargin:5,wheelSpeed:18,showArrows:false,arrowSize:0,animateTo:false,dragMinHeight:18,dragMaxHeight:99999,animateInterval:100,animateStep:3,maintainPosition:true,scrollbarOnLeft:false},a);return this.each(function(){var k=jQuery(this);if(jQuery(this).parent().is(".jScrollPaneContainer")){var X=a.maintainPosition?k.offset({relativeTo:jQuery(this).parent()[0]}).top:0;var i=jQuery(this).parent();var z=i.innerWidth();var Y=i.outerHeight();var j=Y;if(i.unmousewheel){i.unmousewheel()}jQuery(">.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown",i).remove();k.css({top:0})}else{var X=0;this.originalPadding=k.css("paddingTop")+" "+k.css("paddingRight")+" "+k.css("paddingBottom")+" "+k.css("paddingLeft");this.originalSidePaddingTotal=(parseInt(k.css("paddingLeft"))||0)+(parseInt(k.css("paddingRight"))||0);var z=k.innerWidth();var Y=k.innerHeight();var j=Y;k.wrap(jQuery("<div></div>").attr({className:"jScrollPaneContainer"}).css({height:Y+"px",width:z+"px"}));jQuery(document).bind("emchange",function(Z,aa,p){k.jScrollPane(a)})}var K=this.originalSidePaddingTotal;var H={height:"auto",width:z-a.scrollbarWidth-a.scrollbarMargin-K+"px"};if(a.scrollbarOnLeft){H.paddingLeft=a.scrollbarMargin+a.scrollbarWidth+"px"}else{H.paddingRight=a.scrollbarMargin+"px"}k.css(H);var I=k.outerHeight();var E=Y/I;if(E<0.99){var e=k.parent();e.append(jQuery("<div></div>").attr({className:"jScrollPaneTrack"}).css({width:a.scrollbarWidth+"px"}).append(jQuery("<div></div>").attr({className:"jScrollPaneDrag"}).css({width:a.scrollbarWidth+"px"}).append(jQuery("<div></div>").attr({className:"jScrollPaneDragTop"}).css({width:a.scrollbarWidth+"px"}),jQuery("<div></div>").attr({className:"jScrollPaneDragBottom"}).css({width:a.scrollbarWidth+"px"}))));var U=jQuery(">.jScrollPaneTrack",e);var l=jQuery(">.jScrollPaneTrack .jScrollPaneDrag",e);if(a.showArrows){var C;var W;var o;var M;var F=function(){if(M>4||M%4==0){T(P+W*x)}M++};var h=function(p){jQuery("html").unbind("mouseup",h);C.removeClass("jScrollActiveArrowButton");clearInterval(o)};var v=function(){jQuery("html").bind("mouseup",h);C.addClass("jScrollActiveArrowButton");M=0;F();o=setInterval(F,100)};e.append(jQuery("<a></a>").attr({href:"javascript:;",className:"jScrollArrowUp"}).css({width:a.scrollbarWidth+"px"}).html("Scroll up").bind("mousedown",function(){C=jQuery(this);W=-1;v();this.blur();return false}),jQuery("<a></a>").attr({href:"javascript:;",className:"jScrollArrowDown"}).css({width:a.scrollbarWidth+"px"}).html("Scroll down").bind("mousedown",function(){C=jQuery(this);W=1;v();this.blur();return false}));var m=jQuery(">.jScrollArrowUp",e);var g=jQuery(">.jScrollArrowDown",e);if(a.arrowSize){j=Y-a.arrowSize-a.arrowSize;U.css({height:j+"px",top:a.arrowSize+"px"})}else{var N=m.height();a.arrowSize=N;j=Y-N-g.height();U.css({height:j+"px",top:N+"px"})}}var R=jQuery(this).css({position:"absolute",overflow:"visible"});var b;var u;var x;var P=0;var s=E*Y/2;var w=function(Z,ab){var aa=ab=="X"?"Left":"Top";return Z["page"+ab]||(Z["client"+ab]+(document.documentElement["scroll"+aa]||document.body["scroll"+aa]))||0};var B=function(){return false};var Q=function(){J();b=l.offset(false);b.top-=P;u=j-l[0].offsetHeight;x=2*a.wheelSpeed*u/I};var c=function(p){Q();s=w(p,"Y")-P-b.top;jQuery("html").bind("mouseup",q).bind("mousemove",D);if(jQuery.browser.msie){jQuery("html").bind("dragstart",B).bind("selectstart",B)}return false};var q=function(){jQuery("html").unbind("mouseup",q).unbind("mousemove",D);s=E*Y/2;if(jQuery.browser.msie){jQuery("html").unbind("dragstart",B).unbind("selectstart",B)}};var T=function(Z){Z=Z<0?0:(Z>u?u:Z);P=Z;l.css({top:Z+"px"});var aa=Z/u;R.css({top:((Y-I)*aa)+"px"});k.trigger("scroll");if(a.showArrows){m[Z==0?"addClass":"removeClass"]("disabled");g[Z==u?"addClass":"removeClass"]("disabled")}};var D=function(p){T(w(p,"Y")-b.top-s)};var L=Math.max(Math.min(E*(Y-a.arrowSize*2),a.dragMaxHeight),a.dragMinHeight);l.css({height:L+"px"}).bind("mousedown",c);var G;var n;var f;var O=function(){if(n>8||n%4==0){T((P-((P-f)/2)))}n++};var V=function(){clearInterval(G);jQuery("html").unbind("mouseup",V).unbind("mousemove",A)};var A=function(p){f=w(p,"Y")-b.top-s};var r=function(p){Q();A(p);n=0;jQuery("html").bind("mouseup",V).bind("mousemove",A);G=setInterval(O,100);O()};U.bind("mousedown",r);if(e.mousewheel){e.mousewheel(function(Z,ab){Q();J();var aa=P;T(P-ab*x);var p=aa!=P;return !p},false)}var d;var t;function y(){var p=(d-P)/a.animateStep;if(p>1||p<-1){T(P+p)}else{T(d);J()}}var J=function(){if(t){clearInterval(t);delete d}};var S=function(aa,p){if(typeof aa=="string"){$e=jQuery(aa,this);if(!$e.length){return}aa=$e.offset().top-k.offset().top}J();var Z=-aa/(Y-I)*u;if(!p||a.animateTo){d=Z;t=setInterval(y,a.animateInterval)}else{T(Z)}};k[0].scrollTo=S;k[0].scrollBy=function(Z){var p=-parseInt(R.css("top"))||0;S(p+Z)};Q();S(-X,true);jQuery.jScrollPane.active.push(k[0])}else{k.css({height:Y+"px",width:z-this.originalSidePaddingTotal+"px",padding:this.originalPadding})}})};jQuery(window).bind("unload",function(){var b=jQuery.jScrollPane.active;for(var a=0;a<b.length;a++){b[a].scrollTo=b[a].scrollBy=null}});



/*
jQuery Fieldtag Plugin
    * Version 1.1
    * 2009-05-07 10:10:35
    * URL: http://ajaxcssblog.com/jquery/fieldtag-watermark-inputfields/
    * Description: jQuery Plugin to dynamically tag an inputfield, with a class and/or text
    * Author: Matthias Jäggli
    * Copyright: Copyright (c) 2009 Matthias Jäggli under dual MIT/GPL license.
	*
	* Changelog
	* 1.1
	* Support for proper clearing while submitting the form of tagged fields
	* 1.0
	* Initial release
*/

(function(a){a.fn.fieldtag=function(b){var c=a.extend({markedClass:"tagged",standardText:false},b);a(this).focus(function(){if(!this.changed){this.clear()}}).blur(function(){if(!this.changed){this.addTag()}}).keyup(function(){this.changed=(a(this).val()?true:false)}).each(function(){this.title=a(this).attr("title");if(a(this).val()==a(this).attr("title")){this.changed=false}this.clear=function(){if(!this.changed){a(this).val("").removeClass(c.markedClass)}};this.addTag=function(){a(this).val(c.standardText===false?this.title:c.standardText).addClass(c.markedClass)};if(this.form){this.form.tagFieldsToClear=this.form.tagFieldsToClear||[];this.form.tagFieldsToClear.push(this);if(this.form.tagFieldsAreCleared){return true}this.form.tagFieldsAreCleared=true;a(this.form).submit(function(){a(this.tagFieldsToClear).each(function(){this.clear()})})}}).keyup().blur();return a(this)}})(jQuery);




/*
 * jQuery UI Effects 1.7.2
 *
 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Effects/
 *
 * TERMS OF USE - EASING EQUATIONS
 *
 * Open source under the BSD License.
 *
 * Copyright 2001 Robert Penner
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this list of
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list
 * of conditions and the following disclaimer in the documentation and/or other materials
 * provided with the distribution.
 *
 * Neither the name of the author nor the names of contributors may be used to endorse
 * or promote products derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 * OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 */

jQuery.effects||(function(b){b.effects={version:"1.7.2",save:function(d,e){for(var c=0;c<e.length;c++){if(e[c]!==null){d.data("ec.storage."+e[c],d[0].style[e[c]])}}},restore:function(d,e){for(var c=0;c<e.length;c++){if(e[c]!==null){d.css(e[c],d.data("ec.storage."+e[c]))}}},setMode:function(c,d){if(d=="toggle"){d=c.is(":hidden")?"show":"hide"}return d},getBaseline:function(d,e){var f,c;switch(d[0]){case"top":f=0;break;case"middle":f=0.5;break;case"bottom":f=1;break;default:f=d[0]/e.height}switch(d[1]){case"left":c=0;break;case"center":c=0.5;break;case"right":c=1;break;default:c=d[1]/e.width}return{x:c,y:f}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper")){return c.parent()}var d={width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("float")};c.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var g=c.parent();if(c.css("position")=="static"){g.css({position:"relative"});c.css({position:"relative"})}else{var f=c.css("top");if(isNaN(parseInt(f,10))){f="auto"}var e=c.css("left");if(isNaN(parseInt(e,10))){e="auto"}g.css({position:c.css("position"),top:f,left:e,zIndex:c.css("z-index")}).show();c.css({position:"relative",top:0,left:0})}g.css(d);return g},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper")){return c.parent().replaceWith(c)}return c},setTransition:function(d,f,c,e){e=e||{};b.each(f,function(h,g){unit=d.cssUnit(g);if(unit[0]>0){e[g]=unit[0]*c+unit[1]}});return e},animateClass:function(e,f,h,g){var c=(typeof h=="function"?h:(g?g:null));var d=(typeof h=="string"?h:null);return this.each(function(){var m={};var k=b(this);var l=k.attr("style")||"";if(typeof l=="object"){l=l.cssText}if(e.toggle){k.hasClass(e.toggle)?e.remove=e.toggle:e.add=e.toggle}var i=b.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(e.add){k.addClass(e.add)}if(e.remove){k.removeClass(e.remove)}var j=b.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(e.add){k.removeClass(e.add)}if(e.remove){k.addClass(e.remove)}for(var o in j){if(typeof j[o]!="function"&&j[o]&&o.indexOf("Moz")==-1&&o.indexOf("length")==-1&&j[o]!=i[o]&&(o.match(/color/i)||(!o.match(/color/i)&&!isNaN(parseInt(j[o],10))))&&(i.position!="static"||(i.position=="static"&&!o.match(/left|top|bottom|right/)))){m[o]=j[o]}}k.animate(m,f,d,function(){if(typeof b(this).attr("style")=="object"){b(this).attr("style")["cssText"]="";b(this).attr("style")["cssText"]=l}else{b(this).attr("style",l)}if(e.add){b(this).addClass(e.add)}if(e.remove){b(this).removeClass(e.remove)}if(c){c.apply(this,arguments)}})})}};function a(d,c){var f=d[1]&&d[1].constructor==Object?d[1]:{};if(c){f.mode=c}var e=d[1]&&d[1].constructor!=Object?d[1]:(f.duration?f.duration:d[2]);e=b.fx.off?0:typeof e==="number"?e:b.fx.speeds[e]||b.fx.speeds._default;var g=f.callback||(b.isFunction(d[1])&&d[1])||(b.isFunction(d[2])&&d[2])||(b.isFunction(d[3])&&d[3]);return[d[0],f,e,g]}b.fn.extend({_show:b.fn.show,_hide:b.fn.hide,__toggle:b.fn.toggle,_addClass:b.fn.addClass,_removeClass:b.fn.removeClass,_toggleClass:b.fn.toggleClass,effect:function(d,c,e,f){return b.effects[d]?b.effects[d].call(this,{method:d,options:c||{},duration:e,callback:f}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,a(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,a(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(b.isFunction(arguments[0])||typeof arguments[0]=="boolean")){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,a(arguments,"toggle"))}},addClass:function(d,c,f,e){return c?b.effects.animateClass.apply(this,[{add:d},c,f,e]):this._addClass(d)},removeClass:function(d,c,f,e){return c?b.effects.animateClass.apply(this,[{remove:d},c,f,e]):this._removeClass(d)},toggleClass:function(d,c,f,e){return((typeof c!=="boolean")&&c)?b.effects.animateClass.apply(this,[{toggle:d},c,f,e]):this._toggleClass(d,c)},morph:function(c,e,d,g,f){return b.effects.animateClass.apply(this,[{add:e,remove:c},d,g,f])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(c){var d=this.css(c),e=[];b.each(["em","px","%","pt"],function(f,g){if(d.indexOf(g)>0){e=[parseFloat(d),g]}});return e}})})(jQuery);

/*
 * jQuery UI Effects Slide 1.7.2
 *
 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Effects/Slide
 *
 * Depends:
 *	effects.core.js
 */

(function(a){a.effects.slide=function(b){return this.queue(function(){var e=a(this),d=["position","top","left"];var i=a.effects.setMode(e,b.options.mode||"show");var h=b.options.direction||"left";a.effects.save(e,d);e.show();a.effects.createWrapper(e).css({overflow:"hidden"});var f=(h=="up"||h=="down")?"top":"left";var c=(h=="up"||h=="left")?"pos":"neg";var j=b.options.distance||(f=="top"?e.outerHeight({margin:true}):e.outerWidth({margin:true}));if(i=="show"){e.css(f,c=="pos"?-j:j)}var g={};g[f]=(i=="show"?(c=="pos"?"+=":"-="):(c=="pos"?"-=":"+="))+j;e.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){e.hide()}a.effects.restore(e,d);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);



/*sifr*/

function fin(thegameid) { 
$('#gwin').empty().html('<table width=450px height=327px bgcolor=#0F0F0F><tr><td valign=middle><center><img src=images/loading.gif></td></tr></table>');$('#gwin').load('gameload.php?gameid='+thegameid+'');$('#addfav').hide();$('#gameinfo2').load('game-d8.php?id='+thegameid+'');$('#gameinfo').load('instruction.php?id='+thegameid+'');$('#gameinfo2').hide().fadeIn(1000);$('#menuid'+thegameid+'').click();hidden();$('#menufav'+thegameid+'').click();
addfavg = document.getElementById('menufav'+thegameid+'');
//addfavg.style.background = "url(images/fav-game.gif) no-repeat";
addfavg.style.display = "inline";
//addfavg.style.backgroundColor = "#aaaaaa";
}
function fina(thegamedata) {
$.cookie('example', ''+$.cookie('example')+',,'+thegamedata+',,', { expires: 1000 });

}




var cochin = {
src: 'css/bitfonte.swf'
,ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
};
//sIFR.fitExactly = true;
sIFR.activate(cochin);
sIFR.replace(cochin, {
selector: '.menu'
,wmode: 'transparent'
, tuneHeight:'-1', offsetTop :'-2px' ,tuneWidth: '40px' ,forceSingleLine: 'true'

,css: [
'.sIFR-root {font-weight: normal;font-style: normal; color: #5E5E5E;display: inline; background-color: #cccccc;}'
,'a { text-decoration: none; }'
,'a:link { color: #5E5E5E; }'
,'a:hover { color: #5E5E5E; }'
]
});



/*tooltip*/

$(function() {
$('#gameinfo a').tooltip({
	track: true,
	delay: 0,
	showURL: false,
	showBody: " - "
});

$('#zoom a').tooltip({
	track: true,
	delay: 0,
	showURL: false,
	showBody: " - "
});
$('#messenger a').tooltip({
	track: true,
	delay: 0,
	showURL: false,
	showBody: " - "
});
$('#cleargame a').tooltip({
	track: true,
	delay: 0,
	showURL: false,
	showBody: " - "
});
$('#bookmark a').tooltip({
	track: true,
	delay: 0,
	showURL: false,
	showBody: " - "
});
$("#block").click($.tooltip.block);
});


/*scroll add to fav*/

function hidden()
{document.body.style.overflow="hidden";}
function unhidden()
{document.body.style.overflow="";}

function bookmark() {
title = "GameFun! - Games for Everyone!";
url = "http://www.gamefun.com/";
if (window.sidebar) {
window.sidebar.addPanel(title, url,"");
} else if( window.external ) {
window.external.AddFavorite( url, title);
}else if(window.opera && window.print) {
return true;
}
}