<!--

function show_email()
{
inner2('email',null,'<span style="float:right;"><img onclick="overlayclose(\'email\');" src="close.jpg" width="15" height="15" style="cursor:pointer;cursor:hand;" alt="close"></span><iframe src="http://www.gamesbob.net/" width="275" height="58" name="frame" frameborder="0"></iframe>');
}

function inner2(ID,parentID,sText) {
	if (document.layers) {
		var oLayer = (parentID)? eval('document.' + parentID + '.document.' + ID + '.document') : document.layers[ID].document;
		oLayer.open();
		oLayer.write(sText);
		oLayer.close();
	}
	else if (document.all) document.all[ID].innerHTML = sText;
	else if (parseInt(navigator.appVersion)>=5&&navigator.appName=="Netscape") {
		document.getElementById(ID).innerHTML = sText;
	}
}

function addBookmark(title, url) {
        if (window.sidebar) { // firefox
              window.sidebar.addPanel(title, url,"");
        } else if( document.all ) { //MSIE
                window.external.AddFavorite( url, title);
        } else {
               alert("Sorry, your browser doesn't support this");
        }
}


/***********************************************
* Drop Down/ Overlapping Content- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/dynamicindex5/overlapcontent.htm for full source code
***********************************************/

function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function overlay(curobj, subobjstr, opt_position){
if ( subobjstr == 'email' ) { show_email(); }
if (document.getElementById){
var subobj=document.getElementById(subobjstr)
subobj.style.display=(subobj.style.display!="block")? "block" : "none"
var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : 0) 
var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : 0)
subobj.style.left=xpos+"px"
subobj.style.top=ypos+"px"
return false
}
else{
return true
}

}

function overlayclose(subobj){
document.getElementById(subobj).style.display="none"
}


function xxx(w){window.status=w;return true;}

function inner(game,width,height,type) {
var ID = 'showgame';
var parentID = null;
var sText = (type == 0) ? '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'" id="movie" align="center"><param name="movie" value="'+game+'"><embed src="'+game+'" quality="high" width="'+width+'" height="'+height+'" name="movie" align="center" type="application/x-shockwave-flash" plug inspage="http://www.macromedia.com/go/getflashplayer"></object>' : '<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0"  width="'+width+'" height="'+height+'" id="movie" align="center"><param name="movie" value="'+game+'"><embed src="'+game+'" pluginspage="http://www.macromedia.com/shockwave/download/" width="'+width+'" height="'+height+'" name="movie" align="center"></embed></object>' ;

	if (document.layers) {
		var oLayer = (parentID)? eval('document.' + parentID + '.document.' + ID + '.document') : document.layers[ID].document;
		oLayer.open();
		oLayer.write(sText);
		oLayer.close();
	}
	else if (document.all) document.all[ID].innerHTML = sText;
	else if (parseInt(navigator.appVersion)>=5&&navigator.appName=="Netscape") {
		document.getElementById(ID).innerHTML = sText;
	}
}

function fixtables(savedWidth,savedHeight)
{
var myWidth = 0, myHeight = 0;

  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE - FireFox
    myWidth = window.innerWidth-15;
    myHeight = window.innerHeight;
  }
else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
 {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  }
 else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
 {
    //IE 4 compatible - my ie
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }

var t1w = (myWidth - savedWidth) / 2;

if (t1w > 135)
{
document.getElementById('t1').style.width=t1w;
document.getElementById('t2').style.width=t1w-7;
}else{
document.getElementById('t1').style.width=135;
document.getElementById('t2').style.width=135;
}

var test = myWidth - (savedWidth + 270);
var test2 = myHeight - savedHeight;

var t5 = myWidth - 277;

if (test < 0 || test2 < 0) { 

var maxWidth=t5;
var maxHeight=myHeight;

  var x=parseInt(savedWidth);
  var y=parseInt(savedHeight);
  if (x>maxWidth) {
    y*=maxWidth/x;
    x=maxWidth;
  }
  if (y>maxHeight) {
    x*=maxHeight/y;
    y=maxHeight;
  }

if (x > 10 || y > 10){resizeImage('movie',x,y);}

 }

}

function s(savedWidth,savedHeight)
{
	if(readCookie("sizeSettings"))
	{
		var factor=readCookie("sizeSettings");
		if(factor>0)
		{
			for(i=1;i<=factor;i++)
			{
				savedWidth=parseInt(savedWidth*1.1);
				savedHeight=parseInt(savedHeight*1.1);
			}
		}
		else
		{	
			if(factor<0)
			{
				for(i=-1;i>=factor;i--)
				{
					savedWidth=parseInt(savedWidth*.9);
					savedHeight=parseInt(savedHeight*.9);
				}
			}

		}
	}
resizeImage('movie',savedWidth,savedHeight);
fixtables(savedWidth,savedHeight);
}

function createCookie(name,value,days)
{
	if(days)
	{
		var date=new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires=";expires="+date.toGMTString();
	}
	else
	{
		var expires="";
	}
document.cookie=name+"="+value+expires+";path=/";
}

function readCookie(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;
}

function eraseCookie(name)
{
createCookie(name,"",-1);
}

function saveSize(sizeChange)
{
	if(sizeChange>1)
	{
		sizeChange=1;
	}
	else
	{
		sizeChange=-1;
	}
	if(readCookie("sizeSettings"))
	{
		sizeChange=(readCookie("sizeSettings")-0)+sizeChange;
	}
createCookie("sizeSettings",sizeChange,365);
}

function resizeImage(imageOrImageName,width,height)
{
var image=typeof imageOrImageName=='string' ? document[imageOrImageName]:imageOrImageName;
image.width=width;
image.height=height;
}

function zoomImage(imageOrImageName,factor)
{
var image=typeof imageOrImageName=='string' ? document[imageOrImageName]:imageOrImageName;
	if(document.layers)
	{
		var currentWidth=image.currentWidth ? image.currentWidth:image.width;
		var currentHeight=image.currentHeight ? image.currentHeight: image.height;
	}
	else
	{
		var currentWidth=image.width;
		var currentHeight=image.height;
	}
var width=parseInt(currentWidth*factor);
var height=parseInt(currentHeight*factor);
	if(width>10||height>10)
	{
		saveSize(factor);resizeImage(image,width,height);
	}
}

function resetImage(imageOrImageName,width,height)
{
var image=typeof imageOrImageName=='string' ? document[imageOrImageName]:imageOrImageName;
eraseCookie("sizeSettings");
resizeImage(image,width,height);
}

//-->