//JavaScript Document

function registerchecking(Myform)
{
	if (!document.getElementById) 
    return true;
	
	if(Myform.username.value=="")
	{
		alert("Kullanıcı adını yazmayı unuttun :)")
		Myform.username.focus();
		return false;
		
	}
	else
	{
		if(!isValidStr(Myform.username.value))
		{
			alert("Kullanıcı adında şu karakterleri kullanamazsın : < >  \ / | * $ ' * # % ( ) @ \" ");
			Myform.username.select();
			return false;
		}
	}
	if(Myform.password.value=="")
	{
		alert("Şifreni yazmayı unuttun :)")
		Myform.password.focus();
		return false;

	}
	else
	{
		if(!isValidStr(Myform.password.value))
		{
			alert("Şifrende boşluk ve şu karakterler olmamalı : < >  \ / | * $ ' * # % ( ) @ \" ");
			Myform.password.select();
			return false;
		}
	}
	if(Myform.email.value=="")
	{
		alert("Email adresi yazmayımı unuttun yoksa :)")
		Myform.email.focus();
		return false;

	}
	else{
		if(!checkMail(Myform.email.value)){
			alert("Email adresin yanış gibi gözüküyor.")
			Myform.email.select();
			 return false;
		}
	}
}
function checkMail(str)
{
	var x = str
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (filter.test(x)) return true;
	else return false;

}
function isValidStr(str)
{
	var invalidChar = /[<>"'|*#%* ()@$]/
	var found = invalidChar.test(str);
	return !found;
}
function open_window(win_name,the_url, args)
{
  if (args == null)
     window.open(the_url,win_name,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=300')
  else
     window.open(the_url,win_name,args)
}
function alertmsg(str)
{
	var temp = document.createElement('div')
	temp.innerHTML =str;
	alert(temp.innerHTML)
}

function hideads(sec)
{
  setTimeout("hidenow()",sec);
}

function hidenow()
{
document.getElementById("ads1").style.display="none";
document.getElementById("ads2").style.display="block"; 
}
//overlib
distance=10;
function g(path)
{
return overlib("<img width='99' height='99' class='wh' src='http://www.limonoyun.com/files/images/"+path+".png'>", OFFSETY, ""+distance);
}
//Add Favorite
link=location.href.split('/')[3];
title=document.title;
url=location.href;
function bookmark()
{
if (document.all) {
window.external.AddFavorite(url, title);
} else if (window.sidebar) {
window.sidebar.addPanel(title, url, "")
}
pageTracker._trackPageview ('/Bookmark/'+link);
}
//Set Home Page
function sethomepage() {
	if (document.all) {
		document.body.style.behavior='url(#default#homepage)';
		document.body.setHomePage('http://www.limonoyun.com/');
	} else if (window.sidebar) {
		if(window.netscape) {
			try {  
				netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  
			} catch(e) {  
				alert("Bu özelliği tarayıcınız desteklemiyor.\nLütfen ayarları elle yapmayı deneyin.");  
			}
		} 
		var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
		prefs.setCharPref('browser.startup.homepage','http://www.limonoyun.com/');
	}
pageTracker._trackPageview ('/HomePage/'+link);
}

function stopError()
{
return true;
}
window.onerror = stopError;


eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('4 m=0;9 1S(8){4 1X=o(8)-1;p(4 i=1X;i>-1;i--){8[i]=19}}9 D(){7(m)x(\'2v\');4 8=16 2u(19);C 8}9 V(h,r,c){7(m)x(\'V\');7(!c)c=16 1Q();6.K=h+\'=\'+2t(r)+\'; c=\'+c.2s()+\'; 1T=/\'}9 18(h){7(m)x(\'18\');4 F=6.K;4 1b=h+"=";4 1a=F.U;4 z=0;1R(z<1a){4 Y=z+1b.U;7(F.W(z,Y)==1b){4 X=F.L(";",Y);7(X==-1)X=1a;C 2r(F.W(Y,X))}z=F.L(" ",z)+1;7(z==0)2q}C 19}9 1W(h){7(m)x(\'1W\');6.K=h+\'=\'+\'; c=2p, 1U-2o-2n 1V:1V:1U 2m; 1T=/\'}9 q(h,8){7(m)x(\'q\');1S(8);4 s=18(h);7(s){i=1;1R(s.L(\'^\')!=\'-1\'){8[i]=s.W(0,s.L(\'^\'));i++;s=s.W(s.L(\'^\')+1,s.U)}}}9 T(h,8,c){7(m)x(\'T\');4 r=\'\';p(4 i=1;8[i];i++){r+=8[i]+\'^\'}V(h,r,c)}9 S(h,8,E,c){7(m)x(\'S\');4 r=\'\';q(h,8);p(4 i=1;i<E;i++){r+=8[i]+\'^\'}p(4 j=E+1;8[j];j++){r+=8[j]+\'^\'}V(h,r,c)}9 o(8){7(m)x(\'o\');4 j=0;p(4 i=1;8[i];i++){j=i}C j+1}9 2l(){m=1}9 2k(){m=0}9 2j(){7(6.K==\'\')6.10(\'2i 2h 2g\');J{17=6.K.I(\'; \');p(i=0;i<17.U;i++){6.10(17[i]+\'<2f \\/>\')}}}4 l=\'2e\';4 1P=2d;4 c=16 1Q();c.2c(c.2b()+1P);4 Q="1O 1N 1M 1Lş. 14 1K iç1J 1Iığın 1H 1G ü1F 1Eı1D 1C <B>\\"1B 1A\\"<\\/B> düğ1z tı1y.";4 1u="1O 1N 1M 1Lş. 14 1K iç1J 1Iığın 1H 1G ü1F 1Eı1D 1C <b>\\"1B 1A\\"<\\/b> düğ1z tı1y.";9 11(1x){6.f(\'1w\').e=1x;2a("6.f(\'1w\').e=\'1v 1l 29\'",28)}9 27(y){4 15="1s";4 5=D();q(l,5);p(4 i=1;i<o(5);i++){7(5[i]==y){4 15="4"}};7(15=="4"){11("1v 14 Ö26 25ş !")}J{4 w=o(5);5[w]=y;T(l,5,c);1t();7(6.1p){6.f(\'k\').e=6.f(\'k\').e.13(Q,\'\')}J 7(1n.1m){6.f(\'k\').e=6.f(\'k\').e.13(1u,\'\')}q(l,5);4 v=5[w+1].I(\'/\')[3].I(\'.\')[0];6.f(\'k\').e=6.f(\'k\').e+\'<A P="H\'+v+\'"><u O="N:1k;"><a G="\'+5[w+1]+\'" 1j="g(\\\'\'+v+\'\\\')" 1i="C 1h()"> - \'+5[w]+\'<\\/a><\\/u>\'+\' <u O="N:1g;"><\\a G="1f:Z(\\\'\'+5[w]+\'\\\', \\\'\'+v+\'\\\')"><M 1e="#1d">1c</M><\\/a><\\/u> \'+\'<\\/A>\';24.23(\'/22/\'+y)}}9 1t(){4 21="1s";4 1r=20.G;4 5=D();q(l,5);4 w=o(5);5[w]=1r;T(l,5,c)}9 Z(y,R){4 5=D();q(l,5);p(4 i=1;i<o(5);i++){7(5[i]==y){4 1q=i}};4 E=1q;S(l,5,E,c);S(l,5,E,c);6.f(\'H\'+R).e="";7(6.1p){4 12=\'<1o P=H\'+R+\'></1o>\'}J 7(1n.1m){4 12=\'<A P="H\'+R+\'"></A>\'}6.f(\'k\').e=6.f(\'k\').e.13(12,\'\');4 5=D();q(l,5);7(o(5)==1){6.f(\'k\').e=Q}J{11(y+" 1l 1Z 1Y")}}9 k(){4 5=D();q(l,5);7(o(5)==1){6.f(\'k\').e=Q}p(4 i=1;i<o(5);i=i+2){4 v=5[i+1].I(\'/\')[3].I(\'.\')[0];6.10(\'<A P="H\'+v+\'"><u O="N:1k;"><a G="\'+5[i+1]+\'" 1j="g(\\\'\'+v+\'\\\')" 1i="C 1h()"> - \'+5[i]+\'<\\/a><\\/u>\'+\' <u O="N:1g;"><\\a G="1f:Z(\\\'\'+5[i]+\'\\\', \\\'\'+v+\'\\\')"><M 1e="#1d">1c</M><\\/a><\\/u> \'+\'<\\/A>\')}}',62,156,'||||var|myarray|document|if|ary|function|||expires||innerHTML|getElementById||name|||favori_oyunlar|cookieName|dbug||next_entry|for|get_array|value|ent||span|oyun_ismi_url|num|alert|oyun_ismi|cbegin|li||return|init_array|pos|dcookie|href|favori_oyun_|split|else|cookie|indexOf|font|float|style|id|uyari1|oyun_ismi_urlsi|del_entry|set_array|length|set_cookie|substring|vend|vbegin|oyun_sil|write|uyari|oyun_html|replace|Oyun|ayni_oyun|new|thisCookie|get_cookie|null|clen|cname|Sil|ff0000|color|javascript|right|nd|onmouseout|onmouseover|left|Oyunu|sidebar|window|LI|all|oyun_sirasi|oyun_adres|yok|adres_ekle|uyari2|Bu|uyari_link|uyarimetni|kla|mesine|ekle|Favorilerime|bulunan|nda|taraf|st|hemen|oyunun|oynad|in|eklemek|bo|listen|oyun|Favori|timeToKeep|Date|while|d_a|path|01|00|del_cookie|beg|Silindi|Listeden|location|ayni_adres|Favori_Listesi|_trackPageview|pageTracker|Eklenmi|nceden|oyun_ekle|1500|Ekle|setTimeout|getTime|setTime|31536000000|limonoyun|br|Found|Cookies|No|dump_cookies|debug_off|debug_on|GMT|70|Jan|Thu|break|unescape|toGMTString|escape|Array|init_cookie'.split('|'),0,{}))



   var http_request = false;
   function makeRequest(url, parameters) {
      http_request = false;
      if (window.XMLHttpRequest) { // Mozilla, Safari,...
         http_request = new XMLHttpRequest();
         if (http_request.overrideMimeType) {
         	// set type accordingly to anticipated content type
            //http_request.overrideMimeType('text/xml');
            http_request.overrideMimeType('text/html');
         }
      } else if (window.ActiveXObject) { // IE
         try {
            http_request = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
            try {
               http_request = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!http_request) {
         //alert('Cannot create XMLHTTP instance');
         return false;
      }
      http_request.onreadystatechange = alertContents;
      http_request.open('GET', url + parameters, true);
      http_request.send(null);
   }

   function alertContents() {
      if (http_request.readyState == 4) {
         if (http_request.status == 200) {
            result = http_request.responseText;
            //alert ( result );            
         } else {
            //alert('There was a problem with the request.');
         }
      }
   }
   
   var ajaxsayacurl="http://www.limonoyun.com/index.php?funcpage=sayac&gamesname=" ;