// Function for LaToile Quebec ( KeyWord Variable)

function get_keyword(name){
	name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
	var regexS = "[\\?&]"+name+"=([^&#]*)";  
	var regex = new RegExp( regexS );  
	var results = regex.exec( window.location.href );  
	if( results == null )    
	return "";  
	else    
	return results[1];
}
// End function get_keyword

function GetFlagDE( Posi )
{
	// Tag DE en fonction (actif)
	var ActifDE = false; // TRUE: Tag DE, FALSE: Tag DFP

	var ExceptionDE = 
	{
	//	button : 1,
	//	advertorial : 1
	};
	
	return ( ExceptionDE[ Posi ] ) ? true : ActifDE; //DETag flag
}

function GetPosition( Pos, Obj ) 
{
	var NameTranslation = 
	{
		fr : 	
		{
			bouton_7:	'skyscrapper',
			superbandeau: 'superbanner',
			boite:		'bigbox'
		},

		en : 	
		{
			bouton_7:	'sckyscrapper',
			superbandeau:	'superbanner',
			boite:		'bigbox'
		}	
	}

	return NameTranslation[ Obj.language ][ Pos ];
}

function GetDim( Posi )
{		
	var tab = new Array;
	tab[ "superbandeau" ]	="728x90";
	tab[ "boite" ]		="300x250";
	tab[ "bouton_7" ]	="160x600";
	
	return tab[ Posi ];
}
