/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by ----- filename.js -----
 */

/* ----- formsubmithelpers.js ----- */
function inputSubmitOnClick(event) {
    if (!event) var event = window.event; // IE compatibility

    if (hasClassName(this, 'submitting')) {
        return confirm(window.form_resubmit_message);
    } else {
        addClassName(this, 'submitting');
    }
    return true;
}

function registerSubmitHandler() {
    var nodes = cssQuery('input[type=submit]');
    for (var i=0; i<nodes.length; i++) {
        var node = nodes[i];
        if (!node.onclick) {
            node.onclick = inputSubmitOnClick;
        }
    }
}
registerPloneFunction(registerSubmitHandler);


/* ----- utils.js ----- */
sfHover = function() {
if(document.getElementById("nav")) {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" over";
if(document.getElementById("menu_iframe")) {
var iframe = document.getElementById("menu_iframe");var submenu = this.getElementsByTagName("UL");
if(submenu.length) {
iframe.style.top = submenu[0].offsetTop + this.offsetTop;
iframe.style.left = submenu[0].offsetLeft + this.offsetLeft;
iframe.style.width = submenu[0].scrollWidth;
iframe.style.height = submenu[0].clientHeight;
iframe.style.display = "inline";
}
}
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" over\\b"), "");
if(document.getElementById("menu_iframe")) {
var iframe = document.getElementById("menu_iframe");
iframe.style.display = "none";
}
}
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);






function openFixedPopup(url){
  window.open(url, '', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,left=180,top=100,width=700,height=600');
}



// var imagenes=new Array()
// imagenes[0]="portal-top1"
// imagenes[1]="portal-top2"
// imagenes[2]="portal-top3"
// imagenes[3]="portal-top4"
// imagenes[4]="portal-top5"
// imagenes[5]="portal-top6"
// cont=0
// 
// function presImagen()
// {
// identity=document.getElementById("portal-top").className=imagenes[cont]
// if (cont < imagenes.length-1)
// {cont ++}
// else
// {cont=0}
// tiempo=window.setTimeout('presImagen()',5000)
// }

var imagenes=new Array()

imagenes[0]=new Image (215,230,275,300);
imagenes[0].src="image1.jpg"
imagenes[1]=new Image (215,300);
imagenes[1].src="image2.jpg"
imagenes[2]=new Image (215,300);
imagenes[2].src="image3.jpg"
imagenes[3]=new Image (215,300);
imagenes[3].src="image4.jpg"
imagenes[4]=new Image (215,300);
imagenes[4].src="image5.jpg"
imagenes[5]=new Image (215,300);
imagenes[5].src="image6.jpg"


cont=0
function presImagen()
{
if (document.all){
document.getElementById('foto').filters.blendTrans.apply()
document.getElementById('foto').src=imagenes[cont].src
document.getElementById('foto').filters.blendTrans.play()
}
else
    {
    document.images.foto.src = imagenes[cont].src
    }
if (cont < imagenes.length-1)
{cont ++}
else
{cont=0}
tiempo=window.setTimeout('presImagen()',5000)

}




function high(which2)
{
theobject=which2;
highlighting=setInterval("highlightit(theobject)",50);
}

function low(which2)
{
clearInterval(highlighting);
which2.filters.alpha.opacity=50;
}

function highlightit(cur2)
{
if(cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if(window.highlighting)
clearInterval(highlighting)
}
