//-- Funcion que muestra los swf
function ShowSwf(SwfFile, SwfWidth, SwfHeight){
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+SwfWidth+'" height="'+SwfHeight+'">');
    document.write('<param name="movie" value="'+SwfFile+'">');
    document.write('<param name="quality" value="high">');
    document.write('<param name="wmode" value="transparent">');
    document.write('<embed src="'+SwfFile+'" width="'+SwfWidth+'" height="'+SwfHeight+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>');			
    document.write('</object>');           
}


//-- Ventanitas Pop Up
function PopUps(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


//-- RollOver
function MM_swapImgRestore() { //v2.0
if (document.MM_swapImgData != null)
for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}
function MM_swapImage() { //v2.0
var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
(objStr.indexOf('document.all[') ==0 && document.all ==null))
objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
obj = eval(objStr);
if (obj != null) {
swapArray[j++] = obj;
swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
obj.src = MM_swapImage.arguments[i+2];
} }
document.MM_swapImgData = swapArray; //used for restore
}


//-- Desplegar secciones ocultas
function doSection (secNum){
if (secNum.style.display=="none"){secNum.style.display=""}
else{secNum.style.display="none"}
}
function noSection (secNum){
if (secNum.style.display==""){secNum.style.display="none"}
}
function doFormaPago (secNum){
if (secNum.style.display=="none"){secNum.style.display=""}
}


//-- Agregar a Favoritos
function addbookmark(bookmarkurl,bookmarktitle){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
isIE = false;
navVer = navigator.appVersion;
ver = parseFloat(navVer);
IEPos = navVer.indexOf('MSIE');
if (IEPos !=-1) {
 isIE = true;
 ver = parseFloat(navVer.substring(IEPos+5,navVer.indexOf(';',IEPos)));
}
isIE5up = (isIE && ver >= 5);


//-- Página de inicio
function setNSHomepage(URL) {  // this HAS to be signed if it is to run on the web
 var Text = '';
 Text += 'Due to Netscapes security handling, making this page your homepage, will show you a dialog with a warning.\n';
 Text += 'If you do not wish to grant this site the access to your browser settings,';
 Text += ' you can manually copy the current location and paste it in the location field in Edit / Preferences / Navigator.';
 if (confirm(Text)) {
   netscape.security.PrivilegeManager.enablePrivilege("UniversalPreferencesWrite");
   navigator.preference('browser.startup.homepage',URL);
 }
}

//-- Rollover de imágenes en las fichas
if (navigator.appVersion.indexOf("2.") != -1){
        check = false; }
if ((navigator.appVersion.indexOf("3.") != -1) && (navigator.appName.indexOf("Explorer") != -1)){
        check = false; }
else { check = true; }
function imageon(name)   {
        document[name].src = eval(name + "on.src");
        document["altimg"].src = eval(name + "alton.src"); }
function imageoff(name)  {
        document[name].src = eval(name + ".src");
        document["altimg"].src = eval(name + "alt.src"); }
NN3 = true;
function on(name)  {
        if (check == true){
                imageon(name);}
}
function off(name)  {
        if (check == true){
                imageoff(name);}
}


//-- Deshabilitar clic derecho del mouse
//   var message = "";

//   function clickIE(){
//    if (document.all){
//     (message);
//     return false;
//    }
//   }

//   function clickNS(e){
//    if (document.layers || (document.getElementById && !document.all)){
//     if (e.which == 2 || e.which == 3){
//      (message);
//      return false;
//     }
//    }
//   }

//   if (document.layers){
//    document.captureEvents(Event.MOUSEDOWN);
//    document.onmousedown = clickNS;
//   } else {
//    document.onmouseup = clickNS;
//    document.oncontextmenu = clickIE;
//   }
//   document.oncontextmenu = new Function("return false")