// Bruce Chao 12/3/2005:
// This script is dynamically generated in the user control :
// MainContent.ascx
//
// Put all rotating images here
// order doesn't matter
var myimages = new Array(
'photo10_cherokee.jpg',
'photo2_charlotte.jpg',
'photo3_ocracoke.jpg',
'photo1_seagrove.jpg'
);
var mylinks = new Array(
'http://www.visitnc.com/',
'http://www.visitnc.com/',
'http://www.visitnc.com/',
'http://www.visitnc.com/'
);
var myalts = new Array(
'Photo of Native American basket weaver in Cherokee, NC.',
'Photo of uptown skyline at twilight in Charlotte, NC.',
'Photo of Ocracoke Island Lighthouse, Ocracoke, NC.',
'Photo of potter displaying his wares in Seagrove, NC.'
);
var max = myimages.length;
var num = Math.floor((Math.random() * max));
document.writeln('<a href="' + mylinks[num] + '"><img border="0" alt="' + myalts[num] + '" ' + 
       ' name="masthead" id="masthead" src="/images/rotate/' + myimages[num] + 
      ' " width="285" height="200"></a>');

