/********************************************
	ACTION POUR STOPPER LES ERREUR DE IE
********************************************/
function stopError()
	{
		return true;
	}
	window.onerror = stopError;

/********************************************
	onload="TpsChargement()"
	NavName = navigator.appName.substring(0,3);
	NavVersion = navigator.appVersion.substring(0,1);

	if (NavName != "Mic" || NavVersion>=4){
		entree = new Date;
		entree = entree.getTime();
	}

	function TpsChargement()
	{
		if (NavName != "Mic" || NavVersion >= 4){
			fin = new Date;
			fin = fin.getTime();
			secondes = (fin-entree)/1000;
			window.status='Page chargée en ' + secondes + ' seconde(s).';
		}
	}
********************************************/
/** window.onload = TpsChargement(); **/
/*******************************************
	ACTION POUR SELECTIONNER LES CHOIX
	DES IMAGES FILM, SERIES, JEUX
********************************************/

function choose(object, screens)
{
	var elem = document.getElementById(object);
	var elem_screens = document.getElementById(screens);

	if(elem.className != "selected")
		{
			elem.className = "selected";
			elem_screens.checked = true;
		}
		else
		{
			elem.className = "notselect";
			elem_screens.checked = false;
		}
}

/*******************************************
	ACTION POUR LE NAVIGATEUR OPERA
********************************************/

$(document).ready(function(){
	$("fieldset").each(function(i) {
		var fieldsetContent = $(this).html();
		$(this).replaceWith("<div class='fieldset'>" + fieldsetContent + "</div>");
	})
});

/********************************************
ACTION POUR OBTENIR DES PNG TRANSPARENT SOUS IE
*********************************************/

function IE_CorrectAlpha_PNG(){
	for(i=0; i<document.images.length; i++){
		img	= document.images[i];
		imgExt = img.src.substring(img.src.length-3, img.src.length);
		imgExt = imgExt.toUpperCase();
		if (imgExt == "PNG"){
			imgID = (img.id) ? "id='" + img.id + "' " : "";
			imgClass = (img.className) ? "class='" + img.className + "' " : "";
			imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
			imgStyle = "display:inline-block;" + img.style.cssText;
			if (img.align == "left") { imgStyle = "float:left;" + imgStyle; } else if (img.align == "right"){ imgStyle = "float:right;" + imgStyle; }
			if (img.parentElement.href) { imgStyle = "cursor:hand;" + imgStyle; }
			strNewHTML = '<span '+imgID+imgClass+imgTitle+' style="width:'+img.width+'px; height:'+img.height+'px;'+imgStyle+';'+'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+img.src+'\', sizingMethod=\'scale\');"></span>';
			img.outerHTML = strNewHTML;
			i = i-1;
		}
	}
}
	var userAgent=navigator.userAgent;
	if (userAgent.indexOf('MSIE') != -1) {
		window.attachEvent("onload", IE_CorrectAlpha_PNG);
	}

/*******************************************
		SYNC POUR PACAPREZ.COM/
********************************************/
