var cat_section = 'sports';

// 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 = 
	{
		
	}
	
	return ( ExceptionDE[ Posi ] ) ? true : ActifDE; //DETag flag
}



function GetPosition( Tag, Obj, Pos ) 
{

	var NameTranslation = 
	{
		fr : 	
		{
			skyscraper:	{1:'bouton_7'},
			special1:	{1:'special_1'},
			special2:	{1:'special_2'},
			special:	{1:'special_3'},
			superbanner:{1:'bandeau'},
			bigbox:		{1:'boite'},
			button:	{1:'button_1',2:'button_2',3:'button_3',4:'button_4'},
			popup:		 {1:'voken',2:'dhtml'},
			advertorial:{1:'publireportage'},
			banner:		{1:'bandeau_1'},
			catfish:	{1:'catfish'},
			halfpage:	{1:'halfpage'},
			slimbanner:	{1:'slimbanner'}
		},

		en : 	
		{
			skyscraper:	{1:'bouton_7'},
			special1:	{1:'special_1'},
			special2:	{1:'special_2'},
			special:	{1:'special_3'},
			superbanner:	{1:'superbanner'},
			bigbox:		{1:'boite'},
			button:	{1:'button_1',2:'button_2',3:'button_3',4:'button_4'},
			popup:		 {1:'voken',2:'dhtml'},
			advertorial:	{1:'publireportage'},
			banner:		{1:'banner'},
			catfish:	{1:'catfish'},
			halfpage:	{1:'halfpage'},
			slimbanner:	{1:'slimbanner'}
		}
	
	}

	 if (Pos != null) {
	 	return NameTranslation[ Obj.language ][ Tag ] [Pos];
	} else {
		return NameTranslation[ Obj.language ][ Tag ] [1];           
	}
}


function GetDim( Posi )
{		
	var tab = new Array;
	tab[ "superbanner" ]	="728x90,468x60";
	tab[ "bigbox" ]			="300x250";
	tab[ "skyscraper" ]		="120x600,160x600";
	tab[ "popup" ]			="500x500";
	tab[ "banner" ]			="468x60";
	tab[ "button" ]			="120x60";
	tab[ "advertorial" ]	="306x140";
	tab[ "special" ]		="243x50";
	tab[ "special1" ]		="283x87";
	tab[ "special2" ]		="283x87";
	tab[ "halfpage" ]		="160x600,300x600,300x250";
	tab[ "catfish" ]		="2*2";
	tab[ "slimbanner"] 		="740x30"; 
	
	

	return tab[ Posi ];
}
