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.ns7=(this.b=="ns" && this.v==6);
	this.ie=(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();

if (is.ie4) {
	document.getElementById=function(oge) {
		return document.all[oge];
	}
}

if (is.ie5) {
	Array.prototype.push=function (obj) {
		this[this.length]=obj;
	}
}

function openPopUp(src,w,h,name) {
	KopWin = window.open(src,name,"toolbar=0,width=" + w + ",height=" + h + ",location=0,directories=0,status=0,scrollbars=0,menubar=0,resizable=0,copyhistory=1");
	KopWin.focus();
}

function openPopUp2(src,w,h,name) {
	KopWin = window.open(src,name,"toolbar=0,width=" + w + ",height=" + h + ",location=0,directories=0,status=0,scrollbars=1,menubar=0,resizable=0,copyhistory=1");
	KopWin.focus();
}
		
function openBlank(src,name) {
	
	if (!name) {
		name='blankWindow';
	}
	
	blankTarget=window.open(src,name,"toolbar=1,width=" + 800 + ",height=" + 600 + ",location=1,directories=1,status=1,scrollbars=1,menubar=1,resizable=1,copyhistory=0");
	blankTarget.focus();
	
}

var sisters=('menuBizkimiz,menuBireyselEmeklilik,menuHayat,menuFerdi,menuIK,menuBizeUlasin').split(',');

function submenu(nm) {
	this.linksArray=new Array();
	this.name=nm;
	this.strHTML='';
	this.tm;
	this.posLeft='0px;';
	this.posTop='0px';
	this.sisters=sisters;
}

submenu.prototype.build=function() {
	this.strHTML='';
	this.strHTML+='<div id="div'+this.name+'" style="position:absolute;visibility:hidden;left:'+this.posLeft+';top:'+this.posTop+';background-color:#E764A1;border-left:1px solid #DA2179;border-right:1px solid #DA2179;border-bottom:1px solid #DA2179;width:161px;" onMouseOut="'+this.name+'.disappear();" onMouseOver="'+this.name+'.appear();">'
	this.strHTML+='<table cellpadding="0" cellspacing="0" border="0" width="159" style="border-left:1px solid #F1A3C8;border-right:1px solid #F1A3C8;border-bottom:1px solid #F1A3C8;">';
	for (i=0;i<=this.linksArray.length-1;i++) {
		txt=(this.linksArray[i].split('|'))[0];
		lnk=(this.linksArray[i].split('|'))[1];
		this.strHTML+='<tr><td width="20" align="center"><img src="/i/smi.gif" width="7" height="5" alt=""></td>';
		this.strHTML+='<td height="22"><a class="sm" href="'+lnk+'">'+txt+'</a></td>';
		this.strHTML+='</tr>';
	}
	
	this.strHTML+='</table>';
	this.strHTML+='</div>';
	
	document.write(this.strHTML);
}

submenu.prototype.appear=function() {
	if (this.tm) {
		clearTimeout(this.tm);
	}
}

submenu.prototype.disappear=function() {
	this.tm=setTimeout(this.name+'.hide()',500);
}

submenu.prototype.hide=function() {
	
		if (document.getElementById('div'+this.name)) {
			document.getElementById('div'+this.name).style.visibility='hidden';
		}
	
}

submenu.prototype.show=function() {
		if (this.tm) {
		clearTimeout(this.tm);
	}
	for (i=0;i<=this.sisters.length-1;i++) {
		eval(this.sisters[i]).hide();
	}
	
	
		
		if (document.getElementById('div'+this.name)) {
			
			document.getElementById('div'+this.name).style.visibility='visible';
		}
	
}


function alignBottom(divid) {
	boy=30;
	if (is.ns6) {
			
			
				
			
			if (parseInt(document.body.offsetHeight)>=parseInt(window.innerHeight)-boy)
			
				{	
					intoH=parseInt(document.body.offsetHeight)+boy;
					
					document.getElementById(divid).style.top=intoH+'px';
		
				} else {
					
					wH=parseInt(window.innerHeight)-boy;
					document.getElementById(divid).style.top=wH+'px';
					
				}
	} else {
			
			dist=boy;
			
			
			
			if (document.body.scrollHeight>document.body.clientHeight) {
				document.getElementById(divid).style.top=document.body.scrollHeight-dist;
			} else {
				document.getElementById(divid).style.top=document.body.clientHeight-dist;
			}
			
	}
}

var to;
function hideNow() {
			document.getElementById('divOnlineEmeklilik').style.visibility='hidden';
		}

function hideSube() {
			if (document.getElementById('divOnlineEmeklilik')) {
				to=setTimeout('hideNow()',1000);
			}
		}
		
function showSube() {
		if (document.getElementById('divOnlineEmeklilik')) {
				document.getElementById('divOnlineEmeklilik').style.visibility='visible';
		}
			
		if (to) {
				clearTimeout(to);
		}
}

function tarih() {
	aylar=("Ocak,Şubat,Mart,Nisan,Mayıs,Haziran,Temmuz,Ağustos,Eylül,Ekim,Kasım,Aralık").split(",");
	bugun=new Date();
	return bugun.getDate()+" "+aylar[bugun.getMonth()]+" "+bugun.getFullYear();
}

function tarih_yaz() {
	document.write(tarih());
}

function FonAdlariniGuncelle() {
	t=0;
	fon_adlari=new Array();
	fon_adlari[0]='';
	fon_adlari[1]='Gelir Amaçlı Kamu Borçlanma Araçları';
	fon_adlari[2]='Para Piyasası Likit Kamu';
	fon_adlari[3]='Gelir Amaçlı Döviz Cinsinden Yatırım Araçları';
	fon_adlari[4]='İhtisaslaşmış İMKB Ulusal 30 Endeks';
	fon_adlari[5]='Esnek';
	fon_adlari[6]='Gelir Amaçlı Döviz Cinsinden Kamu Borçlanma Araçları';
	fon_adlari[7]='Para Piyasaları Emanet Likit Karma';
	fon_deger1=new Array();
	fon_deger2=new Array();
	fon_deger3=new Array();
	ids=new Array();
	fonsira='2136457';
	var bigParent;
	for (i=1;i<=7;i++) {
		if (document.getElementById('fon_adi00'+i)) {
			//document.getElementById('fon_adi00'+i).innerHTML=fon_adlari[i];
		
			if (is.ns6) {
				next1=document.getElementById('fon_adi00'+i).nextSibling.nextSibling;
				next2=next1.nextSibling.nextSibling;
				next3=next2.nextSibling.nextSibling;
			} else {
				next1=document.getElementById('fon_adi00'+i).nextSibling;
				next2=document.getElementById('fon_adi00'+i).nextSibling.nextSibling;
				next3=document.getElementById('fon_adi00'+i).nextSibling.nextSibling.nextSibling;
			}
			
			fon_deger1[i]=next1.innerHTML;
			fon_deger2[i]=next2.innerHTML;
			fon_deger3[i]=next3.innerHTML;
			
			//next1.innerHTML='';
			//next2.innerHTML='';
			//next3.innerHTML='';
			
		}
	}
	
	bigParent=next1.parentNode.parentNode;

	for (i=1;i<=7;i++) {
		dran=parseInt(fonsira.charAt(i-1));
		nI=i+1;
		
		//bigParent.childNodes[nI].childNodes[0].innerHTML=fon_adlari[dran];
		if (is.ns6) {
			bigParent.childNodes[nI*2].childNodes[1].innerHTML='<nobr>'+fon_adlari[dran]+'</nobr>';
			bigParent.childNodes[nI*2].childNodes[3].innerHTML=fon_deger1[dran];
			bigParent.childNodes[nI*2].childNodes[5].innerHTML=fon_deger2[dran];
			bigParent.childNodes[nI*2].childNodes[7].innerHTML=fon_deger3[dran];
		} else {
			
			bigParent.childNodes[nI].childNodes[0].innerHTML='<nobr>'+fon_adlari[dran]+'</nobr>';
			bigParent.childNodes[nI].childNodes[1].innerHTML=fon_deger1[dran];
			bigParent.childNodes[nI].childNodes[2].innerHTML=fon_deger2[dran];
			bigParent.childNodes[nI].childNodes[3].innerHTML=fon_deger3[dran];
		}
		//obj.childNodes[0].nodeValue=fon_adlari[dran];
	}
}


function isube(){
	w = screen.availWidth - 8;
			h = screen.availHeight -50;
	features = "width="+w+",height="+h;
	features += ",left=0,top=0,screenX=0,screenY=0,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,copyhistory=0,maximize=1";
	if(navigator.appName=="Netscape"){ 
		var popOneUpnn = window.open("https://esube.fortisemeklilik.com.tr",features);
	}else{
		var popOneUpie = window.open("https://esube.fortisemeklilik.com.tr","isube",features);
	}
}

		
function popsifre(){
	if(navigator.appName=="Netscape"){ 
	var popOneUpnn = window.open("https://isube.fortis.com.tr/WebP/Pages/KullaniciTanimlari/WebSifreParola.aspx","sifreis","toolbar=0,width=768,height=483,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=0,copyhistory=1");
	}else{
	var popOneUpie = window.open("https://isube.fortis.com.tr/WebP/Pages/KullaniciTanimlari/WebSifreParola.aspx","sifreis","toolbar=0,width=768,height=502,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=0,copyhistory=1");
	}
}



var flashVersion = 0;
function getFlashVersion() {
	var latestFlashVersion = 8;
	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';
		doc += 'On Error Resume Next \n';
		doc += 'Dim obFlash \n';
		doc += 'For i = ' + latestFlashVersion + ' To 3 Step -1 \n';
		doc += '	Set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash." & i) \n';
		doc += '	If IsObject(obFlash) Then \n';
		doc += '		flashVersion = i \n';
		doc += '		Exit For \n';
		doc += '	End If \n';
		doc += 'Next \n';
		doc += '</scr' + 'ipt\> \n';
		document.write(doc);
	}
	else{
		flashVersion = flashVersion_DONTKNOW;
	}

return flashVersion;

}
flashVersion_DONTKNOW = -1;

function FlashObject(){
	this.maxVersion;
	this.SwfFile;

	this.minVersion;
	this.altSwfFile;

	this.altImage;
	this.altImageAddAtribute;
	this.altImageHTML;

	this.width;
	this.height;
	this.menu;
	this.background;
	this.wmode;
}

FlashObject.prototype.rnd=function(){
	this.ranNum= Math.random()*64;
    return this.ranNum;
}

FlashObject.prototype.embed=function(){
	if(getFlashVersion()>=this.maxVersion){
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://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+'?'+this.rnd()+'"><PARAM NAME=menu VALUE='+this.menu+'><param name="wmode" value="'+this.wmode+'"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="'+this.background+'">');
		document.write('<EMBED src="'+this.SwfFile+'?'+this.rnd()+'" menu="'+this.menu+'" wmode="'+this.wmode+'" quality="high" bgcolor="'+this.background+'"  WIDTH="'+this.width+'" HEIGHT="'+this.height+'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>');
		document.write('</OBJECT>');
	}
	else if((getFlashVersion()> this.minVersion) && (getFlashVersion()< this.maxVersion) && this.altSwfFile){
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://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+'?'+this.rnd()+'"><PARAM NAME=menu VALUE='+this.menu+'<param name="wmode" value="'+this.wmode+'">><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE='+this.background+'>');
		document.write('<EMBED src="'+this.altSwfFile+'?'+this.rnd()+'" menu="'+this.menu+'" wmode="'+this.wmode+'" quality=high bgcolor='+this.background+'  WIDTH='+this.width+' HEIGHT='+this.height+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>');
		document.write('</OBJECT>');
	}else{
		if(this.altImageAddAtribute){
			document.write('<img src="'+this.altImage+'" width="'+this.width+'" height="'+this.height+'" border="0" '+this.altImageAddAtribute+' />');
			document.write(this.altImageHTML);
		}else{
			document.write('<img src="'+this.altImage+'" width="'+this.width+'" height="'+this.height+'" border="0" />');
		}
	}
}



function mailTo(m,e) {
	if (!e) {
		e='fortisemeklilik.com.tr';
	}
	
	
	document.write('<a href="mailto:'+m+String.fromCharCode(64)+e+'">'+m+String.fromCharCode(64)+e+'</a>');
}


