if(typeof Node == "undefined") { 
var Node = { 
ELEMENT_NODE: 1, 
ATTRIBUTE_NODE: 2, 
TEXT_NODE: 3, 
CDATA_SECTION_NODE: 4, 
ENTITY_REFERENCE_NODE: 5, 
ENTITY_NODE: 6, 
PROCESSING_INSTRUCTION_NODE: 7, 
COMMENT_NODE: 8, 
DOCUMENT_NODE: 9, 
DOCUMENT_TYPE_NODE: 10, 
DOCUMENT_FRAGMENT_NODE: 11, 
NOTATION_NODE: 12 
}; 
}

function runajax(objID, serverPage) 
{ 
//Create a boolean variable to check for a valid Internet Explorer instance.
var xmlhttp = false;
//Check if we are using IE.
try {
//If the JavaScript version is greater than 5.
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
//If not, then use the older ActiveX object. 
try { 
//If we are using Internet Explorer. 
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
} catch (E) { 
//Else we must be using a non-IE browser. 
xmlhttp = false; 
} 
} 
// If we are not using IE, create a JavaScript instance of the object. 
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { 
xmlhttp = new XMLHttpRequest(); 
} 
var obj = document.getElementById(objID); 
xmlhttp.open("GET", serverPage); 
xmlhttp.onreadystatechange = function() { 
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { 
obj.innerHTML = xmlhttp.responseText; 
}
}
xmlhttp.send(null);
}



function clicked_alb(elementID){

runajax('visor_div','viewer.php?album='+elementID);
runajax('visor_nav','garagenav.php?album='+elementID);


}

function clicked_tec(elementID){


runajax('visor_div','viewer.php?tecnica='+elementID);
runajax('visor_nav','garagenav.php?tecnica='+elementID);


}

function clicked_year(elementID){


runajax('visor_div','viewer.php?any='+elementID);
runajax('visor_nav','garagenav.php?any='+elementID);




}