function setFocusToFrame(id){
	if(parent.swArtista){
		quitaArtista();
	}
	top.document.getElementById(id).focus();	
}
function setFocusTo(sID){
	var o=document.getElementById(sID); 
	if(o==null){return [0,0];} 
	var top=o.offsetTop,left=o.offsetLeft; 
	o=o.offsetParent; 
	while(o){ 
	  if(document.all){ 
		 if(o.offsetParent){ 
			if(o.scrollTop)top-=o.scrollTop; 
			if(o.scrollLeft)left-=o.scrollLeft; 
		 } 
	  }else{
		 if(o.scrollTop)top-=o.scrollTop; 
		 if(o.scrollLeft)left-=o.scrollLeft; 
		 // Mozilla bug 
		 if((o.tagName=='DIV')||(o.tagName=='TABLE'&&navigator.vendor=='Netscape')) 
			top+=getAttrPixValue(o,'border-top-width')|0,left+=getAttrPixValue(o,'border-left-width')|0; 
	  } 
	  top+=o.offsetTop; 
	  left+=o.offsetLeft; 
	  o=o.offsetParent; 
	} 
	if(navigator.userAgent.indexOf('Mac')!=-1 && typeof(document.body.leftMargin)!='undefined'){ 
	  left+=document.body.leftMargin,top+=document.body.topMargin;   // working? 
	} 
	scrollTo(left,top);
}
function ponArtista(url){
	parent.swArtista=true;
	top.document.getElementById("artista").height=2480;
	top.document.getElementById("artista").src=url;
	top.document.getElementById("index01").height=0;
	top.document.getElementById("index02").height=0;
	top.document.getElementById("index03").height=0;
	top.document.getElementById("index04").height=0;
	top.document.getElementById("index05").height=0;
	top.document.getElementById("index06").height=0;
	top.document.getElementById("head").focus();	
}

function quitaArtista(){
	parent.swArtista=false;
	top.document.getElementById("head").focus();
	top.document.getElementById("artista").height=0;
	top.document.getElementById("artista").src="";
	top.document.getElementById("index01").height=578;
	top.document.getElementById("index02").height=1190;
	top.document.getElementById("index03").height=924;
	top.document.getElementById("index04").height=297;
	top.document.getElementById("index05").height=546;
	top.document.getElementById("index06").height=599;
}
function recalculaH(f){
	var hFrame;
	if(document.frames){//IE
		hFrame = document.frames(f).document.body.scrollHeight+4; 
	}else{//OTRO
		hFrame = frames[f].document.body.scrollHeight+4; 
	}
	//alert(hFrame);
	document.getElementById(f).height = hFrame; 
}
function getURLParam(strParamName){
	var strReturn = "";
	var strHref = window.location.href;
	if ( strHref.indexOf("?") > -1 ){
		var strQueryString = strHref.substr(strHref.indexOf("?"));
		var aQueryString = strQueryString.split("&");
		for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
			if (aQueryString[iParam].indexOf(strParamName + "=") > -1 ){
				var aParam = aQueryString[iParam].split("=");
				strReturn = aParam[1];
				break;
			}
		}
	}
	return unescape(strReturn);
} 
function setFocusToID(){
	if(idIframe!=""){
		setFocusTo(idIframe);
	}
}