<!--
function bookmarksite(title,url){
	if (window.sidebar) // firefox
	  alert("You need to press CTRL + D to bookmark the site.");
		// window.sidebar.addPanel(title, url, "");
	else if(window.opera && window.print){ // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} 
	else if(document.all)// ie
		window.external.AddFavorite(url, title);
}

function zoom(rate){
  var t=document.getElementById('GameDiv').style;
  var w=Math.floor(parseInt(t.width)*rate);
  var h=Math.floor(parseInt(t.height)*rate);
  t.width=w+"px";
  t.height=h+"px";
}
function zoomtheframe(rate)
{
	var t=document.getElementById('TheGameframe');
    t.height = t.height*rate;
    t.width =  t.width*rate;
	t.refresh;
}
function vote( id, value ) {
	new Ajax.Updater( 'vote', '/vote.php?id='+ id +'&v='+value );
	document.getElementById('vote').innerHTML="<img src='/images/loading.gif' align='middle'>submiting, please wait";
}
function reportbroken( id ) {
	new Ajax.Updater( 'reportbroken', '/reportbroken.php?id='+ id );
	document.getElementById('reportbroken').innerHTML="<img src='/images/loading.gif' align='middle'>submiting, please wait";
}

function show_flash(src) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="100%">');
	document.write('<param name="movie" value="' + src + '">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="' + src + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%" menu="0"></embed>');
	document.write('</object>');
}

function show_shockwave(src) {
	document.write('<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=7,0,2,0" width="100%" height="100%">');
	document.write('<param name="swRemote" value="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\'">');
	document.write('<param name="swStretchStyle" value="meet">');
	document.write('<param name="bgColor" value="#000000">');
	document.write('<param name="src" value="' + src + '">');
	document.write('<embed src="' + src + '" width="100%" height="100%" bgColor="#000000" swRemote="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\'" swStretchStyle="meet" type="application/x-director" pluginspage="http://www.macromedia.com/shockwave/download/"></embed>');
	document.write('</object>');
}

if (top.location!=self.location)
top.location.href=self.location.href;

-->