
// ************************************************
// **      Ajouts des CSS Netscape et Init       **
// ************************************************


			var is_nn = (navigator.product == 'Gecko') 
			if (is_nn) 
				{document.write("<link href='inc/css_NS.css' rel='stylesheet' type='text/css'>")}


			function init(id)
				{window.defaultStatus="ROCK & CHANSON";
				window.name="RCMain"
				if (id!="")
					{document.getElementById(id).style.backgroundColor=mnu_Over_color
					mnP_Etend(document.getElementById(id))
					}
				Icload()
				}
					
			var Imgs = new Array();
			function Icload()
				{
				Imgs[0] = new Image();
				Imgs[0].src = "../images/gui/ic_home_ho.gif"
				Imgs[1] = new Image();
				Imgs[1].src = "../images/gui/ic_fav_ho.gif"
				Imgs[2] = new Image();
				Imgs[2].src = "../images/gui/ic_fl_ho.gif"
				Imgs[3] = new Image();
				Imgs[3].src = "../images/gui/ic_mail_ho.gif"
				}
// ************************************************
// **               GESTION DES MENUS            **
// ************************************************

			function mnP_over(mainDiv)
				{mainDiv.getElementsByTagName("DIV").item(0).style.backgroundColor=mnu_Over_color
				}
				
			function mnP_out(mainDiv)
				{mainDiv.getElementsByTagName("DIV").item(0).style.backgroundColor=mnu_Out_color
				//var objDiv = mainDiv.getElementsByTagName("div").item(1).getElementsByTagName("div").item(0)
				//objDiv.style.backgroundPosition="-200px -200px"
				}
				
				
			function mnP_Etend(MainDivTitre)
				{var objDiv = MainDivTitre.parentNode.getElementsByTagName("div").item(1)
				
					
				if (objDiv.className=="mnu_P_cont")
					{objDiv.className="mnu_P_cont_Ex"
					MainDivTitre.className="mnu_P_Titre_Ex"
					
					}
				else
					{objDiv.className="mnu_P_cont"
					MainDivTitre.className="mnu_P_Titre"
					}
				}
				
				
				function openwdw(MainDivTitre)
				{var objDiv = MainDivTitre.parentNode.getElementsByTagName("div").item(1)
				var ssurl = objDiv.getElementsByTagName("a").item(0)
				
				window.open(ssurl,'_self')}
				
				
				
				
				
			function ssmenu_entree(obj,pos) 
				{var objDiv = obj.parentNode.parentNode.getElementsByTagName("div").item(0)
				var bp = new String(((pos*18)-148) + "px")
				objDiv.style.backgroundPosition="4px " + bp
				}
				


// ************************************************
// **               GESTION DES Carrés           **
// ************************************************

	
			function setFavorite()
				{window.external.AddFavorite("http://www.rocketchanson.com", "Rock & Chanson")}
				
				
			function openPlan()
				{window.open("plan.htm","fenPlan","height=350,width=300,status=no,toolbar=no,menubar=no,location=no,resizable=yes");
				}


// ************************************************
// **               Divers                       **
// ************************************************

			function setMnuStatus(obj)
				{//window.status=obj.textNode
				}

			function setStatus(strTexte)
				{window.status=strTexte
				}

			function openImage(objIm)
				{var StyleF,F
				StyleF="height=350,width=300,status=no,toolbar=no,menubar=no,location=no,resizable=yes"
				F=window.open("img_visu.htm","fImage",StyleF)
				}
				
			function openMediaSon(Src)
				{window.open(Src,'','height=130,width=320,status=no,toolbar=no, menubar=no, location=no, titlebar=no, scrollbars=no, resizable=no, channelmode=no')}


			function gereDeletion(tableName,id)
				{window.open("adm_delete.aspx?table=" + tableName + "&id=" + id ,"", "Height=40; Width=400; status=no,toolbar=no, menubar=no, location=no, titlebar=no, scrollbars=no, resizable=yes, channelmode=no")		
				}
				
				
// ************************************************
// **               Sous rubriques                **
// ************************************************

function rub_extend(obj)
{if (document.getElementById(obj).style.display=="block")
	{document.getElementById(obj).style.display="none"
	}
else
	{document.getElementById(obj).style.display="block"
	}
}
