/************** POPUPS *******************/
/*Supermearket custom message to store in external js file*/



/* display popups for supermarkets phone calls and emails*/
function displayPopup(quelcontenu){

	//Read contents to display from associative array
	var contenu=table_popups[quelcontenu];
	
	$.prompt(contenu,{ buttons: { Close: true }, focus: 0 } );
	//careful, conflicts with write-a-letter javascript : has to be integrated as an iframe
}

/************** SHOW-HIDE CYBERACTION *******************/

//	ANIMATED COLLAPSE PLUGIN - http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm 

/*
animatedcollapse.addDiv('costco-cyberaction', 'fade=1,height=650px');
*/

animatedcollapse.addDiv('loblaws-cyberaction', 'fade=1,group=superm,height=650px');
animatedcollapse.addDiv('costco-cyberaction', 'fade=1,group=superm,height=650px');
animatedcollapse.addDiv('sobeys-cyberaction', 'fade=1,group=superm,height=650px');
animatedcollapse.addDiv('walmart-cyberaction', 'fade=1,group=superm,height=650px');
animatedcollapse.addDiv('coop-cyberaction', 'fade=1,group=superm,height=650px');
animatedcollapse.addDiv('overwaitea-cyberaction', 'fade=1,group=superm,height=650px');
animatedcollapse.addDiv('safeway-cyberaction', 'fade=1,group=superm,height=650px');
animatedcollapse.addDiv('metro-cyberaction', 'fade=1,group=superm,height=650px');


animatedcollapse.ontoggle=function($, divobj, state){ 
	//fires each time a DIV is expanded/contracted
	//$: Access to jQuery
	//divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
	//state: "block" or "none", depending on state
}

animatedcollapse.init()