// JavaScript Document


// Random image Rotation for inside page header

function random_imglink(){
  var myimages=new Array()
  //specify random images below. You can have as many as you wish
  myimages[1]="images/inside_header_left1.jpg"
  myimages[2]="images/inside_header_left2.jpg"
  myimages[3]="images/inside_header_left3.jpg"
  myimages[4]="images/inside_header_left4.jpg"
  myimages[5]="images/inside_header_left5.jpg"

  var ry=Math.floor(Math.random()*myimages.length)

  if (ry==0)
     ry=1
     document.write('<img src="'+myimages[ry]+'" border=0>')
}


// Random image Rotation for home page header

function home_random_imglink(){
  var myimages=new Array()
  //specify random images below. You can have as many as you wish
  myimages[1]="images/home_header_left1.jpg"
  myimages[2]="images/home_header_left2.jpg"
  myimages[3]="images/home_header_left3.jpg"
  myimages[4]="images/home_header_left4.jpg"
  myimages[5]="images/home_header_left5.jpg"

  var ry=Math.floor(Math.random()*myimages.length)

  if (ry==0)
     ry=1
     document.write('<img src="'+myimages[ry]+'" border=0>')
}


// JQuery function to pull active state off links on click - fixes "coming soon" rollover problem in IE 6 and 7

$(document).ready(function() {
	$('a').click(function() {
		this.blur();
	});	
 });


// JQuery function to trigger lightbox on any "a" tag with the class of "lb"

$(function() {
	$('a.lb').lightBox();
	$('#product-left a').lightBox();
});