var cat_section = 'travel';

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



function GetPosition( Pos, Obj, posid ) 
{

	var NameTranslation = 
	{
		fr : 	
		{
			skyscraper:	'bouton_7',
			superbanner:'bandeau',
			bigbox:		'boite',
			button:	{1:'button_1',2:'button_2',3:'button_3',4:'button_4',5:'button_5'},
			special:	{1:'special_1',2:'special_2'},			
			advertorial:'publireportage'
		},

		en : 	
		{
			skyscraper:	'button_7',
			superbanner:'superbanner',
			bigbox:		'boite',
			button:	{1:'button_1',2:'button_2',3:'button_3',4:'button_4',5:'button_5'},
			special:	{1:'special_1',2:'special_2'},				
			advertorial:'publireportage'

		}
	
	}

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



function GetDim( Posi )
{		
	var tab = new Array;
	tab[ "superbanner" ]	="728x90,468x60";
	tab[ "bigbox" ]		="300x250";
	tab[ "skyscraper" ]	="120x600,160x600";
	tab["adsense_superbanner"]  ="728x91";
	tab["adsense_bigbox"]       ="300x251";
	tab["adsense_skyscraper"]   ="160x601";	
	tab[ "button" ]		="120x60";
	tab[ "advertorial" ]	="306x140,430x99";
	tab[ "special" ]	="172x250,400x60";


	return tab[ Posi ];
}

