//javascript was written due to the fact object type 'CelebrationSpotlightEventButton' field 'link' max field length is 255 characters.

// Function creates a confirmation popup
// parameters: confirmToUS(language you want the message in, URL)
// valid languages are
// spanish = es_US or spanish
// english = en_US or english
// french  = fr_CA or french
// example:  confirm('es_US', 'http://www.disneyparks.com') or confirmToUS('spanish', 'http://www.disneyparks.com');
function confirmToUS(strLanguage,strURL){		
	if (strLanguage.match("spanish") || strLanguage.match("es_US")){
		strMessage = 'La página que intentas abrir es una página de los Parques de Disney en los EE.UU. que abrirá en una ventanilla aparte. ' +
		             'No dejarás el sitio Parques de Disney en Español.';
	}else if (strLanguage.match("french") || strLanguage.match("fr_CA")){
		strMessage = 'La page que vous souhaitez ouvrir est une page de É.-U. et elle s\'ouvrira dans une fenêtre du navigateur différente. ' + 
					 'Vous ne quitterez pas le site canadien.';
	}else {
		strMessage = 'The page you are attempting to open is a US Disney Parks page that will open in a separate browser window. You will not leave the Canadian site.';
	}
	
	if(confirm(strMessage)){
		popup=window.open(strURL,'EnglishHomeLinkPage','width=1000,height=800,toolbar=yes,scrollbars=yes,						menubar=yes,status=true,location=yes,resizable=yes,top=0,left=0')
	}
	popup.focus();
}
