//////// These functions are used on www.e-computer.ro on the Games section ///////
////////             Any interesting script, you are free to use            ///////
/////////////////////////// root@e-computer.ro..::Mentor::.. //////////////////////
function Is() {
    var agent = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
    this.ns2 = (this.ns && (this.major == 2));
    this.ns3 = (this.ns && (this.major == 3));
    this.ns4b = (this.ns && (this.minor < 4.04));
    this.ns4 = (this.ns && (this.major >= 4));
    this.ie   = (agent.indexOf("msie") != -1);
    this.ie3  = (this.ie && (this.major == 2));
    this.ie4  = (this.ie && (this.major >= 4));
    this.op3 = (agent.indexOf("opera") != -1);
    this.win   = (agent.indexOf("win")!=-1);
    this.mac   = (agent.indexOf("mac")!=-1);
    this.unix  = (agent.indexOf("x11")!=-1);
}
var is = new Is();
function ws(wstext)
{	var outws = "out"
	if (wstext == outws) {var outws = "Alege jocul pe care il doresti. Este posibil sa nu fie momentan, asa ca trebuie sa testezi care merge.." ;}
	else { var outws = wstext; }
	window.status = outws ;
	return true;}
<!--///////////////////Unused Functions///////////////
function LmOver(theobj, cul)
{	theobj.style.backgroundColor = cul;
	theobj.children.tags('A')[0].style.color = "#FFFFFF";
	theobj.style.cursor = 'hand';}
function LmOut(theobj, cul)
{	theobj.style.backgroundColor = cul;
	theobj.children.tags('A')[0].style.color = "#000000";}
function LmDown(theobj, cul)
{	theobj.style.backgroundColor = cul;
	theobj.children.tags('A')[0].style.color = "#993300";}
function Flash(theobj, cul1, cul2)
{
	for (var c = 0; c >=50; c++) {
		setTimeout("theobj.style.backgroundColor = cul1" , 100 );
		setTimeout("theobj.style.backgroundColor = cul2" , 100 );
		setTimeout("theobj.style.bgColor = cul1" , 100 );
		setTimeout("theobj.style.bgColor = cul2" , 100 );
	}
	return true;}
function LmOut2(theobj, cul){
	//if (typeof(theobj.style) == 'undefined' || typeof(theobj.cells) == 'undefined') {
	//    return false;
	//}
	theobj.style.backgroundColor = cul;
	theobj.children.tags('A')[0].style.color = "#000000";
}
function LmDown2(theobj, cul){
    	//if (typeof(theobj.style) == 'undefined' || typeof(theobj.cells) == 'undefined') {
    	//    return false;
    	//}
	theobj.style.backgroundColor = cul;
	theobj.children.tags('A')[0].style.color = "#993300";
}
///////////////////sfUnused Functions///////////////-->
function LmUp(path){
	location.href = path;
}
function clickIE() {if (document.all) {(message);return false;};};
function clickNS(e) {
if (document.layers||(document.getElementById&&!document.all)) {
	if (e.which==2||e.which==3) {(message);return false;};
	}
}
function setpointer(theobj, thepointercolor) {
<!--	//if (typeof(theobj.style) == 'undefined' || typeof(theobj.cells) == 'undefined') {
	//    return false;
	//}

	//var row_cells_cnt           = theobj.cells.length;
	//for (var c = 0; c < row_cells_cnt; c++) {
	//    theobj.cells[c].bgColor = thepointercolor;
	//}-->
	if (typeof(theobj) == 'object' && typeof(theobj.style) != 'undefined' ) {
		theobj.style.backgroundColor = thepointercolor;
	}
	return true;
}
function linie_td(td_htm, td_status, td_img, td_afis, td_size) {
	if ( td_htm != '' && td_status != '' && td_img != '' && td_afis != '' ) {
		document.write('<'+'td onMouseover="setpointer(this, \'#777788\')" onMouseout="setpointer(this, \'#aaaabb\')"  align="center" width="180"><a target="_blank" href="'+td_htm+'" onClick="window.open(th'+'is.href,th'+'is.target,\'width=scre'+'en.availwidth; height=scr'+'een.availheight; scrollbars=yes, resizable=yes, toolbar=no\'); return false;" onMouseout="ws(\'out\'); return false;" onMouseover="ws(\''+td_status+'\');return true;" onFocus="ws(\''+td_status+'\');return true;" ><'+'br><img alt="Click to select this game" border=0 width=100 height=70 src='+td_img+'><'+'br><font class=text8 face=tahoma size=2><strong>'+td_afis+'</strong><small>  ('+td_size+')</a></font><br><br></td>\n');
	}
	else {
		document.write('<'+'td onMouseover="setpointer(this, \'#777788\')" onMouseout="setpointer(this, \'#aaaabb\')" align="center" width="180"><p align="center"><font color="#aaaabb" face="Tahoma" size="2"><strong>Do you have a nice game to put here?<br>Send mail to webmaster.</strong></font></td>\n');
	}
}
function end_table(){
	document.write('<table align=center width="100%" bgcolor=#aaaabb>\n');document.write('<tr height="10px" width="*">\n');document.write('<td align="right" width="100%" valign="top"><a target="_blank" href="link_disabled.htm" this.onMouseDown="ws(\'out\');return false;" this.onFocus="ws(\'out\');return false;" onClick=\"k++;ws(\'out\');if(k>3){if(k==4){window.open(\'sexxxy.htm\',\'_blank\',\'width=screen.availwidth,height=screen.availheight,scrollbars=no, resizable=yes,toolbar=no\');return false;};if(k>5){window.open(\'jigsaw.htm\',\'_blank\',\'width=screen.availwidth,height=screen.availheight,scrollbars=no, resizable=yes,toolbar=no\');return false;};};return false;\" onmouseout=\"ws(\'out\'); return false;\" onmouseover=\"ws(\'..... ATENTIE! Aceste jocuri sunt gratuite atata vreme cat distribuirea lor se face gratuit! ..::Mentor::.. .......\');return true;\" onFocus=\"ws(\'..... ATENTIE! Aceste jocuri sunt gratuite atata vreme cat distribuirea lor se face gratuit! ..::Mentor::.. .......\');return true;\" ><imgaaa border=0 src=\"none.jpg\"><font class=text8 face=tahoma size=-1><strong>©</a></font></td>');document.write('</tr>');document.write('</table>\n');
}
function load_game(j,o){
	//var ct=document.body.clientHeight/document.body.clientWidth;
	var inalt=document.body.clientHeight-o;
	var lat=document.body.clientWidth-o;
	document.write('<obj'+'ect classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0"  width="'+lat+'" height="'+inalt+'">');
	document.write('<pa'+'ram name=movie value="'+j+'.swf">');
	document.write('<pa'+'ram name=quality value=high>');
	document.write('<emb'+'ed src="'+j+'.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" >');
	document.write('</emb'+'ed>');
	document.write('</ob'+'ject>');
}
function load_gamehw(j,o,hh,ww){
	//var inalt=document.body.clientHeight-o;
	//var lat=inalt*ww/hh;
	if (document.all) {
		var lat=document.body.clientWidth-o;
	}
	else if (document.layers||document.getElementById) {
		var lat=document.availWidth-o;
	}

	var inalt=lat*hh/ww;

	if (document.all) {
		if (inalt>(document.body.clientHeight-o)){
			//alert('DEPASIRE:\ninalt>>(document.body.clientHeight-o)\n'+inalt+' > '+eval(document.body.clientHeight-o)+' ');
			inalt=document.body.clientHeight-o;
			lat=inalt*ww/hh;
		}
	}
	else if (document.layers||document.getElementById) {
		if (inalt>(document.availHeight-o)){
			//alert('DEPASIRE:\ninalt>>(document.availHeight-o)\n'+inalt+' > '+eval(document.availHeight-o)+' ');
			inalt=document.availHeight-o;
			lat=inalt*ww/hh;
		}

	}


	document.write('<obj'+'ect classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0"  width="'+lat+'" height="'+inalt+'">');
	document.write('<pa'+'ram name=movie value="'+j+'.swf">');
	document.write('<pa'+'ram name=quality value=high>');
	document.write('<emb'+'ed src="'+j+'.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" >');
	document.write('</emb'+'ed>');
	document.write('</ob'+'ject>');
}
function AduOnTop(){
	self.focus();
}
function resize_me(){
	top.window.moveTo(0,0);
	if (document.all) {
		top.window.resizeTo(screen.availWidth,screen.availHeight);
	}
	else if (document.layers||document.getElementById) {
		if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
			top.window.outerHeight = screen.availHeight;
			top.window.outerWidth  = screen.availWidth;
		}
	}
}


if(is.ns4) {
    doc = "document";
    sty = "";
    htm = ".document"
    xpos = "e.contentX";
    ypos = "e.contentY";
} else if(is.ie4) {
    doc = "document.all";
    sty = ".style";
    htm = ""
    xpos = "event.x";
    ypos = "event.y";
}

function closebtn(){
	//dd=document.availHeight;
	//window.status="Document:"+document.availHeight;
	//i5Img = eval(doc + '["i5"]' + '.document');
	i5Obj =  eval(doc + '["i5"]' + sty);
	//i5Obj =  eval('window["i5"]' + sty);
	//i5Img.visibility = "hidden";
	i5Obj.visibility = "hidden";
	i5Obj.left = 0;
	i5Obj.top = 100;
	i5Obj.visibility = "visible";
	//i5Img.visibility = "visible";
	window.status="i5Obj: "+i5Obj.top;
	return;
}