function showSpecials()
{
	specials=new Array();

	/*specials[0]=new Special()
	specials[0].imgSRC="http://allmedwholesale.com/images/DisplayImatyuyge.jpg"
	specials[0].imgWidth="100";
	specials[0].imgHeight="78";
	specials[0].productName="Compact Percus <font color='red'>(Each)</font>";
	specials[0].productManufacturer="HoMedics® ";
	specials[0].productURL="http://allmedwholesale.com/index.php?main_page=product_info&products_id=533";
	specials[0].productDescription="Lightweight design and easy to hold and use. Powerful percussion action, deep tissue style massage. Soothing heat and variable intensity (2 settings).";
	specials[0].offerName="Limited Offer";
	specials[0].price=78.65;
	specials[0].discountedPrice=32.27;


	specials[1]=new Special()
	specials[1].imgSRC="http://allmedwholesale.com/images/DisplayI3mage6.jpg"
	specials[1].imgWidth="95";
	specials[1].imgHeight="74";
	specials[1].productName="Invacare® Button Opener and Zipper(Case)";
	specials[1].productManufacturer="";
	specials[1].productURL="http://allmedwholesale.com/index.php?main_page=product_info&products_id=284";
	specials[1].productDescription="Creates proper leverage with minimal stress in assisting those with arthitic hands or limited dexterity to button or zip clothing.";
	specials[1].offerName="Limited Offer";
	specials[1].price=353.00;
	specials[1].discountedPrice=325.38;
	*/

	specials[0]=new Special()
	specials[0].imgSRC="http://allmedwholesale.com/images/AmericanFlag1.gif"
	specials[0].imgWidth="280";
	specials[0].imgHeight="160";
	specials[0].productName="<BR><BR>&nbsp;&nbsp;Season's Greetings and a Happy New year";
	/*
	specials[0].productManufacturer="HoMedics® ";
	specials[0].productURL="http://allmedwholesale.com/index.php?main_page=product_info&products_id=533";
	specials[0].productDescription="Lightweight design and easy to hold and use. Powerful percussion action, deep tissue style massage. Soothing heat and variable intensity (2 settings).";
	specials[0].offerName="Limited Offer";
	specials[0].price=78.65;
	specials[0].discountedPrice=32.27;*/


	/*
	specials[1]=new Special()
	specials[1].imgSRC="http://allmedwholesale.com/images/AmericanFlag2.gif"
	specials[1].imgWidth="100";
	specials[1].imgHeight="74";
	specials[1].productName="Invacare® Button Opener and Zipper(Case)";
	specials[1].productManufacturer="";
	specials[1].productURL="http://allmedwholesale.com/index.php?main_page=product_info&products_id=284";
	specials[1].productDescription="Creates proper leverage with minimal stress in assisting those with arthitic hands or limited dexterity to button or zip clothing.";
	specials[1].offerName="Limited Offer";
	specials[1].price=353.00;
	specials[1].discountedPrice=325.38;
	*/





	/*#######################################*/
	/*#######################################*/

			/*DONOT CHANGE ANYTHING BELOW*/

	/*#######################################*/
	/*#######################################*/
	
	imgStr='';
	productLinkStr='';
	priceStr=''
	manufacturerStr=''
	index=0;
	
	index=(Math.floor(Math.random()*specials.length))
	if(specials[index].imgSRC.length>0)
		imgStr='<a href="'+specials[index].productURL+'"><img src="'+specials[index].imgSRC+'" border=0 height="'+specials[index].imgHeight+
						'" width="'+specials[index].imgWidth+'" alt="'+specials[index].productName+'"></a>'


	if(specials[index].productURL.length>0)
		productLinkStr='<a href="'+specials[index].productURL+'"><font color="#FBFE03"><b>... more info</b></font></a>'
		//productLinkStr='<a href="'+specials[index].productName+'">'+specials[index].productName+'</a>'

	if(specials[index].offerName.length>0)
		priceStr=	'<font color="red"><b>'+specials[index].offerName+'</b></font>'
							+'<BR>'
							+'(<span style="text-decoration:line-through">$'+specials[index].price+'</span>-$'+specials[index].getDiscountedPrice()+')'

	if(specials[index].productManufacturer.length>0)
		manufacturerStr='<br><b>Manufacturer:</b> '+specials[index].productManufacturer
		//productLinkStr='<a href="'+specials[index].productName+'">'+specials[index].productName+'</a>'



	dataStr=	'<DIV class=centerBoxWrapper id=featuredProducts style="background-color:#9CD1F6">'
						+'<div class=centerBoxHeading style="background-color:#047CD1"><img src="http://www.allmedwholesale.com/images/specialOffers.gif"></div>'
						+'<table border=0>'
						+' <tr>'
						+'<td valign="top">'+imgStr+'</td>'
						+'<td valign="top" rowspan=2 class="centeredContent" style="text-align:justify"><b>'+specials[index].productName+'</b><BR><BR>'+specials[index].productDescription+' '+productLinkStr	+' '+manufacturerStr
						+'<p align="right"><a href="http://allmedwholesale.com/index.php?main_page=featured_products"><img src="http://www.allmedwholesale.com/images/button_view_offers_on.gif" align="right" border=0></a></p></td>'
						+'</tr>'
						+' <tr>'
						+'<td valign="top" align="center">'+priceStr+'</td>'
						+'</tr>'
						+' </table>'
						+'</DIV>'
	
	document.write(dataStr)
}

function Special()
{
	this.productName="";
	this.productURL="";
	this.productDescription="";
	this.productManufacturer="";
	this.price=0;
	this.discountedPrice=0;
	this.discountRate=0;

	this.offerName="";

	this.imgWidth="100%";
	this.imgHeight="100%";
	this.imgSRC="";
	this.getDiscountedPrice=SpecialGetDiscountedPrice;
}

function SpecialGetDiscountedPrice()
{
	if(parseInt(this.discountedPrice)>0)
		return this.discountedPrice
	else
		return this.price- (this.price*this.discountRate)/100
}