// 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];
}

/*
	July 31st, 2009: rarkwright
	We need to check for the existence of dfpSpeKey, because this property may or may not
	be originally created in tagconfigportal.php. Creation of dfpSpeKey was moved to that
	file during the original implementation of Roadblock Tagging. Because not all stories
	contain Roadblock Tagging support, legacy support for creation of dfpSpeKey must remain
	inside this Javascript file. If we do not check for the existence of dfpSpeKey, and instead
	arbitrarily attempt to initialize it, we will wipe out the dfpSpeKey.rb property for many stories.
*/
if (MyGenericTagVar.dfpSpeKey === undefined) {
	MyGenericTagVar.dfpSpeKey = { cat:'entertainment' };
}

function GetDim(Posi)
{		
	var tab=new Array;
	tab["superbanner"]	="728x90";
	tab["bigbox"]		="300x250";
	tab["skyscraper"]	="120x600,160x600";
	tab["popup"]		="500x500";
	tab["banner"]		="468x60";
	tab["button"]		="120x60";
	tab["advertorial"]	="306x140";
	tab["special"]	="175x40";
	return tab[Posi];
}

