/**
 * Alcade 1.0.1
 * FREE SOFTWARE
**/

var stars=new Array();var star_images=new Array();function init_rate_file(){for(var i=1;i<=5;i++){stars[i]=doc_id("rate_"+i);star_images[i]=stars[i].src;stars[i].style.cursor="pointer";stars[i].title=i;stars[i].onmouseover=function(){star_hover(this.title);};stars[i].onmouseout=clear_stars;stars[i].onclick=function(){rate_file(this.title);};}}function star_hover(star_id){for(i=1;i<=star_id;i++)stars[i].src=adres+"/resimler/star.png";}function clear_stars(){for(i=1;i<=5;i++)stars[i].src=star_images[i];}function rate_file(rating){function back_function(server_r){doc_id("file_rating").innerHTML=server_r.rating+" "+server_r.message;}makeHttpRequest(adres+"/filee.php?f="+file_id+"&a=rate&r="+rating+"&ajax=1",back_function, true);}addLoadEvent(init_rate_file);
<!--
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('game_div').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;

-->
