//This script detects the following:
//Flash
//Windows Media Player
//Java
//Shockwave
//RealPlayer
//QuickTime
//Acrobat Reader
//SVG Viewer
//Detect Plugin (Flash, Java, RealPlayer etc) script- By Frederic (fw4@tvd.be)
//Visit http://javascriptkit.com, modificated for Ariel Lan
var pluginlist;
var agt=navigator.userAgent.toLowerCase();
var ie  = (agt.indexOf("msie") != -1);
var ns  = (navigator.appName.indexOf("Netscape") != -1);
var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
var mac = (agt.indexOf("mac")!=-1);

if (ie && win) {  pluginlist = detectIE("Adobe.SVGCtl","SVG Viewer") + detectIE("SWCtl.SWCtl.1","Shockwave Director") + detectIE("ShockwaveFlash.ShockwaveFlash.1","Shockwave Flash") + detectIE("rmocx.RealPlayer G2 Control.1","RealPlayer") + detectIE("QuickTimeCheckObject.QuickTimeCheck.1","QuickTime") + detectIE("MediaPlayer.MediaPlayer.1","Windows Media Player") + detectIE("PDF.PdfCtrl.5","Acrobat Reader"); }
if (ns || !win) {
 nse = ""; for (var i=0;i<navigator.mimeTypes.length;i++) nse += navigator.mimeTypes[i].type.toLowerCase();
  pluginlist = detectNS("image/svg-xml","SVG Viewer") + detectNS("application/x-director","Shockwave Director") + detectNS("application/x-shockwave-flash","Shockwave Flash") + detectNS("audio/x-pn-realaudio-plugin","RealPlayer") + detectNS("video/quicktime","QuickTime") + detectNS("application/x-mplayer2","Windows Media Player") + detectNS("application/pdf","Acrobat Reader");
}

function detectIE(ClassID,name) { result = false; document.write('<script LANGUAGE=VBScript>\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))</SCRIPT>\n'); if (result) return name+','; else return ''; }
function detectNS(ClassID,name) { n = ""; if (nse.indexOf(ClassID) != -1) if (navigator.mimeTypes[ClassID].enabledPlugin != null) n = name+","; return n; }

pluginlist += navigator.javaEnabled() ? "Java," : "";
if (pluginlist.length > 0) pluginlist = pluginlist.substring(0,pluginlist.length-1);





function filuminarc(src,color_entrada) { 
    src.bgColor=color_entrada;src.style.cursor="hand"; 
} 
function fapagarc(src,color_default) { 
    src.bgColor=color_default;src.style.cursor="default"; 
} 
function ftapa(url){
//abrir ventana diarios
 window.open(url,'Tapa',"Titlebar=no,location=no,width=400,height=520,menubar=no,scrollbars=no,resizable=no, top=10,left=400");
}

function ftapac(url){
//abrir ventana diarios
 window.open(url,'Tapa',"Titlebar=no,location=no,width=240,height=490,menubar=no,scrollbars=no,resizable=yes, top=10,left=400");
}


function fchat(url){
//abrir ventana chat
 window.open(url,'Tapa',"Titlebar=no,location=no,width=400,height=400,menubar=no,scrollbars=no,resizable=yes, top=10,left=10");

}
function fresultado(url){
//abrir ventana resultados
window.open(url,"Resultado_encuesta","width=400,height=200,menubar=no,scrollbars=no,resizable=no, top=10");
}
function fchat(url){
//abrir ventana resultados
window.open(url,"Chat","width=500,height=400,menubar=no,scrollbars=no,resizable=no, top=250, left=300");
}
function freprod(url){
//abrir ventana resultados
window.open(url,"rep","width=500,height=400,menubar=no,scrollbars=no,resizable=no, top=10, left=10");
}
function freprodrad(url){
//abrir ventana resultados
window.open(url,"rep","width=360,height=160,menubar=no,scrollbars=no,resizable=no, top=10, left=10");
}

//degaleon

function enviar(){

var dir="//admingaleon.hispavista.com/herramientas/recomienda/recomienda.phtml?nombre="+document.entrada.nombre.value+"&destinatario="+document.entrada.destinatario.value+"&procedencia="+window.location.href;
recomienda=window.open(dir,"Push","toolbar=no,status=no,directories=no,menubar=no,height=50,width=260,resizable=no");

}

<!-- Begin de arriba
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=720,height=300');");
}
// End  de arriba-->


function fimprimir(url){
//abrir ventana imprimir
 window.open(url,'Tapa',"Titlebar=no,location=no,width=470,height=500,menubar=no,scrollbars=yes,resizable=yes, top=10,left=10");
}
function fventana(url){
//abrir ventana
 window.open(url,'Contacto',"Titlebar=yes,location=no,width=680,height=600,menubar=no,scrollbars=yes,resizable=no, top=10,left=10");
} 