// random images
		var theImages = new Array()
		
		//Random-loading images
		theImages[0] = 'apartments/01.jpg' // replace with names of images
		theImages[1] = 'apartments/02.jpg' // replace with names of images
		theImages[2] = 'apartments/03.jpg' // replace with names of images
		theImages[3] = 'apartments/04.jpg' // replace with names of images
		theImages[4] = 'apartments/05.jpg' // replace with names of images
		theImages[5] = 'apartments/06.jpg' // replace with names of images
		theImages[6] = 'apartments/07.jpg' // replace with names of images
		theImages[7] = 'apartments/08.jpg' // replace with names of images
		theImages[8] = 'apartments/09.jpg' // replace with names of images
		theImages[9] = 'apartments/10.jpg' // replace with names of images
		theImages[10] = 'apartments/11.jpg' // replace with names of images
		
		
		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(){
		if(whichImage==0){
		document.write('<td width=65% background="'+theImages[whichImage]+'"></td>');
		}
		else if(whichImage==1){
		document.write('<td width=65% background="'+theImages[whichImage]+'"></td>');
		}
		else if(whichImage==2){
		document.write('<td width=65% background="'+theImages[whichImage]+'"></td>');
		}
		else if(whichImage==3){
		document.write('<td width=65% background="'+theImages[whichImage]+'"></td>');
		}
		else if(whichImage==4){
		document.write('<td width=65% background="'+theImages[whichImage]+'"></td>');
		}
		else if(whichImage==5){
		document.write('<td width=65% background="'+theImages[whichImage]+'"></td>');
		}
		else if(whichImage==6){
		document.write('<td width=65% background="'+theImages[whichImage]+'"></td>');
		}		
		else if(whichImage==7){
		document.write('<td width=65% background="'+theImages[whichImage]+'"></td>');
		}		
		else if(whichImage==8){
		document.write('<td width=65% background="'+theImages[whichImage]+'"></td>');
		}		
		else if(whichImage==9){
		document.write('<td width=65% background="'+theImages[whichImage]+'"></td>');
		}		
		else if(whichImage==10){
		document.write('<td width=65% background="'+theImages[whichImage]+'"></td>');
		}				
		
		}
		
// end random images


// Date Function

		
		var day_names = new Array(7)
		day_names[0] = "Sunday"
		day_names[1] = "Monday"
		day_names[2] = "Tuesday"
		day_names[3] = "Wednesday"
		day_names[4] = "Thursday"
		day_names[5] = "Friday"
		day_names[6] = "Saturday"
		
		var month_names = new Array(12)
		month_names[0] = "January"
		month_names[1] = "February"
		month_names[2] = "March"
		month_names[3] = "April"
		month_names[4] = "May"
		month_names[5] = "June"
		month_names[6] = "July"
		month_names[7] = "August"
		month_names[8] = "September"
		month_names[9] = "October"
		month_names[10] = "November"
		month_names[11] = "December"
		
		date_now = new Date()
		
		day_value = date_now.getDay()
		date_text = day_names[day_value]
		
		// Figure out the friendly month name
		month_value = date_now.getMonth()
		date_text += " " + month_names[month_value]
		
		// Add the day of the month
		date_text += " " + date_now.getDate()
		
		// Add the year
		date_text += ", " + date_now.getFullYear()
		
// end of date

//securities

//By Ram Mohan(rammohan@stercodigitex.com)
//Disable Right Click

var message="Copyright by Speciality Serviced Apartments!";

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false")

//Begin of Disable Print++++++++++++

function p1()
{
	for(pp=0;pp<document.all.length;pp++)
{
		if(document.all[pp].style.visibility!='hidden')
		{
			document.all[pp].style.visibility='hidden';
			document.all[pp].id='ph'
		}
	}
}

function p2()
{
	for (pp=0;pp<document.all.length;pp++)
	{
		if(document.all[pp].id=='ph')
		document.all[pp].style.visibility=''
	}
}

	window.onbeforeprint=p1;
	window.onafterprint=p2;

//Begin of Disable Selection++++++++
document.onselectstart=new Function('return false');
	  function ds(e){
	  return false;
	  }
	  
	  function ra(){
	  return true;
	  }
	  
	  document.onmousedown=ds;
	  document.onclick=ra;
	 
//End of Disable Selection
