/*

The following function will display the homepage's main Flash movie
or a static image, depending on the version of the user's Flash player.

The movie currently being displayed is:
	/flash/home.swf
	
*/
writeflash = function() {
	var flashvars = {
		url1: "/e2000-phone",
		url2: "/e1000-phone",
		url3: "/kpc680-pc-card"
	};
	var parameters = {bgcolor: "#ffffff"};
	var attributes = {id: "homeFlash"};
	swfobject.embedSWF("/flash/home.swf", "homeFlash", "750", "360", "8.0.0", "/flash/expressInstall.swf", flashvars, parameters, attributes);
}

/*

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')";

left[ left.length ] = '' +
	'<div style="position:absolute;">' +
	'<div style="position:absolute; left:5px; top:0px;"><a href="/s1300-phone"><img src="/image/home/promo_hd_s1300.gif" alt="Kyocera Melo S1300" width="149" height="14" border="0"/></a></div>' +
	'<div style="position:absolute; left:5px; top:20px;"><a href="/s1300-phone"><img src="/image/home/promo_img_s1300.jpg" alt="" width="46" height="114" border="0"/></a></div>' +
	'<div style="position:absolute; left:60px; top:25px; width:85px;" class="homePromo"><a href="/s1300-phone">Hasta lo b&aacute;sico puede ser bello.</a></div>' +
	'</div>';
	
left[ left.length ] = '' +
	'<a href="/s4000-phone/"><img src="/image/home/promo_hd_s4000.gif" alt="S4000" border="0" style="margin-bottom:8px;"></a>' +
	'<table border="0" cellpadding="0" cellspacing="0" class="homePromoLink" style="width:190px; height:100px; background:no-repeat top left url(/image/home/promo_img_s4000.jpg);" ' +
	'onclick="location.href=\'/s4000-phone/\'";' +
	'><td valign="top"><p class="homePromo" style="margin-left:55px;margin-top:5px"><a href="/s4000-phone/"></a></p></td>' +
	'</table>';

left[ left.length ] = '' +
	'<a href="/s2410-phone/"><img src="/image/home/promo_hd_s2410.gif" alt="S2410" border="0" style="margin-bottom:8px;"></a>' +
	'<table border="0" cellpadding="0" cellspacing="0" class="homePromoLink" style="width:190px; height:100px; background:no-repeat top left url(/image/home/promo_img_s2410.jpg);" ' +
	'onclick="location.href=\'/s2410-phone/\'";' +
	'><td valign="top"><p class="homePromo" style="margin-left:55px;margin-top:5px"><a href="/s2410-phone/"></a></p></td>' +
	'</table>';
	
left[ left.length ] = '' +
	'<a href="/s1600-phone/"><img src="/image/home/promo_hd_s1600.gif" alt="S1600" border="0" style="margin-bottom:8px;"></a>' +
	'<table border="0" cellpadding="0" cellspacing="0" class="homePromoLink" style="width:190px; height:100px; background:no-repeat top left url(/image/home/promo_img_s1600.jpg);" ' +
	'onclick="location.href=\'/s1600-phone/\'";' +
	'><td valign="top"><p class="homePromo" style="margin-left:55px;margin-top:5px"><a href="/s1600-phone/"></a></p></td>' +
	'</table>';
	
left[ left.length ] = '' +
	'<a href="/e4600-phone/"><img src="/image/home/promo_hd_e4600.gif" alt="E4600" border="0" style="margin-bottom:8px;"></a>' +
	'<table border="0" cellpadding="0" cellspacing="0" class="homePromoLink" style="width:190px; height:100px; background:no-repeat top left url(/image/home/promo_img_e4600.jpg);" ' +
	'onclick="location.href=\'/e4600-phone/\'";' +
	'><td valign="top"><p class="homePromo" style="margin-left:55px;margin-top:5px"><a href="/e4600-phone/"></a></p></td>' +
	'</table>';
	
left[ left.length ] = '' +
	'<a href="/e3500-phone/"><img src="/image/home/promo_hd_e3500.gif" alt="E3500" border="0" style="margin-bottom:8px;"></a>' +
	'<table border="0" cellpadding="0" cellspacing="0" class="homePromoLink" style="width:190px; height:100px; background:no-repeat top left url(/image/home/promo_img_e3500.jpg);" ' +
	'onclick="location.href=\'/e3500-phone/\'";' +
	'><td valign="top"><p class="homePromo" style="margin-left:55px;margin-top:5px"><a href="/e3500-phone/"></a></p></td>' +
	'</table>';

left[ left.length ] = '' +
	'<a href="/e4000-phone/"><img src="/image/home/promo_hd_e4000.gif" alt="E4000" border="0" style="margin-bottom:8px;"></a>' +
	'<table border="0" cellpadding="0" cellspacing="0" class="homePromoLink" style="width:190px; height:100px; background:no-repeat top left url(/image/home/promo_img_e4000.jpg);" ' +
	'onclick="location.href=\'/e4000-phone/\'";' +
	'><td valign="top"><p class="homePromo" style="margin-left:55px;margin-top:5px"><a href="/e4000-phone/">Solo lo que necesitas.</a></p></td>' +
	'</table>';
	
left[ left.length ] = '' +
	'<a href="/e2500-phone/"><img src="/image/home/promo_hd_e2500.gif" alt="E2500" border="0" style="margin-bottom:8px;"></a>' +
	'<table border="0" cellpadding="0" cellspacing="0" class="homePromoLink" style="width:190px; height:100px; background:no-repeat top left url(/image/home/promo_img_e2500.jpg);" ' +
	'onclick="location.href=\'/e2500-phone/\'";' +
	'><td valign="top"><p class="homePromo" style="margin-left:55px;margin-top:5px"><a href="/e2500-phone/"></a></p></td>' +
	'</table>';
	
left[ left.length ] = '' +
	'<a href="/e2000-phone/"><img src="/image/home/promo_hd_e2000.gif" alt="Tempo E2000" border="0" style="margin-bottom:8px;"></a>' +
	'<table border="0" cellpadding="0" cellspacing="0" class="homePromoLink" style="width:190px; height:100px; background:no-repeat top left url(/image/home/promo_img_e2000.jpg);" ' +
	'onclick="location.href=\'/e2000-phone/\'";' +
	'><td valign="top"><p class="homePromo" style="margin-left:55px;margin-top:5px"><a href="/e2000-phone/">El mundo que lo rodea ahora puede formar parte de su propio mundo.</a></p></td>' +
	'</table>';
	
left[ left.length ] = '' +
	'<a href="/e1000-phone/"><img src="/image/home/promo_hd_e1000.gif" alt="Deco E1000" border="0" style="margin-bottom:8px;"></a>' +
	'<table border="0" cellpadding="0" cellspacing="0" class="homePromoLink" style="width:190px; height:100px; background:no-repeat top left url(/image/home/promo_img_e1000.jpg);" ' +
	'onclick="location.href=\'/e1000-phone/\'";' +
	'><td valign="top"><p class="homePromo" style="margin-left:55px;margin-top:5px"><a href="/e1000-phone/">Incluso los cables y los botones pueden tener cuerpo y alma</a></p></td>' +
	'</table>';
	
	
	


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 ] = '' +
	'<table border="0" cellpadding="0" cellspacing="0" class="homePromoLink" style="padding-right:20px;width:250px; height:165px; background:no-repeat top right url(/image/home/promo_img_commercials.gif);" ' +
	'onclick="openPopup(\'/commercials/commercials.htm\',\'480\',\'320\',\'no\',\'commercials\');"' +
	'><tr><td height="60"></td></tr>' +
	'<tr><td valign="top"><a href="javascript://" onclick="openPopup(\'/commercials/commercials.htm\',\'480\',\'320\',\'no\',\'commercials\');"><img src="/image/home/promo_hd_comercials.jpg" alt="Comerciales de Kyocera" width="175" height="17" border="0" class="inline" style="margin-bottom:2px;"></a><br>' +
	'<p class="homePromo" style="margin:0px 0px 0px 20px;"><a href="javascript://" onclick="openPopup(\'/commercials/commercials.htm\',\'480\',\'320\',\'no\',\'commercials\');">Vea nuestros nuevos <br>anuncios televisivos.</a></p></td></tr>' +
	'</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>';

/*	
right[ right.length ] = '' +
	'<table border="0" cellpadding="0" cellspacing="0" class="homePromoLink" onclick="window.open(\'company-information\');">' +
	'<tr><td height="40"></td></tr>' +
	'<tr><td valign="top"><a href="javascript://" onmouseover="window.status=\'http://www.kwclatin.com\';return true" onmouseout="window.status=\'\';return true"><img src="/image/home/promo_hd_mediaclub.jpg" alt="Media Club" width="88" height="16" border="0" class="inline" style="margin-bottom:8px;"></a>&nbsp;<img src="/image/home/promo_img_mediaclub.jpg" width="77" height="93" class="inline" style="margin-bottom:2px;"><br>' +
	'<p class="homePromo" style="margin:0px 0px 0px 20px;"><a href="javascript://" onmouseover="window.status=\'http://www.kwclatin.com\';return true" onmouseout="window.status=\'\';return true">Visite nuestra sala de prensa latino-americana.</a></p></td>' + 
	'<td valign="top"></td></tr>' +
	'</table>';
*/



writeblock = function( array )
{
	if( !array.length ) return;
	document.write( array[ getRandomNumber( array.length ) ] );
}
