// Set up the image files to be used.
var theImages = new Array() // do not change this


// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theImages[0] = 'embassy1.gif'
theImages[1] = 'embassy2.gif'
theImages[2] = 'embassy3.gif'
theImages[3] = 'embassy4.jpg'
theImages[4] = 'embassy5.gif'
theImages[5] = 'embassy6.gif'
theImages[6] = 'embassy7.gif'
theImages[7] = 'embassy8.gif'
// ======================================
// do not change anything below this line
// ======================================

var j = 0
var p = theImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="http://www.indianembassy.de/temp/'+theImages[whichImage]+' "width="250" height="250""">');


}


var loc_today = new Date;

					var diff = loc_today.getTimezoneOffset();

					var today = new Date();

					var today_ind = new Date();

					today.setSeconds(today.getSeconds() + ((diff)*60));

					today_ind.setSeconds(today_ind.getSeconds() + (diff*60));

					today_ind.setSeconds(today_ind.getSeconds() + (330*60));

					function runningClock()

					{

						today_ind.setSeconds(today_ind.getSeconds() + 1);

						var hr = today_ind.getHours();

						var min = today_ind.getMinutes();

						var sec = today_ind.getSeconds();

						var time="";

						if(hr<10)

							time = "0"+ hr + " : " ;

						else

							time = hr + " : ";

						if(min<10)

							time = time + "0" + min + " : ";

						else

							time = time + min + " : ";

						if(sec<10)

							time = time + "0" + sec;

						else

							time = time + sec;

						face1.innerHTML = '<font face="arial" size=2 color="#0000FF">India &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>' + time + '</b></font>';

						
						

						setTimeout('runningClock();',1000);

					}

					function runningClock1()

					{

						today.setSeconds(today.getSeconds() + 1);

						

						var min = today.getMinutes();

						var sec = today.getSeconds();

						var time="";
if (today.getMonth()>10)

{hr=today.getHours();

}
else
{

hr=today.getHours()+1;       
}
						




if(hr<10)

							time = "0" + hr + " : " ;

						else

							time = hr + " : ";

						if(min<10)

							time = time + "0" + min + " : ";

						else

							time = time+min + " : ";

						if(sec<10)

							time = time + "0" + sec;

						else

							time = time + sec;

						face2.innerHTML = '<font face="arial" size=2 color="#0000FF">Germany &nbsp;<b>' + time + '</b></font>';

						setTimeout('runningClock1();',1000);

					}












var m_names = new Array("January", "February", "March", 
"April", "May", "June", "July", "August", "September", 
"October", "November", "December");

var d = new Date();
var curr_date = d.getDate();
var sup = "";
if (curr_date == 1 || curr_date == 21 || curr_date ==31)
   {
   sup = "st";
   }
else if (curr_date == 2 || curr_date == 22)
   {
   sup = "nd";
   }
else if (curr_date == 3 || curr_date == 23)
   {
   sup = "rd";
   }
else
   {
   sup = "th";
   }

var curr_month = d.getMonth();
var curr_year = d.getFullYear();

function writedate()
{

columnright.document.write(curr_date + "<SUP>" + sup + "</SUP> " + m_names[curr_month] + " " + curr_year);

}


