// JavaScript Document
window.onload=function(){
	var i;
	var le_body = document.body;
	
	if(document.getElementsByTagName("a")!==null){
		var lien8 = document.getElementsByTagName("a");
		for(i=0; i<lien8.length; i++){
			if(lien8[i].href == "http://studioversion2.com/emplois/ads-entry-1.html" && lien8[i].title == "Retour"){
				les_elt = lien8[i].firstChild;
				lien8[i].removeChild(les_elt);
				var uneimg = document.createElement("img");
				uneimg.setAttribute('src', '/manage/{media:78:url}');
				lien8[i].appendChild(uneimg);
			}
		}
	}
	
	if(document.getElementById("bottomNavClose")!==null){
		var div9 = document.getElementById("bottomNavClose");
		var img9 = div9.firstChild;
		while(img9.tagName == 'img'){
			div9.removeChild(img9);
			img9 = div9.firstChild;
		}
		img9.src = '/manage/{media:101:url}';
	}
	
	/*
	
		var input4 = document.getElementsByTagName('input');
		for(i=0; input4.length; i++){
			if(input4[i].type=='submit'){
				input4[i].value='_';
			}
		}
	
	
	
	/*
	
	//actualites
	if(le_body.className == "actualites"){
		
		var linkfile = document.getElementsByTagName("a");
		var num1 = linkfile.length;
		var un_bloc = new Array;
		var une_img = new Array;
		var href_lf = new Array;
		var num2 = 0, num3 = 0; // nombre 
		
		for(var num2=0; num2<num1; num2++){
			
			if (linkfile[num2].className == "LinkFile"){
				
				href_lf = linkfile[num2].href;
				
				//alert(href_lf);
				
				if(num3 == 0){
					
					var rightbar = document.getElementById("rightbar");
					
					var bloc_lf = document.createElement("div");
					
					bloc_lf.style.width="248px";
					bloc_lf.style.paddingLeft="10px";
					bloc_lf.style.paddingTop="10px";
					bloc_lf.style.paddingBottom="15px";
					bloc_lf.style.marginTop="12px";
					bloc_lf.style.backgroundImage="url(../images/linkfile-degrade-encart-noir.jpg)";
					bloc_lf.style.backgroundRepeat="repeat-y";
					bloc_lf.style.backgroundPosition="left top";
					
					rightbar.appendChild(bloc_lf);
					
					// titre "Pour en savoir plus"
					
					var titre_lf = document.createTextNode("Pour en savoir plus");
					
					var p_lf = document.createElement("p");
				
					p_lf.className = "blanc12_b";
					p_lf.style.paddingBottom="20px";
					
					p_lf.appendChild(titre_lf);
					
					bloc_lf.appendChild(p_lf);
					
				}
				
				un_bloc[num3]= document.createElement("a");
				un_bloc[num3].style.width="87px";
				un_bloc[num3].style.height="33px";
				un_bloc[num3].style.float="left";
				un_bloc[num3].style.paddingRight="15px";
				un_bloc[num3].href=href_lf;
				un_bloc[num3].target="_blank";
				
				
				une_img[num3]= document.createElement("img");
				une_img[num3].src = "../images/bouton_telecharger_doc.jpg";
				une_img[num3].style.border="0px";
				
				un_bloc[num3].appendChild(une_img[num3]);
				
				bloc_lf.appendChild(un_bloc[num3]);
				
				//incrementation
				num3++;
				
				if(num3==2){
					un_bloc[12]=document.createElement("a");
					un_bloc[12].style.clear="both";
					bloc_lf.appendChild(un_bloc[12]);
				}
				if(num3==4){
					un_bloc[14]=document.createElement("a");
					un_bloc[14].style.clear="both";
					bloc_lf.appendChild(un_bloc[14]);
				}
			}
		}
		
		if(num3==1 || num3==3){
			un_bloc[11]=document.createElement("a");
			un_bloc[11].style.clear="both";
			bloc_lf.appendChild(un_bloc[11]);
		}
	}
	
	//galerie
	if(le_body.className == "galerie_version_2"){
		
		var le_center = document.getElementsByTagName("img");
		var num6 = le_center.length;
		var num8 = 0;
		
		for(var num7=0; num7<num6; num7++){
			
			if(le_center[num7].parentNode.className=="center"){
				
				if(num8==0){
					
					le_center[num7].style.display="inline";
					le_center[num7].style.display="inline";
					
				}
				num8++;
			}
		}
		
		var la_description = document.getElementsByTagName("span");
		num6 = la_description.length;
		num7=0;
		num8=0;
		
		for(num7; num7<num6; num7++){
			
			if(la_description[num7].parentNode.className=="center"){
				
				if(num8==0){
					
					la_description[num7].style.display="inline";
					la_description[num7].style.display="inline";
					
				}
				num8++;
			}
		}
	}
	*/
	
}