/*
 * Copyright 2010
 * Asesores Informaticos Svfnet
 * Author: Julio Varela
 * Date: Febrero 02, 2010
 */

<!--

//*******************************************
// script de Inhabilitacion de Textos   
//*******************************************

//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit http://www.dynamicdrive.com for this script

function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

//*******************************************
// script de boton derecho   
//*******************************************
function derecha(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
alert('cosméticos leorex antienvejecimiento\nvuelve a lucir un cutis sano y joven\n\nfunción desactivada')
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2)){
alert('cosméticos leorex antienvejecimiento\nvuelve a lucir un cutis sano y joven\n\nfunción desactivada')
}
}
document.onmousedown=derecha

//*****************************************
// script imagen slide show 
//*****************************************

// intervalo entre imagenes (en milisegunndos)
var slidespeed=3000

// especificación de imagenes
var slideimages=new Array("imagenes/promo01.jpg","imagenes/promo02.jpg","imagenes/promo03.jpg","imagenes/promo04.jpg")

// especificación de links
var slidelinks=new Array("index.php","index.php","index.php","index.php")

var newwindow=0 // abre links en nueva ventana? 1=si, 0=no

var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}

//*******************************************
// script de Maximizar Página   
//*******************************************
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}

//-->

