function Browser() {
		var b=navigator.appName;
		if (b=="Netscape") this.b="ns";
		else if ((b=="Opera") || (navigator.userAgent.indexOf("Opera")>0)) this.b = "opera";
		else if (b=="Microsoft Internet Explorer") this.b="ie";
		if (!b) alert('Unidentified browser./nThis browser is not supported,');
		this.version=navigator.appVersion;
		this.v=parseInt(this.version);
		this.ns=(this.b=="ns" && this.v>=4);
		this.ns4=(this.b=="ns" && this.v==4);
		this.ns6=(this.b=="ns" && this.v==5);
		this.ie=(this.b=="ie" && this.v>=4);
		this.isIE=(this.b=="ie" && this.v>=4);
		this.ie4=(this.version.indexOf('MSIE 4')>0);
		this.ie5=(this.version.indexOf('MSIE 5')>0);
		this.ie55=(this.version.indexOf('MSIE 5.5')>0);
		this.ie6=(this.version.indexOf('MSIE 6')>0);
		this.opera=(this.b=="opera");
		this.dom=(document.createElement && document.appendChild && document.getElementsByTagName)?true:false;
		this.def=(this.ie||this.dom); // most used browsers, for faster if loops
		var ua=navigator.userAgent.toLowerCase();
		if (ua.indexOf("win")>-1) this.platform="win32";
			else if (ua.indexOf("mac")>-1) this.platform="mac";
		else this.platform="other";
	}
is = new Browser();
browser = new Browser();


if (is.Mac && is.IE) {
	Array.prototype.push=function (val) {
		this[this.length]=val;
	}
}


var flashVersion = 0;
function getFlashVersion() {
	var latestFlashVersion = 25;
	var agent = navigator.userAgent.toLowerCase(); 
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		var flashPlugin = navigator.plugins['Shockwave Flash'];
		if (typeof flashPlugin == 'object'){ 
			for (var i = latestFlashVersion; i >= 3; i--){
	            if (flashPlugin.description.indexOf(i + '.') != -1){
	               flashVersion = i;
	               break;
	            }
			}
		}
	}
	else if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1) {
		var doc = ''+
			'<scr' + 'ipt language="VBScript"\> \n'+
			'On Error Resume Next \n'+
			'Dim obFlash \n'+
			'For i = ' + latestFlashVersion + ' To 3 Step -1 \n'+
			'	Set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash." & i) \n'+
			'	If IsObject(obFlash) Then \n'+
			'		flashVersion = i \n'+
			'		Exit For \n'+
			'	End If \n'+
			'Next \n'+
			'</scr' + 'ipt\> \n';
		document.write(doc);
	} else {flashVersion = flashVersion_DONTKNOW; }
return flashVersion;
}
var flashVersion_DONTKNOW = -1;
function FlashObject(){
	this.ID=this.ID;
	this.maxVersion=this.maxVersion;
	this.SwfFile;
	this.minVersion;
	this.altSwfFile;
	this.altImage;
	this.altImageAddAtribute;
	this.altImageHTML;
	this.width;
	this.height;
	this.menu;
	this.background;
	this.wmode;
	this.flashvars;
	this.scale;
	this.salign;
}
FlashObject.prototype.rnd=function(){
	this.ranNum= Math.random()*255;
    return this.ranNum;
}
FlashObject.prototype.embed=function(){
	var buff;
	if(getFlashVersion()>=this.maxVersion){
		
		buff=''+
			'<OBJECT ID="'+this.ID+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH='+this.width+' HEIGHT='+this.height+'><PARAM NAME=movie VALUE="'+this.SwfFile+'"><PARAM NAME=menu VALUE='+this.menu+'><param name="wmode" value="'+this.wmode+'"><PARAM NAME="quality" VALUE="high"><PARAM NAME="flashvars" VALUE="'+ this.flashvars +'"><PARAM NAME="bgcolor" VALUE="'+this.background+'"><PARAM NAME="scale" VALUE="'+this.scale+'"><PARAM NAME="salign" VALUE="'+this.salign+'">'+
				'<EMBED name="'+this.ID+'" src="'+this.SwfFile+'" menu="'+this.menu+'" wmode="'+this.wmode+'" quality="high" bgcolor="'+this.background+'"  WIDTH="'+this.width+'" HEIGHT="'+this.height+'" scale="'+this.scale+'" salign="'+this.salign+'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" swLiveConnect="true"></EMBED>'+
			'</OBJECT>';
	}else if((getFlashVersion()> this.minVersion) && (getFlashVersion()< this.maxVersion) && this.altSwfFile){
		
		buff=''+
			'<OBJECT ID="'+this.ID+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH='+this.width+' HEIGHT='+this.height+'><PARAM NAME=movie VALUE="'+this.altSwfFile+'"><PARAM NAME=menu VALUE='+this.menu+'<param name="wmode" value="'+this.wmode+'">><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE='+this.background+'>'+
				'<EMBED flashvars="'+ this.flashvars +'" name="'+this.ID+'" src="'+this.altSwfFile+'" menu="'+this.menu+'" wmode="'+this.wmode+'" quality=high bgcolor='+this.background+'  WIDTH='+this.width+' HEIGHT='+this.height+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" swLiveConnect="true"></EMBED>'+
			'</OBJECT>';
	}else{
		this.altImageAddAtribute ? (buff='<img src="'+this.altImage+'" width="'+this.width+'" height="'+this.height+'" border="0" '+this.altImageAddAtribute+' />'+this.altImageHTML) : (buff='<img src="'+this.altImage+'" width="'+this.width+'" height="'+this.height+'" border="0" />');
	}
	document.write(buff);
}

function PopItUp(src,w,h,s) {
	if(s) w=w+17;
	Popwin = window.open(src,"pop_up","toolbar=0,width=" + w + ", height=" + h + ", location=0, directories=0, status=1, scrollbars="+s+", menubar=0, resizable=0, copyhistory=0");
	Popwin.focus();
}

function PopItUp2(src,w,h,s) {
	if(s) w=w+17;
	Popwin = window.open(src,"pop_up","toolbar=0,width=" + w + ", height=" + h + ", location=0, directories=0, status=1, scrollbars="+s+", menubar=0, resizable=1, copyhistory=0");
	Popwin.focus();
}


function PopItUp3(src) {
	Popwin = window.open(src,"pop_up","toolbar=0, width=750, height=600, location=0, directories=0, status=1, scrollbars=1, menubar=0, resizable=0, copyhistory=0");
	Popwin.focus();
}



function getWindowHeight(){
	var windowHeight = 0;
	if(typeof(window.innerHeight) == 'number'){
		windowHeight = window.innerHeight;
	}else{
		if(document.documentElement && document.documentElement.clientHeight){
			windowHeight = document.documentElement.clientHeight;
		}else{
			if(document.body && document.body.clientHeight){
				windowHeight = document.body.clientHeight;
			}
		}
	}
	return windowHeight;
}

function getWindowWidth(){
	var windowWidth = 0;
	if(typeof(window.innerWidth) == 'number'){
		windowWidth = window.innerWidth;
	}else{
		if(document.documentElement && document.documentElement.clientWidth){
			windowWidth = document.documentElement.clientWidth;
		}else{
			if(document.body && document.body.clientWidth){
				windowWidth = document.body.clientWidth;
			}
		}
	}
	return windowWidth;
}



function setFooter(){

	if (document.getElementById("middle")) {
	    if (document.getElementById("middle").offsetHeight <= 300) {
	        document.getElementById("middle").style.height = 625+"px";
	    }
	}
	
	if (document.getElementById){
		var windowHeight = getWindowHeight();
		if (windowHeight>0){

			var wrapperHeight = document.getElementById('wrapper').offsetHeight;
			var footerElement = document.getElementById('footer');
			var footerHeight  = footerElement.offsetHeight;
			if (windowHeight - (wrapperHeight)>= 0) {
				footerElement.style.marginTop = (windowHeight - (wrapperHeight)) + 'px';
			}else{
				footerElement.style.marginTop = '0';
			}

		}
	}
}




function mailTo(m,e) {
	if (!e) {
		e='clubfinans.com.tr';
	}
	document.write('<a href="mailto:'+m+String.fromCharCode(64)+e+'">'+m+String.fromCharCode(64)+e+'</a>');
}

function $$(_id){return document.getElementById(_id);}


function ShowSubmenu() {
	var myElement = $$('submenu');
	var myMenuElement = $$('MenuKesfet');
		myElement.style.display = "block";
		myMenuElement.style.background = 'url(/images/menu/kesfet_on.gif) no-repeat 0px 0px;';
		
}

function HideSubmenu() {
	var myElement = $$('submenu');
	var myMenuElement = $$('MenuKesfet');
		myElement.style.display = "none";
		myMenuElement.style.background = 'url(/images/menu/kesfet.gif) no-repeat 0px 0px';
}

function resizeFlashDIV(){
    if (getFlashVersion() < 4)
    {
        document.getElementById("FLASHhomepage").style.display = "none";
        document.getElementById("HTMLhomepage").style.display = "block";
        
        // - homepage alternative modal : ModalGosterGizle();
        
    }
    else
    {
        document.getElementById("HTMLhomepage").style.display = "none";
        document.getElementById("FLASHhomepage").style.display = "block";
	    if(document.body.offsetHeight <= "680"){
		    document.getElementById('FLASHhomepage').style.height = 680+'px';
		    document.body.scroll="yes";
	    }else {
		    document.getElementById('FLASHhomepage').style.height = document.body.offsetHeight;
		    document.body.scroll="no";
	    }
	}
}


function DivGosterGizleHome(_durum)
    {
		if (_durum != "")
		{
		    document.getElementById("MainPageActivite").style.display = "none";
			document.getElementById("MainPageHayatinIcinde").style.display = "none";
			document.getElementById("MainPageSaglikta").style.display = "none";
			document.getElementById("MainPageKeyifliAnlarda").style.display = "none";
			document.getElementById("MainPageHayatiIzlerken").style.display = "none";
			document.getElementById("MainPageSeyahatte").style.display = "none";
			document.getElementById("MainPageBankada").style.display = "none";
            if(document.getElementById('home_right'))
                document.getElementById('home_right').style.display = "none"
                
			document.getElementById(_durum).style.display = "block";
		}else { 
		    document.getElementById("MainPageActivite").style.display = "block";
		}
	}

	function search(value)
	{
		document.getElementById("ctl00_txtArama").value = value;
		document.Form1.action = "arama/default.aspx";
		document.Form1.method = "post";
		document.Form1.target = "_self";
		document.Form1.submit();
	}
	


    function uyari_mesai_disi(url){
        alert("Mesai saatleri dışında web sitesi üzerinden rezervasyon talebi alınamamaktadır. Rezervasyonunuzu transferinizden 6 saat önce, haftanın 7 günü, 09.00 – 23.00 saatleri arasında (0216) 522 49 59 numaralı özel ClubFinans hattını arayarak yaptırabilirsiniz.");
        //window.open(url);
        return false;
    }