function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function setVariables() {
if (navigator.appName == "Netscape") {
v=".top=";
dS="document.";
sD="";
y="window.pageYOffset";
}
else {
v=".pixelTop=";
dS="";
sD=".style";
y="document.body.scrollTop";
   }
}
function checkLocation() {
object="object1";
yy=eval(y);
eval(dS+object+sD+v+yy);
setTimeout("checkLocation()",10);
}
var to;
		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.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);
	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();

function alignBottom(divid) {
	boy=92;
	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 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" />');
		}
	}
}

/* GENEL FONKSİYONLAR */ 

/* POPUP */
		function openPopUp(src,w,h,name) {
			KopWin = window.open(src,name,"toolbar=0,width=" + w + ",height=" + h + ",location=0,directories=0,status=1,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=1,scrollbars=1,menubar=0,resizable=0,copyhistory=1");
			KopWin.focus();
		}
		function openPopUp3(src,w,h,name) {
			KopWin = window.open(src,name,"toolbar=0,width=" + w + ",height=" + h + ",location=0,directories=0,status=1,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=1,scrollbars=1,menubar=0,resizable=1,copyhistory=1");
			KopWin.focus();
		}
		function openPopUpRnd(src,w,h,name) {
			RndNumber = Math.random()
			KopWin = window.open(src+'?'+RndNumber,name,"toolbar=0,width=" + w + ",height=" + h + ",location=0,directories=0,status=1,scrollbars=1,menubar=0,resizable=0,copyhistory=1");
			KopWin.focus();
		}
/* İNTERNET ŞUBELERİ */
		/*
		function bireysel_sube(){
			if(navigator.appName=="Netscape"){ 
				var popOneUpnn = window.open("https://www.disbank.com.tr/disbank/InternetSubesi/","isube","toolbar=0,width=760,height=483,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=0,copyhistory=1");
			}else{
				var popOneUpie = window.open("https://www.disbank.com.tr/disbank/InternetSubesi/","isube","toolbar=0,width=758,height=502,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=0,copyhistory=1");
			}
		}
		*/
		function bireysel_sube(){
			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://isube.fortis.com.tr/webp/login.aspx",features);
			}else{
				var popOneUpie = window.open("https://isube.fortis.com.tr/webp/login.aspx","isube",features);
			}
		}
		
		function sirketler_sube(){
			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://isube.fortis.com.tr/webp/login_kurumsal.aspx",features);
			} else {
				var popOneUpie = window.open("https://isube.fortis.com.tr/webp/login_kurumsal.aspx","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 to;
		function hideNow() {
			document.getElementById('inetsubesi').style.visibility='hidden';
		}
		
		function hideSube() {
			if (document.getElementById('inetsubesi')) {
				to=setTimeout('hideNow()',1000);
			}
		}
		
		function showSube() {
			if (document.getElementById('inetsubesi')) {
				document.getElementById('inetsubesi').style.visibility='visible';
			}
			
			if (to) {
				clearTimeout(to);
			}
		}
		
function newwin(url){
		var popOneUpnn = window.open(url,"newwin");
}

	function openPopUp4(src) {
		//window.alert('aaa');
			window.open(src);
			//return false;
		}
