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();





function mailTo(m,nm,e,cl) {
	
if (!e) { e='finansbank.com.tr'; }

if (!nm) { nm = m+String.fromCharCode(64)+e; }

   if(!cl) { document.write('<a href=mailto:'+m+String.fromCharCode(64)+e+'>'+nm+'</a>'); }
   else    { document.write('<a href=mailto:'+m+String.fromCharCode(64)+e+' class="'+cl+'">'+nm+'</a>'); }

}

function mailTo_img(m,img ,e,cl) {
	
if (!e) { e='finansbank.com.tr'; }


   if(!cl) { document.write('<a href=mailto:'+m+String.fromCharCode(64)+e+'>'+img+'</a>'); }
   else    { document.write('<a href=mailto:'+m+String.fromCharCode(64)+e+' class="'+cl+'">'+img+'</a>'); }

}

function popWindow( url, width, height, windowName )
{
	//get center coords
	var left = (screen.width - width) / 2;
    var top = (screen.height - height) / 2;
    
    win=window.open(url, windowName, 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=' + width + ',height=' + height + ',left=' + left + ',top=' + top);
}


//image üzerine gelince değiştirme kodu
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_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_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_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 MM_openBrWindow_2(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);

}
function MM_openBrWindow(theURL,winName,features) { //v2.0

var width=(features.split(',')[2]).split('=')[1];
var top=(features.split(',')[0]).split('=')[1];
var left=(features.split(',')[1]).split('=')[1];
var height=(features.split(',')[3]).split('=')[1];
parseInt(width);
parseInt(top);
parseInt(left);
parseInt(height);
left=((screen.width/2)-(width/2));
top=((screen.height/2)-(height/2));
features= ("top=" + top + ",left="+left +",width="+width +",height="+ height);

window.open(theURL,winName,features);
}


function combopopup(theURL,winName,features,restore) { 
var slink=(theURL.options[theURL.selectedIndex].value);
  if (restore) theURL.selectedIndex=0;
window.open(slink,winName,features);}


//int bank demo açma kodu
function cremaWin(url)
{if (navigator.appName == 'Netscape' && navigator.appVersion.charAt(0) >= 4){
CWin = window.open(url,"cremawindow","toolbar=0,top=20,left=100,width=670,height=450,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=1"); 
}else{

var genislikYap = 680;
var genislikArtir = 5;
var yukseklikYap = 477;
var yukseklikArtir = 5;
var yeniPencere =window.open("","","left=0,top=48,width=1,height=1,scrollbars=1");}
for (yukseklik = 1; yukseklik < yukseklikYap;yukseklik += yukseklikArtir) {
yeniPencere.resizeTo("1", yukseklik);}
for (genislik = 1; genislik < genislikYap;genislik += genislikArtir) {
yeniPencere.resizeTo(genislik, yukseklik);}
yeniPencere.location = url;}








//combo link gönderme
function MM_jumpMenu(targ,selObj,restore){ //v3.0
//  alert(selObj.options[selObj.selectedIndex].value);




	if(selObj.options[selObj.selectedIndex].value.search("http://")!=-1)window.open(selObj.options[selObj.selectedIndex].value,"MEMBUS","");
	else{
		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		if (restore) selObj.selectedIndex=0;
	}
}


function soruAc(gelen){

	for (i=1;i<sorusayisi+1;i++){
		document.getElementById("cevap_"+i).style.display="none";
	}
	
	document.getElementById("cevap_"+gelen).style.display="block"

	
	return false;

}


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';
		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 SearchControl(e) {
	
	var InvalidChars="!#/*{[()]},;^><\\?+:'`|.,";

	kCode=InvalidChars.charAt(5);

	var keyCode = (is.ns) ? e.which : event.keyCode;

	if (keyCode>127) {
		return false;
	}
	for (i=0;i<=InvalidChars.length-1;i++) {
		if (keyCode==InvalidChars.charCodeAt(i)) {
			return false;
			alert('asd')
		}
	}
	return true;
}

function SubeSayisi(){
	document.write('419');
}
