// Random Image Generator

//var pic = new Array ()
//pic[0] = '<a href="http://www.canvaswash.com"><img src="images/index_web_design_title.gif" height="60" alt="whatever"><\/a>';;
//pic[1] = "images/index_graphic_design_title.gif";
//pic[2] = "images/index_news_title.gif";

// get a random integer between 0 and 2
//var rand = Math.floor(Math.random() * 3);

//function randomImage (){document.write('<img src="'+pic[rand]+'">');}


var max=3;
var thisBanner2=1;
var banner2=new MakeBannerArray(max);


function MakeBannerArray(n)
{
this.length=n;
for (var i=1; i<=n;i++)
{
this[i]="";
}
return this;
} 

banner2[1]='<a href="http://www.whitefacedesign.com"><img src="images/news_banner_credit_crunch_survival.gif" target="blank" alt="Credit Crunch Survival"><\/a> What can companies be doing to stay ahead in todays harsh business environment.';
banner2[2]='<a href="http://www.canvaswash.com"><img src="images/index_3d_title.gif" height="60" border="0" alt="whatever"><\/a>';
banner2[3]='<a href="http://www.canvaswash.com"><img src="images/index_news_title.gif" height="60" alt="whatever"><\/a>';

function rand(n)
      {
      rnum=Math.floor(n*Math.random())+1;
      return rnum;
      } 

function setBanner2()
      {
      thisBanner2=rand(max);
      } 


