
//var mm = open("","mm");
function debug(obj){for(var i in obj){mm.document.write(i+"="+obj[i]+"<br>")}mm.document.write("<hr>");}
function teste(value){mm.document.write(value+"<br>");}
function pageTracking(lien,path,url){var lieu = '';if(typeof(lien)!='undefined'){if(typeof(lien.className)!='undefined' && lien.className!=''){var t =  (lien.className).split(" ");for(var i = 0;i<t.length;i++){if(t[i].indexOf('track-')!=-1){lieu=t[i]+'/';break;}}}}if(typeof(_gaq)!='undefined'){_gaq.push(['_trackPageview',"/"+path+"/"+lieu+url]);}
/*alert("/"+path+"/"+lieu+url);*/}
function socialTracking(network, action, url){if(typeof(_gaq)!='undefined'){var aConf = ['_trackSocial', network, action, url];_gaq.push(aConf);/*alert(aConf);*/}}
function eventTracking(category, action, opt_label ){if(jQuery.trim(category)!='' && jQuery.trim(action)!='' && jQuery.trim(opt_label)!='' ){if(typeof(_gaq)!='undefined'){_gaq.push(['_trackEvent',category, action, opt_label]);}}/*alert(category+'/'+action+'/'+ opt_label );*/}
function menuGaucheAutre(){
	
	if((document.location.toString()).indexOf('www.aliasdmc.fr') > -1 && Dmc_GetChamp("Nom")!="dmc"){
		document.write("<a id=\"bt_xiti\" href=\"http://www.xiti.com/xiti.asp?s=496880\" rel=\"nofollow\" target=\"_blank\" >");
		Xt_param = 's=496880&p=';try {Xt_r = top.document.referrer;}catch(e) {Xt_r = document.referrer; }Xt_h = new Date();
		Xt_i = '<img width="39" height="25" border="0" alt="" ';Xt_i += 'src="http://logv17.xiti.com/hit.xiti?'+Xt_param;
		Xt_i += '&hl='+Xt_h.getHours()+'x'+Xt_h.getMinutes()+'x'+Xt_h.getSeconds();if(parseFloat(navigator.appVersion)>=4){Xt_s=screen;Xt_i+='&r='+Xt_s.width+'x'+Xt_s.height+'x'+Xt_s.pixelDepth+'x'+Xt_s.colorDepth;}
		document.write(Xt_i+'&ref='+Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$')+'" title="Internet Audience">');
		document.write("</a>");
	}

}
function menuGaucheInformer(url){
	$(document).ready(function(){
		var sss="si";
		var tryu=sss+"te";
		var t55tt = "ac";
		var yuoijj = "iasd";
		var temp="@";
		var href= $("#link-rss").attr("href");
		var sFlux = '';
		var addthis='<li><div class="addthis_toolbox addthis_default_style addthis_16x16_style">'
			+'    <a class="addthis_button_facebook"></a>'
			+'    <a class="addthis_button_twitter"></a>' 
			+'    <a class="addthis_button_delicious"></a>'
			+'    <a class="addthis_button_yoolink"></a>'
			+'    <a class="addthis_button_digg"></a>'
			+'	<a class="addthis_button_email"></a>'
			+'</div>'
			+'</li>'
			+'<li style="margin-top:3px"><div class="addthis_toolbox addthis_default_style addthis_16x16_style">'
			+'    <a class="addthis_button_compact"></a>'
			//+'	<a class="addthis_counter addthis_bubble_style"></a>' 
			+'<a class="addthis_button_google_plusone"></a>'
			+  '</div></li>'

			;
		var sCode = '<li id="additious">';
		if(href != undefined  &&  href !=''){
			sFlux+='<div id="rssdeux"><a href="'+href+'" target="_blank" rel="nofollow" title="fils RSS 2.0" onclick="socialTracking(\'rss-2.0\',\'share\',this.href)"><img src="/images/rss/rss-2.gif" border="0" alt="fils RSS 2.0"/></a></div></li>'
			+'<li><div id="rssgoogle"><a href="http://fusion.google.com/add?feedurl='+encodeURIComponent(href)+'" target="_blank" rel="nofollow" title="fils RSS Google" onclick="socialTracking(\'google-rss\',\'share\',this.href)"><img src="/images/rss/rss-google.gif" border="0" alt="fils RSS Google"/></a></div></li>'
			+'<li><div id="rssyahoo"><a href="http://add.my.yahoo.com/rss?url='+encodeURIComponent(href)+'" target="_blank" rel="nofollow" title="fils RSS Yahoo" onclick="socialTracking(\'yahoo-rss\',\'share\',this.href)"><img src="/images/rss/rss-yahoo.gif" border="0" alt="fils RSS Yahoo"/></a></div></li>'
			+'<li><div id="rssnetvibes"><a href="http://www.netvibes.com/subscribe.php?url='+encodeURIComponent(href)+'" target="_blank" rel="nofollow" title="fils RSS Netvibes" onclick="socialTracking(\'netvibes-rss\',\'share\',this.href)"><img src="/images/rss/rss-netvibes.gif" border="0" alt="fils RSS Netvibes"/></a></div></li>';
		}

		if(document.location.toString().indexOf('rechercher/recherche') !=-1){
			if(sFlux!=''){	sFlux = '<li style="margin-top: 3px;">'+sFlux;}
		}else{
			if(sFlux!=''){	addthis ='';}
		}
		var strEr = "<li>"+setErreurPage('Erreur page : '+url)+"</li>"
		sCode  +=addthis+sFlux+strEr;
		$("#menugdivers ol li h5").after('<ul>'+sCode+'</ul>').html("Divers")
	});

}
function initZoneLink(){
	$(".linkzone,.dmchtml,.dmccss,.dmcannuaire,.dmcflash,.dmcsearch").click(function(event){ 
		var value = event.currentTarget;
		if(typeof (value.href) !='undefined'){
			var url = ((value.href).toString()).replace('http://',"");
			var reg=new RegExp("(\\.)", "g");
			url = url.replace(reg,"-");
			if(url.lastIndexOf("/") == url.length-1){url = url.substring(0, url.length-1);}
			var path = 'menu-gauche';
			if(value.className == "linkzone"){path = 'footer';}
			if(url !=''){pageTracking(undefined,'liensortant/'+path,url+'.ls');}
		}
	});
	$("#formgetbalise").submit(function(event){
		//_gaq.push(['_linkByPost', this]);
	}); 
}
function initGoogleTheme(){if($("#allresume div.blocpubtypebloc").length > 0){$("#innerContainer h1.titreprincipal").css({height:(53-20)+'px'});}}
function addShareFooter(){
	var addthis = '<div class="addthis_toolbox addthis_default_style addthis_32x32_style">'
		+' <a class="addthis_button_facebook"></a>'
		+' <a class="addthis_button_twitter"></a>'
		+' <a class="addthis_button_yahoobkm"></a>'
		+' <a class="addthis_button_live"></a>'
		//+'    <a class="addthis_button_google"></a>' 
		+' <a class="addthis_button_delicious"></a>'
		+' <a class="addthis_button_netvibes"></a>'
		+' <a class="addthis_button_yoolink"></a>'
		//+'    <a class="addthis_button_digg"></a>'
		+' <a class="addthis_button_viadeo"></a>'
		//+'    <a class="addthis_button_linkedin"></a>'
		+'<a class="addthis_button_email"></a>'
		+' <a class="addthis_button_compact"></a>' 
		+' <a class="addthis_button_google_plusone"></a>'
		+'</div>';
	document.write(addthis);

}
function shareProperty(){
	var addthis = '<div class="share-property">'
		+'<span class="lib">Partager ces articles :&nbsp;</span>'
		+'<div class="addthis_toolbox addthis_default_style addthis_16x16_style">'
		+' <a class="addthis_button_facebook"></a>'
		+' <a class="addthis_button_twitter"></a>'
		+' <a class="addthis_button_yahoobkm"></a>'
		+' <a class="addthis_button_live"></a>'
		+' <a class="addthis_button_google"></a>' 
		//+' <a class="addthis_button_gmail"></a>'
		+' <a class="addthis_button_delicious"></a>'
		+' <a class="addthis_button_netvibes"></a>'
		+' <a class="addthis_button_yoolink"></a>'
		+' <a class="addthis_button_digg"></a>'
		+' <a class="addthis_button_viadeo"></a>'
		+' <a class="addthis_button_linkedin"></a>'
		//+' <a class="addthis_button_email"></a>'
		//+' <a class="addthis_button_favorites"></a>'
		+' <a class="addthis_counter addthis_pill_style"></a>'
		+'<a class="addthis_button_google_plusone"></a>'
		+'</div></div>';

	document.write(addthis);
	//$("h1.titreprincipal").after(addthis).css({height:'20px'})


}
$(document).ready(function(){
	initGoogleTheme();
	robocop();
	initBLocCode();
	initInfoBulle(); 
	initZoneLink();
	initInfoparagraphe();
	initRemonte();
	menudeplier();
});

function initBLocCode(){
	$("#allresume .bloccodehtml").each(function(index){
		var child = $(this).children();
		var childA = child.get(0);
		var childB = child.get(1);
		if(childA.className == "titre"  && childB.className =="codehtml" ){
			childB = $(childB);
			if(childB.css("maxHeight")!=undefined){
				var h = childB.height();
				if(childB.height()-7>50){
					childA = $(childA)
					childA.css({'display':"block"}).click(
							function (event){
								if(childB.css("maxHeight")!="100%"){
									$(this).css({backgroundImage:"url(../images/charte_v5/contenu/bt_replier.gif)"});
									childB.css({maxHeight:"100%"});
								}else{
									$(this).css({backgroundImage:"url(../images/charte_v5/contenu/bt_deplier.gif)"});
									childB.css({maxHeight:"65px"});
								}
							}
					);
				}
			}
		}															
	});		
}


window.plugInfoBulle  =new Object();
window.plugInfoBulle._selected = null;
window.plugInfoBulle._timer= null;
window.plugInfoBulle._timeout= 1500;
window.plugInfoBulle.stoptimer = function(){clearTimeout(window.plugInfoBulle._timer);};
window.plugInfoBulle.cacher = function(){window.plugInfoBulle._timer = setTimeout(function(){window.plugInfoBulle.fermer()},window.plugInfoBulle._timeout);};
window.plugInfoBulle.fermer=function(){if(window.plugInfoBulle._selected){$(window.plugInfoBulle._selected).css({display:"none"});window.plugInfoBulle._selected=null;}};

function initInfoBulle(){
	$("#infobulle .blocinfobulle").append('<span class="arrow_tip"></span>')
	$("#allresume .infobulle").each(function(index){								   
		var declanche = $(this);	 
		var valeur = ""; 
		if(this.firstChild.tagName=="A"){
			valeur = this.firstChild.firstChild.nodeValue;
		}else{
			valeur = this.firstChild.nodeValue;
		}
		var parent = declanche.parent();
		if(parent.length ==1 && parent.get(0).tagName=="A"){
			$(this).css({cursor:"pointer"})
		}

		declanche.mouseout(function(){window.plugInfoBulle.cacher()});
		declanche.mouseover(function(event){ 
			if(window.plugInfoBulle._selected!=null){
				window.plugInfoBulle.stoptimer();
				$(window.plugInfoBulle._selected).css({display:"none"});
				window.plugInfoBulle._selected=null;
			}

			var e = $("#infobulle"+valeur.toLowerCase());
			if(e.length>0){ 
				var ele = $(event.currentTarget);
				var position = ele.offset();
				var taille = ele.innerWidth();
				e.css({display:"block",position:"absolute",
					left:(position.left-10+(taille/2))+"px",
					top:((position.top-5)-parseInt(e.css("height")))+"px"});
				window.plugInfoBulle._selected=e;
			}
		});	
	});
	$("#infobulle > dfn").each(function(index,value){
		$(this).mouseover(function(event){clearTimeout(window.plugInfoBulle._timer);});
		$(this).mouseout(function(event){window.plugInfoBulle.cacher()});
	});
}

function initInfoparagraphe(){
	$(".infoparagraphe dl").each(function(index,value){
		$(this).parent().append('<div class="'+$(this).attr("class")+'b" style="display:none">'+$(this).find('dd').html()+'</div>')
		$(this).first().bind('click',{source:$(this).parent(),block:$(this).attr("class")},function(event){
			var source = event.data.source;var bloc = source.find('div.'+event.data.block+'b');
			if(source.data('selected')!= null  && source.data('selected').attr('class')!=bloc.attr('class')){
				source.data('selected').css({display:"none"});source.removeData('selected');
			} 
			if(bloc.css("display")=='none'){
				bloc.css({'display':"block"});source.data('selected',bloc);
			}else{
				bloc.css({'display':"none"});source.removeData('selected');
			}	
		});	
	});
}
window.layerremonte_timer_show = null;
window.layerremonte_timer   = null;
window.layerremonte_timeout = 1000;
function initRemonte(){ 
	if($("#menuinterne").length >0){

		var _menuinterne = document.getElementById("menuinterne").cloneNode(true);
		_menuinterne.id="layerremonte";
		document.body.appendChild(_menuinterne);
		var li = document.createElement("li");
		_menuinterne.appendChild(li);
		li.innerHTML="<a href=\"#footer\">Bas de page</a>";
		var litop = document.createElement("li");
		_menuinterne.insertBefore(litop,_menuinterne.firstChild);
		litop.innerHTML="<a href=\"#cadre\">Haut de page</a>";
		$("#layerremonte li").each(function(index,value){
			$(this).bind('mouseover',function(event){
				clearTimeout(window.layerremonte_timer);
			});
			$(this).bind('mouseout',function(event){
				window.layerremonte_timer = setTimeout(function(){$("#layerremonte").css({display:"none"})},window.layerremonte_timeout)	;

			});
			$(this).bind('click',function(event){ 
				$("#layerremonte").css({display:"none"});
				clearTimeout(window.layerremonte_timer);
			});
		});
		$('.blockremonte').each(function(){
			if($(this).hasClass('none') == false){
				$(this).find('.lienremonte,.plus').each(function(index,value){
					//$('.blockremonte .lienremonte,.blockremonte .plus').each(function(index,value){
					var bt = $(this); 
					bt.bind('mouseout',function(event){
						window.layerremonte_timer = setTimeout(function(){$("#layerremonte").css({display:"none"});},window.layerremonte_timeout)	;
						clearTimeout(window.layerremonte_timer_show)
					});
					bt.bind('mouseover',function(event){
						window.layerremonte_timer_show  = setTimeout(function(){
							var bouton = $(event.currentTarget);
							clearTimeout(window.layerremonte_timer);
							var olremonte = $("#layerremonte");
							var position = bouton.offset();
							var taille = {width:olremonte.innerWidth(),height:olremonte.innerHeight(),};
							var rightPos = 0;
							olremonte.css({display:"block",top:(position.top-taille.height)+"px",left:(position.left-rightPos)+"px"})
						},500);
					});
				});
			}
		});
	}
}
function dmcSetConnection(){var nbConnection = "?";if(typeof(window.parent.nbConnection)=="string"){nbConnection = window.parent.nbConnection;}document.write('<a href="#specialwebmaster">'+nbConnection+' connections<br/>depuis janvier 2008.</a>');}
function setMoteurStat(mot,url,associer){var dmc = new Image();if(mot!=""){dmc.src= "/images/stat_moteur_result.gif?id="+session+"&mot="+mot+"&associer="+associer+"&page="+url;}return true;}
var plugDefinition=new Object();
plugDefinition.position=null;
plugDefinition.ordre=null;
plugDefinition.getPosition=function(id){
	for(var i=0;i<this.ordre.length;i++){
		if(this.ordre[i]==id){
			this.position=i;
			break;
		}
	}
}

function robocop(){
	var toto = 'b';var momo ='';
	if(typeof(navigator)=="object"){
		var user = escape(navigator.userAgent.toLowerCase());
		var dmc_Image = new Image();
		dmc_Image.src=ZoneUrl+"/images/stat_robocop.gif?robocop="+encodeURI(navigator.userAgent.toLowerCase())+"&ref="+encodeURI(window.document.referrer);
	}
}

function moveDef(id,ancre,lien){
	var allresume= document.getElementById("allresume");
	if(plugDefinition.ordre==null){
		plugDefinition.ordre = new Array();
		$(allresume).children().each(function(){
			if((this.id).indexOf('-css')!=-1){
				plugDefinition.ordre.push(this.id);
			}
		});
	}else {
		if(plugDefinition.ordre[plugDefinition.position]!=ancre){
			var selection = $("#"+plugDefinition.ordre[plugDefinition.position]);
			var selectionTemp =  selection.clone(true);
			selection.remove();
			if(plugDefinition.position<plugDefinition.ordre.length-1){
				$(selectionTemp).insertBefore($("#"+plugDefinition.ordre[plugDefinition.position+1])).removeClass('selectedblock');
			}else{
				$(selectionTemp).insertAfter($("#"+plugDefinition.ordre[plugDefinition.position-1])).removeClass('selectedblock');
			}
		}
	}	

	if(allresume){
		var first = $(allresume).children()[1];
		if(first){
			if(first.id!=ancre){
				$(first).removeClass('selectedblock');
				var selection = $("#"+ancre);
				plugDefinition.getPosition(ancre);
				if(selection.length>0){
					var selectionTemp =  selection.clone(true);
					selection.remove();
					window.afficheNavRemonte =false;
					$(selectionTemp).insertBefore(first);
					window.afficheNavRemonte = true;
					$(selectionTemp).addClass('selectedblock')
				}
			}else{
				$(first).addClass('selectedblock');
			}
		}
	}else{
		document.location=document.location.pathname+"#"+ancre;
	}

}
//setContact
function setErreurPage(sSujet, sType, bIsReturn, sLibel){
	if(typeof bIsReturn =='undefined'){bIsReturn = true;}
	if(typeof sType =='undefined'){sType = 'bug';}
	if(typeof sLibel =='undefined'){sLibel = 'Erreur sur cette page';}
	$sStr = "<a href=\"/contacts/"+"inde"+"x.php?type="+sType+"&subject="+sSujet+"&url="+document.location+"\">"+sLibel+"<"+"/a>";
	if(bIsReturn){
		return $sStr;
	} else{
		document.write($sStr);
	}	
}
function menudeplier(){
	$(".lignedeplier").append('<span class="deplier"></span>');
	$(".lignedeplier span.deplier").each(function(){$(this).data('isdeplier',true);
	$(this).click(
			function(event){
				var obj = $(event.currentTarget);var isDeplier = obj.data('isdeplier');var oParent = obj.parent().parent().find('.blocdeplier')
				if(isDeplier==true){
					obj.data('isdeplier',false);obj.addClass("selected");oParent.css({'display':'none'});obj.attr('title','Déplier');
				}else{
					obj.data('isdeplier',true);obj.removeClass("selected");oParent.css({'display':'block'});obj.attr('title','Rétracter');
				}
			});});}


function setPartenaire(){}//@TODO
function setStatTele(code){pageTracking(undefined,"sources",code);}
function setNavRemonte(sPlus){
if(typeof(window.afficheNavRemonte)=='undefined' ||( typeof(window.afficheNavRemonte) != 'undefined' && window.afficheNavRemonte!=false)){
		document.write('<div class="blockremonte '+sPlus+'"><div class="plus"><a title="Descendre en bas de la page" href="#footer">Descendre</a></div><div class="lienremonte"><a title="Remonter en haut de la page" href="#cadre">Remonte</a></div><hr class="access"></div>');
	}
}

/*function showLayer(url,longeur,hauteur,type){} //@TODO */
/*  


var dmcRechercher = Class.create({

		initialize: function(element) {
				element.cleanWhitespace();
			for(var i = 0; i < element.childNodes.length; i++){
				var a = element.childNodes[i].firstChild;
				var hash = (a.hash);

				var  id= hash.substring(1,hash.length);
				$(a).observe('click', this.afficher.bindAsEventListener(a, id))
			}
		},
		afficher:function(event, id){
			Event.stop(event);
			var allresume = $("allresume");
			if(allresume){
					var first = allresume.firstDescendant();
					if(first.id!=id){
						first.removeClassName('selectedblock');
						var selection = $(id);
						if(selection){
							var selectionTemp =  selection.cloneNode(true);
							allresume.removeChild(selection);
							allresume.insertBefore(selectionTemp,first);
							selectionTemp.addClassName('selectedblock');

							var allCode =  selectionTemp.getElementsByClassName('lienremonte');
							for(var i= 0;i<allCode.length;i++){
								dmcRemonte.createButton(allCode[i],"right");
							}
							var allCode =  selectionTemp.getElementsByClassName('plus');
							for(var i= 0;i<allCode.length;i++){
								dmcRemonte.createButton(allCode[i],"left");
							}							
						}
					}else{
						first.addClassName('selectedblock');
					}
			}
		}

});

document.observe('dom:loaded', function(event) {
	$(document.body);
  var allCode =  document.body.getElementsByClassName('menudrechercher');
	if(allCode.length>0){ new dmcRechercher($(allCode[0]));}
});



function setInfoparagraphe(bloc){
	var dl = bloc.select('dl');
	for(var i = 0 ;i< dl.length;i++){	
		dl[i].isselect==null;
		dl[i].cacher = function(event,divcacher,classname){
			if(this.isselect==null){
				Element.setStyle(divcacher,{display:"block"});
				this.isselect = divcacher;
			}else{
				Element.setStyle(this.isselect,{display:"none"});
				if(this.isselect==divcacher){
					Element.setStyle(divcacher,{display:"none"});
					this.isselect = null;
				}else{
					Element.setStyle(divcacher,{display:"block"});
					this.isselect = divcacher;
				}
			}
		}
		var dd = Element.select(dl[i],'dd');
		Element.setStyle(dd[0],{display:"none"});
		var p = document.createElement("div");
		p.className=dl[i].className+"b";
		p.innerHTML = dd[0].innerHTML;
		bloc.appendChild(p);
		Element.setStyle(p,{display:"none"});
		var alldt = Element.select(dl[i],'dt');
		var dt = $(alldt[0]);
		dt.observe('click', dl[i].cacher.bindAsEventListener(dl,p, dl[i].className))
	}

	//display:none; 
}

document.observe('dom:loaded', function(event) {
	$(document.body);
  var allCode =  document.body.getElementsByClassName('infoparagraphe');
	for(var i = 0 ;i<allCode.length;i++){setInfoparagraphe($(allCode[i]));}
});



function generateur(type){
	var domaine = "../";
	//http://www.aliasdmc.fr/

	if(type=="html"){
	var marc=window.open(domaine +"generateur/","generateur","width=500,height=450,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1");
	}else if(type=="xhtml"){
	var marc=window.open(domaine +"generateur/","generateur","width=500,height=450,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1");
	}else{
	var marc=window.open(domaine +"generateur/","generateur","width=500,height=450,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1");
	}
	marc.focus();

}


function setContact(libelle,subjet){
var srs="si";var tryu=srs+"te";var t55tj = "ac";var yuoijj = "iasd";
var temp="@";document.write("<a href=\"mai"+"l"+"to:cont"+t55tj+"t"+tryu+temp+"al"+yuoijj+"mc.f"+"r?subj"+"ect="+subjet+"\">");document.write(libelle+"<"+"/a>");
}

function setStatTele(code){var dmcImg = new Image();dmcImg.src="http://www.aliasdmc.fr/info/stattelechargement.php?page="+code;}
function setestat(){
	var doc = (document.body)? $(document.body) : null;
	if(doc){
		var stat = doc.firstDescendant(); 
		if(stat && typeof(wbo_hide) =="function"){
			wbo_hide();
		}else{
			setTimeout("setestat()",1000)
		}
	}else{
		setTimeout("setestat()",1000)
	}
}
setTimeout("setestat()",1000);

function selectionner(objet){objet.select();}

function showLayer(url,longeur,hauteur,type){
	var marge=5;
	var hauteTitre=20;
	var faussepop=$("faussepop");
	if(faussepop){
		document.body.removeChild(faussepop); 
	}
	var faussepop = document.createElement("div");
	faussepop.id="faussepop";
	document.body.appendChild(faussepop);
	var faussepoptitre = document.createElement("div");
	faussepoptitre.id="faussepoptitre";
	faussepop.appendChild(faussepoptitre);
	Event.observe(faussepoptitre, "click",function (event){
			new Effect.DropOut('faussepop');														
	})

	var faussepopcontenu = document.createElement("div");
	faussepopcontenu.id="faussepopcontenu";
	faussepop.appendChild(faussepopcontenu);

	if(type=="iframe"){
		marge=0;
		var monContenu ="<iframe src=\""+url+"\" width=\"100%\" frameborder=\"0\" scrolling=\"auto\" vspace=\"0\" hspace=\"0\" height=\"100%\" name=\"faussepop_iframe\" marginheight=\"0\" marginwidth=\"0\"></iframe>";
		faussepopcontenu.innerHTML =monContenu;
	}	


	$(faussepop);
	faussepop.setStyle({opacity:0,display:"block",width:(longeur-marge)+"px",height:(hauteur+hauteTitre+marge)+"px",padding:marge+"px"})
	Element.setStyle(faussepopcontenu,{height:hauteur+"px"})
	faussepoptitre.innerHTML="Fermer&nbsp;";


	$(faussepop);

	var taille  = document.viewport.getDimensions(); 
//alert(taille.height)
	var tailleScroll = document.viewport.getScrollOffsets(); 
	var posX = ((taille.width-longeur)/2)+tailleScroll.left
	var posY = ((taille.height-hauteur)/2)+tailleScroll.top
	faussepop.setStyle({top:posY+"px",left:posX+"px"})
	new Effect.Appear(faussepop, {duration:1, fps:25, from:0.0, to:1.0});

}
 */
//zoomImage
