// Generate a Random Number
var rndnm = Math.round(Math.random()*25);

// Select a random background and execute the corresponding function
if (rndnm == 1)
{header1();}

else if (rndnm == 2)
{header2();}

else if (rndnm == 3)
{header3();}

else if (rndnm == 4)
{header4();}

else if (rndnm == 5)
{header5();}

else if (rndnm == 6)
{header6();}

else if (rndnm == 7)
{header5();}

else if (rndnm == 8)
{header8();}

else if (rndnm == 9)
{header9();}

else if (rndnm == 10)
{header10();}

else if  (rndnm == 11)
{header11();}

else if (rndnm == 12)
{header12();}

else if (rndnm == 13)
{header13();}

else if (rndnm == 14)
{header14();}

else if (rndnm == 15)
{header15();}

else if (rndnm == 16)
{header16();}

else if (rndnm == 17)
{header17();}

else if (rndnm == 18)
{header18();}

else if (rndnm == 19)
{header19();}

else if (rndnm == 20)
{header20();}

else if  (rndnm == 21)
{header21();}

else if (rndnm == 22)
{header22();}

else if (rndnm == 23)
{header23();}

else if (rndnm == 24)
{header24();}

else {header25();}


//Functions to write out the correct flash header resource.

function header1(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image1.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header2(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image2.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header3(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image3.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header4(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image4.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header5(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image5.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header6(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image6.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header7(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image7.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header8(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image8.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header9(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image9.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header10(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image10.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header11(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image11.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header12(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image12.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header13(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image13.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header14(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image14.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header15(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image15.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header16(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image16.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header17(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image17.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header18(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image18.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header19(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image19.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header20(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image20.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header21(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image21.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header22(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image22.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header23(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image23.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header24(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image24.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}
function header25(){
document.write("<td height='700' style='background-image: url(/includes/images/content/image25.jpg); background-position: bottom; background-repeat: no-repeat;'>")
}

