// JavaScript Document
var productValue = new Array(2);

function rotateNewProducts(){
  var lower = 1;
  var upper = 5;
  
<!--    productValue[0] = Math.floor(Math.random( ) * (upper - lower + 1)) + lower; -->
<!-- Temporary thing until the eChair isn't new anymore -->
    productValue[0] = 5;
	productValue[1] = productValue[0];
	
	while (productValue[1] == productValue[0]) {
	  productValue[1] = Math.floor(Math.random( ) * (upper - lower + 1)) + lower;		
	}
	
	// alert( productValue[0] + " , " + productValue[1]);
}

function writeNewProduct(position){
	
	 // alert( product + " , " + productValue[product]);

	 switch (productValue[position]) {
	  case 1: 
	  	document.write("		      <a href='/store/massage/harmony3_massage_table.html' title='Harmony 3 Massage Table'>" +
			 "  <img src='/store/massage/images/harmony3_150.jpg' alt='Harmony 3 Massage Table' width='150' height='150' border='0'>" +
			 " </a><br>" +
             " <a href='/store/massage/harmony3_massage_table.html' title='Harmony 3 Massage Table'>" +
			 "   <img src='images3/vendor_logo/earthlite.gif' alt='EarthLite' width='130' height='31' border='0'><br>" +
             "   Harmony 3 Massage Table" +
			 " </a><br>" +
             " <span class='price'>$299.99</span>");
		break;
	  case 2: 
	  	document.write("		      <a href='/store/relaxing/dreamtime_sleep_mask.html' title='DreamTime Sleep Mask'>" +
			 "   <img src='/store/relaxing/images/dreamtime_sleep_mask_150.jpg' alt='DreamTime Sleep Mask' width='150' height='150' border='0'>" +
			 " </a><br>" +
             " <a href='/store/relaxing/dreamtime_sleep_mask.html' class='link' title='DreamTime Sleep Mask'>" +
			 "   <img src='images3/vendor_logo/dreamtime.gif' alt='DreamTime' width='130' height='31' border='0'><br>" +
             "   DreamTime Sleep Mask" +
			 " </a><br>" +
             " <span class='price'>$19.99</span>");
		break;
	  case 3: 
	  	document.write("		      <a href='/store/relaxing/tranquility_mask.html' title='Tranquility Mask'>" +
			 "   <img src='/store/relaxing/images/tranquility_mask_150.jpg' alt='Tranquility Mask' width='150' height='150' border='0'>" +
			 " </a><br>" +
             " <a href='/store/relaxing/tranquility_mask.html' class='link' title='Tranquility Mask'>" +
             "   Tranquility Mask" +
			 " </a><br>" +
             " <span class='price'>$29.99</span>");
		break;
	  case 4: 
	  	document.write("		      <a href='/store/sitting/spine_align.html' title='Spine Align with Backrest'>" +
			 "   <img src='/store/sitting/images/spine_align_150.jpg' alt='Spine Align with Backrest' width='150' height='150' border='0'>" +
			 " </a><br>" +
             " <a href='/store/sitting/spine_align.html' class='link' title='Spine Align with Backrest'>" +
             "   Spine Align with Backrest" +
			 " </a><br>" +
             " <span class='price'>$79.99</span>");
		break;
	  case 5: 
	  	document.write("		      <a href='/store/sitting/echair/echair.htm' title='eChair'>" +
			 "  <img src='/store/sitting/echair/EchairImages/EchairPolished_150.jpg' alt='eChair' width='150' height='150' border='0'>" +
			 " </a><br>" +
             " <a href='/store/sitting/echair/echair.htm' title='eChair'>" +
			 "   <img src='images3/vendor_logo/healthyback.gif' alt='HealthyBack' width='130' height='31' border='0'><br>" +
             "   Healthy Back eChair" +
			 " </a><br>" +
             " <span class='price'>From $399.99</span>");
		break;
	  default: ;
	}
}