var strCurrentImgCaption
strCurrentImgCaption=""

var imgCaptions=new Array()

imgCaptions[1]="BEAUTIFUL BOAT PARKED AT PURI BEACH";
imgCaptions[2]="SAND ART OF GODDESS DURGA DURING BEACH FESTIVAL OF PURI";
imgCaptions[3]="TOURISTS ENJOYING THEIR BATH AT PURI BEACH";
imgCaptions[4]="LAMPS AT THE NEW MARINE DRIVE ON PURI SEA BEACH";
imgCaptions[5]="CHILDREN OF FISHERMEN - SEA IS OUR PLAY GROUND";
imgCaptions[6]="LONG SANDY BEACH OF PURI";
imgCaptions[7]="LIFEGUARDS AT PURI BEACH - WAITING FOR CUSTOMERS...";
imgCaptions[8]="LOVELY LONELY CRAB AT THE PURI BEACH - CAN YOU CATCH ME?";
imgCaptions[9]="FISHERMEN SAILING THEIR BOAT IN PURI SEA BAECH";
imgCaptions[10]="PILGRIMS HAVING A NICE TIME WITH THE WAVES AT PURI BEACH";
imgCaptions[11]="FISHERMEN PREPARING THEIR BOAT FOR THE NEXT MORNING";
imgCaptions[12]="HOTELS ON THE BANK OF PURI BEACH";
imgCaptions[13]="HIGH WAVES AT PURI SEA BEACH";
imgCaptions[14]="CONCH SHELL AVAILABLE TO PURCHASE IN LOCAL SHOP AT SEA BEACH MARKET";
imgCaptions[15]="LITTLE GIRL ON PURI BEACH - NO LIFEGUARD REQUIRED";
imgCaptions[16]="DECORATED CAMEL AT PURI BEACH - I AM WAITING FOR THE RIDER...";
imgCaptions[17]="BATH AT PURI BAECH";
imgCaptions[18]="ROUND TABLE CONFERENCE AT PURI SEA BEACH";

function showimghelp()
{
if (strCurrentImgCaption!="")
{
imghelpdiv.innerHTML="<table bgcolor=#336699 border=1 cellpadding=0 cellspacing=0 bordercolor=white><tr><td><table><tr><td><img src='image2/wallpaper/imghelpicon.gif'></td><td><font face=arial color=#F0DF31 size=1><b>" + strCurrentImgCaption + "</b></font></td></tr></table></td></tr></table>"
imghelpdiv.style.left=document.body.scrollLeft+event.clientX-event.offsetX
imghelpdiv.style.top=document.body.scrollTop+event.clientY-event.offsetY+5
imghelpdiv.filters.revealTrans.transition=12;
imghelpdiv.filters.revealTrans.apply()
imghelpdiv.style.visibility="visible"
imghelpdiv.filters.revealTrans.play()
}
}
function hideimghelp()
{
imghelpdiv.filters.revealTrans.transition=13;
imghelpdiv.filters.revealTrans.apply()
imghelpdiv.style.visibility="hidden"
imghelpdiv.filters.revealTrans.play()
}


var imageajax = new Image();
imageajax.src="image2/wallpaper/ajaximg.gif"

var pgimgObjs = new Array(0);
var headPictureName = null;
var headImgFile = null;
var headIconFile = null;
var headTrack = null;

function LoadWallpaper(pictureName,imageFile,iconFile,track)
{
headPictureName=pictureName;
headImgFile=imageFile;
headIconFile=iconFile;
headTrack=track;

document.getElementById(headPictureName).src = imageajax.src;

pgimgObjs[0] = new Image();
pgimgObjs[0].onload = asyncLoadImage;
pgimgObjs[0].src = headImgFile;
}

function asyncLoadImage()
{
changeImageAfterLoad();
}


function changeImageAfterLoad()
{
	if (document.all)
  	{
		document.getElementById(headPictureName).style.filter="blendTrans(duration=1)";
		document.getElementById(headPictureName).filters.blendTrans.Apply();
 	}
	document.getElementById("wimg1").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg2").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg3").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg4").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg5").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg6").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg7").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg8").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg9").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg10").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg11").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg12").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg13").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg14").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg15").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg16").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg17").src = "image2/wallpaper/wicon.jpg";
	document.getElementById("wimg18").src = "image2/wallpaper/wicon.jpg";
	document.getElementById(headIconFile).src = "image2/wallpaper/wcicon.gif";
	document.getElementById(headPictureName).src = headImgFile;
	strCurrentImgCaption=imgCaptions[headTrack];
	if (document.all)
 	{
 		document.getElementById(headPictureName).filters.blendTrans.Play();
	}
}

function LoadDefaultWallpaper()
{
var walltoday = new Date();
var wallsecond=walltoday.getSeconds()

if (parseInt(wallsecond)==0)
{
document.getElementById("HWallPaper").src = "image2/wallpaper/sea/wp13.jpg";
document.getElementById("wimg13").src = "image2/wallpaper/wcicon.gif";
strCurrentImgCaption=imgCaptions[13];
}
if ((parseInt(wallsecond)>=1) && (parseInt(wallsecond)<=5))
{
document.getElementById("HWallPaper").src = "image2/wallpaper/sea/wp1.jpg";
document.getElementById("wimg1").src = "image2/wallpaper/wcicon.gif";
strCurrentImgCaption=imgCaptions[1];
}
if ((parseInt(wallsecond)>=6) && (parseInt(wallsecond)<=10))
{
document.getElementById("HWallPaper").src = "image2/wallpaper/sea/wp2.jpg";
document.getElementById("wimg2").src = "image2/wallpaper/wcicon.gif";
strCurrentImgCaption=imgCaptions[2];
}
if ((parseInt(wallsecond)>=11) && (parseInt(wallsecond)<=15))
{
document.getElementById("HWallPaper").src = "image2/wallpaper/sea/wp3.jpg";
document.getElementById("wimg3").src = "image2/wallpaper/wcicon.gif";
strCurrentImgCaption=imgCaptions[3];
}
if ((parseInt(wallsecond)>=16) && (parseInt(wallsecond)<=20))
{
document.getElementById("HWallPaper").src = "image2/wallpaper/sea/wp4.jpg";
document.getElementById("wimg4").src = "image2/wallpaper/wcicon.gif";
strCurrentImgCaption=imgCaptions[4];
}
if ((parseInt(wallsecond)>=21) && (parseInt(wallsecond)<=25))
{
document.getElementById("HWallPaper").src = "image2/wallpaper/sea/wp5.jpg";
document.getElementById("wimg5").src = "image2/wallpaper/wcicon.gif";
strCurrentImgCaption=imgCaptions[5];
}
if ((parseInt(wallsecond)>=26) && (parseInt(wallsecond)<=30))
{
document.getElementById("HWallPaper").src = "image2/wallpaper/sea/wp6.jpg";
document.getElementById("wimg6").src = "image2/wallpaper/wcicon.gif";
strCurrentImgCaption=imgCaptions[6];
}
if ((parseInt(wallsecond)>=31) && (parseInt(wallsecond)<=35))
{
document.getElementById("HWallPaper").src = "image2/wallpaper/sea/wp7.jpg";
document.getElementById("wimg7").src = "image2/wallpaper/wcicon.gif";
strCurrentImgCaption=imgCaptions[7];
}
if ((parseInt(wallsecond)>=36) && (parseInt(wallsecond)<=40))
{
document.getElementById("HWallPaper").src = "image2/wallpaper/sea/wp8.jpg";
document.getElementById("wimg8").src = "image2/wallpaper/wcicon.gif";
strCurrentImgCaption=imgCaptions[8];
}
if ((parseInt(wallsecond)>=41) && (parseInt(wallsecond)<=45))
{
document.getElementById("HWallPaper").src = "image2/wallpaper/sea/wp9.jpg";
document.getElementById("wimg9").src = "image2/wallpaper/wcicon.gif";
strCurrentImgCaption=imgCaptions[9];
}
if ((parseInt(wallsecond)>=46) && (parseInt(wallsecond)<=50))
{
document.getElementById("HWallPaper").src = "image2/wallpaper/sea/wp10.jpg";
document.getElementById("wimg10").src = "image2/wallpaper/wcicon.gif";
strCurrentImgCaption=imgCaptions[10];
}
if ((parseInt(wallsecond)>=51) && (parseInt(wallsecond)<=55))
{
document.getElementById("HWallPaper").src = "image2/wallpaper/sea/wp11.jpg";
document.getElementById("wimg11").src = "image2/wallpaper/wcicon.gif";
strCurrentImgCaption=imgCaptions[11];
}
if ((parseInt(wallsecond)>=56) && (parseInt(wallsecond)<=59))
{
document.getElementById("HWallPaper").src = "image2/wallpaper/sea/wp12.jpg";
document.getElementById("wimg12").src = "image2/wallpaper/wcicon.gif";
strCurrentImgCaption=imgCaptions[12];
}

}