//////////////////////////////////////////
//										//
//										//
//		JAVASCRIPT FUNCTION				//
//		UNIVERSAL PICTURES MEXICO 		//
//				2008					//
//										//
//										//
//////////////////////////////////////////

// ONLOAD
var onload;
onload=blurLinks;
//

// FUNCTION BLUR ALL LINKS
function unblur() {
	this.blur();
} 
function blurLinks() {
	if (!document.getElementById) return;
	var theLinks;
	var theAreas;
	var i;
	theLinks = document.getElementsByTagName("a");
	theAreas = document.getElementsByTagName("area");
	for(i=0; i<theLinks.length; i++) {theLinks[i].onfocus = unblur;}
	for(i=0; i<theAreas.length; i++) {theAreas[i].onfocus = unblur;}
  } 
// END FUNCTION

// FUNCTION COMBO COUNTRY
function showHidePais() {
		if(document.form.pais.options[document.form.pais.selectedIndex].value != 'México') {
		document.form.estado.disabled = true;
		document.form.estado.selectedIndex = 33;
		}
		else{
		document.form.estado.disabled = false;
		document.form.estado.selectedIndex = 0;
		}
}
// END FUNCTION

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

// FUNCTION LARGE POP UP IMAGE
function ampliafoto(id) {
	img = window.open("apliaimagen.php?id="+id+"&w="+screen.availWidth+"&h="+screen.availHeight,"IMG","top=55,left=65,scrollbars=no,status=no,toolbar=no,location=no,menu=no,width=309,height=160");
}
// END FUNCTION

// FUNCTION SHOW/HIDE LAYER
function showhide(id){
	if (document.getElementById){
		obj = document.getElementById(id);
	if (obj.style.display == "none"){
		obj.style.display = "";
	} else {
		obj.style.display = "none";
		}
	}
}
// END FUNCTION