<!--
/*  You can get this script and many others 
    by visiting JavaScript City at: http://www.javascriptcity.com . */

pic_width=200;   /*change to match the height of all your images */
pic_height=175;   /* change to match the width of all your images */
border_size=0;   /* change to the border size you want on the images */
alignment=1;      /* 0=left,1=center */

/* define image urls */

if (document.images)
 {
     pic0= new Image();
     pic0.src="siteart/home/a.jpg"; 
     pic1= new Image();
     pic1.src="siteart/home/b.jpg";  
     pic2= new Image(); 
     pic2.src="siteart/home/c.jpg"; 
     pic3= new Image();
     pic3.src="siteart/home/d.jpg";  
     pic4= new Image();
     pic4.src="siteart/home/e.jpg";  
     pic5= new Image();
     pic5.src="siteart/home/f.jpg";
     pic6= new Image(); 
     pic6.src="siteart/home/g.jpg"; 
     pic7= new Image();
     pic7.src="siteart/home/h.jpg";  
     //pic8= new Image();
     //pic8.src="siteart/home/i.jpg";
     img1on = new Image();
	 img1on.src="siteart/gift2.gif";
	 img1off = new Image();
	 img1off.src="siteart/gift.gif";
             
 }    

/* no need to edit past this point (unless you want to add more image slots) */

if (alignment==1)
 {
  cent_it="<CENTER>";
  cent_it2="<\/CENTER>";
 }
else
 {
  cent_it="";
  cent_it2="";
 }
 
function get_random(maxNum)
{
  if (Math.random && Math.round)
  {
    var ranNum= Math.round(Math.random()*(maxNum-1));
    ranNum+=1;
    return ranNum;
  }
  else
  {
  today= new Date();
  hours= today.getHours();
  mins=   today.getMinutes();
  secn=  today.getSeconds();
  if (hours==19)
   hours=18;
  var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
  return ranNum;
  }
}

function get_Image()
{
 if (document.images)
 {
  var choose_one= get_random(9);  
  choose_one--;

  var pics= new Array(9) 
   pics[0]=pic0.src;
   pics[1]=pic1.src;
   pics[2]=pic2.src;
   pics[3]=pic3.src;
   pics[4]=pic4.src;
   pics[5]=pic5.src;
   pics[6]=pic6.src;
   pics[7]=pic7.src;
   pics[8]=pic0.src;
   pics[9]=pic1.src;     

  document.write(cent_it+"<IMG SRC='"+pics[choose_one]+"' width='"+pic_width+"' alt='Where To Buy Desktops, Notebooks, Business Software' height='"+pic_height+"' border='"+border_size+"'>"+cent_it2);
 }
}

if (document.images){      //Active Images

img3on = new Image();
img3on.src = "siteart/register_2a.gif";
img4on = new Image();
img4on.src = "siteart/subscribe_2a.gif";
img5on = new Image();
img5on.src = "siteart/cs_2a.gif";

img3off = new Image();
img3off.src = "siteart/register_1a.gif";
img4off = new Image();
img4off.src = "siteart/subscribe_1a.gif";
img5off = new Image();
img5off.src = "siteart/cs_1a.gif";

}

//Function  to 'activate' images.
function imgOn(img1) {
  if (document.images) {
      document[img1].src = eval(img1 + "on.src");
   }
 }

//Function to 'deactivate' images.
function imgOff(img1) {
  if (document.images) {
      document[img1].src = eval(img1 + "off.src");
   }
 }
 
function Rcertify() 
{ 
popupWin = window.open('http://www.bbbonline.org/cks.asp?id=684000067', 'Participant','location=yes,scrollbars=yes,width=450,height=300'); 
window.name = 'opener'; 
} 

//HV Menu- by Ger Versluis (http://www.burmees.nl/)
//Submitted to Dynamic Drive (http://www.dynamicdrive.com)
//Visit http://www.dynamicdrive.com for this script and more

function Go(){return}

function WindowOpenUp(sURL)
{
	window.open(sURL,null,'height=380,width=640,status=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes,scrollbars=yes',false);
}

//This function makes sure the right column is not longer than the left nav column on the home page.
function evenOut()
{
	var tblRightHeight
	var tblLeftHeight
	
	tblRightHeight = document.getElementById('tblRight').offsetHeight;
	tblLeftHeight = document.getElementById('tblLeft').offsetHeight;
	
	if (tblRightHeight - tblLeftHeight > 0)
	{
		var tdLeftExtra
		tdLeftExtra = document.getElementById('tdLeftExtra');
		
		//For some reason, MSIE is always off by 1 pixel while NS is off by 3, hence the need for this if / else.
		if (navigator.appName == "Microsoft Internet Explorer")
		{
			tdLeftExtra.style.height=(tblRightHeight-tblLeftHeight+1) + "px";
		}
		else
		{
			tdLeftExtra.style.height=(tblRightHeight-tblLeftHeight+3) + "px";
		}
	}
}

//-->