//------------ GENERAL ------------
// FrameStop
if (parent.frames.length > 0)
{
    parent.location.href = self.document.location;
}
// ------------ FIN GENERAL ------------

function AjoutFavo() {
    if ((navigator.appName.indexOf("Microsoft",0)>=0) && (parseInt(navigator.appVersion)>=4)) {
        window.external.AddFavorite("http://www.mortderire.info","MortDeRire.info - Humour, Blagues, Perles, Images et vidéos délirantes..." );
    } else {
        alert("Cette fonction n'est proposée que par Internet Explorer 4+")
    }
}


function radio() {
	hauteur = 150;
	largeur = 350;
	window.open('radio/index.php','Radio','directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,width='+largeur+',height='+hauteur+'');
}


function spop( fichier, nom, largeur, hauteur, options )
// Utilisation: spop( 'monfichier.html', 'MaPopup', 100, 100, 'Mes options (Facultatif)' )
// spop( fichier, nom, largeur, hauteur, options )
	{
		var id = Math.round( Math.random() * 100 );
		var gauche = ( screen.width - largeur ) / 2;
		var haut = ( screen.height - hauteur ) / 2;
		if ( options )
			{
				options = 'width=' + largeur + 'px, height=' + hauteur + 'px,  top=' + haut + ', left=' + gauche + ', ' + options;
			}
		else
			{
				options = 'width=' + largeur + 'px, height=' + hauteur + 'px,  top=' + haut + ', left=' + gauche;
			}
		document.open( fichier, nom + id, options );
	}
	
// Gestion des images secondaires menus
function VersionNavigateur(Netscape, Explorer)
{
if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||
(navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
return true;
else return false;
}
