// JavaScript Document


	function HizliMenuOnChangeHandler(element) {
		var url=element.value;
	
		if (element.value=='bos' || element.value=='#' ) { 
			return 0;
		} else { if (url.indexOf('urun')!=-1) {
				openUrunWindow(element.value);
			} else {
				location.href=element.value	
			}
		};
	}
	
	var digerWindow;
	var bayi;
	function openDigerWindow(url,width,height) {
			var left = parseInt((screen.availWidth/2) - (width/2));
			var top = parseInt((screen.availHeight/2) - (height/2));
			var windowFeatures = "width=" + width + ",height=" + height + 
				",status,scrollbars,resizable,left=" + left + ",top=" + top + 
				",screenX=" + left + ",screenY=" + top;
				if (url.indexOf('bayi.html')!=-1) {
					bayi = window.open(url, "bayiWindow", windowFeatures);
					bayi.focus( );
				} else {
					digerWindow = window.open(url, "hakkindaWindow", windowFeatures);
					digerWindow.focus( );
				}
	}

		var urunWindow;
		function openUrunWindow(url) {
			var width = 800;
			var height = 600;
			if (url.indexOf('iletisim')!=-1) {
				width=850;
				height=450;
			} else if (url.indexOf('kab_yildiz')!=-1) 		{ width=680; height=600; }
			else if (url.indexOf('kab_hanzade')!=-1) 		{ width=780; height=600; }
			else if (url.indexOf('kab_mahpeyker')!=-1) 		{ width=700; height=600; }
			else if (url.indexOf('kab_topkapi')!=-1) 		{ width=780; height=600; }
			else if (url.indexOf('kab_montana')!=-1) 		{ width=680; height=630; }
			else if (url.indexOf('kab_idaho')!=-1) 			{ width=680; height=630; }
			else if (url.indexOf('kab_nevada')!=-1) 		{ width=680; height=630; }
			else if (url.indexOf('kabc_lapis')!=-1) 		{ width=680; height=600; }
			else if (url.indexOf('kabc_opal')!=-1) 			{ width=680; height=600; }
			else if (url.indexOf('kabc_')!=-1) 				{ width=730; height=600; }
			else if (url.indexOf('kas_yildiz')!=-1) 		{ width=680; height=550; }
			else if (url.indexOf('kas_hanzade')!=-1) 		{ width=780; height=550; }
			else if (url.indexOf('kas_mahpeyker')!=-1) 		{ width=700; height=550; }
			else if (url.indexOf('kas_topkapi')!=-1) 		{ width=780; height=550; }
			else if (url.indexOf('kas_topaz')!=-1) 			{ width=780; height=550; }
			else if (url.indexOf('kas_opal')!=-1) 			{ width=800; height=550; }
			else if (url.indexOf('kas_')!=-1) 				{ width=700; height=550; }
			else if (url.indexOf('jakuzi_m2_mimoza')!=-1) 	{ width=880; height=450; }
			else if (url.indexOf('jakuzi_m2_gardenya')!=-1) { width=880; height=450; }
			else if (url.indexOf('jakuzi_m2_acelya')!=-1) 	{ width=880; height=470; }
			else if (url.indexOf('jakuzi_m2_papatya')!=-1) 	{ width=880; height=470; }
			else if (url.indexOf('jakuzi_m2_')!=-1) 		{ width=820; height=440; }
			else if (url.indexOf('jakuzi_m1_lotus')!=-1) 	{ width=870; height=440; }
			else if (url.indexOf('jakuzi_m1_nergis')!=-1) 	{ width=990; height=540; }
			else if (url.indexOf('jakuzi_m1_menekse')!=-1) 	{ width=990; height=540; }
			else if (url.indexOf('jakuzi_m1_nilufer')!=-1) 	{ width=730; height=530; }
			else if (url.indexOf('jakuzi_m1_fulya')!=-1) 	{ width=730; height=530; }
			else if (url.indexOf('jakuzi_m1_lale')!=-1) 	{ width=760; height=530; }
			else if (url.indexOf('jakuzi_m1_kleopatra')!=-1){ width=800; height=550; }
			else if (url.indexOf('jakuzi_m1_iris')!=-1) 	{ width=800; height=550; }
			else if (url.indexOf('jakuzi_m1_josephine')!=-1){ width=960; height=550; }
			else if (url.indexOf('jakuzi_m1_')!=-1) 		{ width=820; height=440; }
			else if (url.indexOf('jakuzi_lm_venus')!=-1) 	{ width=820; height=650; }
			else if (url.indexOf('jakuzi_lm_galaksi')!=-1) 	{ width=820; height=650; }
			else if (url.indexOf('jakuzi_lm_jupiter')!=-1) 	{ width=700; height=500; }
			else if (url.indexOf('jakuzi_lm_')!=-1) 		{ width=750; height=690; }
			else if (url.indexOf('jakuzi_antik_babil')!=-1) { width=950; height=600; }
			else if (url.indexOf('jakuzi_antik_')!=-1) 		{ width=950; height=530; }
			else if (url.indexOf('jakuzi_gomme_lale')!=-1) 	{ width=840; height=400; }
			else if (url.indexOf('jakuzi_gomme_fulya')!=-1) { width=860; height=500; }
			else if (url.indexOf('jakuzi_gomme_')!=-1) 		{ width=990; height=550; }
			else if (url.indexOf('dusakabin_londra')!=-1) 	{ width=500; height=450; }
			else if (url.indexOf('dusakabin_atina')!=-1) 	{ width=500; height=450; }
			else if (url.indexOf('dusakabin_helsinki')!=-1) { width=500; height=450; }
			else if (url.indexOf('dusakabin_genova')!=-1) 	{ width=500; height=450; }
			else if (url.indexOf('dusakabin_madrid')!=-1) 	{ width=850; height=550; }
			else if (url.indexOf('dusakabin_venedik')!=-1) 	{ width=850; height=550; }
			else if (url.indexOf('dusakabin_lizbon')!=-1) 	{ width=750; height=550; }
			else if (url.indexOf('dusakabin_')!=-1) 		{ width=750; height=550; }
			else if (url.indexOf('dus_sidney1')!=-1) 		{ width=600; height=600; }
			else if (url.indexOf('dus_sidney2')!=-1) 		{ width=600; height=600; }
			else if (url.indexOf('dus_pekin')!=-1) 			{ width=600; height=600; }
			else if (url.indexOf('dus_baku')!=-1) 			{ width=650; height=600; }
			else if (url.indexOf('dus_tiflis')!=-1) 		{ width=680; height=600; }
			else if (url.indexOf('dus_')!=-1) 				{ width=570; height=600; }
			else if (url.indexOf('spai_')!=-1) 				{ width=980; height=550; }
			else if (url.indexOf('spad_')!=-1) 				{ width=980; height=550; }
			else if (url.indexOf('sauna_rio')!=-1) 			{ width=600; height=560; }
			else if (url.indexOf('sauna_')!=-1) 			{ width=800; height=560; }
			else if (url.indexOf('jakuzi_bindu_')!=-1) 		{ width=950; height=550; }			
			else { width=800; height=600; } ;
			
			
			var left = parseInt((screen.availWidth/2) - (width/2));
			var top = parseInt((screen.availHeight/2) - (height/2));
			var windowFeatures = "width=" + width + ",height=" + height + 
				",status,scrollbars,resizable,left=" + left + ",top=" + top + 
				",screenX=" + left + ",screenY=" + top;

				urunWindow = window.open(url, "urunWindow", windowFeatures);
	
				urunWindow.focus( );

		}