//Script Baslangici
		function findPosX(obj)
		{
			var curleft = 0;
			if (obj.offsetParent)
			{
				while (obj.offsetParent)
				{
					curleft += obj.offsetLeft
					obj = obj.offsetParent;
				}
			}
			else if (obj.x)
				curleft += obj.x;
			return curleft;
		}

		function findPosY(obj)
		{
			var curtop = 0;
			if (obj.offsetParent)
			{
				while (obj.offsetParent)
				{
					curtop += obj.offsetTop
					obj = obj.offsetParent;
				}
			}
			else if (obj.y)
				curtop += obj.y;
			return curtop;
		}
		function BuildMenu()
		{
		//----------------------------------------
		// Skoda Top Menu Items
		// JScript source code for SkodaTopMenu
		// S K O D A   A U T O   a . s .
		//----------------------------------------

		//detect menu span and position
		var PositionSpan=document.getElementById('MenuPositionSpan')
		var left_pos=findPosX(PositionSpan);
		var top_pos=findPosY(PositionSpan);

		//detect browser type
		//bwExplorer = (navigator.appName == 'Microsoft Internet Explorer') ? "True" : "False";
		bwNetscape = (navigator.appName == 'Netscape') ? "True" : "False";
		agent = navigator.userAgent;
		if (((agent.toLowerCase().indexOf('opera 7')>-1) || (agent.toLowerCase().indexOf('opera/7')>-1))) {bwOpera = "True";} else {bwOpera = "False";}

		//defining styles for different browsers
		var TOP_STYLE_ON = "TopOn";
		var TOP_STYLE_OVER = "TopOver";
		var SUB_STYLE_ON = "SubOn";
		var SUB_STYLE_OVER = "SubOver";
		var SUB_STYLE_ON_BOTTOM = "SubOnBottom";
		var SUB_STYLE_OVER_BOTTOM = "SubOverBottom";
		opera_pos = 1;
		level_off = 20;
		if (bwNetscape == "True") 
			{ 
				opera_pos = 1;
				level_off = 20;
				TOP_STYLE_ON = "TopOn";
				TOP_STYLE_OVER = "NetscapeTopOver";
				SUB_STYLE_ON = "SubOn";
				SUB_STYLE_OVER = "NetscapeSubOver";
				SUB_STYLE_ON_BOTTOM = "SubOnBottom";
				SUB_STYLE_OVER_BOTTOM = "SubOverBottom";
			}
		if (bwOpera == "True") 
			{ 
				opera_pos = 4;
				level_off = 22;
				TOP_STYLE_ON = "OperaTopOn";
				TOP_STYLE_OVER = "OperaTopOver";
				SUB_STYLE_ON = "SubOn";
				SUB_STYLE_OVER = "SubOver";
				SUB_STYLE_ON_BOTTOM = "SubOnBottom";
				SUB_STYLE_OVER_BOTTOM = "SubOverBottom";
			}

		//Definition of menu items
		//Item attributes : itemName, itemPosition[left,top], itemSize[height,width], itemOff[left,top], 
		//					itemLevelOff[left,top], itemUrl, itemStyle[styleOn, styleOff], itemDescription

		var skodaTopMenuItems = 
		[
			// default value for first level - position, size, item off, style nad url
			{"itemPosition": [left_pos + opera_pos, top_pos + opera_pos], "itemSize": [12,90], "itemOff": [90,0], "itemStyle": [TOP_STYLE_ON, TOP_STYLE_OVER], "itemUrl": "none"},

			//first level
			{"itemName": "4K Plaza", "itemSize": [16, 72], "itemOff": [72,0],"itemSubMenu":                 
			[	//second level
				// default value for second level - size, item off, level off, style and url
				{"itemSize": [14, 174], "itemOff": [0,14], "itemLevelOff": [0,level_off], "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER], "itemUrl": "none"},
  				
           		{"itemName": "» Şirket Perspektifi", "itemUrl": "location.href='http://www.4kplaza.com/hakkimizda.asp'", "itemDescription": "4K Plaza Şirket Perspektifi", "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER]},
 		
         		
           		
           		
              	{"itemName": "&nbsp;", "itemStyle": [SUB_STYLE_ON_BOTTOM, SUB_STYLE_OVER_BOTTOM]}
            ]},
			//first level
			{"itemName": "Yüce Auto", "itemSize": [16, 72], "itemOff": [72,0],"itemSubMenu":                 
			[	//second level
				// default value for second level - size, item off, level off, style and url
				{"itemSize": [14, 174], "itemOff": [0,14], "itemLevelOff": [0,level_off], "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER], "itemUrl": "none"},
  				
           		{"itemName": "» Yüce Auto", "itemUrl": "location.href='http://www.skoda.com.tr'", "itemDescription": "Yüce Auto", "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER]},
 		
         		
           		
           		
              	{"itemName": "&nbsp;", "itemStyle": [SUB_STYLE_ON_BOTTOM, SUB_STYLE_OVER_BOTTOM]}
            ]},
			
                        //first level
			{"itemName": "Fiyatlar", "itemSize": [16, 72], "itemOff": [72,0],"itemSubMenu":                 
			[	//second level
				// default value for second level - size, item off, level off, style and url
				{"itemSize": [14, 171], "itemOff": [0,14], "itemLevelOff": [0,level_off], "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER], "itemUrl": "none"},
  				
           		{"itemName": "» Superb", "itemUrl": "location.href='http://www.skoda.com.tr/root/showroom/?model=Superb'", "itemDescription": "Fiyat Listesi, Superb", "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER]},
           		
           		{"itemName": "» Octavia Tour", "itemUrl": "location.href='http://www.skoda.com.tr/root/showroom/?model=Octavia'", "itemDescription": "Fiyat Listesi, Octavia Tour", "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER]},
				
           		{"itemName": "» Yeni Octavia", "itemUrl": "location.href='http://www.skoda.com.tr/root/showroom/?model=Yeni+Octavia&year=2006'", "itemDescription": "Fiyat Listesi, Yeni Octavia", "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER]},
           		
           		{"itemName": "» Fabia", "itemUrl": "location.href='http://www.skoda.com.tr/root/showroom/?model=Fabia'", "itemDescription": "F&Yacute;yat Listesi, Fabia ", "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER]},

			{"itemName": "» Yeni Fabia", "itemUrl": "location.href='http://www.skoda-auto.com/tur/model/newfabia/pricelist/'", "itemDescription": "F&Yacute;yat Listesi, Fabia ", "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER]},
           		
           		          		
           		
              	{"itemName": "&nbsp;", "itemStyle": [SUB_STYLE_ON_BOTTOM, SUB_STYLE_OVER_BOTTOM]}

            ]},
            //first level
			{"itemName": "Auto Gallery", "itemSize": [16, 72], "itemOff": [72,0],"itemSubMenu":                 
			[	//second level
				// default value for second level - size, item off, level off, style and url
				{"itemSize": [14, 162], "itemOff": [0,14], "itemLevelOff": [0,level_off], "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER], "itemUrl": "none"},
  				
           		{"itemName": "» Auto Gallery", "itemUrl": "window.open('http://www.skoda-auto.com/global/showroom/concepts/yeti/')", "itemDescription": "4K Plaza (http://www.skoda-auto.com/global/showroom/concepts/yeti/)", "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER]},           		
           		           		
              	{"itemName": "&nbsp;", "itemStyle": [SUB_STYLE_ON_BOTTOM, SUB_STYLE_OVER_BOTTOM]}
            ]},
		//first level
			{"itemName": "VDF", "itemSize": [16, 52], "itemOff": [52,0],"itemSubMenu":                 
			[	//second level
				// default value for second level - size, item off, level off, style and url
				{"itemSize": [14, 162], "itemOff": [0,14], "itemLevelOff": [0,level_off], "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER], "itemUrl": "none"},
  				
           		{"itemName": "» VDF Web Sitesi", "itemUrl": "window.open('http://www.vdf.com.tr')", "itemDescription": "4K Plaza (http://www.vdf.com.tr)", "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER]},           		
           		           		
              	{"itemName": "&nbsp;", "itemStyle": [SUB_STYLE_ON_BOTTOM, SUB_STYLE_OVER_BOTTOM]}
            ]},			
            //first level
			{"itemName": "DOD", "itemSize": [16, 52], "itemOff": [52,0],"itemSubMenu":                 
			[	//second level
				// default value for second level - size, item off, level off, style and url
				{"itemSize": [14, 162], "itemOff": [0,14], "itemLevelOff": [0,level_off], "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER], "itemUrl": "none"},
  				
           		{"itemName": "» DOD Web Sitesi", "itemUrl": "window.open('http://www.dod.com.tr')", "itemDescription": "4K Plaza (http://www.dod.com.tr)", "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER]},           		
           		           		
              	{"itemName": "&nbsp;", "itemStyle": [SUB_STYLE_ON_BOTTOM, SUB_STYLE_OVER_BOTTOM]}
            ]},
	
			//first level
			{"itemName": "İkinci El", "itemSize": [16, 72], "itemOff": [72,0], "itemUrl": "location.href='ikinciel.asp'","itemSubMenu":                 
			[	//second level
				// default value for second level - size, item off, level off, style and url
				{"itemSize": [0, 0], "itemOff": [0,0], "itemLevelOff": [0,level_off], "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER]},
  				           		
              	{"itemName": "&nbsp;", "itemStyle": [SUB_STYLE_ON_BOTTOM, SUB_STYLE_OVER_BOTTOM]}
            ]}, 
            	 //first level
			{"itemName": "Kanuni", "itemSize": [16, 72], "itemOff": [72,0],"itemSubMenu":                 
			[	//second level
				// default value for second level - size, item off, level off, style and url
				{"itemSize": [14, 162], "itemOff": [0,14], "itemLevelOff": [0,level_off], "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER], "itemUrl": "none"},
  				
           		{"itemName": "» Kanuni Motor Web Sitesi", "itemUrl": "window.open('http://www.kanuni.com.tr')", "itemDescription": "4K Plaza (http://www.kanuni.com.tr)", "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER]},           		
           		           		
              	{"itemName": "&nbsp;", "itemStyle": [SUB_STYLE_ON_BOTTOM, SUB_STYLE_OVER_BOTTOM]}
            ]},           
 			//first level
			{"itemName": "Sigorta", "itemSize": [16, 72], "itemOff": [72,0],"itemSubMenu":                 
			[	//second level
				// default value for second level - size, item off, level off, style and url
				{"itemSize": [14, 162], "itemOff": [0,14], "itemLevelOff": [0,level_off], "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER], "itemUrl": "none"},
  				
           	           		
           		     
				{"itemName": "» Koç Allianz", "itemUrl": "window.open('http://www.kocallianz.com.tr/')", "itemDescription": "4K Plaza (http://www.kocallianz.com.tr/)", "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER]},  

				{"itemName": "» Ak Sigorta", "itemUrl": "window.open('http://www.aksigorta.com.tr/')", "itemDescription": "4K Plaza (http://www.kocallianz.com.tr/)", "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER]},    		
				
              	{"itemName": "&nbsp;", "itemStyle": [SUB_STYLE_ON_BOTTOM, SUB_STYLE_OVER_BOTTOM]}
            ]},
            //first level
			{"itemName": "İnş. Malz.", "itemSize": [16, 72], "itemOff": [72,0],"itemSubMenu":                 
			[	//second level
				// default value for second level - size, item off, level off, style and url
				{"itemSize": [14, 162], "itemOff": [0,14], "itemLevelOff": [0,level_off], "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER], "itemUrl": "none"},
  				
           		{"itemName": "» Kabadayılar İnş. Malz.", "itemUrl": "location.href='http://www.4kplaza.com/ins.asp'", "itemDescription": "4K Plaza (http://www.4kplaza.com/ins.asp)", "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER]},           		
           		           		
				
              	{"itemName": "&nbsp;", "itemStyle": [SUB_STYLE_ON_BOTTOM, SUB_STYLE_OVER_BOTTOM]}
            ]},
            //first level
			{"itemName": "Önerileriniz", "itemSize": [16, 72], "itemOff": [72,0],"itemSubMenu":                 
			[	//second level
				// default value for second level - size, item off, level off, style and url
				{"itemSize": [14, 162], "itemOff": [0,14], "itemLevelOff": [0,level_off], "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER], "itemUrl": "none"},
  				
           		{"itemName": "» Önerilerinizi Bize Yazın", "itemUrl": "location.href='http://www.4kplaza.com/oneri.asp'", "itemDescription": "4K Plaza (http://www.4kplaza.com/oneri.asp)", "itemStyle": [SUB_STYLE_ON, SUB_STYLE_OVER]},           		
           		           		
				
              	{"itemName": "&nbsp;", "itemStyle": [SUB_STYLE_ON_BOTTOM, SUB_STYLE_OVER_BOTTOM]}
            ]}
		];
		
		SkodaMenu(skodaTopMenuItems);
		menuBuilded=true;
		}
		
		var menuBuilded=false
		
		function onResizeRebuildMenu()
		{
			if (!menuBuilded)
				return;
			try
			{
				if (document.getElementById('MainMenuSpan') != null)
					{document.body.removeChild(document.getElementById('MainMenuSpan'));}
			}catch(e){}
			BuildMenu();
		}

//Script sonu