// BEGIN RANDOM MASTHEAD BACKGROUND SCRIPT
mastbg = new Array
mastbg[0]="http://www.nwsource.com/images/ui/bg_images/pattern1.gif"
mastbg[1]="http://www.nwsource.com/images/ui/bg_images/pattern28.gif"
mastbg[2]="http://www.nwsource.com/images/ui/bg_images/pattern3.gif"
mastbg[3]="http://www.nwsource.com/images/ui/bg_images/pattern4.gif"
mastbg[4]="http://www.nwsource.com/images/ui/bg_images/pattern30.gif"
mastbg[5]="http://www.nwsource.com/images/ui/bg_images/pattern1.gif"
mastbg[6]="http://www.nwsource.com/images/ui/bg_images/pattern7.gif"
mastbg[7]="http://www.nwsource.com/images/ui/bg_images/pattern8.gif"
mastbg[8]="http://www.nwsource.com/images/ui/bg_images/pattern15.gif"
mastbg[9]="http://www.nwsource.com/images/ui/bg_images/pattern16.gif"
mastbg[10]="http://www.nwsource.com/images/ui/bg_images/pattern11.gif"

// Create a random number, multiplier is same number as highest number in array
randomize = (Math.round((Math.random()*10)));

// Write the style tag with a random array element
document.write("<style>");
document.write(".mastleft{");
document.write("background-image: url(" + mastbg[randomize] + ");");
document.write("background-position: top left;");
document.write("}\n");
document.write(".mast{");
document.write("background-image: url(" + mastbg[randomize] + ");");
document.write("background-position: top right;background-repeat:no-repeat;");
document.write("}");
document.write("</style>");
// END RANDOM MASTHEAD BACKGROUND SCRIPT