<!--
var url_frame_droite="/meilleursites/menu_droite.htm";

function LetsGo (){	
window.document.form1.submit ();
}
function Go (adresse){
if(adresse){if (adresse.indexOf ('http://', 0) == -1){
adresse = "http://" + adresse + "/";}parent.parent.msite_content.location.href = adresse;}
}
function BarPushRub(selectbox){
	var rub;
	
	rub = selectbox.options[selectbox.selectedIndex].value	

	if(rub == ""){
		return;
	}	
	//selectbox.selectedIndex=0;
	
	document.forms[0].rubrique.value = rub;
	document.forms[0].action='/cgi-bin/meilleursites/menu_recherche.cgi';
	document.forms[0].target='msite_content';
	document.forms[0].submit();
}

function PushChaine(ch){
	var p;

	if(ch == ""){
		return;
	}	
	p = ch.indexOf("&", 0);
	
	if(p == -1){
		chaine_go2(ch);
	}
	else{
		chaine_go(ch.substring(0,p), ch.substring(p+1));
	}
}

function ChangeSkellMode(){
	var sk_mode;
	var is_on;

	sk_mode = GetSkellMode("msite_skell_mode");
	if(sk_mode == 1){
		SetCookie("msite_skell_mode", 2);
		SetCaptOff();
		is_on = 0;
	}
	else{
		SetCookie("msite_skell_mode", 1);	
		SetCaptOn();
		is_on = 1;
	}


	if(parent && parent.parent && parent.parent.msite_content){
		var my_url, i;

		my_url = parent.parent.msite_content.location+"";
		//si ya recherche.cgi dans l'url, on reload
		var sous_ch = "recherche.cgi";
		i = my_url.indexOf(sous_ch);

		if(i != -1){
			i = my_url.indexOf("capt=on");
			if(i != -1){
				if(is_on == 0){
					sk_mode = my_url.substring(0, i)+my_url.substring(i+7, 10000);
					parent.parent.msite_content.location = sk_mode;
				}		
			}
			else{
				if(is_on == 1){
					if(my_url.indexOf("?") != -1){
						//virer les eventuels '&capt='
						i=my_url.indexOf("&capt=");
						if(i!=-1){
							my_url = my_url.substring(0, i)+my_url.substring(i+6, 10000)
						}
						my_url = my_url+"&capt=on";
						parent.parent.msite_content.location = my_url;
					}
				}
			}
		}
	}
}
function SetCaptOn(){
	MM_swapImage('app','','/m_img/img_menu/capt_button2.gif', 1);
}
function SetCaptOff(){
	MM_swapImage('app','','/m_img/img_menu/capt_button1.gif', 1);
}
function refresh_countdown(){
	if(parent && parent.menu_droite){
		if(parent.menu_droite.show_countdown){
			parent.menu_droite.show_countdown(1);
		}
		parent.menu_droite.location.replace(url_frame_droite);
	}
	setTimeout("refresh_countdown()", 61000);
}

function Charger(){
	var val;
	val = GetSkellMode();
	if(val == 1){
		SetCaptOn();
	}
	setTimeout("refresh_countdown()", 61000);
}

function HomePage(){
	var ht;
	ht = GetCookie("msite_home_type");
	
	if(ht == "flash"){
		parent.parent.msite_content.location = "/meilleursites/home_flash/meilleurssites.htm";
	}
	else{
		if(navigator.appName.indexOf("Netscape") != -1){
			parent.parent.msite_content.location = "/meilleursites/meilleurssites_ns.htm";
		}
		else{
			parent.parent.msite_content.location = "/meilleursites/meilleurssites.htm";
		}
	}
}

//-->
