var randomnumber = Math.round(Math.random()*12);
if (randomnumber == 1)
{movie1();}
else if (randomnumber == 2)
{movie2();}
else if (randomnumber == 3)
{movie3();}
else if (randomnumber == 4)
{movie4();}
else if (randomnumber == 5)
{movie5();}
else if (randomnumber == 6)
{movie6();}
else if (randomnumber == 7)
{movie7();}
else if (randomnumber == 8)
{movie8();}
else if (randomnumber == 9)
{movie9();}
else if (randomnumber == 10)
{movie10();}
else if (randomnumber == 11)
{movie11();}
else {movie12();}

function movie1(){
document.write("<object type=\"application/x-shockwave-flash\" data=\"swf/loch-awe.com4.swf\" width=\"980\" height=\"200\"><param name=movie value=\"swf/loch-awe.com4.swf\"><img src=\"i-header/loch-awe.com4.jpg\" width=\"980\" height=\"200\" alt=\"loch awe view\"/></object>")
}
function movie2(){
document.write ("<object type=\"application/x-shockwave-flash\" data=\"swf/lochawe.swf\" width=\"980\" height=\"200\"><param name=movie value=\"swf/lochawe.swf\"><img src=\"i-header/LochAwe.jpg\" width=\"980\" height=\"200\" alt=\"loch awe\"/></object>")
}
function movie3(){
document.write("<object type=\"application/x-shockwave-flash\" data=\"swf/kilchurncastle1.swf\" width=\"980\" height=\"200\"><param name=movie value=\"swf/kilchurncastle1.swf\"><img src=\"i-header/Kilchurn Castle1.jpg\" width=\"980\" height=\"200\" alt=\"Kilchurn Castle\"/></object>")
}
function movie4(){
document.write("<object type=\"application/x-shockwave-flash\" data=\"swf/kilchurncastle2.swf\" width=\"980\" height=\"200\"><param name=movie value=\"swf/kilchurncastle2.swf\"><img src=\"i-header/Kilchurn Castle2.jpg\" width=\"980\" height=\"200\" alt=\"Kilchurn Castle\"/></object>")
}
function movie5(){
document.write("<object type=\"application/x-shockwave-flash\" data=\"swf/loch-awe.com2.swf\" width=\"980\" height=\"200\"><param name=movie value=\"swf/loch-awe.com2.swf\"><img src=\"i-header/loch-awe.com2.jpg\" width=\"980\" height=\"200\" alt=\"Loch Awe Argyll\"/></object>")
}
function movie6(){
document.write("<object type=\"application/x-shockwave-flash\" data=\"swf/kilchurnmist.swf\" width=\"980\" height=\"200\"><param name=movie value=\"swf/kilchurnmist.swf\"><img src=\"i-header/kilchurninmist.jpg\" width=\"980\" height=\"200\" alt=\"Loch Awe Argyll\"/></object>")
}
function movie7(){
document.write("<object type=\"application/x-shockwave-flash\" data=\"swf/kilchurnreflection.swf\" width=\"980\" height=\"200\"><param name=movie value=\"swf/kilchurnreflection.swf\"><img src=\"i-header/kilchurnreflrction.jpg\" width=\"980\" height=\"200\" alt=\"Loch Awe Argyll\"/></object>")
}
function movie8(){
document.write("<object type=\"application/x-shockwave-flash\" data=\"swf/lochawesummer.swf\" width=\"980\" height=\"200\"><param name=movie value=\"swf/lochawesummer.swf\"><img src=\"i-header/lochawesummer.jpg\" width=\"980\" height=\"200\" alt=\"Loch Awe Argyll\"/></object>")
}
function movie9(){
document.write("<object type=\"application/x-shockwave-flash\" data=\"swf/lochawesummer2.swf\" width=\"980\" height=\"200\"><param name=movie value=\"swf/lochawesummer2.swf\"><img src=\"i-header/lochawesummer2.jpg\" width=\"980\" height=\"200\" alt=\"Loch Awe Argyll\"/></object>")
}
function movie10(){
document.write("<object type=\"application/x-shockwave-flash\" data=\"swf/loch-tulla-beach.swf\" width=\"980\" height=\"200\"><param name=movie value=\"swf/loch-tulla-beach.swf\"><img src=\"i-header/loch-tulla-beach.jpg\" width=\"980\" height=\"200\" alt=\"Loch Tulla Argyll\"/></object>")
}
function movie11(){
document.write("<object type=\"application/x-shockwave-flash\" data=\"swf/ben_lui_banner.swf\" width=\"980\" height=\"200\"><param name=movie value=\"swf/ben_lui_banner.swf\"><img src=\"i-header/ben_lui_banner.jpg\" width=\"980\" height=\"200\" alt=\"Ben Lui\"/></object>")
}
function movie12(){
document.write("<object type=\"application/x-shockwave-flash\" data=\"swf/kilchurn_banner.swf\" width=\"980\" height=\"200\"><param name=movie value=\"swf/kilchurn_banner.swf\"><img src=\"i-header/kilchurn_banner.jpg\" width=\"980\" height=\"200\" alt=\"Kilchurn\"/></object>")
}

