//*
//Detecta la versión del plugIn
function detectPluginWin()
{
	deteccionCorrecta = false;			//Es utilizada para determinar el fin del ciclo de verificación de plugin
	
	for( i = 0; i < 50; i++ )
	{
		
		if ( i >= pluginPpc && deteccionCorrecta == false )
		{
			
			try {
				
				axo = new ActiveXObject( "ShockwaveFlash.ShockwaveFlash." + i );
				
				if ( axo )
				{
					
					deteccionCorrecta = true;
					
					return true;
					
				}
			} catch (e) {
			}
			
		}
		
	}
	
	return false;
	
}
//*/

//---------------------------------------------------------------------------------------------------------------------

var os = navigator.platform.toLowerCase();	  	//Sistema operativo

var is_Ppc = os.indexOf("wince") != -1;			//true;
//alert( "is_Ppc = " + is_Ppc );
if ( is_Ppc )
{
	
	weCanPlay = detectPluginWin();
	//alert( "weCanPlay returned = " + weCanPlay );
	if ( weCanPlay )
	{
		
		location.replace( pdaHtml );
		
	}else
	{
		
		location.replace( upgradePda );
		
	}
	
}