/***********************************************
// Image change on Rollover
/***********************************************/
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}


function subMenu(id,action)
{
	if (action==1) document.getElementById(id).style.visibility='visible';
	if (action==0) document.getElementById(id).style.visibility='hidden';
}

/***********************************************
//Preload de los botones del header
/***********************************************/
if (document.images)
{
  pica1= new Image();pica1.src="gfx/b12.gif"; 
  pica2= new Image();pica2.src="gfx/b22.gif"; 
  pica3= new Image();pica3.src="gfx/b32.gif"; 
  pica4= new Image();pica4.src="gfx/b42.gif"; 
  pica5= new Image();pica5.src="gfx/b52.gif"; 
}

/***********************************************
//Escribe el menu principal
/***********************************************/
function menu()
{
	document.write('<td><a href="aboutjo.htm" target="content" onfocus=this.blur() onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'b11\',\'\',\'gfx/b12.gif\',1);"><img name="b11" border="0" src="gfx/b11.gif" height="25" width="80"  alt="About Jo"></a></td>');
	document.write('<td><a href="designs.htm" target="content" onfocus=this.blur() onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'b21\',\'\',\'gfx/b22.gif\',1);"><img name="b21" border="0" src="gfx/b21.gif" height="25" width="83"  alt="Design"></a></td>');
	document.write('<td><a href="upshows.php" target="content" onfocus=this.blur() onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'b31\',\'\',\'gfx/b32.gif\',1);"><img name="b31" border="0" src="gfx/b31.gif" height="25" width="141" alt="Upcoming Shows"></a></td>');
	document.write('<td><a href="links.php"   target="content" onfocus=this.blur() onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'b41\',\'\',\'gfx/b42.gif\',1);"><img name="b41" border="0" src="gfx/b41.gif" height="25" width="69"  alt="Links"></a></td>');
	document.write('<td><a href="contact.htm" target="content" onfocus=this.blur() onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'b51\',\'\',\'gfx/b52.gif\',1);"><img name="b51" border="0" src="gfx/b51.gif" height="25" width="78"  alt="Contact"></a></td>');
	document.write('<td width=100% background="gfx/menubg.gif"></td>');
}

function fades()
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="328" height="500" id="jobangles" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="jobangles.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" />');
	document.write('<embed src="jobangles.swf" quality="high" wmode="transparent" width="328" height="500" name="jobangles" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}

function categoria(cat)
{
	document.location.href='designs.php?category='+cat+'&ancho='+document.body.clientWidth;
}

function jewelON(id)
{
	document.getElementById(id).style.border="1px solid #8C7652";
	document.getElementById('txt'+id).style.color="#8C7652";
}

function jewelOFF(id)
{
	document.getElementById(id).style.border="1px solid #DFB5BD";
	document.getElementById('txt'+id).style.color="#DFB5BD";
}

function PopupPic(sPicURL)
{ 
	window.open("popupWindow.php?"+sPicURL, "Moonflower", "resizable=1,HEIGHT=200,WIDTH=200");
}