// amblem kęsmę
var acilmis=0;
function pencere(URLStr, width, height) { if(acilmis) { if(!acilmis.closed) acilmis.close(); } acilmis = open(URLStr, 'acilmis', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+(screen.width-width)/2+', top='+(screen.height-height)/2+',screenX='+(screen.width-width)/2+',screenY='+(screen.height-height)/2+''); } 
// Ornek, onclick="javascript:pencere('dosya.d4', 300, 120);


function Browser ()
{
	this.ie = this.netscape = this.mac = this.opera = 0;
	var s = navigator.userAgent.toLowerCase ();
	this.ie = (parseFloat (s.slice (s.indexOf ("msie") + 5)));
	this.netscape = (this.ie) ? (0) : Gecko (s.indexOf ("gecko/"), s);
	this.mac = (s.indexOf ("mac") > -1);
	this.opera = (parseFloat (s.slice (s.indexOf ("opera") + 6)));
	if (this.opera) this.ie = 0;
	this.screenHeight = screen.height;
	this.screenWidth = screen.width;
	this.colorDepth = (this.netscape >= 4) ? screen.pixelDepth : screen.colorDepth;
}

function Gecko (nTmp, s)
{
	if (nTmp >- 1)
	{
		nTmp = (parseFloat (s.slice (nTmp + 6)));
		if (nTmp >= 20020823) 
			nTmp = 7;
		else if(nTmp >= 20011019)
			nTmp = 6.2;
		else if(nTmp >= 20010726)
			nTmp = 6.1;
		else
			nTmp = 6;
	}
	else
	{
		nTmp = (parseFloat (s.slice (s.indexOf ("mozilla/") + 8)));
	}

	return nTmp;
}

var ns4 = document.layers;
if (!ns4) { var browser = new Browser(); }


function kontrol(ilk)
{
	if (!ilk)
	{
		if (!ns4) {
			if (browser.ie > 5) { window.attachEvent ("onresize", kontrol); }
			else { window.onresize = kontrol; }
		}
	}


	if (!ns4) 
	{
		var genislik = 0;
	
		if( document.documentElement && document.documentElement.clientWidth ) {
			genislik = document.documentElement.clientWidth;
		}
		else if( document.body && document.body.clientWidth ) {
			genislik = document.body.clientWidth;
		}
		else if( window.innerWidth ) {
			genislik = window.innerWidth - 18;
		}

		if(genislik>800)
		{
			if(document.getElementById) { document.getElementById('amblm').style.visibility = 'visible'; document.getElementById('amblm').style.display = ''; } 
			else { 
					if(document.layers) { } 
					else { document.all.amblm.style.display = ''; } 
			}
		}
		else
		{
			if(document.getElementById) { document.getElementById('amblm').style.visibility = 'hidden'; document.getElementById('amblm').style.display = 'none'; } 
			else { 
					if(document.layers) { } 
					else { document.all.amblm.style.display = 'none'; } 
			}
		}
	}
}
