/********************************************/
/**************** BaluArt.net ***************/
/******* Arte y Cultura - Blog Peruano*******/
/********************************************/

/* modifica las caracteristicas de los menus hijos */
function menu_set()
 { 
 var i, d='', h="<sty"+"le type=\"text/css\">",tA=navigator.userAgent.toLowerCase();
 if(window.opera)
   { if(tA.indexOf("opera 5")>-1||tA.indexOf("opera 6")>-1){return;} }
     if(document.getElementById)
     {
     for(i=1;i<20;i++){ d+='ul ';h+="\n#menunav "+d+"{position:absolute;left:-9000px;width:11em;}"; }
     document.write(h+"\n<"+"/sty"+"le>");
     }
 }
 menu_set();

/* modifica caracteristicas de apertura de menus */
function menu_init()
{
 var i,g,tD,tA,tU,pp,lvl,tn=navigator.userAgent.toLowerCase();
 if(window.opera)
 {
   if(tn.indexOf("opera 5")>-1||tn.indexOf("opera 6")>-1){return;}
 }
 else
  if(!document.getElementById){return;}
    menup=arguments;menuct=new Array;tD=document.getElementById('menunav');
    if(tD){tA=tD.getElementsByTagName('A');
      for(i=0;i<tA.length;i++){tA[i].menucl=menuct.length;menuct[menuct.length]=tA[i];g=tA[i].parentNode.getElementsByTagName("UL");
      tA[i].menusub=(g)?g[0]:false;ev=tA[i].getAttribute("onmouseover");
    if(!ev||ev=='undefined'){tA[i].onmouseover=function()
    {
     menu_trig(this);};}ev=tA[i].getAttribute("onfocus");
     if(!ev||ev=='undefined'){ tA[i].onfocus=function(){menu_trig(this);}; }
     if(tA[i].menusub){pp=tA[i].parentNode;lvl=0;
     while(pp)
     {
      if(pp.tagName&&pp.tagName=="UL"){lvl++;}pp=pp.parentNode;
     }
     tA[i].menulv=lvl;}}tD.onmouseout=menu_close;menu_open();
    }
}

function menu_trig(a)
{
 var b,t;
 if(document.menut)
 { clearTimeout(document.menut); }document.menua=1;b=(a.menusub)?'menu_show(':'menu_tg(';
 t='document.menut=setTimeout("'+b+a.menucl+')",160)';eval (t);
}

/*muestra los menus */
function menu_show(a,bp)
{ 
 var u,lv,oft,ofr,uw,uh,pp,aw,ah,adj,mR,mT,wW=0,wH,w1,w2,w3,sct,pw,lc,pwv,xx=0,yy=0,wP=true;
 var iem=(navigator.appVersion.indexOf("MSIE 5")>-1)?true:false,dce=document.documentElement,dby=document.body;document.menua=1;
 if(!bp){menu_tg(a);}u=menuct[a].menusub;
 if(u.menuax&&u.menuax==1){return;}u.menuax=1;lv=(menup[0]==1&&menuct[a].menulv==1)?true:false;
 menuct[a].className=menuct[a].className.replace("menutrg","menuon");oft=parseInt(menup[3]);ofr=parseInt(menup[4]);
 uw=u.offsetWidth;uh=u.offsetHeight;pp=menuct[a];aw=pp.offsetWidth;ah=pp.offsetHeight;
 while(pp){xx+=(pp.offsetLeft)?pp.offsetLeft:0;
  yy+=(pp.offsetTop)?pp.offsetTop:0;
 if(window.opera||navigator.userAgent.indexOf("Safari")>-1)
 {
 if(menuct[a].menulv!=1&&pp.nodeName=="BODY"){ yy-=(pp.offsetTop)?pp.offsetTop:0;} }pp=pp.offsetParent;
 }
 if(iem&&navigator.userAgent.indexOf("Mac")>-1){ yy+=parseInt(dby.currentStyle.marginTop); }adj=parseInt((aw*ofr)/100);mR=(lv)?0:aw-adj;
 adj=parseInt((ah*oft)/100);mT=(lv)?0:(ah-adj)*-1;w3=dby.parentNode.scrollLeft;
 if(!w3){ w3=dby.scrollLeft; }w3=(w3)?w3:0;
 if(dce&&dce.clientWidth){wW=dce.clientWidth+w3;}
 else
  if(dby){wW=dby.clientWidth+w3;}
  if(!wW){wW=0;wP=false;}wH=window.innerHeight;
  if(!wH)
 { 
 wH=dce.clientHeight;
 if(!wH||wH<=0){wH=dby.clientHeight;}
 }sct=dby.parentNode.scrollTop;
 if(!sct){ sct=dby.scrollTop;
 if(!sct){sct=window.scrollY?window.scrollY:0;} }pw=xx+mR+uw;
 if(pw>wW&&wP){ mR=uw*-1;mR+=10;
 if(lv){mR=(wW-xx)-uw;} }lc=xx+mR;
 if(lc<0){mR=xx*-1;}pw=yy+uh+ah+mT-sct;pwv=wH-pw;
 if(pwv<0){mT+=pwv;}u.style.marginLeft=mR+'px';u.style.marginTop=mT+'px';
 if(menup[2]==1){
 if(!iem){menu_anim(a,20);}
 		}u.className="menushow";
}

/* oculta los menus */
function menu_hide(u){ 
 var i,tt,ua;u.menuax=0;u.className="menuhide";ua=u.parentNode.firstChild;ua.className=ua.className.replace("menuon","menutrg");
}

function menu_tg(a,b){ 
 var i,u,tA,tU,pp;tA=menuct[a];pp=tA.parentNode;while(pp){if(pp.tagName=="UL"){break;}pp=pp.parentNode;}
 if(pp){
  tU=pp.getElementsByTagName("UL");
  for(i=tU.length-1;i>-1;i--){if(b!=1&&tA.menusub==tU[i]){continue;}
 else{menu_hide(tU[i]);}}}
}

function menu_close(evt){
 var pp,st,tS,m=true;evt=(evt)?evt:((event)?event:null);st=document.menua;
 if(st!=-1){if(evt){
 tS=(evt.relatedTarget)?evt.relatedTarget:evt.toElement;
 if(tS){ pp=tS.parentNode;while(pp){if(pp&&pp.id&&pp.id=="menunav"){m=false;
 document.menua=1;break;}pp=pp.parentNode;} }
 if(m){document.menua=-1;
 if(document.menut){clearTimeout(document.menut);}
 document.menut=setTimeout("menu_clr()",360);}}}
}

function menu_clr(){
 var i,tU,tUU;document.menua=-1;tU=document.getElementById('menunav');
 if(tU){tUU=tU.getElementsByTagName("UL");
 if(tUU){
 for(i=tUU.length-1;i>-1;i--){menu_hide(tUU[i]);}}}
}

/* crea la animación */
function menu_anim(a,st){ 
 var g=menuct[a].menusub,sp=30,inc=20;st=(st>=100)?100:st;g.style.fontSize=st+"%";
 if(st<100){st+=inc;setTimeout("menu_anim("+a+","+st+")",sp);}
}

/* function menu_mark(){document.menuop=arguments;} */

function menu_open()
{ 
 var i,x,tA,op,pp,wH,tA,aU,r1,k=-1,kk=-1,mt=new Array(1,'','');
 if(document.menuop){mt=document.menuop;}op=mt[0];
 if(op<1){return;}
 tA=document.getElementById('menunav').getElementsByTagName("A");wH=window.location.href;r1=/index\.[\S]*/i;for(i=0;i<tA.length;i++){
 if(tA[i].href){aU=tA[i].href.replace(r1,'');
 if(op>0){ if(tA[i].href==wH||aU==wH){k=i;kk=-1;break;} }if(op==2)
 {if(tA[i].firstChild)
 {
 if(tA[i].firstChild.nodeValue==mt[1]){kk=i;}}
 }
 if(op==3 && tA[i].href.indexOf(mt[1])>-1){kk=i;}if(op==4){for(x=1;x<mt.length;x+=2){
 if(wH.indexOf(mt[x])>-1)
 {
 if(tA[i].firstChild&&tA[i].firstChild.data)
 {
 if(tA[i].firstChild.data==mt[x+1]){kk=i;break;}
 }
 }}}}}k=(kk>k)?kk:k;
 if(k>-1){pp=tA[k].parentNode;
 while(pp){
 if(pp.nodeName=="LI"){pp.firstChild.className="menumark"+" "+pp.firstChild.className;}
 pp=pp.parentNode;}}
 if(kk>-1){document.menuad=1;}menu_adma();menu_admb();
}

<!-- 
if(document.layers){
	Refcapa='document.'
	Refestilo=''
	Reftop='.top'
	Refleft='.left'
}else if(document.all){
	Refcapa=''
	Refestilo='.style'
	Reftop='.pixelTop'
	Refleft='.pixelLeft'
} 

function mostrarcapa(capa){
	eval(Refcapa+capa+Refestilo+'.visibility="visible"');
	}  

function ocultarcapa(capa){
	eval(Refcapa+capa+Refestilo+'.visibility="hidden"');
	}
	
function pelicula()	{
	document.write('<TABLE width="100%" height="100%" cellpadding="0" cellspacing="0" border="0" bordercolor="yellow" bgcolor="#FFFFFF" align="center">')
	document.write('<tr><td height="210" style="padding-bottom:0px; padding-right:0px; padding-top:0px; padding-left:0px;" align="left">')
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="275" height="210" id="FLVPlayer">')
	document.write('<param name="movie" value="FLVPlayer_Progressive.swf" />')                                                                                                                                                                                                                                                                                   
	document.write('<param name="salign" value="lt" />')                                                                                                                                                                                                                                                                                                         
	document.write('<param name="quality" value="high" />')                                                                                                                                                                                                                                                                                                      
	document.write('<param name="scale" value="noscale" />')                                                                                                                                                                                                                                                                                                     
	document.write('<param name="bgcolor" value="#000000" />')                                                                                                                                                                                                                                                                                                   
	document.write('<param name="FlashVars" value="&skinName=clearSkin_1&streamName=videos/pelicula&autoPlay=false&autoRewind=true" />')                                                                                                                                                                                                                         
	document.write('<embed src="FLVPlayer_Progressive.swf" flashvars="&skinName=clearSkin_1&streamName=videos/pelicula&autoPlay=false&autoRewind=true" quality="high" scale="noscale" bgcolor="#000000" width="275" height="210" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
	document.write('</object></td></tr>')
	document.write('<tr><td height="32" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>')
	document.write('<td width="30" height="32" align="center" valign="middle" bgcolor="#000000"><img src="img/home/boton_video.gif" width="14" height="9"></td>')
/* titulo */
	document.write('<td width="245" align="left" valign="middle" bgcolor="#000000"><span style="color:#FFFFFF; font-weight:bold; -SIZE: 10px;">Keane - Bend And Break</span> </td></tr></table>')
	document.write('</td></tr>')	
	document.write('</TABLE>')
}	

function videoclip()	{
	document.write('<TABLE width="100%" height="100%" cellpadding="0" cellspacing="0" border="0" bordercolor="yellow" bgcolor="#000000" align="center">')
	document.write('<tr><td height="32" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>')
	document.write('<td width="30" height="32" align="center" valign="middle"><img src="img/home/boton_video.gif" width="14" height="9"></td>')
/* titulo */
/*document.write('<td width="223" align="left" valign="middle"><span style="color:#FFFFFF; font-weight:bold; -SIZE: 10px;"><img src="img/home/TextoVideoclip.png" width="207" height="20"></span></td>') */
  document.write('<td width="223" align="left" valign="middle"><span style="color:#FFFFFF; font-weight:bold; -SIZE: 10px;">Heroes del Silencio - Sirena Varada</span></td>') 
  document.write('<td width="47" align="center" valign="middle"><a href="http://www.heroesdelsilencio.com/" target="_blank"><img src="img/home/heroes25x25.bmp" width="25" height="25" border="0"></a></td></tr></table>')
	document.write('</td></tr>')
	document.write('<tr><td height="227" style="padding-bottom:0px; padding-right:0px; padding-top:0px; padding-left:0px;" align="left">')
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="300" height="221" id="FLVPlayer">')
  document.write('<param name="movie" value="FLVPlayer_Progressive.swf" />')
  document.write('<param name="salign" value="lt" />')
  document.write('<param name="quality" value="high" />')
  document.write('<param name="scale" value="noscale" />')
  document.write('<param name="bgcolor" value="#000000" />')
  document.write('<param name="FlashVars" value="&skinName=clearSkin_1&streamName=videos/videoclip&autoPlay=false&autoRewind=true" />')
  document.write('<embed src="FLVPlayer_Progressive.swf" flashvars="&skinName=clearSkin_1&streamName=videos/videoclip&autoPlay=false&autoRewind=true" quality="high" scale="noscale" bgcolor="#000000" width="300" height="221" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
	document.write('</object></td></tr>')
	document.write('</TABLE>')
}	
	
function diapositivas()  {

SLIDES = new slideshow("SLIDES");
SLIDES.timeout = 5000;
SLIDES.prefetch = 2;
SLIDES.repeat = true;

s = new slide();
s.src =  " slideshow/handskull/handskull_norway.png";
s.text = unescape("");
s.link = " http://www.zazzle.com/handskull ";
s.target = "";
s.attr = "width:250;height:380";
s.filter = "";
SLIDES.add_slide(s);

s = new slide();
s.src =  " slideshow/handskull/handskull_finland.png";
s.text = unescape("");
s.link = "http://www.zazzle.com/handskull";
s.target = "";
s.attr = "width:250;height:380";
s.filter = "";
SLIDES.add_slide(s);

s = new slide();
s.src =  " slideshow/handskull/handskull_denmark.png";
s.text = unescape("");
s.link = "http://www.zazzle.com/handskull";
s.target = "";
s.attr = "width:250;height:380";
s.filter = "";
SLIDES.add_slide(s);

s = new slide();
s.src =  " slideshow/handskull/handskull_germany.png";
s.text = unescape("");
s.link = "http://www.zazzle.com/handskull";
s.target = "";
s.attr = "width:250;height:380";
s.filter = "";
SLIDES.add_slide(s);

s = new slide();
s.src =  " slideshow/handskull/handskull_sweden.png";
s.text = unescape("");
s.link = "http://www.zazzle.com/handskull";
s.target = "";
s.attr = "width:250;height:380";
s.filter = "";
SLIDES.add_slide(s);

s = new slide();
s.src =  " slideshow/handskull/handskull_spain.png";
s.text = unescape("");
s.link = "http://www.zazzle.com/handskull";
s.target = "";
s.attr = "width:250;height:380";
s.filter = "";
SLIDES.add_slide(s);

s = new slide();
s.src =  " slideshow/handskull/handskull_go.png";
s.text = unescape("");
s.link = "http://www.zazzle.com/handskull";
s.target = "";
s.attr = "width:250;height:380";
s.filter = "";
SLIDES.add_slide(s);

s = new slide();
s.src =  " slideshow/handskull/handskull_aland.png";
s.text = unescape("");
s.link = "http://www.zazzle.com/handskull";
s.target = "";
s.attr = "width:250;height:380";
s.filter = "";
SLIDES.add_slide(s);

s = new slide();
s.src =  " slideshow/handskull/handskull_brazil.png";
s.text = unescape("");
s.link = "http://www.zazzle.com/handskull";
s.target = "";
s.attr = "width:250;height:380";
s.filter = "";
SLIDES.add_slide(s);

if (true) SLIDES.shuffle();

nodivtext = SLIDES.get_all_text("<li>", "<p>\n");
if (nodivtext) {
  document.write("<UL>\n" + nodivtext + "\n</UL>");
}

document.write('<div><a href="javascript:SLIDES.hotlink()"><img src=" slideshow/handskull/handskull_denmark.png" alt="Grad Photo Slide Show Will Start Here" name="SLIDESIMG" width="250" height="380" hspace="0" vspace="0" BORDER=0 align="top" STYLE="filter:progid:DXImageTransform.Microsoft.GradientWipe()"></a></div>')

if (document.images) {
  SLIDES.image = document.images.SLIDESIMG;
  SLIDES.textid = "SLIDESTEXT";
  SLIDES.update();
  SLIDES.play();
}
}

function ventanaradio(titulo){ 
ventana11=window.open(' radio/radio.htm ','ventanaradio','scrollbars=no,resizable=no,width=250,height=300,status=no,location=no,toolbar=no');   
}



