// --------------------------------------------------
//
// Programacion en JavaScript
// Opciones en Ingles WebSite
//
// by Ricardo Ponce ( HepikaSoftware )
//    Mendoza, Argentina.
//    http://www.hepikasoftware.com.ar
//
// --------------------------------------------------

// ----------------------------------
// imagenes del menu lateral---------
// ----------------------------------

Menu1ON = new Image (170,19);
Menu1OFF = new Image (170,19);
Menu2ON = new Image (170,19);
Menu2OFF = new Image (170,19);
Menu3ON = new Image (170,19);
Menu3OFF = new Image (170,19);

Menu1ON.src = "graficos/bt_lat_pulsar_on_en.bmp";
Menu1OFF.src = "graficos/bt_lat_pulsar_off_en.bmp";
Menu2ON.src = "graficos/bt_lat_sqlconn_on_en.bmp";
Menu2OFF.src = "graficos/bt_lat_sqlconn_off_en.bmp";
Menu3ON.src = "graficos/bt_lat_mysqlconn_on_en.bmp";
Menu3OFF.src = "graficos/bt_lat_mysqlconn_off_en.bmp";

// ----------------------------------
// seguridad
// ----------------------------------

// no mouse right button...
document.oncontextmenu = function(){return false}
 
// disable select option...
function disableselect(e){
   return false
   }

function reEnable(){
   return true
   }
 
document.onselectstart=new Function ("return false")

if (window.sidebar){
   document.onmousedown=disableselect
   document.onclick=reEnable
   }

// ----------------------------------
// barra de botones
// ----------------------------------

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function InfoPage(page) {
   windowprops = "height=500,width=580,location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes";
   window.open( page, "Popup", windowprops);
}

<!-- HepikaSoftware Download Center -->

var windowW = 230;  // wide
var windowH = 300;  // high
var Yoffset = 0;   // in pixels, negative values allowed
var windowStep = 2; // move increment (pixels)
var moveSpeed = 5; // move speed (larger is slower)
Xmode = "right";
Xoffset = 35;
var urlPop = "";
var title =  "Download Center";
var autoclose = true;

// no modificar debajo de esta línea

var windowX = (screen.width/2)-(windowW/2);
if (Xmode=="left") windowX=0+Xoffset;
if (Xmode=="right") windowX=screen.availWidth-Xoffset-windowW;
var windowY = (screen.availHeight);
var windowYstop = windowY-windowH-Yoffset;
var windowYnow = windowY;
s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false

function openPeeker(page,down) {
	urlPop = page;
	
	// cookie con programa a descargar

   top.document.cookie="HepikaDC=" + escape(down);

	//	creacion de la página de descarga

	PFW=window.open(urlPop,"","scrollbars,"+s);
	PFW.blur();
	window.focus();
	PFW.resizeTo(windowW,windowH);
	PFW.moveTo(windowX,windowY);

	PFW.focus();
	if (autoclose) {
		window.onunload = function(){PFW.close()}
		}
	movePFW();
	}

function movePFW() {
	if (document.all) {
		if (windowYnow>=windowYstop) {
			PFW.moveTo(windowX,windowYnow);
			PFW.focus();
			windowYnow=windowYnow-windowStep;
			timer=setTimeout("movePFW()",moveSpeed);
			}
		else {
			clearTimeout(timer);
			PFW.moveTo(windowX,windowYstop);
			PFW.focus();
   			}
		}
	else {
		PFW.moveTo(windowX,windowYstop);
   		}
	}
	


