//
//
//  Copyright NETSPACE, All rights reserved
//
// --------------------------------------------------------------------------
//
//  Author(s) :		      ACUNDEGER Erol
//  Creation date :   	      
//  Last Modification :
//
// --------------------------------------------------------------------------
//	
//  Purpose :                 Create Radio Buttons functions
//
// --------------------------------------------------------------------------
//
//

function rmPaths(Lang) {

   this['None'] = "#";
   this['Immobilier'] = "/immo/rmImmo-" + Lang + ".html";
   this['Yachting'] = "/yachting/rmYachting-" + Lang + ".html";
   this['SportLoisir'] = "/sport_loisir/golf/rmGolf-" + Lang + ".html";
   this['Restaurant'] = "/restaurant/rmRestau-" + Lang + ".html";
   this['Hebergement'] = "/hebergement/rmHebergement-" + Lang + ".html";
   this['VieNocturne'] = "/nightlife/rmVieNocturne-" + Lang + ".html";
   this['Events'] = "/news/rmNews-" + Lang + ".html";
   this['Tourisme'] = "/tourisme/rmTourisme-" + Lang + ".html";
   this['Pratique'] = "/info_pratique/rmInfoPratique-" + Lang + ".html";
   this['Arts'] = "/arts/rmArts-" + Lang + ".html";

   this['Paysage'] = "/articles/paysage/rmPaysage-" + Lang + ".html";
   this['Portraits'] = "/articles/portraits/rmPortraits-" + Lang + ".html";
   this['Test'] = "/articles/on_a_teste/rmTest-" + Lang + ".html";
   this['ProduitsRegionaux'] = "/articles/produits_regionaux/rmProdReg-" + Lang + ".html";
   this['InfosCourantes'] = "/articles/infos/rmInfos-" + Lang + ".html";
}

function rmSubTitles(Lang) {

   this['None'] = "#";

   if ( Lang == "fr" ) {
     this['Immobilier'] = "Immobilier"; 
     this['Yachting'] = "Yachting";
     this['SportLoisir'] = "Sport & Loisir";
     this['Restaurant'] = "Restaurants";
     this['Hebergement'] = "Hébergement"
     this['VieNocturne'] = "Vie Nocturne";
     this['Events'] = "Evénements";
     this['Tourisme'] = "Tourisme";
     this['Pratique'] = "Informations Pratiques"
     this['Arts'] = "Arts & Culture";

     this['Paysage'] = "Paysage";
     this['Portraits'] = "Portraits";
     this['Test'] = "On a testé pour vous";
     this['ProduitsRegionaux'] = "Produits régionaux";
     this['InfosCourantes'] = "Informations courantes";
   } else {
     this['Immobilier'] = "Real Estate";
     this['Yachting'] = "Yachting";
     this['SportLoisir'] = "Sport & Leasure";
     this['Restaurant'] = "Restaurants";
     this['Hebergement'] = "Accomodation";
     this['VieNocturne'] = "Night Life";
     this['Events'] = "Events";
     this['Tourisme'] = "Tourism";
     this['Pratique'] = "Smart Informations";
     this['Arts'] = "Art & Culture";

     this['Paysage'] = "Paysage";
     this['Portraits'] = "Portraits";
     this['Test'] = "We have tested for you";
     this['ProduitsRegionaux'] = "Regional products";
     this['InfosCourantes'] = "Current Informations";
   }

}


function rmMoveLayers() {
	if (gotlayers) {
		if (NS) {
			topheight = 0;
                        topwidth = 0;
                        document.layers['None'].left = topwidth;
                        document.layers['None'].top = topheight;
                        document.layers['Immobilier'].left = topwidth;
			document.layers['Immobilier'].top = topheight;
                        document.layers['Yachting'].left = topwidth;
			document.layers['Yachting'].top = topheight;
                        document.layers['SportLoisir'].left = topwidth;
			document.layers['SportLoisir'].top = topheight;
                        document.layers['Restaurant'].left = topwidth;
			document.layers['Restaurant'].top = topheight;
                        document.layers['Hebergement'].left = topwidth;
			document.layers['Hebergement'].top = topheight;
                        document.layers['VieNocturne'].left = topwidth;
			document.layers['VieNocturne'].top = topheight;
                        document.layers['Events'].left = topwidth;
			document.layers['Events'].top = topheight;
                        document.layers['Tourisme'].left = topwidth;
			document.layers['Tourisme'].top = topheight;
                        document.layers['Pratique'].left = topwidth;
			document.layers['Pratique'].top = topheight;
                        document.layers['Arts'].left = topwidth;
			document.layers['Arts'].top = topheight;

                        document.layers['Paysage'].left = topwidth;
                        document.layers['Paysage'].left = topheight;
                        document.layers['Portraits'].left = topwidth;
			document.layers['Portraits'].top = topheight;
                        document.layers['Test'].left = topwidth;
			document.layers['Test'].top = topheight;
                        document.layers['ProduitsRegionaux'].left = topwidth;
			document.layers['ProduitsRegionaux'].top = topheight;
                        document.layers['InfosCourantes'].left = topwidth;
			document.layers['InfosCourantes'].top = topheight;
                        
		} else {
			topheight = 0;
                        topwidth = 0;
                        document.all['None'].style.pixelleft = topwidth;
                        document.all['None'].style.pixeltop = topheight;
			document.all['Immobilier'].style.pixelleft = topwidth;
			document.all['Immobilier'].style.pixeltop = topheight;
                        document.all['Yachting'].style.pixelleft = topwidth;
			document.all['Yachting'].style.pixeltop = topheight;
                        document.all['SportLoisir'].style.pixelleft = topwidth;
			document.all['SportLoisir'].style.pixeltop = topheight;
                        document.all['Restaurant'].style.pixelleft = topwidth;
			document.all['Restaurant'].style.pixeltop = topheight;
                        document.all['Hebergement'].style.pixelleft = topwidth;
			document.all['Hebergement'].style.pixeltop = topheight;
                        document.all['VieNocturne'].style.pixelleft = topwidth;
			document.all['VieNocturne'].style.pixeltop = topheight;
                        document.all['Events'].style.pixelleft = topwidth;
			document.all['Events'].style.pixeltop = topheight;
                        document.all['Tourisme'].style.pixelleft = topwidth;
			document.all['Tourisme'].style.pixeltop = topheight;
                        document.all['Pratique'].style.pixelleft = topwidth;
			document.all['Pratique'].style.pixeltop = topheight;
                        document.all['Arts'].style.pixelleft = topwidth;
			document.all['Arts'].style.pixeltop = topheight;

                        document.all['Paysage'].style.pixelleft = topwidth;
			document.all['Paysage'].style.pixeltop = topheight;
                        document.all['Portraits'].style.pixelleft = topwidth;
			document.all['Portraits'].style.pixeltop = topheight;
                        document.all['Test'].style.pixelleft = topwidth;
			document.all['Test'].style.pixeltop = topheight;
                        document.all['ProduitsRegionaux'].style.pixelleft = topwidth;
	                document.all['ProduitsRegionaux'].style.pixeltop = topheight;
			document.all['InfosCourantes'].style.pixeltop = topwidth
                        document.all['InfosCourantes'].style.pixeltop = topheight;
		} 
	}
}

function rmPopUp(menuName, mainMenuName, on) {

        if ( lastName != "None" ) {
          return;
        }

	if (gotlayers) {
		if (on) {
			rmMoveLayers();
			if (NS) {
				document.layers[menuName].visibility = "show";
			} else  {
				document.all[menuName].style.visibility = "visible";
			}
		} else {
			if (NS) {
				document.layers[menuName].visibility = "hide";
			} else {
				document.all[menuName].style.visibility = "hidden";
			}
		}
	}

        parent.rmEntDnLeft.rmPopUp(mainMenuName, on);
        
}

function rmOnClick(Name, mainMenuName) {

        parent.MainTitle = main_title[mainMenuName];
        parent.SubTitle = sub_title[Name];

        window.open("./rmEnteteMidBand-fr.html","rmEntDnMid");

        if ( mainMenuName == "Guide") {
          window.open("../../guide" + url[Name],"rmDn");
        } else {
          
          window.open("../news" + url[Name], "rmDn");
          
        }

}
