﻿function popFlash()
		{
			
			window.open("http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash","","toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=600,height=400");
			//alert("aa");
		}  
		
function checkFlashInstalled()
{

	//determine the browser type and version
		var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
		var isIE5 = (navigator.appVersion.indexOf("5.") != -1) ? true : false;
		var isWin = (navigator.appVersion.indexOf("Win") != -1) ? true : false;
		var isMac = (navigator.appVersion.indexOf("Mac") != -1) ? true : false;
							
		// Global Variables
		var flash3Installed = false;		// boolean. true if flash 3 is installed
		var flash4Installed = false;		// boolean. true if flash 4 is installed
		var flash5Installed = false;		// boolean. true if flash 5 is installed
		var maxVersion = 5;					// highest version we can actually detect
		var actualVersion = 1;


		if(isMac){
			actualVersion = 0;
		}
									
		// Detect Flash Version for NetScape
		if (navigator.plugins){								// does navigator.plugins exist?
			if (navigator.plugins["Shockwave Flash 2.0"] 	// yes>> then is Flash 2 
			|| navigator.plugins["Shockwave Flash"]){		// or flash 3+ installed?
										
				// set convenient references to flash 2 and the plugin description
				var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
				var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;

				// a flash plugin-description looks like this: Shockwave Flash 4.0 r5
				// so we can get the major version by grabbing the character before the period
				// note that we don't bother with minor version detection. do that in your movie with $version
				var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));

				// we know the version, now set appropriate version flags
				flash2Installed = flashVersion == 2;		
				flash3Installed = flashVersion == 3;
				flash4Installed = flashVersion == 4;
				flash5Installed = flashVersion == 5;
			}
		}
		// end of detecting flash for Netscrape
								
		//  MSIE Checking Flash version
		if(((isIE) || (isIE5)) && isWin  ){ // don't write vbscript tags on anything but ie win
			document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
			document.write('on error resume next \n');
			document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');
			document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
			document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
			document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');	
			document.write('</SCR' + 'IPT\> \n'); // break up end tag so it doesn't end our script
		}
		// end of IE detection
							
		// loop through all versions we're checking, and set actualVersion to highest detected version
		for (var i = 3; i <= maxVersion; i++) {	
			if (eval("flash" + i + "Installed") == true) actualVersion = i;
			alert(actualVersion);					
		}

}
function ShowFlashPage()
{
	document.write('<tr>');
	document.write('<td><img src="/usp/img/spacer.gif" width="1" height="5" alt="" border="0"></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td>');
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="665">');
	document.write('<tr>');
	document.write('<td><img src="/usp/img/spacer.gif" width="85" height="5" alt="" border="0"></td>');
	document.write('<td valign="top" align="center"><font size="-3" face="verdana, arial, helvetica" color="#ffffff">Este sitio en la red contiene información sobre productos y material publicitario.</font></td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td><img src="/usp/img/spacer.gif" width="1" height="5" alt="" border="0"></td>');
	document.write('</tr>');
	document.write('<td align="right" valign="top" class="yellowborder">');
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="400">');
	document.write('<tr>');
	document.write('<td valign="bottom"><a href="/usp/littlepeople/"><img src="/usp/littlepeople/img/lp_logo_3.gif" width="195" height="91" alt="" border="0"></a></td>');
	document.write('<td><img src="/usp/img/spacer.gif" width="15" height="1" alt="" border="0"></td>');
	document.write('<td valign="bottom"><a href="/usp/littlepeople/products/default.asp"><img src="/usp/littlepeople/img/products_tab.gif" width="110" height="36" border="0" alt=""></a></td>');
	document.write('<td><img src="/usp/img/spacer.gif" width="5" height="1" alt="" border="0"></td>');
	document.write('<td valign="bottom"><a href="/usp/littlepeople/devbenefits/default.asp"><img src="/usp/littlepeople/img/dev_tab.gif" width="110" height="36" border="0" alt=""></a></td>');
	document.write('<!--<td><img src="/usp/img/spacer.gif" width="5" height="1" alt="" border="0"></td>-->');
	document.write('<!-- <td valign="bottom"><a href="/usp/littlepeople/birthday/default.asp"><img src="/usp/littlepeople/img/club_tab.gif" width="110" height="36" alt="" border="0"></a></td> -->');
	document.write('<td><img src="/usp/img/spacer.gif" width="5" height="1" alt="" border="0"></td>');
	document.write('<td valign="bottom"><a href="/usp/littlepeople/fun/default.asp"><img src="/usp/littlepeople/img/fun_tab.gif" width="110" height="36" border="0" alt=""></a></td>');
	document.write('<td><img src="/usp/img/spacer.gif" width="5" height="1" alt="" border="0"></td>');
	document.write('<td valign="bottom"><a href="/usp/littlepeople/promotions/"><img src="/usp/littlepeople/img/promo_tab.gif" width="110" height="36" border="0" alt=""></a></td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td>');
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="665" height="400" menu="false" play="true">');
	document.write('<param name="movie" value="swf/homepage.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="play" value="true">');
	document.write('<param name="menu" value="false">');
	document.write('<param name="bgcolor" value="#FFFFFF">');
	document.write('<embed src="swf/homepage.swf" quality="high" bgcolor="#FFFFFF" width="665" height="400" type="application/x-shockwave-flash" pluginpage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>');
	document.write('</object>');
	document.write('</td>');
	document.write('</tr>');
  }

function ShowHTMLPage()
{
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="665">');
	document.write('<tr>');
	document.write('<td><img src="/usp/img/spacer.gif" width="85" height="5" alt="" border="0"></td>');
	document.write('<td valign="top" align="center"><font size="-3" face="verdana, arial, helvetica" color="#ffffff">Este sitio en la red contiene información sobre productos y material publicitario.</font></td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="400">');
	document.write('<tr>');
	document.write('<td valign="bottom"  class="yellowborder"><a href="/usp/littlepeople/"><img src="/usp/littlepeople/img/lp_logo_3.gif" width="195" height="91" alt="" border="0"></a></td>');
	document.write('<td class="yellowborder"><img src="/usp/img/spacer.gif" width="15" height="1" alt="" border="0"></td>');
	document.write('<td valign="bottom" class="yellowborder"><a href="/usp/littlepeople/products/default.asp"><img src="/usp/littlepeople/img/products_tab.gif" width="110" height="36" border="0" alt=""></a></td>');
	document.write('<td class="yellowborder"><img src="/usp/img/spacer.gif" width="5" height="1" alt="" border="0"></td>');
	document.write('<td valign="bottom" class="yellowborder"><a href="/usp/littlepeople/fun/default.asp"><img src="/usp/littlepeople/img/fun_tab.gif" width="110" height="36" border="0" alt=""></a></td>');
	document.write('<td class="yellowborder"><img src="/usp/img/spacer.gif" width="5" height="1" alt="" border="0"></td>');
	document.write('<td valign="bottom" class="yellowborder"><a href="/usp/littlepeople/devbenefits/default.asp"><img src="/usp/littlepeople/img/dev_tab.gif" width="110" height="36" border="0" alt=""></a></td>');
	document.write('<td class="yellowborder"><img src="/usp/img/spacer.gif" width="5" height="1" alt="" border="0"></td>');
	document.write('<td valign="bottom" class="yellowborder"><a href="/usp/littlepeople/promotions/"><img src="/usp/littlepeople/img/promo_tab.gif" width="110" height="36" border="0" alt=""></a></td>');
	document.write('</tr>');
	document.write('</table>');
	
	document.write('<table width="665" border="0" cellpadding="0" cellspacing="0">');
	document.write('<tr>');
	document.write('<td><img src="img/static1.jpg" width="196" height="71" border="0"></td>');
	document.write('<td><img src="img/static2.jpg" width="223" height="71" border="0"></td>');
	document.write('<td><img src="img/static3.jpg" width="246" height="71" border="0"></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td><img src="img/static4.jpg" width="196" height="41" border="0"></td>');
	document.write('<td><a href="/usp/littlepeople/products/product.asp?id=29106"><img src="img/static5.jpg" width="223" height="41" border="0" alt="Granja con Sonidos de Animales(TM) de Little People(R)"></a></td>');
	document.write('<td><img src="img/static6.jpg" width="246" height="41" border="0"></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td><a href="/usp/littlepeople/products/product.asp?id=23303"><img src="img/static7.jpg" width="196" height="60" border="0" alt="Casa de Muñecas con Sonidos de Little People(R)"></a></td>');
	document.write('<td><a href="/usp/littlepeople/products/product.asp?id=29106"><img src="img/static8.jpg" width="223" height="60" border="0" alt="Granja con Sonidos de Animales(TM) de Little People(R)"></a></td>');
	document.write('<td><a href="/usp/littlepeople/products/product.asp?id=23304"><img src="img/static9.jpg" width="246" height="60" border="0" alt="Garaje con Rampas de Little People(R)"></a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td><a href="/usp/littlepeople/products/product.asp?id=23303"><img src="img/static10.jpg" width="196" height="92" border="0" alt="Casa de Muñecas con Sonidos de Little People(R)"></a></td>');
	document.write('<td><a href="/usp/littlepeople/products/product.asp?id=30778"><img src="img/static11.jpg" width="223" height="92" border="0" alt="Discovery Village(TM) de Little People(R) (TM)"></a></td>');
	document.write('<td><a href="/usp/littlepeople/products/product.asp?id=23304"><img src="img/static12.jpg" width="246" height="92" border="0" alt="Garaje con Rampas de Little People(R)"></a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td><img src="img/static13.jpg" width="196" height="52" border="0"></td>');
	document.write('<td><a href="/usp/littlepeople/products/product.asp?id=30778"><img src="img/static14.jpg" width="223" height="52" border="0" alt="Discovery Village(TM) de Little People(R) (TM)"></a></td>');
	document.write('<td><a href="/usp/littlepeople/products/product.asp?id=30778"><img src="img/static15.jpg" width="246" height="52" border="0" alt="Discovery Village(TM) de Little People(R) (TM)"></a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td><img src="img/static16.jpg" width="196" height="84" border="0"></td>');
	document.write('<td><img src="img/static17.jpg" width="223" height="84" border="0"></td>');
	document.write('<td><img src="img/static18.jpg" width="246" height="84" border="0"></td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</td>');
	document.write('</tr>');
	document.write('<table border=0 width="750">');
	//document.write('<tr><td onclick="javascript:popFlash();"><img src="/usp/littlepeople/img/getflash_home.gif"></td>');
	document.write('<tr><td><a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank"><img src="/usp/littlepeople/img/getflash_home.gif" border=0></a></td>');
	document.write('<td><font  face="arial, helvetica" size="2" color="#ffffff">Per una visualizzazione ottimale del sito, installare l\'ultima versione di Microsoft Flash Player GRATUITA.  Una volta completata l\'installazione (dovrebbero occorrere meno di 2 minuti) potete tornare a questa pagina e premere REINSTALLA o AGGIORNA sulla finestra del browser per continuare. </font></td></tr>');
	document.write('</table>');
	document.write('</td>');
	document.write('</tr>');
}