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 openPopUp4(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();
			return false;
		}

function openPopUp3(src) {
			KopWin = window.open(src);
			KopWin.focus();
		}

function openNetSube() {
	 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";
	 window.open("https://isube.fortisyatirim.com.tr/webp/login_yatirim.aspx", "", features);
}
		


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,menuHizmetlerimiz,menuUrunlerimiz,menuYatirimciOkulu,menuHizmetKanallarimiz,menuBizeKatilin').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:#61BCE8;border-left:1px solid #1E92CA;border-right:1px solid #1E92CA;border-bottom:1px solid #1E92CA;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 #AADBF2;border-right:1px solid #AADBF2;border-bottom:1px solid #AADBF2;">';
	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[5].innerHTML=fon_deger1[dran];
			bigParent.childNodes[nI*2].childNodes[3].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[2].innerHTML=fon_deger1[dran];
			bigParent.childNodes[nI].childNodes[1].innerHTML=fon_deger2[dran];
			bigParent.childNodes[nI].childNodes[3].innerHTML=fon_deger3[dran];
		}
		//obj.childNodes[0].nodeValue=fon_adlari[dran];
	}
}

function getCenter(pwidth,pheight){
	wwidth=screen.width;
	wheigth=screen.height;
	lpos= (wwidth - pwidth)/2;
	tpos= (wheigth - pheight)/2;
	return lpos, tpos;
}


function PopItUp(src,w,h,s) {
	if(s) w=w+17;
	getCenter(w,h);
	Popwin = window.open(src,"pop_up","toolbar=0,width=" + w + ", height=" + h + ", left="+ lpos +", top="+ tpos +"; location=0, directories=0, status=1, scrollbars="+s+", menubar=0, resizable=1, copyhistory=0");
	Popwin.focus();
	//return false;
}
