var cat_section = 'technology';

// 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'},
			special_iscream: {1:'special_iscream'},
			superbanner:{1:'bandeau'},
			bigbox:		{1:'boite'},
			button:		{1:'bouton_4'},
			popup:		 {1:'voken',2:'dhtml'},
			advertorial:{1:'publireportage'},
			banner:		{1:'bandeau_1'},
			catfish:	{1:'catfish'}
		},

		en : 	
		{
			skyscraper:	{1:'bouton_7'},
			special1:	{1:'special_1'},
			special2:	{1:'special_2'},
			special:	{1:'special_3'},
			special_iscream: {1:'special_iscream'},
			superbanner:	{1:'superbanner'},
			bigbox:		{1:'boite'},
			button:		{1:'button_4'},
			popup:		 {1:'voken',2:'dhtml'},
			advertorial:	{1:'publireportage'},
			banner:		{1:'banner'},
			catfish:	{1:'catfish'}
		}
	
	}

	 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";
	tab[ "bigbox" ]			="300x250";
	tab[ "skyscraper" ]		="120x600,160x600";
	tab["adsense_superbanner"]  ="728x91";
	tab["adsense_bigbox"]       ="300x251";
	tab["adsense_skyscraper"]   ="160x601";		
	tab[ "popup" ]			="500x500";
	tab[ "banner" ]			="468x60";
	tab[ "button" ]			="120x60";
	tab[ "advertorial" ]	="306X140,370x130";
	tab[ "special" ]		="243x50";
	tab[ "special1" ]		="283x87";
	tab[ "special2" ]		="283x87",
	tab[ "special_iscream" ]="128x256",
	tab[ "catfish" ]		="2*2";
	

	return tab[ Posi ];
}
