<!--

function openNewWindow(URLtoOpen, windowName, windowFeatures) { 
  newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}

var docParams = new Array();
function GetParams()
{
	var query = window.location.search.substring(1);
	var parms = query.split('&');
	for (var i=0; i<parms.length; i++) {
	   var pos = parms[i].indexOf('=');
	   if (pos > 0) {
		  var key = parms[i].substring(0,pos);
		  var val = parms[i].substring(pos+1);
		  docParams[key] = val;
	   }
	}
}

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) {
//		menu_03_menu_02_over = newImage("images/menu_03-menu_02_over.gif");
//		menu_03_menu_07_over = newImage("images/menu_03-menu_07_over.gif");
//		menu_03_menu_08_over = newImage("images/menu_03-menu_08_over.gif");
//		menu_03_menu_09_over = newImage("images/menu_03-menu_09_over.gif");
//		menu_03_menu_10_over = newImage("images/menu_03-menu_10_over.gif");
//		menu_03_menu_11_over = newImage("images/menu_03-menu_11_over.gif");
		preloadFlag = true;
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_controlSound(x, _sndObj, sndFile) { //v3.0
  var i, method = "", sndObj = eval(_sndObj);
  if (sndObj != null) {
    if (navigator.appName == 'Netscape') method = "play";
    else {
      if (window.MM_WMP == null) {
        window.MM_WMP = false;
        for(i in sndObj) if (i == "ActiveMovie") {
          window.MM_WMP = true; break;
      } }
      if (window.MM_WMP) method = "play";
      else if (sndObj.FileName) method = "run";
  } }
  if (method) eval(_sndObj+"."+method+"()");
  else window.location = sndFile;
}

function showElement(id)
{
	document.getElementById(docParams['id']).style.top = '-1000px';
//	document.getElementById('destacado_content_layer').style.top = '-1000px';
	document.getElementById(id).style.top = '190px';
}

function mailAntiSpam(usuario, dominio)
{
	document.write("<a href=\"mailto:" + usuario + "@" + dominio + "\">" + usuario + "@" + dominio + "</a>")
}

function jc_select (smallfile, largefile)
{
	document.getElementById("jc_galeryfoto").src = "../galerias/jcloading.png";
	document.getElementById("jc_galeryfoto").src = largefile;
}

-->
