
if (typeof UBAMConfig == "undefined") {
	var UBAMConfig = (function () {
		
		var assetpath = "http://library.kelloggs.com/ubam/assets/", 
			msgwidth = 600,
			msgheight = 400,
			timerheight = 23,
			counterwidth = 30;
		
		return {
			maxseconds: 900,
			timerwhen: 30,
			ycenteroffset: 20, 
			counterwidth: counterwidth,
			
			redirect: true,
			redirecturl: "http://www.mueveteconkelloggs.com",
			
			overlaystyle: {position: "absolute", top: "0", left: "0", zIndex: "998", background: "#aac783", display: "none"},
			
			msgboxstyle: {position: "absolute", zIndex: "999", marginLeft: Math.round(0 - msgwidth / 2) + "px", marginTop: Math.round(0 - msgheight / 2) + "px", background: "#fff", display: "none"},
			
			msghtml: 	'<img src="' + assetpath + 'ubam_message_es_es_redirect.jpg" usemap="#ubam-map" style="border: none" />' +
						'<map id="ubam-map" name="ubam-map">' +
						'<area shape="rect" coords="136,132,450,159" href="#" onmouseover="document.getElementById(\'ubam-btn1\').style.display=\'block\';" onmouseout="document.getElementById(\'ubam-btn1\').style.display=\'none\';" onclick="UBAM.quit();this.blur();return false;">' +
						'<area shape="rect" coords="136,178,467,225" href="#" onmouseover="document.getElementById(\'ubam-btn2\').style.display=\'block\';" onmouseout="document.getElementById(\'ubam-btn2\').style.display=\'none\';" onclick="UBAM.redirect();this.blur();return false;">' +
						'<area shape="rect" coords="136,240,325,270" href="#" onmouseover="document.getElementById(\'ubam-btn3\').style.display=\'block\';" onmouseout="document.getElementById(\'ubam-btn3\').style.display=\'none\';" onclick="UBAM.dismiss();this.blur();return false;">' +
						'</map>' +
						'<img id="ubam-btn1" src="' + assetpath + 'ubam_arrow.jpg" style="position: absolute; top: 122px; left: 101px; display: none;"/>' +
						'<img id="ubam-btn2" src="' + assetpath + 'ubam_arrow.jpg" style="position: absolute; top: 168px; left: 101px; display: none;"/>' +
						'<img id="ubam-btn3" src="' + assetpath + 'ubam_arrow.jpg" style="position: absolute; top: 229px; left: 101px; display: none;"/>',
				
			msgstyle: {background : "transparent url(" + assetpath + "ubam_loading.gif) no-repeat 50% 50%", width: msgwidth + "px", height: msgheight + "px"},
			
			footerhtml: '<p>&trade;, &reg; Kellogg\'s Company *&copy; ' + (new Date()).getFullYear() + ' Kellogg\'s Company<br /> <a href="http://www.kelloggs.es/legal/aviso.html" target="_blank" style="color: #000">Aviso Legal</a> | <a href="http://www.kelloggs.es/legal/aviso.html#politica" target="_blank" style="color: #000">Pol&iacute;tica de Privacidad</a> | <a href="http://www.kelloggs.es/legal/aviso.html#padres" target="_blank" style="color: #000">Aviso a los Padres</a></p>',
			
			footerstyle: {position: "absolute", top: "402px", left: "0", font: "10px arial, helvetica, sans-serif", color: "#000"},
			
			logostyle: {position: "absolute", bottom: "25px", left: "25px", zIndex: "1"},

			timerlblhtml: 'El tiempo delante del ordenador se acaba. Mu&eacute;vete, juega, haz deporte...',
			timercounterhtml: '<span style="display: block; padding: 4px 5px 0 0;">%m:%s</span>', // %m and %s will be replaced with minutes and seconds (minutes only appear if timerwhen > 59)
			timerbgstyle: {margin: "5px 0", height: timerheight + "px", background: "url(" + assetpath + "ubam_timer_bg.gif) repeat-x", position: "relative", font: "bold 12px arial, helvetica, sans-serif", lineHeight: "1"},
			timerbarstyle: {position: "absolute", zIndex: "2", height: timerheight + "px", right: counterwidth + "px", background: "url(" + assetpath + "ubam_timer_bar.gif) repeat-x"},
			timerlblstyle: {position: "absolute", zIndex: "3", top: "5px", left: "0", textAlign: "center", fontStyle: "italic", color: "#000"},
			timercounterstyle: {position: "absolute", zIndex: "4", right: "0", width: counterwidth + "px", height: timerheight + "px", background: "#4d4e4e", color: "#fff", fontSize: "14px", textAlign: "right"}
		};

	}) (); // self-invoking!
}
