function BrowserDetect(){
var ua=navigator.userAgent.toLowerCase(); 
	this.isGecko=(ua.indexOf('gecko')!=-1 && ua.indexOf('safari')==-1);
	this.isAppleWebKit=(ua.indexOf('applewebkit')!=-1);

	this.isSafari=(ua.indexOf('safari')!=- 1);
	this.isIE=(ua.indexOf('msie')!=-1 && !this.isOpera && (ua.indexOf('webtv')==-1)); 
	this.isMozilla=(this.isGecko && ua.indexOf('gecko/')+14==ua.length);
	this.isFirebird=(ua.indexOf('firebird/')!=-1);
	this.isNS=((this.isGecko)?(ua.indexOf('netscape')!=-1):((ua.indexOf('mozilla')!=-1) && !this.isOpera && !this.isSafari && (ua.indexOf('spoofer')==-1) && (ua.indexOf('compatible')==-1) && (ua.indexOf('webtv')==-1) && (ua.indexOf('hotjava')==-1)));

	this.isIECompatible=((ua.indexOf('msie')!=-1) && !this.isIE);

	this.geckoVersion=((this.isGecko)?ua.substring((ua.lastIndexOf('gecko/')+6), (ua.lastIndexOf('gecko/')+14)):-1);
	this.equivalentMozilla=((this.isGecko)?parseFloat(ua.substring(ua.indexOf('rv:')+3)):-1);
	this.appleWebKitVersion=((this.isAppleWebKit) ? parseFloat(ua.substring(ua.indexOf('applewebkit/')+12)):-1);

	this.versionMinor=parseFloat(navigator.appVersion); 

	if(this.isGecko && !this.isMozilla) this.versionMinor=parseFloat(ua.substring(ua.indexOf('/', ua.indexOf('gecko/')+6)+1));
	else if(this.isMozilla) this.versionMinor=parseFloat(ua.substring(ua.indexOf('rv:')+3));
	else if(this.isIE && this.versionMinor>=4) this.versionMinor=parseFloat(ua.substring(ua.indexOf('msie ')+5));
	else if(this.isSafari) this.versionMinor=parseFloat(ua.substring(ua.lastIndexOf('safari/')+7));

	this.versionMajor=parseInt(this.versionMinor); 

	this.isDOM1=(document.getElementById);
	this.isDOM2Event=(document.addEventListener && document.removeEventListener);

	this.mode=document.compatMode?document.compatMode:'BackCompat';

	this.isWin=(ua.indexOf('win')!=-1);
	this.isMac=(ua.indexOf('mac')!=-1);

	this.isNS6x=(this.isNS && this.versionMajor==6);
	this.isNS6up=(this.isNS && this.versionMajor>= 6);
	this.isNS7x=(this.isNS && this.versionMajor==7);
	this.isNS7up=(this.isNS && this.versionMajor>= 7);
	this.isIE5x=(this.isIE && this.versionMajor==5);
	this.isIE55=(this.isIE && this.versionMinor==5.5);
	this.isIE5up=(this.isIE && this.versionMajor>= 5);
	this.isIE6x=(this.isIE && this.versionMajor==6);
	this.isIE6up=(this.isIE && this.versionMajor>= 6);
}
var browser=new BrowserDetect();



function Is() {
	    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.ns4   = (this.ns && (this.major      ==    4));
	    this.ns6   = (this.ns && (this.major      >=    5));
	    this.ie    = (agent.indexOf("msie")       !=   -1);
	    this.ie3   = (this.ie && (this.major      < 4));
	    this.ie4   = (this.ie && (this.major      ==    4) && (agent.indexOf("msie 4.0")   !=   -1));
	    this.ie5   = (this.ie && (this.major      ==    4) && (agent.indexOf("msie 5.0")   !=   -1));
	    this.ie55  = (this.ie && (this.major      ==    4) && (agent.indexOf("msie 5.5")   !=   -1));
	    this.ie6  = (this.ie && (agent.indexOf("msie 6.0")!=-1) );
}
var is = new Is();

function showPopUp(sayfa,wit,het){
	var sene = window.open(sayfa,'','height='+het+',width='+wit+',status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes');
	sene.focus();
}

function etkinlik (){
	showPopUp('/turkish/ulasin/konuk.asp','580','600');
}

function eetkinlik (){
	showPopUp('/english/ulasin/konuk.asp','580','600');
}

function showsiparis(){
	var preText = '<html><head><title>BKSM</title></head><frameset rows="67,*" border="0" frameborder="no" bordercolor="#000000"><frame src="/secure/_cmn/top.htm" scrolling="no" marginheight="1" marginwidth="1" resize="no"><frame src="/secure/turkish/siparis.asp" scrolling="auto" marginheight="10" marginwidth="10" resize="no"></frameset></html>';
	var sene = window.open('','siparis','height=420,width=600,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes');
	sene.document.open();
	sene.document.write(preText);
	sene.document.close();
	sene.focus();
}

function showsiparise(){
	var preText = '<html><head><title>BKSM</title></head><frameset rows="67,*" border="0" frameborder="no" bordercolor="#000000"><frame src="/secure/_cmn/top.htm" scrolling="no" marginheight="1" marginwidth="1" resize="no"><frame src="/secure/english/siparis.asp" scrolling="auto" marginheight="10" marginwidth="10" resize="no"></frameset></html>';
	var sene = window.open('','siparis','height=420,width=600,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes');
	sene.document.open();
	sene.document.write(preText);
	sene.document.close();
	sene.focus();
}

function haberdaret (){
	showPopUp('/turkish/gonder.asp','480','510');
}

function haberdarete (){
	showPopUp('/english/gonder.asp','480','510');
}


/** Menu JS'si **/
/** Google Keyword :  Suckerfish Dropdown **/

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
