
listen('load', window, function() {
	
	if($('#safetyInterior').length != 0) listen('click', getElem('safetyInterior') , showFlashInterior);
	if($('#safetyExterior').length != 0) listen('click', getElem('safetyExterior') , showFlashExterior);
	if($('#en_savoir_plusInterior').length != 0) listen('click', getElem('en_savoir_plusInterior') , showFlashInterior);
	if($('#en_savoir_plusExterior').length != 0) listen('click', getElem('en_savoir_plusExterior') , showFlashExterior);
	if($('#popupBack').length != 0) listen('click', getElem('popupBack') , showLanding );
	
});

function showFlashInterior()
{
if (lang=="en"){
urlTracker="/trauma/en/prevetion/infants/safetybackhouse.aspx";
}
else if (lang=="fr"){
urlTracker="/trauma/fr/prevetion/bebes/securitemaison.aspx";
}
	pageTracker._trackPageview(urlTracker);
	$("#popupSafety").css({height:"661px"});
	getElem('landing').style.display = "none";
	getElem('flashInterior').style.display = "block";
	getElem('popupBack').style.display = "block";

}

function showFlashExterior()
{
if (lang=="en"){
urlTracker="/trauma/en/prevetion/infants/safetybackyard.aspx";
}
else if (lang=="fr"){
urlTracker="/trauma/fr/prevetion/bebes/securitecour.aspx";
}

	pageTracker._trackPageview(urlTracker);
	$("#popupSafety").css({height:"551px"});
	getElem('landing').style.display = "none";
	getElem('flashExterior').style.display = "block";
	getElem('popupBack').style.display = "block";
}



function showLanding()
{
	
	$("#popupSafety").css({height:"280px"});
	
	getElem('landing').style.display = "block";
	getElem('flashInterior').style.display = "none";
	getElem('flashExterior').style.display = "none";
	getElem('popupBack').style.display = "none";
}