

// ========================== variables =========================================

//  home page featured clients
var arrFeatures = null;     // array to hold featured client info 
var iFeatures   = 3;        // Adjust the number of clients here
var iCurFeature = 0;        // randomly picked to get info from the client array


// ========================== functions =========================================

// ------------------------ browser fixup routines ------------------------------

//tmtC_NNresizeFix
if (document.layers) 
  {
  origWidth = innerWidth;
  origHeight = innerHeight;
  }


function reDo() 
  {
  if (innerWidth != origWidth || innerHeight != origHeight) location.reload();
  }


if (document.layers) onresize = reDo;

//tmtC_NNresizeFixEnd


/******************************************************************************
  arrFeatures is a multidimensional array to hold the dynamic feature 
    information for populating the home page.
    
    To add another feature, simply copy a set of elements from below, increment the
    number in brackets and populate the values accordingly.
    
    In addition, must increment the number of iFeatures above (Top of this file) - BP
*******************************************************************************/
arrFeatures = new Array();
			
arrFeatures[0] = new Array();
arrFeatures[0].text = "<table width='200' border='1' cellspacing='0' cellpadding='0'>" +
	"<tr>" +
	"<td rowspan='2' class='boxleft'></td>" +
	"<td width='179'><img src='/sanford/consumer/papermate/images/rw-01_top.jpg' alt='image' width='180' height='2' class='block' /></td>" +
	"<td rowspan='2' class='boxright'></td>" +
	"</tr>" +
	"<tr>" +
	"<td><img src='/sanford/consumer/papermate/images/bg_w_header.jpg' alt='image' width='180' height='190' />" +
	"<p class='windowtext' align='right'>" +
	"<a href='/sanford/consumer/papermate/jhtml/product/product_detail.jhtml?attributeId=7500001&currentType=SNTYPE004&nextType=noValue&categoryType=SNTYPE001&categoryAttributeId=SNATT10013&resetAttribute=SNATT20016&resetType=SNTYPE002'>Learn more... " +
	"<img src='/sanford/consumer/papermate/images/arrow_right.gif' alt='-&gt;' width='9' height='9' border='0' /></a></p></td>" +
	"</tr>" +
	"<tr>" +
	"<td><img src='/sanford/consumer/papermate/images/rw-02_low_left.gif' alt='image' width='17' height='11' class='block' /></td>" +
	"<td><img src='/sanford/consumer/papermate/images/rw-02_btm.gif' alt='image' width='179' height='11' class='block' /></td>" +
	"<td><img src='/sanford/consumer/papermate/images/rw-02_low_left.gif' alt='image' width='4' height='11' class='block' /></td>" +
	"</tr>" +
	"</table>";


arrFeatures[1] = new Array();
arrFeatures[1].text = "	<table width='200' border='0' cellspacing='0' cellpadding='0' background='/sanford/consumer/papermate/images/randomPromo2a.jpg'>" +
	"<tr>" +
	"<td width='17'><img src='/sanford/consumer/papermate/images/rw-02_up_left.gif' alt='image' width='17' height='10' class='block' /></td>" +
	"<td width='179' colspan='3'><img src='/sanford/consumer/papermate/images/rw-02_top.gif' alt='image' width='179' height='10' class='block' /></td>" +
	"<td width='4'><img src='/sanford/consumer/papermate/images/rw-02_up_right.gif' alt='image' width='4' height='10' class='block' /></td>" +
	"</tr>" +
	"<tr>" +
	"<td width='17' rowspan='3' class='boxleft'><img src='/sanford/consumer/papermate/images/spacer.gif' alt='image' width='17' height='189' /></td>" +
	"<td width='10'><img src='/sanford/consumer/papermate/images/spacer.gif' alt='image' width='10' height='14' /></td>" +
	"<td width='159'></td>" +
	"<td width='10'><img src='/sanford/consumer/papermate/images/spacer.gif' alt='image' width='10' height='14' /></td>" +
	"<td width='4' rowspan='3' class='boxright'><img src='/sanford/consumer/papermate/images/spacer.gif' alt='image' width='4' height='189' /></td>" +
	"</tr>" +
	"<tr>" +
	"<td colspan='3'></td>" +
	"</tr>" +
	"<tr>" +
	"<td><img src='/sanford/consumer/papermate/images/spacer.gif' alt='image' width='1' height='150' /></td>" +
	"<td><img src='/sanford/consumer/papermate/images/spacer.gif' alt='image' width='1' height='160' /><strong><a href='http://www.papermate.com/songs' target='_blank'>Learn more...<img src='/sanford/consumer/papermate/images/arrow_right.gif' alt='image' width='9' height='9' border='0'  /></a></td>" +
	"<td><img src='/sanford/consumer/papermate/images/spacer.gif' alt='image' width='10' height='69' /></td>" +
	"</tr>" +
	"<tr>" +
	"<td><img src='/sanford/consumer/papermate/images/rw-02_low_left.gif' alt='image' width='17' height='11' class='block' /></td>" +
	"<td colspan='3'><img src='/sanford/consumer/papermate/images/rw-02_btm.gif' alt='image' width='179' height='11' class='block' /></td>" +
	"<td><img src='/sanford/consumer/papermate/images/rw-02_low_left.gif' alt='image' width='4' height='11' class='block' /></td>" +
	"</tr>" +
	"</table>";
	
arrFeatures[2] = new Array();
arrFeatures[2].text = "	<table width='200' border='0' cellspacing='0' cellpadding='0' background='/sanford/consumer/papermate/images/randomPromo3.jpg'>" +
	"<tr>" +
	"<td width='17'><img src='/sanford/consumer/papermate/images/rw-02_up_left.gif' alt='image' width='17' height='10' class='block' /></td>" +
	"<td width='179' colspan='3'><img src='/sanford/consumer/papermate/images/rw-02_top.gif' alt='image' width='179' height='10' class='block' /></td>" +
	"<td width='4'><img src='/sanford/consumer/papermate/images/rw-02_up_right.gif' alt='image' width='4' height='10' class='block' /></td>" +
	"</tr>" +
	"<tr>" +
	"<td width='17' rowspan='3' class='boxleft'><img src='/sanford/consumer/papermate/images/spacer.gif' alt='image' width='17' height='189' /></td>" +
	"<td width='10'><img src='/sanford/consumer/papermate/images/spacer.gif' alt='image' width='10' height='14' /></td>" +
	"<td width='159'></td>" +
	"<td width='10'><img src='/sanford/consumer/papermate/images/spacer.gif' alt='image' width='10' height='14' /></td>" +
	"<td width='4' rowspan='3' class='boxright'><img src='/sanford/consumer/papermate/images/spacer.gif' alt='image' width='4' height='189' /></td>" +
	"</tr>" +
	"<tr>" +
	"<td colspan='3'></td>" +
	"</tr>" +
	"<tr>" +
	"<td><img src='/sanford/consumer/papermate/images/spacer.gif' alt='image' width='1' height='150' /></td>" +
	"<td><img src='/sanford/consumer/papermate/images/spacer.gif' alt='image' width='1' height='160' /><strong><a href='http://www.papermate.com/writebros' target='_blank'>Learn more...<img src='/sanford/consumer/papermate/images/arrow_right.gif' alt='image' width='9' height='9' border='0'  /></a></td>" +
	"<td><img src='/sanford/consumer/papermate/images/spacer.gif' alt='image' width='10' height='69' /></td>" +
	"</tr>" +
	"<tr>" +
	"<td><img src='/sanford/consumer/papermate/images/rw-02_low_left.gif' alt='image' width='17' height='11' class='block' /></td>" +
	"<td colspan='3'><img src='/sanford/consumer/papermate/images/rw-02_btm.gif' alt='image' width='179' height='11' class='block' /></td>" +
	"<td><img src='/sanford/consumer/papermate/images/rw-02_low_left.gif' alt='image' width='4' height='11' class='block' /></td>" +
	"</tr>" +
	"</table>";
/**********************************************************************
  wrtFeature
   writes out the randomly selected feature from the array data
**********************************************************************/
function wrtPromotion()
{
  var sHTML;    //HTML string to be written to the user's browser
  iCurFeature = Math.round(Math.random() * (iFeatures - 1));
  sHTML = arrFeatures[iCurFeature].text;
  
  document.write(sHTML);
}
