//Browser dection basic 
var agt = navigator.userAgent.toLowerCase();
var gecko = (agt.indexOf("gecko")!=-1) ? true:false; //ns6up and mozilla1up
//DOM
var islayers = (document.layers)? true:false; //ns4
var isall = (document.all)? true:false; //ie4 
var isid = (document.getElementById)? true:false; //ie5up, ns6up, and Mozilla 1up
var isprint = (window.print)? true:false;
//ie
var ie = ((agt.indexOf("msie")!=-1) && (!opera)) ? true:false; //ie & opera
var ie4 = (isall && !isid && !opera);
var ie5up = (isall && isid && !opera);
var ie55 = (agt.indexOf("msie 5.5")!=-1) ? true:false;
var ie6 = (agt.indexOf("msie 6")!=-1) ? true:false;
//ns
//var ns = (agt.indexOf("netscape")!= -1) ? true:false;
var ns  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1) && (agt.indexOf('firefox')==-1));
var ns4 = (ns && islayers);
var ns6up = (isid && ns);
//opera
var opera = (window.opera) ? true:false;
var opera5up = (opera && isid);
var opera6up = (opera5up && isprint);
// firefox
var firefox = (agt.indexOf('firefox')!=-1);
//mozilla
var mozilla = (gecko && !ns && !firefox);
// Language
var lan = "";
if (gecko){lan = navigator.language;}
else {lan = navigator.browserLanguage;};
lan = lan.substring(0,2);
//Retunr the docuemnt object model of the ID
function getDOM(id)
{
	if (islayers){ return document.layers[id]; }
	else if (isid){ return document.getElementById(id); }
	else if (isall){ return document.all[id]; }
	else {alert("Not supported. Please, update your browser!");return;};
}
// Check parameter passsed to function
function checkParam(numRequiered,numPassed)
{
	if (numPassed != numRequiered) {alert("Error on paramenters!/n This function requieres "+numRequiered+" parameters, and "+numPassed+" paramenters have been passed");return;};
}
// date
var today = new Date();
var year = today.getFullYear();

// Favorite Icon
// PLACE BEFORE TITLE & any JS
//<link rel="shortcut icon" href="http://estilos.en-desarollo.com/_media/ico/ioxoi.ico">

window.defaultStatus=(" © 1997-" + year + " developed by ioxoi.com");

/////////////////////////////////////////////////////////
// FLASH Dectetion
/////////////////////////////////////////////////////////
// Vesion of flash used on site
var SWF_siteVersion = 7;
// version of flash installed on client
var SWF_browserVersion = 0;
//
var isFlashOK = false;


var isPlugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( isPlugin )
{
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	for (var i = 0; i < words.length; ++i)
	{
		if (isNaN(parseInt(words[i])))
		continue;
		var SWF_browserVersion = words[i];


	}
	var isFlashOK = SWF_browserVersion >= SWF_siteVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0  && (navigator.appVersion.indexOf("Win") != -1))
{
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('isFlashOK = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & SWF_siteVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}

/*
if ( isFlashOK ) 
{
	//window.location.replace("http://www.kirupa.com/flash.htm");
	//location.href = 'flash.html';
	alert('flash')
}
else
{
	//window.location.replace("http://www.kirupa.com/noflash.htm");
	//location.href = 'noflash.html';
	alert('no-flash')
}
*/