NumberOfImagesToRotate = 4;

/**************************
**		 First image  	 **
**************************/

FirstParta = '<img src="images/rotate/tallaghtimagea';
LastParta = '.jpg" height="200" width="193"';

function printImagea() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);

if(r == 1){
	enda = 'alt="Athlone Hotels - Athlone At Night" title="Athlone Hotels - Athlone At Night">';
}
else if(r == 2){
	enda = 'alt="Athlone Hotels - Shopping in Athlone" title="Athlone Hotels - Shopping in Athlone">';
}
else if(r == 3){
	enda = 'alt="Athlone Hotels - St. Francis Statue and a child" title="Hotels in Athlone - St. Francis Statue and a child">';
}
else{
	enda = 'alt="Athlone Hotels - Athlone and the river Shannon" title="Athlone Hotels - River Shannon in Athlone Town">';
}

document.write(FirstParta + r + LastParta + enda);
}

/**************************
**		 Second image  	 **
**************************/

FirstPartb = '<img src="images/rotate/tallaghtimageb';
LastPartb = '.jpg" height="200" width="193"';

function printImageb() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);

if(r == 1){
	endb = 'alt="Hotels in Athlone - Connaught street at night in Athlone" title="Hotels in Athlone - Connaught street at night in Athlone">';
}
else if(r == 2){
	endb = 'alt="Hotels in Athlone - Athlone Architecture" title="Hotels in Athlone - Athlone Architecture">';
}
else if(r == 3){
	endb = 'alt="Athlone Hotels - train Arriving in Athlone" title="Athlone Hotels - Train arriving in Athlone">';
}
else{
	endb = 'alt="Hotels in Athlone - Athlone court house building" title="Hotels in Athlone - Athlone court house building">';
}

document.write(FirstPartb + r + LastPartb + endb);
}

/**************************
**		 Third image  	 **
**************************/

FirstPartc = '<img src="images/rotate/tallaghtimagec';
LastPartc = '.jpg" height="200" width="193"';

function printImagec() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);

if(r == 1){
	endc = 'alt="Athlone Hotels - Boat on the River Shannon in Athlone" title="Athlone Hotels - Boat on the River Shannon in Athlone">';
}
else if(r == 2){
	endc = 'alt="Hotels in Athlone - Athlone town centre shopping" title="Hotels in Athlone - Athlone town centre shopping">';
}
else if(r == 3){
	endc = 'alt="Athlone Hotels - Castle in Athlone town centre" title="Athlone Hotels - Castle in Athlone town centre">';
}
else{
	endc = 'alt="Hotels in Athlone - Athlone Springs Hotel Outside" title="Hotels in Athlone - Athlone Springs Hotel Outside">';
}

document.write(FirstPartc + r + LastPartc + endc);
}

/**************************
**		 forth image  	 **
**************************/

FirstPartd = '<img src="images/rotate/tallaghtimaged';
LastPartd = '.jpg" height="200" width="193"';

function printImaged() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);

if(r == 1){
	endd = 'alt="Athlone Hotels - Athlone Castle in Town centre" title="Athlone Hotels - Castle in Athlone Town centre">';
}
else if(r == 2){
	endd = 'alt="alt="Athlone Hotels - Church in Athlone town centre" title="Athlone Hotels - Church in Athlone town centre">';
}
else if(r == 3){
	endd = 'alt="Athlone Hotels - Town centre plaza in athlone" title="Athlone Hotels - Town centre plaza in athlone">';
}
else{
	endd = 'alt="Athlone Hotels - Statue in Athlone town centre" title="Hotels in Athlone - Statue in Athlone town centre">';
}

document.write(FirstPartd + r + LastPartd + endd);
}
