// Product Feature Randomize -------------------->
function rand_number(n)
{
	var x;
	x=Math.round(Math.random()*100);
	x%=n;
	return x;
}
function ProductImage()
{
	var img = new Array();
	img[0]='<a href="/sound_isolation_xpanders/sound_isolation_xpanders.asp"><img src="/common/product_feature2.jpg" alt="Auralex Acoustics - Sound Isolation Products - AuralXpanders" border=0></a>';
	img[1]='<a href="/sound_absorption_propanels/sound_absorption_propanels.asp"><img src="/common/product_feature4.jpg" alt="Auralex Acoustics - Sound Absorption Products - B24 ProPanels" border=0></a>';
	img[2]='<a href="/sound_isolation_hoverdeck/sound_isolation_hoverdeck.asp"><img src="/common/product_feature3.jpg" alt="Auralex Acoustics - Sound Isolation Products - HoverDeck Isolation Riser" border=0></a>';
	var n=rand_number(3); 
	document.write(img[n]);
}
//-->

// Profile Feature Randomize -------------------->
function rand_number(n)
{
	var x;
	x=Math.round(Math.random()*100);
	x%=n;
	return x;
}
function ArtistImage()
{
	var img = new Array();
	img[0]='<a href="/profiles/profiles.asp?Pro=Bran"><img src="/common/artist_feature5.jpg" alt="Auralex Acoustics - Music Industry Profiles - Branford Marsalis" border=0></a>';
	img[1]='<a href="/profiles/profiles.asp?Pro=Serj"><img src="/common/artist_feature4.jpg" alt="Auralex Acoustics - Music Industry Profiles - Serj" border=0></a>';
	img[2]='<a href="/profiles/profiles.asp?Pro=Rock"><img src="/common/artist_feature6.jpg" alt="Auralex Acoustics - Music Industry Profiles - Rock Hall of Fame" border=0></a>';
	var n=rand_number(3); 
	document.write(img[n]);
}
//-->

// Image Popup With Resizing -------------------->
function CaricaFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width+20;
  altez=foto1.height+30;
  stringa="width="+largh+",height="+altez;
  finestra=window.open(img,"",stringa);
  finestra.focus;
}
//-->

// Simple Image Rollover -------------------->

image0 = new Image();
image0.src = "/common/button_n.gif";

image1 = new Image();
image1.src = "/common/button_n.gif";

image2 = new Image();
image2.src = "/common/button_n.gif";

//-->

// ShowHide Content -------------------->

function getEl(el) {
    return document.all ? document.all[el] : document.getElementById(el);
}


function ShowHide(index) {
    var el = getEl(index);
    if(el.style.display == 'none')
        el.style.display = '';
    else
        el.style.display = 'none';
}
        
//-->