<!--
/*function f_balme(var_langue){
	document.write('<object type="application/x-shockwave-flash" data="plans_chamonix/balme.swf" width="1000" height="700">\n');
	document.write('<param name="flashvars" value="langue=' + var_langue + '" />\n');
	document.write('<param name="movie" value="plans_chamonix/balme.swf" />\n');
	document.write('<param name="quality" value="high" />\n');	
	document.write('<param NAME="wmode" VALUE="transparent" />\n');
	document.write('Plan de Balme\n');
	document.write('</object>\n');
}*/
/*function f_montenvers(var_langue){
	document.write('<object type="application/x-shockwave-flash" data="plans_chamonix/montenvers.swf" width="1000" height="700">\n');
	document.write('<param name="flashvars" value="langue=' + var_langue + '" />\n');
	document.write('<param name="movie" value="plans_chamonix/montenvers.swf" />\n');
	document.write('<param name="quality" value="high" />\n');	
	document.write('<param NAME="wmode" VALUE="transparent" />\n');
	document.write('Plan de Montenvers Mer de Glace\n');
	document.write('</object>\n');
}*/
/*function f_breventflegere(var_langue){
	document.write('<object type="application/x-shockwave-flash" data="plans_chamonix/breventflegere.swf" width="1000" height="700">\n');
	document.write('<param name="flashvars" value="langue=' + var_langue + '" />\n');
	document.write('<param name="movie" value="plans_chamonix/breventflegere.swf" />\n');
	document.write('<param name="quality" value="high" />\n');	
	document.write('<param NAME="wmode" VALUE="transparent" />\n');
	document.write('Plan de Brevent Flégère\n');
	document.write('</object>\n');
}*/
/*function f_aiguilledumidi(var_langue){
	document.write('<object type="application/x-shockwave-flash" data="plans_chamonix/aiguille_helbronner.swf" width="1000" height="700">\n');
	document.write('<param name="flashvars" value="langue=' + var_langue + '" />\n');
	document.write('<param name="movie" value="plans_chamonix/aiguille_helbronner.swf" />\n');
	document.write('<param name="quality" value="high" />\n');	
	document.write('<param NAME="wmode" VALUE="transparent" />\n');
	document.write('Plan de laiguille du midi\n');
	document.write('</object>\n');
}*/
/*function f_grandsmontets(var_langue){
	document.write('<object type="application/x-shockwave-flash" data="plans_chamonix/grandsmontets.swf" width="1000" height="700">\n');
	document.write('<param name="flashvars" value="langue=' + var_langue + '" />\n');
	document.write('<param name="movie" value="plans_chamonix/grandsmontets.swf" />\n');
	document.write('<param name="quality" value="high" />\n');	
	document.write('<param NAME="wmode" VALUE="transparent" />\n');
	document.write('Plan des grands montets\n');
	document.write('</object>\n');
}*/
/*function f_plans_chamonix(var_langue){
	document.write('<object type="application/x-shockwave-flash" data="plans_chamonix/plans_chamonix.swf" width="1000" height="700">\n');
	document.write('<param name="flashvars" value="langue=' + var_langue + '" />\n');
	document.write('<param name="movie" value="plans_chamonix/plans_chamonix.swf" />\n');
	document.write('<param name="quality" value="high" />\n');	
	document.write('<param NAME="wmode" VALUE="transparent" />\n');
	document.write('Plan de la vallée de Chamonix\n');
	document.write('</object>\n');
}*/
/*function f_intro(){
	document.write('<object type="application/x-shockwave-flash" data="anim/chamonix_intro.swf" width="957" height="555">\n');
	document.write('<param name="movie" value="anim/chamonix_intro.swf" />\n');
	document.write('<param name="quality" value="high" />\n');	
	document.write('<param NAME="wmode" VALUE="transparent" />\n');
	document.write('Introduction du site des Remontées mécaniques de Chamonix\n');
	document.write('</object>\n');
}*/

/*function f_bandeau(var_bandeau){
	document.write('<object type="application/x-shockwave-flash" data="anim/' + var_bandeau + '.swf" width="100%" height="150">\n');
	document.write('<param name="movie" value="anim/' + var_bandeau + '.swf" />\n');
	document.write('<param name="quality" value="high" />\n');	
	document.write('<param NAME="wmode" VALUE="transparent" />\n');
	document.write('Partez à la découverte de Chamonix avec la Compagnie du Mont Blanc\n');
	document.write('</object>\n');
}*/
/*function f_bandeauDyn(var_bandeau){
	document.write('<object type="application/x-shockwave-flash" data="../anim/' + var_bandeau + '.swf" width="100%" height="150">\n');
	document.write('<param name="movie" value="../anim/' + var_bandeau + '.swf" />\n');
	document.write('<param name="quality" value="high" />\n');	
	document.write('<param NAME="wmode" VALUE="transparent" />\n');
	document.write('Partez à la découverte de Chamonix avec la Compagnie du Mont Blanc\n');
	document.write('</object>\n');
}*/
/*function f_chacun_mont_blanc(){
	document.write('<object type="application/x-shockwave-flash" data="anim/chacun_mont_blanc.swf" width="608" height="310">\n');
	document.write('<param name="movie" value="anim/chacun_mont_blanc.swf" />\n');
	document.write('<param name="quality" value="high" />\n');	
	document.write('<param NAME="wmode" VALUE="transparent" />\n');
	document.write('Module de recherche pour découvrir les activités de Chamonix\n');
	document.write('</object>\n');
}*/

//interdiction clic droit
/* 01122008 desactivé pour test 
function disableselect(e){
	return false
}

function reEnable(){
	return true
}

//if IE4+
document.onselectstart=new Function ("return false")
document.oncontextmenu=new Function ("return false")
//if NS6
if (window.sidebar){
	document.onmousedown=disableselect
	document.onclick=reEnable
}
*/



//bloque le nombre de caractere dans la textarea
function f_limiteTextarea(zone,var_max) {
	if(zone.value.length>=var_max){zone.value=zone.value.substring(0,var_max);} 
}



//traitements des formulaires --------------------------------------------------------------------------------------
function f_valider_form_Avis(){
	var valid = false;
	var nom = document.avisSite.nom.value;
	var prenom = document.avisSite.prenom.value;
	var email = document.avisSite.email.value;
		
	if( nom == "" ){ 
		alert("vous n'avez pas saisi votre nom");
		valid = false;
	}else if( prenom == "" ){ 
		alert("vous n'avez pas saisi votre prenom");
		valid = false;
	}else if( email == "" ){ 
		alert("vous n'avez pas saisi votre email");
		valid = false;
	}else{
		valid = true;
	}
	
	if(valid) document.avisSite.submit();
}
function f_valider_form_AvisEN(){
	var valid = false;
	var nom = document.avisSiteEN.nom.value;
	var prenom = document.avisSiteEN.prenom.value;
	var email = document.avisSiteEN.email.value;
		
	if( nom == "" ){ 
		alert("You didn't write your name");
		valid = false;
	}else if( prenom == "" ){ 
		alert("You didn't write your firstname");
		valid = false;
	}else if( email == "" ){ 
		alert("You didn't write your email");
		valid = false;
	}else{
		valid = true;
	}
	
	if(valid) document.avisSiteEN.submit();
}

function f_valider_form_postul(){
	var valid = false;
		var nom = document.formPostul.nom.value;
		var prenom = document.formPostul.prenom.value;
		var telephone = document.formPostul.telephone.value;
		var email = document.formPostul.email.value;
		var service = document.formPostul.service.value;
		var cv = document.formPostul.FichierCV.value;
		
		if(cv != ""){
			var fic = cv.split(".");
			var extension = fic[1];

		}
		
		if( nom == "" ){ 
			alert("vous n'avez pas saisi votre nom");
			valid = false;
		}else if( prenom == "" ){ 
			alert("vous n'avez pas saisi votre prenom");
			valid = false;
		}else if( email == "" ){ 
			alert("vous n'avez pas saisi votre email");
			valid = false;
		}else if( telephone == "" ){ 
			alert("vous n'avez pas saisi votre numéro de téléphone");
			valid = false;
		}else if( service == "" ){ 
			alert("vous n'avez pas choisi de service");
			valid = false;
		}else if( cv == "" ){ 
			alert("vous n'avez pas indiqué le chemin de votre CV");
			valid = false;
		}else if((cv != "") && (extension != "")){ //condition pour tester l extension du fichier uploadé

			if((extension != "doc") && (extension != "pdf") && (extension != "rtf")){
				alert("Votre CV est au mauvais format (.doc, .pdf ou .rtf autorisés)");
				valid = false;
			}else{
				valid = true;
			}
	

		}else {
			valid = true;
		}
		if(valid) document.formPostul.submit();
}
	
function f_valider_form_renseign(){
	var valid = false;
		var nom = document.formRenseign.nom.value;
		var prenom = document.formRenseign.prenom.value;
		var email = document.formRenseign.email.value;
		
		if( nom == "" ){ 
			alert("vous n'avez pas saisi votre nom");
			valid = false;
		}else if( prenom == "" ){ 
			alert("vous n'avez pas saisi votre prenom");
			valid = false;
		}else if( email == "" ){ 
			alert("vous n'avez pas saisi votre email");
			valid = false;
		}else{
			valid = true;
		}
		if(valid) document.formRenseign.submit();
}

function f_valider_form_SuggestReclam(){
	var valid = false;
		var nom = document.suggestReclam.nom.value;
		var prenom = document.suggestReclam.prenom.value;
		var email = document.suggestReclam.email.value;
		
		if( nom == "" ){ 
			alert("vous n'avez pas saisi votre nom");
			valid = false;
		}else if( prenom == "" ){ 
			alert("vous n'avez pas saisi votre prenom");
			valid = false;
		}else if( email == "" ){ 
			alert("vous n'avez pas saisi votre email");
			valid = false;
		}else{
			valid = true;
		}
		if(valid) document.suggestReclam.submit();
}

function f_valider_form_SuggestReclamEN(){
	var valid = false;
		var nom = document.suggestReclamEN.nom.value;
		var prenom = document.suggestReclamEN.prenom.value;
		var email = document.suggestReclamEN.email.value;
		
		if( nom == "" ){ 
			alert("you didn't write your surname");
			valid = false;
		}else if( prenom == "" ){ 
			alert("you didn't write your christian name");
			valid = false;
		}else if( email == "" ){ 
			alert("you didn't write your email");
			valid = false;
		}else{
			valid = true;
		}
		if(valid) document.suggestReclamEN.submit();
}

function f_valider_form_club(){
	var valid = false;
		var nom = document.formClub.nom.value;
		var prenom = document.formClub.prenom.value;
		var tel = document.formClub.telephone.value;
		var email = document.formClub.email.value;
		var adresse = document.formClub.adresse.value;
		var cp = document.formClub.cp.value;
		var ville = document.formClub.ville.value;
		
		if( nom == "" ){ 
			alert("vous n'avez pas saisi votre nom");
			valid = false;
		}else if( prenom == "" ){ 
			alert("vous n'avez pas saisi votre prenom");
			valid = false;
		}else if( tel == "" ){ 
			alert("vous n'avez pas saisi votre telephone");
			valid = false;
		}else if( email == "" ){ 
			alert("vous n'avez pas saisi votre email");
			valid = false;
		}else if( adresse == "" ){ 
			alert("vous n'avez pas saisi votre adresse");
			valid = false;
		}else if( cp == "" ){ 
			alert("vous n'avez pas saisi votre code postal");
			valid = false;
		}else if( ville == "" ){ 
			alert("vous n'avez pas saisi votre ville");
			valid = false;
		}else{
			valid = true;
		}
		if(valid) document.formClub.submit();
}
	
function f_valider_form_presseFR(){
  var modele = /([a-z0-9]+([-_]?[a-z0-9]+)*.)*[a-z0-9]+([-_]?[a-z0-9]+)*@([a-z0-9]+([-_]?[a-z0-9]+)*.)+[a-z]{2,4}/gi;
	var valid = false;
	
	var nom     = document.presseInscription.nom.value;
	var prenom  = document.presseInscription.prenom.value;
	var tel     = document.presseInscription.tel.value;
	var email   = document.presseInscription.email.value;
	var societe = document.presseInscription.societe.value;
	var login   = document.presseInscription.login.value;
	var pwd     = document.presseInscription.pwd.value;
	var pwd2    = document.presseInscription.pwd2.value;
		
	if( nom == "" ){ 
		alert("Vous n'avez pas saisi votre nom.");
		valid = false;
	}else if( prenom == "" ){ 
		alert("Vous n'avez pas saisi votre prénom.");
		valid = false;
	}else if( societe == "" ){ 
		alert("Vous n'avez pas saisi votre société.");
		valid = false;
	}else if( tel == "" ){ 
		alert("Vous n'avez pas saisi votre téléphone.");
		valid = false;
	}else if( email == "" ){ 
		alert("Vous n'avez pas saisi votre email.");
		valid = false;
	}else if(!modele.test(email)){
		alert("Votre email n'est pas correcte.");
	 	valid = false;
	}else if( login == "" ){ 
		alert("Vous n'avez pas saisi de login.");
		valid = false;
	}else if( pwd == ""){
	  alert("Vous n'avez pas saisi de mot de passe.");
	  valid = false;
	}else if( pwd != pwd2 ){ 
		alert("Vous avez mal saisi votre mot de passe.");
		valid = false;
	}else{
		valid = true;
	}
	
	if(valid) document.presseInscription.submit();
}

function f_valider_form_presseEN(){
  var modele = /([a-z0-9]+([-_]?[a-z0-9]+)*.)*[a-z0-9]+([-_]?[a-z0-9]+)*@([a-z0-9]+([-_]?[a-z0-9]+)*.)+[a-z]{2,4}/gi;
	var valid = false;
	
	var nom     = document.presseInscription.nom.value;
	var prenom  = document.presseInscription.prenom.value;
	var tel     = document.presseInscription.tel.value;
	var email   = document.presseInscription.email.value;
	var societe = document.presseInscription.societe.value;
	var login   = document.presseInscription.login.value;
	var pwd     = document.presseInscription.pwd.value;
	var pwd2    = document.presseInscription.pwd2.value;
		
	if( nom == "" ){ 
		alert("You didn't write your name.");
		valid = false;
	}else if( prenom == "" ){ 
		alert("You didn't write your firstname.");
		valid = false;
	}else if( societe == "" ){ 
		alert("You didn't write your corporate name.");
		valid = false;
	}else if( tel == "" ){ 
		alert("You didn't write your phone number.");
		valid = false;
	}else if( email == "" ){ 
		alert("You didn't write your email.");
		valid = false;
	}else if(!modele.test(email)){
		alert("Your email is wrong.");
	 	valid = false;
	}else if( login == "" ){ 
		alert("You didn't write your login.");
		valid = false;
	}else if( pwd == ""){
	  alert("You didn't write your password.");
	  valid = false;
	}else if( pwd != pwd2 ){ 
		alert("Your password is not correct.");
		valid = false;
	}else{
		valid = true;
	}
	
	if(valid) document.presseInscription.submit();
}


// ------------------------------------------------------------------------------------------------------

//effet sur image --------------------------------------------------------------------------------------
function effet(image){
	if(image && image.filters && image.filters[0]){
		image.filters[0].apply();
		image.filters[0].play();
	}
}

// affiche un flash --------------------------------------------------------------------------------------
function f_flash(var_img,var_largeur,var_hauteur){
	document.write('<object type="application/x-shockwave-flash" data="'+ var_img +'" width="'+ var_largeur +'" height="'+ var_hauteur +'">\n');
	document.write('<param name="movie" value="'+ var_img +'" />\n');
	document.write('<param name="quality" value="high" />\n');	
	document.write('<param NAME="wmode" VALUE="transparent" />\n');
	document.write('Image de Chamonix\n');
	document.write('</object>\n');
}

// Presentation domaines montrer et masquer les calques ----------------------------------------------------
function show_hideDiv(divId) { 

  isIE = (document.all) 
  isNN6 = (!isIE) && (document.getElementById)

  // Compatibilité : l'objet DIV est détecté selon le navigateur
  if (isIE) DIV = document.all[divId];
  if (isNN6) DIV = document.getElementById(divId);

  // On affiche ou on cache
  if (DIV.style.display == "none"){
    // Cas ou le tableau est caché
    DIV.style.display = ""
  } else {
    // On le cache
    DIV.style.display = "none"
   }
}


// ----------------------------------------------------------------------------------------------------
// Picto météo HP --------------------------------------------------------------------------------------
function f_pictoMeteo(var_img){
	document.write('<object type="application/x-shockwave-flash" data="'+ var_img +'" width="75" height="50">\n');
	document.write('<param name="movie" value="'+ var_img +'" />\n');
	document.write('<param name="quality" value="high" />\n');	
	document.write('<param NAME="wmode" VALUE="transparent" />\n');
	document.write('Météo de Chamonix\n');
	document.write('</object>\n');
}

// Bandeau dans les pages dynamiques --------------------------------------------------------------------------------------
function f_bandeauDyn(var_langue,var_saison){
	var_nbBandeauxMax = 5;
	var_numBandeau = Math.floor(Math.random() * var_nbBandeauxMax) + 1;	
	var_bandeau = "bandeau" + var_numBandeau;
	
	if(var_saison == 1){
		var_bandeau += "_hiver";
	}else{
		var_bandeau += "_ete";
	}
	
	if(var_langue == "fr" || var_langue == "FR"){
		var_bandeau += "_fr";
	}else{
		var_bandeau += "_en";
	}
	
	var_adresse = "../anim/" + var_bandeau + ".swf";		
					
	return var_adresse;
}

// -------------------------------------------------------------------------------------------------------------------------

// Ajout aux favoris ------------------------------------------------------------------------------------------------------
function f_addFavoris(){
	var bookmarkurl="http://www.compagniedumontblanc.fr/index.php";
	var bookmarktitle="Ski Chamonix - Compagnie du Mont Blanc";
	if (document.all){
		window.external.AddFavorite(bookmarkurl,bookmarktitle);
	}
}

//--------------------------------------------------------------------------------------------------------------------------

// Pop up plan dynamique ---------------------------------------------------------------------------------------------------
function f_openPopUp(page,largeur,hauteur){
	if(largeur == ""){
		largeur = screen.width;
	}
	if(hauteur == ""){
		hauteur = screen.height;
	}
	var top = (screen.height-hauteur)/2;
	var left = (screen.width-largeur)/2;
	window.open(page,"","top=" + top + ",left=" + left + ",width=" + largeur + ",height=" + hauteur + ",fullscreen=yes");
	
	//window.open(page,"","top=" + top + ",left=" + left + ",width=" + largeur + ",height=" + hauteur + ",toolbar=no, menubar=no, location=no, resizable=yes, scrollbars=no, status=no"); 
	

}
// Pop up plan dynamique ---------------------------------------------------------------------------------------------------
function f_popUp(page,largeur,hauteur){
	if(largeur == ""){
		largeur = screen.width;
	}
	if(hauteur == ""){
		hauteur = screen.height;
	}
	var top = (screen.height-hauteur)/2;
	var left = (screen.width-largeur)/2;
	window.open(page,"","top=" + top + ",left=" + left + ",width=" + largeur + ",height=" + hauteur + ",scrollbars=yes,menubar=yes,"); 
	

}
// -------------------------------------------------------------------------------------------------------------------------

// Info bulle de la HP---------------------------------------------------------------------------------------------------
var var_contenuInfoBulle;
function f_info(var_contenuInfoBulle){
	if(parseInt(navigator.appVersion) >=4){
        if(navigator.appName == 'Netscape'){ //netscape
            var x = e.pageX;
            var y = e.pageY;
			
			document.layers.infoBulle.innerHTML = var_contenuInfoBulle;
			document.layers.infoBulle.pageX = x;
			document.layers.infoBulle.pageY = y;
			document.layers.infoBulle.visibility = "show"; 

        }
        else{ //explorer
            var x = window.event.clientX ;
            var y = window.event.clientY + document.body.scrollTop;
			
			document.getElementById("infoBulle").innerHTML = var_contenuInfoBulle;
			document.getElementById("infoBulle").style.left =  x;
			document.getElementById("infoBulle").style.top =  y + 20;
			document.getElementById("infoBulle").style.visibility = "visible";


        }
    }
	
	//document.getElementById("infoBulle").style.left = x;
	//document.getElementById("infoBulle").style.top  = y + 20;
	//document.getElementById("infoBulle").innerHTML = var_contenuInfoBulle;
	//document.getElementById("infoBulle").style.visibility = visible;
}

/*function f_detectMouse(e){
    if(parseInt(navigator.appVersion) >=4){
        if(navigator.appName == 'Netscape'){
            var x = e.pageX;
            var y = e.pageY;
        }
        else{
            var x = event.x ;
            var y = event.y;
        }
    }
	document.getElementById("infoBulle").style.left = x + 25; 
	document.getElementById("infoBulle").style.top  = y - 15;
}*/

function f_disparaitre(){
	if(parseInt(navigator.appVersion) >=4){
        if(navigator.appName == 'Netscape'){ //netscape
            var x = e.pageX;
            var y = e.pageY;
			
			document.layers.infoBulle.innerHTML = '';
			document.layers.infoBulle.visibility = "hide"; 

        }
        else{ //explorer
            var x = window.event.clientX ;
            var y = window.event.clientY + document.body.scrollTop;
			
			document.getElementById("infoBulle").innerHTML = '';
			document.getElementById("infoBulle").style.visibility = "hidden";


        }
    }
}

// -------------------------------------------------------------------------------------------------------------------------

// fonction qui affiche le diapo de gauche  -------------------------------------------------------------------------------------
function f_diapoFlashGauche(var_diapo){
	document.write('<object type="application/x-shockwave-flash" data="diapo.swf" width="100%" height="330">\n');
	document.write('<param name="movie" value="diapo.swf" />\n');
	document.write('<param name="flashvars" value="' + var_diapo + '" />\n');
	document.write('<param name="quality" value="high" />\n');	
	document.write('<param NAME="wmode" VALUE="transparent" />\n');
	document.write('La vallée de Chamonix\n');
	document.write('</object>\n');

		
}

// fonction qui affiche le diapo de gauche  -------------------------------------------------------------------------------------
function f_diapoFlashGalerie(var_diapo){
	document.write('<object type="application/x-shockwave-flash" data="diapoGalerie.swf" width="400" height="300">\n');
	document.write('<param name="movie" value="diapoGalerie.swf" />\n');
	document.write('<param name="flashvars" value="' + var_diapo + '" />\n');
	document.write('<param name="quality" value="high" />\n');	
	document.write('<param NAME="wmode" VALUE="transparent" />\n');
	document.write('Chamonix Mont-Blanc France\n');
	document.write('</object>\n');

		
}
//--------------------------------------------------------------------------------------------------------------------------------

// confirmation de suppression d element ----------------------------------------------------------------------------------------
function f_confirmSupp(delURL){
 
    choix = confirm("Etes vous sur de vouloir supprimer cet élément ?");
    if (choix == true){
      //document.formulaire.submit();
	  document.location = delURL;
	  return false;
    }else{
      return false;
    }
}


function f_openPopupPleinEcran(){
	document.getElementById("pleinEcran").style.visibility = "visible";
	document.body.style.overflow = "hidden"; 
}

function f_closePopUpPleinEcran(){
	document.getElementById("pleinEcran").style.visibility = "hidden";
	document.body.style.overflow = "auto";
	
	//on rappelle la fonction ki fait tourner les webcams
	runSlideShow();
}


//--------------------------------------------------------------------------------------------------------------------------------


/**
 * FlashObject v1.3c: Flash detection and embed - http://blog.deconcept.com/flashobject/
 *
 * FlashObject is (c) 2006 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof com=="undefined"){var com=new Object();}
if(typeof com.deconcept=="undefined"){com.deconcept=new Object();}
if(typeof com.deconcept.util=="undefined"){com.deconcept.util=new Object();}
if(typeof com.deconcept.FlashObjectUtil=="undefined"){com.deconcept.FlashObjectUtil=new Object();}
com.deconcept.FlashObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){
if(!document.createElement||!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=com.deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
this.useExpressInstall=_7;
if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new com.deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=com.deconcept.FlashObjectUtil.getPlayerVersion(this.getAttribute("version"),_7);
if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";
this.addParam("quality",q);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){this.setAttribute("redirectUrl",_a);}
};
com.deconcept.FlashObject.prototype={setAttribute:function(_e,_f){
this.attributes[_e]=_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},createParamTag:function(n,v){
var p=document.createElement("param");
p.setAttribute("name",n);
p.setAttribute("value",v);
return p;
},getVariablePairs:function(){
var _19=new Array();
var key;
var _1b=this.getVariables();
for(key in _1b){_19.push(key+"="+_1b[key]);}
return _19;
},getFlashHTML:function(){
var _1c="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");
}
_1c="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_1c+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1d=this.getParams();
for(var key in _1d){_1c+=[key]+"=\""+_1d[key]+"\" ";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_1c+="flashvars=\""+_1f+"\"";}
_1c+="/>";
}else{
if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_1c="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_1c+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _20=this.getParams();
for(var key in _20){_1c+="<param name=\""+key+"\" value=\""+_20[key]+"\" />";}
var _22=this.getVariablePairs().join("&");
if(_22.length>0){_1c+="<param name=\"flashvars\" value=\""+_22+"\" />";
}_1c+="</object>";}
return _1c;
},write:function(_23){
if(this.useExpressInstall){
var _24=new com.deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_24)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);}
}else{this.setAttribute("doExpressInstall",false);}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _23=="string")?document.getElementById(_23):_23;
n.innerHTML=this.getFlashHTML();
}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}}};
com.deconcept.FlashObjectUtil.getPlayerVersion=function(_26,_27){
var _28=new com.deconcept.PlayerVersion(0,0,0);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){_28=new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
}else{
try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
for(var i=3;axo!=null;i++){
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
_28=new com.deconcept.PlayerVersion([i,0,0]);}}
catch(e){}
if(_26&&_28.major>_26.major){return _28;}
if(!_26||((_26.minor!=0||_26.rev!=0)&&_28.major==_26.major)||_28.major!=6||_27){
try{
_28=new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
}catch(e){}}}
return _28;
};
com.deconcept.PlayerVersion=function(_2c){
this.major=parseInt(_2c[0])||0;
this.minor=parseInt(_2c[1])||0;
this.rev=parseInt(_2c[2])||0;
};
com.deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){return false;}
return true;
};
com.deconcept.util={getRequestParameter:function(_2e){
var q=document.location.search||document.location.href.hash;
if(q){var _30=q.indexOf(_2e+"=");
var _31=(q.indexOf("&",_30)>-1)?q.indexOf("&",_30):q.length;
if(q.length>1&&_30>-1){
return q.substring(q.indexOf("=",_30)+1,_31);}}return "";
},removeChildren:function(n){
while(n.hasChildNodes()){
n.removeChild(n.firstChild);}}};
if(Array.prototype.push==null){
Array.prototype.push=function(_33){
this[this.length]=_33;
return this.length;};}
var getQueryParamValue=com.deconcept.util.getRequestParameter;
var FlashObject=com.deconcept.FlashObject;



	
//-->
