var dir=''; var dir_includes=dir+'/includes/'; var dir_scripts=dir+'/scripts/'; var dir_jsscripts=dir_includes+'scripts/'; var imgs=dir+'/artworks/' var imgs_portafolio=imgs+'portfolio/' var imgs_portafolio=imgs /******** LAYER MENU ********/ var activeSub=0; var SubNum=0; function reDo(){ window.location.reload() } // window.onresize = reDo; //Define global variables var timerID = null; var timerOn = false; var timecount = 1000; var what = null; var newbrowser = true; var check = false; function init(){ // alert ("Running Init"); if (document.layers) { // alert ("Running Netscape 4"); layerRef="document.layers"; styleSwitch=""; visibleVar="show"; screenSize = window.innerWidth; what ="ns4"; }else if(document.all){ // alert ("Running IE"); layerRef="document.all"; styleSwitch=".style"; visibleVar="visible"; screenSize = document.body.clientWidth + 18; what ="ie"; }else if(document.getElementById){ // alert ("Running Netscape 6"); layerRef="document.getElementByID"; styleSwitch=".style"; visibleVar="visible"; what="moz"; }else{ //alert("Older than 4.0 browser."); what="none"; newbrowser = false; } check = true; window.status='Colegio Profesional de Licenciados en Cooperativismo del PerĂº - Colicoop.Com'; } // Turns the layers on and off function showLayer(layerName){ if(check){ if (what =="none"){ return; } else if (what == "moz"){ document.getElementById(layerName).style.visibility="visible"; } else{ eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"'); } } else {// alert ("Please wait for the page to finish loading."); return;} } function hideLayer(layerName){ if(check){ if (what =="none"){ return; } else if (what == "moz"){ document.getElementById(layerName).style.visibility="hidden"; } else{ eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"'); } } else {// alert ("Please wait for the page to finish loading."); return;} } function hideAll(){ hideLayer('layer1'); hideLayer('layer2'); hideLayer('layer3'); hideLayer('layer4'); hideLayer('layer5'); hideLayer('layer6'); hideLayer('layer7'); } function startTime() { if (timerOn == false) { timerID=setTimeout( "hideAll()" , timecount); timerOn = true; } } function stopTime() { if (timerOn) { clearTimeout(timerID); timerID = null; timerOn = false; } } function onLoad(){ init(); } /******** ABRIR POPUP ********/ function abrirVentana(url, largo, ancho, resizable) { window.open(url,'nueva_ventana','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+largo+',height='+ancho); } /******** OCULTAR LAYERS ********/ var ns4=document.layers var ie4=document.all var ns6=document.getElementById && !document.all function hidelayer(){ if (ie4) menu.style.visibility='hidden'; else if (ns6) document.getElementById("menu").style.visibility="hidden"; else if (ns4) document.menu.visibility="hide"; } var height_c=268; function colapse_layer() { if (ns4 || ns6) { hidelayer(); } layer_c =setInterval("colapse();",10); } function colapse() { if (height_c >=0) { height_c = height_c - 2; document.getElementById("menu").style.clip = "rect(auto auto "+height_c+" auto)"; } else { clearInterval(layer_c); } } /******** COLOR ********/ function xxxmOvr(src,clrOver) { if(clrOver=='') clrOver = extension_color; if (!src.contains(event.fromElement)) { defaultColor = src.bgColor; src.bgColor = clrOver; } } function xxxmOut(src) { if (!src.contains(event.toElement)) src.bgColor = defaultColor; } var last_tr=null; var default_mOvr_Color=""; function mOvr(src,clrOver) { last_tr="_"+src.name; if (last_tr=="_undefined") { last_tr=src.id; } else { last_tr=src.name; } default_mOvr_Color = src.bgColor; src.bgColor = clrOver; } function mOut(src) { src.bgColor = default_mOvr_Color; }