document.write('<div id="sectionVideo" style="display:none;width:315px;height:78px;z-index:1;background-color:transparent;position:absolute;left:526px;top:287px;cursor:pointer;">&nbsp;</div>');
document.write('<div id="btProduct" style="display:none;position:absolute;left:450px;top:400px;cursor:pointer;">&nbsp;</div>');
document.getElementById("products").style.display = "none"; 

var lng = (document.location.href.indexOf("_fr/") === -1) ? "en" : "fr"; 
var lngFolder = (document.location.href.indexOf("_fr/") === -1) ? "EN" : "FR"; 

var lng = (document.location.href.indexOf("maquillage") === -1) ? lng : "fr"; 
var lngFolder = (document.location.href.indexOf("maquillage") === -1) ? lngFolder : "FR";  
 
var sectionVideo = document.getElementById("sectionVideo");
	if (sectionVideo) {
		LOP.addSWF({
		'url': '/flash/beautyTubes/thumbButton.swf',
		'id': 'sectionVideoFlash',
		'width': 315,
		'height': 78,
		'background': '#000000',
		'params': {
			'wmode' : 'transparent'
		},
		'variables': {
            'culture': lng
		},			
		'target': 'sectionVideo'
		});	        
}	


var btProduct = document.getElementById("btProduct");
if (btProduct) {
	LOP.addSWF({
                 'url': '/flash/beautyTubes/crossFadeBT.swf',
                 'id': 'btProductFade',
                 'width': 511,
                 'height': 84,
			     'background': '#000000',		     
				 'params': {
					'wmode' : 'transparent'
			},
				'variables': {
            		'culture': lng
				},					
                'target': 'btProduct'
            });   	                       						
        }    	
        
// Function Call from crossFadeBT.swf 
openProductPage = function(){
	   document.location.href= "/_"+lng+"/_ca/products/product-sheet.aspx?code=Cos50_1_Large";  							
}        
               
        
// Function Call from Main.swf 
backToBeautyTubes = function () {
	document.getElementById("brandMain").style.background="transparent url(/img/l10n/brands/BeautyTubes" + lngFolder + "/bg.jpg) no-repeat scroll 0 0"; 	    
	document.getElementById("brandFlash").style.display = "none";
	document.getElementById("fixedFlash").style.display = "block";
	document.getElementById("btProduct").style.display='block';	
	document.getElementById("sectionVideo").style.display='block';		
	document.getElementById("pushs").style.display = "block"; 					
};       
    
// Function call from Introduction Video	
closeVideo = function(){
	document.getElementById("brandFlash").style.display = "none";
	document.getElementById("fixedFlash").style.display = "block";
	document.getElementById("btProduct").style.display='block';	
	document.getElementById("sectionVideo").style.display='block';	
	document.getElementById("pushs").style.display = "block";							
}

// Function Call from thumbButton.swf  
playVideo = function() {
	LOP.addSWF({
		'url': '/flash/beautyTubes/mainLoader.swf',
		'id': 'brandFlashSWF',
		'width': 950,
		'height': 570,
		'background': '#FCFCFC',
		'variables': {
			'xmlPath': '../../../flash/beautyTubes/xml/content_'+ lng +'.xml'
		},
		'params': {
			'wmode' : 'transparent'
		},
		'target': 'brandFlash'
});   
	document.getElementById("brandFlash").style.display = "block";
	document.getElementById("fixedFlash").style.display = "none"; 
	document.getElementById("pushs").style.display = "none"; 
	document.getElementById("brandMain").style.background='none'; 
	document.getElementById("btProduct").style.display='none';	
	document.getElementById("sectionVideo").style.display='none';																					                       						
} 


