function mover(obj){
	obj.style.cursor='hand';
	obj.bgColor='#E4E9E4';
}
function mout(obj){
	obj.bgColor='#FFFFFF'; //'#3F3F8C';
}

function go_url(sender){

	document.location.href="msrc.asp?qtype="+sender;
}
function bolge_sec(Bolge){
mf.urun.value=Bolge;
mf.submit();
}
function get_menu(menu){
	switch (menu){
	case 0:
	var mstr="";
	mstr+="		<table bgcolor='#FFFFFF' border='0' width='100%' id='table1' cellspacing='1' style='font-family: Comic Sans MS; font-size: 9pt; color: #000000'>";
	mstr+="			<tr><td><b>SATILIK</b></td></tr>";
	mstr+="			<tr><td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(15) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Satılık Komple Bina</td>";
	mstr+="			</tr>";
	mstr+="			<tr><td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(0) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Satılık Konut</td>";
	mstr+="			</tr>";
	mstr+="			<tr>";
	mstr+="				<td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(1) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Satılık Ofis</td>";
	mstr+="			</tr>";
	mstr+="			<tr>";
	mstr+="				<td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(2) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Satılık Dükkan</td>";
	mstr+="			</tr>";
	mstr+="			<tr>";
	mstr+="				<td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(3) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Satılık Yazlık</td>";
	mstr+="			</tr>";
	mstr+="			<tr>";
	mstr+="				<td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(4) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Satılık Arsa</td>";
	mstr+="			</tr>";
	mstr+="		</table>";
	

	item1.innerHTML=mstr;
	item2.innerHTML="<b><font color='#000000' style='font-size: 9pt'>KİRALIK</font></b>";
	//item3.innerHTML="<b><font color='#000000'  style='font-size: 9pt'>DEVREN</font></b>";
	//item4.innerHTML="<b><font color='#000000' style='font-size: 9pt'>ACİL</font></b>";

	break;
	case 1:
	var mstr="";
	mstr+="		<table bgcolor='#FFFFFF' border='0' width='100%' id='table1' cellspacing='1' style='font-family: Comic Sans MS; font-size: 9pt; color: #000000'>";
	mstr+="			<tr><td><b>KİRALIK</b></td></tr>";
	mstr+="			<tr><td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(16) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Kiralık Komple Bina</td>";
	mstr+="			</tr>";
	mstr+="			<tr>";
	mstr+="			<tr><td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(5) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Kiralık Konut</td>";
	mstr+="			</tr>";
	mstr+="			<tr>";
	mstr+="				<td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(6) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Kiralık Ofis</td>";
	mstr+="			</tr>";
	mstr+="			<tr>";
	mstr+="				<td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(7) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Kiralık Dükkan</td>";
	mstr+="			</tr>";
	mstr+="			<tr>";
	mstr+="				<td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(8) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Kiralık Yazlık</td>";
	mstr+="			</tr>";
	mstr+="		</table>";
	
	item1.innerHTML="<b><font color='#000000' style='font-size: 9pt'>SATILIK</font></b>";
	item2.innerHTML=mstr;
	//item3.innerHTML="<b><font color='#000000'  style='font-size: 9pt'>DEVREN</font></b>";
	//item4.innerHTML="<b><font color='#000000' style='font-size: 9pt'>ACİL</font></b>";
	break;	
	case 2:
	var mstr="";
	mstr+="		<table bgcolor='#FFFFFF' border='0' width='100%' id='table1' cellspacing='1' style='font-family: Comic Sans MS; font-size: 9pt; color: #000000'>";
	mstr+="			<tr><td><b>DEVREN</b></td></tr><tr>";
	mstr+="				<td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(9) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Devren Satılık Dükkan</td>";
	mstr+="			</tr>";
	mstr+="		</table>";	
	item1.innerHTML="<b><font color='#000000'  style='font-size: 9pt'>SATILIK</font></b>";
	item2.innerHTML="<b><font color='#000000'  style='font-size: 9pt'>KİRALIK</font></b>";
	//item3.innerHTML=mstr;
	//item4.innerHTML="<b><font color='#000000'  style='font-size: 9pt'>ACİL</font></b>";
	break;	
	case 3://ACİL
	var mstr="";
	mstr+="		<table bgcolor='#FFFFFF' border='0' width='100%' id='table1' cellspacing='1' style='font-family: Comic Sans MS; font-size: 9pt; color: #000000'>";
	mstr+="			<tr><td><b>ACİL</b></td></tr><tr>";
	mstr+="				<td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(10) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Acil Satılık Konut</td>";
	mstr+="			</tr>";
	mstr+="			<tr>";
	mstr+="				<td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(11) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Acil Satılık Ofis</td>";
	mstr+="			</tr>";
	mstr+="			<tr>";
	mstr+="				<td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(12) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Acil Satılık Dükkan</td>";
	mstr+="			</tr>";
	mstr+="			<tr>";
	mstr+="				<td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(13) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Acil Satılık Yazlık</td>";
	mstr+="			</tr>";
	mstr+="			<tr>";
	mstr+="				<td onmouseover=mover(this) onmouseout=mout(this) onclick=go_url(14) style='border-bottom: 1px solid #FFFFFF'>";
	mstr+="» Acil Satılık Arsa</td>";
	mstr+="			</tr>";
	mstr+="		</table>";
	
	item1.innerHTML="<b><font color='#000000'  style='font-size: 9pt'>SATILIK</font></b>";
	item2.innerHTML="<b><font color='#000000'  style='font-size: 9pt'>KİRALIK</font></b>";
	//item3.innerHTML="<b><font color='#000000'  style='font-size: 9pt'>DEVREN</font></b>";
	//item4.innerHTML=mstr;
	break;	
	case 4:
		document.location.href="advert.asp";
		break;
	case 5:
		document.location.href="expertiz.asp"
		break;
	case 6:
		document.location.href="notice.asp";
		break;
	}
}


function loadSelItem(){
	switch (mf.lastmenu.value){
	case "0":get_menu(0);break;
	case "1":get_menu(0);break;
	case "2":get_menu(0);break;
	case "3":get_menu(0);break;
	case "4":get_menu(0);break;
	case "5":get_menu(1);break;
	case "6":get_menu(1);break;
	case "7":get_menu(1);break;
	case "8":get_menu(1);break;
	case "9":get_menu(2);break;
	case "10":get_menu(3);break;
	case "11":get_menu(3);break;
	case "12":get_menu(3);break;
	case "13":get_menu(3);break;
	case "14":get_menu(3);break;
	case "15":get_menu(0);break;
	case "16":get_menu(1);break;
	}
}

function uzerinde(obj){
	obj.style.cursor='hand';
}

function tiklandi(objID){
	//window.showModalDialog("showDetails.asp?RefNo="+objID,"","dialogWidth:550px;dialogHeight:590px;help:no;status:no");
	window.open("showDetails.asp?RefNo="+objID,"","width=550,height=590,status:no;toolbar:no;menubar=no");
}

