<!--
   


var genres = [
	[114,"Variété Française",1096,"Albums à 6,99 €",1] ,
	[114,"Variété Française",1054,"Musique traditionnelle",1] ,
	[114,"Variété Française",1035,"Rock Français",1] ,
	[114,"Variété Française",1052,"Variété française",1] ,
	[109,"Var.inter, Pop, Rock",1086,"Albums à 6,99 €",1] ,
	[109,"Var.inter, Pop, Rock",1033,"Pop, Rock",1] ,
	[109,"Var.inter, Pop, Rock",1034,"Punk, Hardcore",1] ,
	[109,"Var.inter, Pop, Rock",1036,"Rock indé",1] ,
	[109,"Var.inter, Pop, Rock",1015,"Variétés internationales",1] ,
	[104,"Techno, Electro, Dance",1076,"Albums à 6,99 €",1] ,
	[104,"Techno, Electro, Dance",1011,"Dance, Clubbing, Techno",1] ,
	[104,"Techno, Electro, Dance",1012,"Electro, Trip Hop",1] ,
	[110,"Soul, Funk, Disco",1088,"Albums à 6,99 €",1] ,
	[110,"Soul, Funk, Disco",1048,"Disco",1] ,
	[110,"Soul, Funk, Disco",1049,"Funk",1] ,
	[110,"Soul, Funk, Disco",1051,"Soul",1] ,
	[112,"Reggae, Ragga",1092,"Albums à 6,99 €",1] ,
	[112,"Reggae, Ragga",1040,"Dub",1] ,
	[112,"Reggae, Ragga",1041,"Ragga, Dancehall",1] ,
	[112,"Reggae, Ragga",1042,"Reggae",1] ,
	[112,"Reggae, Ragga",1043,"Ska",1] ,
	[111,"Rap, Hip Hop",1090,"Albums à 6,99 €",1] ,
	[111,"Rap, Hip Hop",1037,"Electro Hip Hop",1] ,
	[111,"Rap, Hip Hop",1014,"Instrumental",1] ,
	[111,"Rap, Hip Hop",1038,"Rap, Hip Hop français",1] ,
	[111,"Rap, Hip Hop",1039,"Rap, Hip Hop international",1] ,
	[115,"R'n'B, Groove",1098,"Albums à 6,99 €",1] ,
	[115,"R'n'B, Groove",1013,"Français",1] ,
	[115,"R'n'B, Groove",1050,"International",1] ,
	[108,"Musiques du monde",1025,"Afrique",1] ,
	[108,"Musiques du monde",1084,"Albums à 6,99 €",1] ,
	[108,"Musiques du monde",1026,"Amérique du nord",1] ,
	[108,"Musiques du monde",1027,"Amérique Latine",1] ,
	[108,"Musiques du monde",1028,"Asie, Extreme Orient",1] ,
	[108,"Musiques du monde",1029,"Hymnes",1] ,
	[108,"Musiques du monde",1030,"Iles, Antilles",1] ,
	[108,"Musiques du monde",1031,"Maghreb, Moyen Orient",1] ,
	[108,"Musiques du monde",1032,"Musiques d'Europe",1] ,
	[103,"Musique Classique",1006,"Concertos",1] ,
	[103,"Musique Classique",1009,"Musique Chorale et Vocale",1] ,
	[103,"Musique Classique",1007,"Musique Contemporaine",1] ,
	[103,"Musique Classique",1008,"Musique de Chambre",1] ,
	[103,"Musique Classique",1010,"Musique Symphonique",1] ,
	[103,"Musique Classique",1005,"Oeuvres diverses, Compilations",1] ,
	[103,"Musique Classique",1016,"Opéra",1] ,
	[103,"Musique Classique",1055,"Récital Instruments",1] ,
	[103,"Musique Classique",1056,"Récital Voix",1] ,
	[107,"Jazz, Blues",1082,"Albums à 6,99 €",1] ,
	[107,"Jazz, Blues",1001,"Blues",1] ,
	[107,"Jazz, Blues",1021,"Gospel",1] ,
	[107,"Jazz, Blues",1022,"Jazz",1] ,
	[107,"Jazz, Blues",1023,"Jazz Rock",1] ,
	[107,"Jazz, Blues",1024,"Jazz Vocal",1] ,
	[106,"Hard Rock, Metal",1080,"Albums à 6,99 €",1] ,
	[106,"Hard Rock, Metal",1020,"Death, Black, Gothique",1] ,
	[106,"Hard Rock, Metal",1018,"Hard Rock",1] ,
	[106,"Hard Rock, Metal",1019,"Metal, Neo Metal",1] ,
	[105,"Enfants",1079,"2 albums à 14,99 €",1] ,
	[105,"Enfants",1078,"Albums à 6,99 €",1] ,
	[105,"Enfants",1017,"Général",1] ,
	[101,"Country",1070,"Albums à 6,99 €",1] ,
	[101,"Country",1002,"Country",1] ,
	[102,"Cinéma, TV",1072,"Albums à 6,99 €",1] ,
	[102,"Cinéma, TV",1003,"B.O.F.",1] ,
	[102,"Cinéma, TV",1004,"Séries TV",1] ,
	[116,"Autoproductions",1057,"Chanson Française",1] ,
	[116,"Autoproductions",1058,"Hard rock, Metal",1] ,
	[116,"Autoproductions",1059,"Jazz, Blues",1] ,
	[116,"Autoproductions",1060,"Musique Classique",1] ,
	[116,"Autoproductions",1061,"Musiques du monde",1] ,
	[116,"Autoproductions",1062,"Musiques Electroniques",1] ,
	[116,"Autoproductions",1063,"Pop Rock",1] ,
	[116,"Autoproductions",1064,"Punk, Hardcore",1] ,
	[116,"Autoproductions",1067,"R'n'B, Groove",1] ,
	[116,"Autoproductions",1065,"Rap, Hip Hop",1] ,
	[116,"Autoproductions",1066,"Reggae, Ragga, Dancehall",1] ,
	[113,"Ambiance, Relaxation",1094,"Albums à 6,99 €",1] ,
	[113,"Ambiance, Relaxation",1044,"Ambiance",1] ,
	[113,"Ambiance, Relaxation",1045,"Bruitages, Nature",1] ,
	[113,"Ambiance, Relaxation",1053,"Humour",1] ,
	[113,"Ambiance, Relaxation",1069,"Karaoké",1] ,
	[113,"Ambiance, Relaxation",1068,"Livres Audios",1] ,
	[113,"Ambiance, Relaxation",1046,"New Age",1] ,
	[113,"Ambiance, Relaxation",1047,"Relaxation",1]
	]

	

var TimeoutRol1;
var TimeoutRol2;


function SpcCache(IdLelay2)
{
	window.clearTimeout(TimeoutRol2);
	TimeoutRol2=setTimeout("Element.hide('"+IdLelay2+"');",100);
}
function RolStyle(Genre_Id,mainDirName)
{
	StrinNavigateur=navigator.appVersion.toLowerCase();
	LaChaineLoc=document.location.href.toLowerCase();
    SSnav=true;
    window.clearTimeout(TimeoutRol1);
    TimeoutRol1=setTimeout("GoRolStyle('"+Genre_Id+"','"+mainDirName+"')",150);
}
function GoRolStyle(Genre_Id,mainDirName)
{
	if(Genre_Id!="AllGenre"){
		WriteSsNavStyle(Genre_Id,mainDirName)
	}
	else{
		WriteNavStyle(mainDirName);
	}
	MyObj=getObj("PuceStyle"+Genre_Id);
	LeftLelay=getLeft(MyObj)+getWidth("PuceStyle"+Genre_Id);
	TopLelay=getTop(MyObj);
    SetToXY('NavSsStyleContent',LeftLelay,TopLelay);
	FadeIn('NavSsStyleContent',.5); 
	
}
function DeRolStyle()
	{
	window.clearTimeout(TimeoutRol1);
	window.clearTimeout(TimeoutRol2);
	TimeoutRol2=setTimeout("Element.hide('NavSsStyleContent');",100);
	}
function RolSsNav()
    {
    window.clearTimeout(TimeoutRol2);
    window.clearTimeout(TimeoutRol1);
    } 



function WriteNavStyle(mainDirName){
    id=0;
    HtmlNav="<div id=\"snavGenre\" class=\"FilterNavStyle\">";
    HtmlNav+="<ul>";
	for (i=0;i <= genres.length-1;i++){
		if (genres[i][0]!=id){
			id=genres[i][0];
			HtmlNav+="<li><a href=\"javascript:linkSite('/"+mainDirName+"/HomeGenre.aspx?Genre_Id="+genres[i][0]+"')\"  onmouseover=\"RolSsNav();\" onmouseout=\"SpcCache('NavSsStyleContent');\">"+genres[i][1]+"</a></li>";
		}    
	}
	HtmlNav+="</ul>";
	HtmlNav+="</div>";
    getObj("NavSsStyleContent").innerHTML=HtmlNav;
}

function WriteSsNavStyle(Genre_Id,mainDirName){
	var vu=0;
	HtmlNav="<div id=\"snavGenre\" class=\"FilterNavStyle\">";
	HtmlNav+="<ul>";
	for (i=0;i <= genres.length-1;i++){
		if (genres[i][0] == Genre_Id){
			vu = 1
			HtmlNav+="<li><a href=\"javascript:linkSite('/"+mainDirName+"/HomeSousGenre.aspx?Genre_Id="+genres[i][2]+"')\" onmouseover=\"RolSsNav();\" onmouseout=\"SpcCache('NavSsStyleContent');\">"+genres[i][3]+"</a></li>";
		}
		else if (vu == 1) break;
	}
	HtmlNav+="</ul>";
	HtmlNav+="</div>";
    getObj("NavSsStyleContent").innerHTML=HtmlNav;
}

function getObj(name)
{
 if (document.getElementById)
 {
 return document.getElementById(name);
 }
 else if (document.all)
 {
 return document.all[name];
 }
 else if (document.layers)
 {
 return document.layers[name];
 }
 else return false;
}

function BrowserInfoObject() {
    this.userAgent = ConvertToString(navigator.userAgent).toUpperCase();
    this.name = "";
    this.id = "";
    this.version = -1;
    this.isIE = false;
    this.isFirefox = false;
    this.isNetscape = false;
    this.isOpera = false;
    this.isPc = false;
    this.isMac = false;
    this.IsLinux = false;
    this.Plateform = "";
    this.dom = document.getElementById ? true : false;
    if (this.userAgent.indexOf("OPERA") > -1) {
        this.id = "Opera";
        this.isOpera = true;
        if (this.userAgent.indexOf("OPERA 6") > -1) {
            this.version = 6;
        } else if (this.userAgent.indexOf("OPERA 7") > -1) {
            this.version = 7;
        } else if (this.userAgent.indexOf("OPERA 8") > -1) {
            this.version = 8;
        }
        this.name = "Opera " + this.version;
    }
    if (this.userAgent.indexOf("MSIE") > -1) {
        this.id = "IE";
        this.isIE = true;
        if (this.userAgent.indexOf("MSIE 4.5") > -1) {
            this.version = 4.5;
        } else if (this.userAgent.indexOf("MSIE 5.0") > -1) {
            this.version = 5;
        } else if (this.userAgent.indexOf("MSIE 5.5") > -1) {
            this.version = 5.5;
        } else if (this.userAgent.indexOf("MSIE 6.0") > -1) {
            this.version = 6;
        } else if (this.userAgent.indexOf("MSIE 7.0") > -1) {
            this.version = 7;
        }
        this.name = "Internet Explorer " + this.version;
    }
    if (this.userAgent.indexOf("NETSCAPE") > -1) {
        this.id = "Netscape";
        this.isNetscape = true;
        if (this.userAgent.indexOf("NETSCAPE/3") > -1) {
            this.version = 3;
        } else if (this.userAgent.indexOf("NETSCAPE/4") > -1) {
            this.version = 4;
        } else if (this.userAgent.indexOf("NETSCAPE/5") > -1) {
            this.version = 5;
        } else if (this.userAgent.indexOf("NETSCAPE/6") > -1) {
            this.version = 6;
        } else if (this.userAgent.indexOf("NETSCAPE/7") > -1) {
            this.version = 7;
        }
        this.name = "Netscape " + this.version;
    }
    if (this.userAgent.indexOf("FIREFOX") > -1) {
        this.id = "Firefox";
        this.isFirefox = true;
        if (this.userAgent.indexOf("FIREFOX/2.") > -1) {
            this.version = 2;
        } else if (this.userAgent.indexOf("FIREFOX/1.5") > -1) {
            this.version = 1.5;
        } else if (this.userAgent.indexOf("FIREFOX/1.") > -1) {
            this.version = 1;
        } else if (this.userAgent.indexOf("FIREFOX/0") > -1) {
            this.version = 0;
        }
        this.name = "Firefox " + this.version;
    }
    if (this.userAgent.indexOf("KONQUEROR") > -1) {
        this.id = "Konqueror";
        this.isKonqueror = true;
        if (this.userAgent.indexOf("KONQUEROR/2.") > -1) {
            this.version = 2;
        } else if (this.userAgent.indexOf("KONQUEROR/1.5") > -1) {
            this.version = 1.5;
        } else if (this.userAgent.indexOf("KONQUEROR/1.") > -1) {
            this.version = 1;
        } else if (this.userAgent.indexOf("KONQUEROR/0") > -1) {
            this.version = 0;
        }
        this.name = "Konqueror " + this.version;
    }
    if (this.userAgent.indexOf("WINDOWS") > -1) {
        if (this.userAgent.indexOf("WINDOWS 98") > -1) {
            this.Plateform = "W98";
        } else if (this.userAgent.indexOf("WINDOWS CE") > -1) {
            this.Plateform = "WCE";
        } else if (this.userAgent.indexOf("WINDOWS 2000") > -1) {
            this.Plateform = "W2000";
        } else if (this.userAgent.indexOf("WINDOWS NT 5.1") > -1) {
            this.Plateform = "WXP";
        } else if (this.userAgent.indexOf("WINDOWS NT 5.2") > -1) {
            this.Plateform = "W2003";
        } else if (this.userAgent.indexOf("WINDOWS NT 6") > -1) {
            this.Plateform = "WVISTA";
        }
        this.isPc = true;
    }
    if (this.userAgent.indexOf("MAC") > -1) {
        this.Plateform = "Mac";
        this.isMac = true;
    }
    if (this.userAgent.indexOf("LINUX") > -1) {
        this.Plateform = "Linux";
        this.isLinux = true;
    }
}

function ConvertToString(value) {
    if (value == null || "undefined" == typeof value) {
        return "";
    } else {
        return value.toString();
    }
}

function getLeft(MyObject)
 {
	 if (new BrowserInfoObject().dom)
	 {
		 if (MyObject.offsetParent)
		 return (MyObject.offsetLeft + getLeft(MyObject.offsetParent));
		 else
		 return (MyObject.offsetLeft);
	 }
 }
 
 
 function getWidth(DivId) {
    try {
        var browser = new BrowserInfoObject;
        if (browser.dom) {
            return document.getElementById(DivId).offsetWidth;
        }
        if (browser.isIE) {
            return document.all[DivId].clientWidth;
        }
    } catch (e) {
        VM_Debug(e);
        setTimeout("getWidth('" + DivId + "');", 1000);
    }
}

function getTop(MyObject) {
    if ((new BrowserInfoObject).dom) {
        if (MyObject.offsetParent) {
            return MyObject.offsetTop + getTop(MyObject.offsetParent);
        } else {
            return MyObject.offsetTop;
        }
    }
}

function SetToXY(DivId, x, y) {
    try {
        document.getElementById(DivId).style.left = x;
        document.getElementById(DivId).style.top = y + "px";
    } catch (e) {
        VM_Debug(e);
        setTimeout("SetToXY('" + DivId + "','" + x + "','" + y + "');", 1000);
    }
}

function FadeIn(domElementId, duration) {
    if (!getObj(domElementId)) {
        return;
    }
    var defaultDuration = ConvertToInt32(duration);
    if (defaultDuration == 0) {
        defaultDuration = 1.5;
    }
    try {
        Effect.Appear(domElementId, {duration:defaultDuration});
    } catch (e) {
        VM_Debug(e);
        Element.show(domElementId);
    }
}

function ConvertToInt32(value) {
    if (isNaN(value)) {
        return new Number(0);
    } else {
        return new Number(value);
    }
}

function VM_Debug(exception) {
    try {
        if (typeof debugEnabled != "undefined" && debugEnabled) {
            if (exception.message) {
                alert(exception.message + " : " + exception);
            } else {
                alert(exception);
            }
        }
    } catch (e) {
    }
}
-->
