var acikMenu=0
var timerID =0


	var IE = document.all?true:false
	if (!IE) document.captureEvents(Event.MOUSEMOVE)
	document.onmousemove = getMouseXY;
	var tempX = 0
	var tempY = 0
	
	function getMouseXY(e) {
		if (IE) {
	    	tempX = event.clientX + document.body.scrollLeft
    		tempY = event.clientY + document.body.scrollTop
  		} 
		else {
		    tempX = e.pageX
		    tempY = e.pageY
		}  
	  if (tempX < 0){tempX = 0}
	  if (tempY < 0){tempY = 0}  
	}

function menuGoster(menu,gecerlisayfa)
{
	//menülerden herhangi biri açıksa süre beklemeden yeni menü açılmalı
	if (document.getElementById('menudiv3').style.display==''  || document.getElementById('menudiv4').style.display=='')//  || document.getElementById('menudiv4').style.display==''  || document.getElementById('menudiv5').style.display==''  || document.getElementById('menudiv6').style.display==''  || document.getElementById('menudiv7').style.display=='' )
		showTimer=0
	else
		showTimer=600

	clearTimeout(timerID)
	timerID = setTimeout('menuAc('+menu+','+gecerlisayfa+')',showTimer)
	
}

function menuAc(ac,gecerlisayfa)
{
	vposDiv = document.getElementById('spM'+ac)
	menuT = vposDiv.offsetTop
	
	if (acikMenu == ac) return
	tX=tempX
	tY=tempY
	if (tY > menuT+5 || tY < menuT -35) return
	acikMenu = ac	
	for(j=3;j<=4;j++)
		if (j==ac)
			{
			document.getElementById('menudiv'+j).style.left=vposDiv.offsetLeft + 3
			document.getElementById('menudiv'+j).style.display=''
			document.getElementById('MN'+j).src='/img/sk6/ust/mn'+j+'b.jpg'
			}
		else
			{
			document.getElementById('menudiv'+j).style.display='none'
				if (gecerlisayfa==j)
					document.getElementById('MN'+j).src='/img/sk6/ust/mn'+j+'m.jpg'
				else
					document.getElementById('MN'+j).src='/img/sk6/ust/mn'+j+'g.jpg'
			}
	
	setTimeout('menuKapa('+ac+','+gecerlisayfa+')',1) 
} 

function menuKapa(ac,gecerlisayfa)
{
	
	menuDivUst = document.getElementById('menudiv'+ac+'ust')
	vposDiv = document.getElementById('spM'+ac)
	
	menuH = menuDivUst.offsetHeight+3
	menuW = menuDivUst.offsetWidth+10
	menuL = vposDiv.offsetLeft
	menuT = vposDiv.offsetTop
	//alert(menuT)
	
	tX=tempX
	tY=tempY
	if (tX > menuL && tX < menuL + menuW && tY > menuT -31 && tY  < menuT + menuH) 
		{
		setTimeout('menuKapa('+ac+','+gecerlisayfa+')',1000) 
		}
	else
		{
			document.getElementById('menudiv'+ac).style.display='none'
			if (gecerlisayfa==ac)
				document.getElementById('MN'+ac).src='/img/sk6/ust/mn'+ac+'m.jpg'
			else
				document.getElementById('MN'+ac).src='/img/sk6/ust/mn'+ac+'g.jpg'
			acikMenu=0
		}
	
}

if (window.XMLHttpRequest) {
isIE6=false
} 
else 
{
isIE6=true
}


// KARİYERİM MENÜSÜ
menu3html=' <div id="menudiv3shadow" style="position:absolute;margin:3px;z-index: 1000; height: 232; width: 396; filter: alpha(opacity=40); opacity: 0.4;">'
menu3html+=' 	<table width="396" cellpadding="0" cellspacing="0" border="0">'
menu3html+=' 		<tr>'
menu3html+=' 			<td><img src="/img/sk1/ust/shadow1.gif" width="11" height="11" alt=""></td>'
menu3html+=' 			<td bgcolor="black" width="374"></td>'
menu3html+=' 			<td><img src="/img/sk1/ust/shadow2.gif" width="11" height="11" alt=""></td>'
menu3html+=' 		</tr>'
menu3html+=' 		<tr>'
menu3html+=' 			<td colspan="3" bgcolor="black" height="220"></td>'
menu3html+=' 		</tr>'
menu3html+=' 		<tr>'
menu3html+=' 			<td><img src="/img/sk1/ust/shadow3.gif" width="11" height="11" alt=""></td>'
menu3html+=' 			<td bgcolor="black"></td>'
menu3html+=' 			<td><img src="/img/sk1/ust/shadow4.gif" width="11" height="11" alt=""></td>'
menu3html+=' 		</tr>'
menu3html+=' 	</table>'
menu3html+=' </div>'
menu3html+=' <div id="menudiv3ust" style="position:relative; z-index: 1002;">'
menu3html+=' <table width="396" cellpadding="0" cellspacing="0" border="0">'
menu3html+=' 	<tr>'
menu3html+=' 		<td width="11" background="/img/sk1/ust/divsol.gif"></td>'
menu3html+=' 		<td width="78" bgcolor="#ffffff"></td>'
menu3html+=' 		<td width="296" background="/img/sk1/ust/divust.gif"></td>'
menu3html+=' 		<td width="11"><img src="/img/sk1/ust/divsagust.gif" width="11" height="11" alt=""></td>'
menu3html+=' 	</tr>'
menu3html+=' 	<tr>'
menu3html+=' 		<td background="/img/sk1/ust/divsol.gif"></td>'
menu3html+=' 		<td colspan="2" bgcolor="#ffffff" height="220" valign="top">'
menu3html+=' 			<table  cellpadding="0" cellspacing="0" border="0" width="370">'
menu3html+=' 				<tr>'
menu3html+=' 					<td>'
if (chk_userrefno!='')
	menu3html+=' 						<img src="/incfiles/cvresimgostermenu.kariyer'+chk_link_add+'" width="75" border=0  align="right" vspace="4" hspace="4">'
if (chk_userrefno=='') {
	menu3html+=' 					<p>&nbsp;<a href="/executive/kariyerim/newuser.kariyer'+chk_link_add+'" class="menulink"><b>&raquo; Hemen Üye Ol</b></a><br>'
	menu3html+=' 					&nbsp;<font class="menugray">Özgeçmişinizi oluşturun, ilanlara başvurun.</font></p>'
}							
menu3html+=' 						<p>&nbsp;<a href="/executive/kariyerim/index.kariyer'+chk_link_add+'" class="menulink"><b>&raquo; Kariyerim</b></a><br>'
menu3html+=' 						&nbsp;<font class="menugray">Özgeçmişlerinizi listeleyin, görüntüleyin.</font></p>'
menu3html+=' 						<p>&nbsp;<a href="/executive/kariyerim/loginupdate.kariyer'+chk_link_add+'" class="menulink"><b>&raquo; Üyelik Bilgilerim</b></a><br>'
menu3html+=' 						&nbsp;<font class="menugray">Şifre, e-posta, abonelik ile ilgili işlemlerinizi yapın.</font></p>'
if (chk_userrefno!='') {
	menu3html+=' 					<p>&nbsp;<a href="/executive/kariyerim/logout.kariyer'+chk_link_add+'" class="menulink"><b>&raquo; Güvenli Çıkış</b></a><br>'
	menu3html+=' 					&nbsp;<font class="menugray">Kariyer.net\'ten çıkmadan önce Güvenli Çıkış\'a tıklayın</font></p>'
}
menu3html+=' 					</td>'
menu3html+=' 				</tr>'
menu3html+=' 				<tr>'
menu3html+=' 					<td><font color="#c0c0c0">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</font></td>'
menu3html+=' 				</tr>'
menu3html+=' 			</table>'
menu3html+=' 			<table width="100%" cellpadding="0" cellspacing="3" border="0" height="80">'
menu3html+=' 				<tr>'
menu3html+=' 					<td width="50%">&nbsp;<a href="/executive/kariyerim/myapplications.kariyer'+chk_link_add+'" class="menulink">&raquo; Başvurularım</a></td>'
menu3html+=' 					<td>&nbsp;<a href="/executive/kariyerim/mymessages.kariyer'+chk_link_add+'" class="menulink">&raquo; Mesajlarım</a></td>'
menu3html+=' 				</tr>'
menu3html+=' 				<tr>'
menu3html+=' 					<td>&nbsp;<a href="/executive/kariyerim/onaylist.kariyer'+chk_link_add+'" class="menulink">&raquo; SMS Mesajlarım</a></td>'
menu3html+=' 					<td>&nbsp;<a href="/executive/ktest/index.kariyer'+chk_link_add+'" class="menulink">&raquo; K-Testlerim</a></td>'
menu3html+=' 				</tr>'
menu3html+=' 				<tr>'
menu3html+=' 					<td colspan="2">&nbsp;<a href="/executive/kariyerim/mulakatlarim.kariyer'+chk_link_add+'" class="menulink">&raquo; Mülakatlarım</a></td>'
menu3html+=' 				</tr>'
menu3html+=' 			</table>'
menu3html+=' 		</td>'
menu3html+=' 		<td background="/img/sk1/ust/divsag.gif"></td>'
menu3html+=' 	</tr>'
menu3html+=' 	<tr>'
menu3html+=' 		<td><img src="/img/sk1/ust/divsolalt.gif" width="11" height="11" alt=""></td>'
menu3html+=' 		<td colspan="2"><img src="/img/sk1/ust/divalt.gif" width="374" height="11" alt=""></td>'
menu3html+=' 		<td><img src="/img/sk1/ust/divsagalt.gif" width="11" height="11" alt=""></td>'
menu3html+=' 	</tr>'
menu3html+=' </table>'
menu3html+=' </div>'

if (isIE6)
{
menu3html+=' <iframe src="about:blank" style="width: 396px; height: 202px; z-Index: 500; position:absolute; top: 5px; left: 0px" frameborder="0"></iframe>'
}


document.getElementById('menudiv3').innerHTML=menu3html


menu4html=' <div id="menudiv4shadow" style="position:absolute;margin:3px;z-index: 1000; height: 1; width: 1; filter: alpha(opacity=40); opacity: 0.4;">'
menu4html+=' </div>'
menu4html+=' <div id="menudiv4ust" style="position:relative; z-index: 1002;">'
menu4html+=' </div>'
document.getElementById('menudiv4').innerHTML=menu4html

