swfobject.registerObject("flash", "8.0");

/*
The following script defines the various promotional code blocks
that will be randomly displayed on this page.
*/

var left = [];
var middle = [];
var right = [];

url = "javascript:alert('link tba')";

/* Milano c5121 */
left.push(
	'<div style="position:absolute;">' +
	'<div style="position:absolute; left:5px; top:0px;"><a href="/c5121-phone"><img src="/image/home/promo_hd_c5121.gif" alt="Milano C5121" width="104" height="12" border="0"/></a></div>' +
	'<div style="position:absolute; left:5px; top:20px;"><a href="/c5121-phone"><img src="/image/home/promo_img_c5121.jpg" alt="" width="46" height="88" border="0"/></a></div>' +
	'<div style="position:absolute; left:63px; top:25px; width:100px;" class="homePromo"><a href="/c5121-phone">Su conexi&oacute;n con el mundo.</a></div>' +
	'</div>'
);

/* Luno S2100 */
left.push(
	'<div style="position:absolute;">' +
	'<div style="position:absolute; left:5px; top:0px;"><a href="/s2100-phone"><img src="/image/home/promo_hd_s2100.gif" alt="Luno S2100" width="105" height="12" border="0"/></a></div>' +
	'<div style="position:absolute; left:5px; top:20px;"><a href="/s2100-phone"><img src="/image/home/promo_img_s2100.jpg" alt="" width="46" height="96" border="0"/></a></div>' +
	'<div style="position:absolute; left:63px; top:25px; width:100px;" class="homePromo"><a href="/s2100-phone">Funcionalidad y Estilo.</a></div>' +
	'</div>'
);

middle[ middle.length ] = '' +
	'<a href="/kpc680-pc-card/"><img src="/image/home/promo_hd_kpc680.gif" alt="Tarjeta ExpressCard de Kyocera" width="144" height="20" border="0" style="margin-bottom:8px;"></a>' +
	'<table border="0" cellpadding="0" cellspacing="0" class="homePromoLink" style="width:200px; height:85px; background:no-repeat top left url(/image/home/promo_img_kpc680.gif);" ' +
	'onclick="location.href=\'/kpc680-pc-card/\'";' +
	'><td valign="top"><p class="homePromo" style="margin-left:40px;"><a href="/kpc680-pc-card/">Conéctate. Manténgase conectado. En todas partes.</a></p></td>' +
	'</table>';
	
middle[ middle.length ] = '' +
	'<a href="/wireless/"><img src="/image/home/promo_hd_pccard.jpg" alt="Tarjeta Wireless PC de Kyocera" width="144" height="17" border="0" style="margin-bottom:8px;"></a>' +
	'<table border="0" cellpadding="0" cellspacing="0" class="homePromoLink" style="width:190px; height:95px; background:no-repeat top left url(/image/home/promo_img_pccard.jpg);" ' +
	'onclick="location.href=\'/wireless/\'";' +
	'><td valign="top"><p class="homePromo" style="margin-left:50px;"><a href="/wireless/">La movilidad verdadera. Tarjeta Wireless PC de Kyocera.</a></p></td>' +
	'</table>';

right[ right.length ] = '' +
	'<div style="position:absolute;">' +
	'<div style="position:absolute; left:8px; top:0px;"><a href="/support"><img src="/image/home/promo_img_support.jpg" alt="" width="161" height="54" border="0"/></a></div>' +
	'<div style="position:absolute; left:0px; top:54px;"><a href="/support"><img src="/image/home/promo_hd_support.jpg" alt="online support" width="116" height="16" border="0"/></a></div>' +
	'<div style="position:absolute; left:23px; top:80px; width:145px;" class="homePromo"><a href="/support">Estamos aquí con un servicio de ayuda fácil de usar, como nuestros teléfonos.</a></div>' +
	'</div>';

right[ right.length ] = '' +
	'<div style="position:absolute;">' +
	'<div style="position:absolute; left:8px; top:0px;"><a href="/company-information"><img src="/image/home/promo_img_mediaclub.jpg" alt="" width="166" height="93" border="0"/></a></div>' +
	'<div style="position:absolute; left:0px; top:54px;"><a href="/company-information"><img src="/image/home/promo_hd_mediaclub.jpg" alt="online support" width="88" height="16" border="0"/></a></div>' +
	'<div style="position:absolute; left:23px; top:80px; width:145px;" class="homePromo"><a href="/company-information">Visite nuestra sala de prensa para Latinoamerica.</a></div>' +
	'</div>';

writeblock = function(array) {
	if (!array.length) return;
	document.write( array[ getRandomNumber( array.length ) ] );
}

