//HOME
var msg = "* Adrianas website designed and maintained by the adult webby sites";
var spacer = " ";
var pos = 0;

function ScrollMessage() {
window.status = msg.substring(pos, msg.length) + spacer + msg.substring(0, pos);
pos++;
if (pos > msg.length) pos = 0;
window.setTimeout("ScrollMessage()", 150);
}

function setstatusbar() {
window.status = msg.substring(pos, msg.length) + spacer + msg.substring(0, pos);
pos++;
if (pos > msg.length) pos = 0;
window.setTimeout("ScrollMessage()", 150);
}

//MENUS OFF
function rst(){
window.document.getElementById('gsim1').style.display = 'none';
if (window.document.getElementById('gsim1').bgColor != '#ffffff'){window.document.getElementById('gsim1').bgColor = ''}
}

function gsimu1(){rst();window.document.getElementById('gsim1').style.display = '';window.document.getElementById('td2').bgColor = '#BFDFF5'}

//News Drop Downs
function clickonnews(newsID){
	if(window.document.getElementById(newsID).style.display=='block'){
		window.document.getElementById(newsID).style.display='none';
	}else{
		window.document.getElementById(newsID).style.display='block';
	}
}

//Show Menu Buttons
function mnus(){
document.write("<Table  border=0 cellpadding='0' cellspacing='0' width='203'>");
document.write("<TR>");
document.write("<TD valign='center' align='center' height='60'><Script>document.write('<div align=center><font color=#ffffff size=2>'+ today.getCalendarDay() + ' ' + today.getDate() + getNths(today.getDate()) + ' ' + today.getCalendarMonth() + '&nbsp;&nbsp;&nbsp;</font></div>')</Script></TD>");
document.write("</TR>");
document.write("<TR>");
document.write("<TD valign='top' align='right'><a href='../home/index.htm' target='_self'><IMG src='../artwork/hme_btn_home.gif' border='0' alt='Adrianas Home'></a></TD>");
document.write("</TR>");
document.write("<TR>");
document.write("<TD valign='top' align='right'><a href='../gallery/index.htm' target='_self'><IMG src='../artwork/hme_btn_gallery.gif' border='0' alt='Adrianas Gallery'></a></TD>");
document.write("</TR>");
document.write("<TR>");
document.write("<TD valign='top' align='right'><a href='../location/index.htm' target='_self'><IMG src='../artwork/hme_btn_location.gif' border='0' alt='Where is Adriana'></a></TD>");
document.write("</TR>");
document.write("<TR>");
document.write("<TD valign='top' align='right'><a href='../contact/index.htm' target='_self'><IMG src='../artwork/hme_btn_contact.gif' border='0' alt='Contact Adriana'></TD>");
document.write("</TR>");
document.write("<TR>");
document.write("<TD valign='top' align='right'><a href='../services/index.htm' target='_self'><IMG src='../artwork/hme_btn_services.gif' border='0' alt='Adrianas Services and Fees'></a></TD>");
document.write("</TR>");
document.write("<TR>");
document.write("<TD valign='top' align='right'><a href='../links/index.htm' target='_self'><IMG src='../artwork/hme_btn_links.gif' border='0' alt='Adrianas Links and Friends'></a></TD>");
document.write("</TR>");
document.write("<TR>");
document.write("<TD valign='top' align='center'><BR><a href='../news/index.htm' target='_self'><IMG src='../artwork/hme_anim.gif' border='0'></a></TD>");
document.write("</TR>");
document.write("</Table>");
}

//Show Menu Subset Buttons
function mnus_subset(){
document.write("<span class='submnu'><a href='../home/index.htm' target='_self' class='sublink'>home</a> | <a href='../gallery/index.htm' target='_self' class='sublink'>gallery</a> | <a href='../location/index.htm' target='_self' class='sublink'>location</a> | <a href='../contact/index.htm' target='_self' class='sublink'>contact me</a> | <a href='../services/index.htm' target='_self' class='sublink'>services & fees</a> | <a href='../links/index.htm' target='_self' class='sublink'>links & friends</a> | <a href='../news/index.htm' target='_self' class='sublink'>news</a></span>");
}

function getFullYear() { 
	var n = this.getYear();
	n += 0 ;
	return n ;
} 

function getActualMonth() { 
	var n = this.getMonth();
	n += 1 ;
	return n ;
}

function getActualDay() { 
	var n = this.getDay();
	n += 1 ;
	return n ;
} 

function getNths(n) { 
    if (n == 1 || n == 21 || n == 31) return 'st';
    else if (n == 2 || n == 22) return 'nd';
    else if (n == 3 || n == 23) return 'rd';
    else return 'th';
}

function getCalendarDay() { 
	var n = this.getDay();
	var Dow = new Array(7);
	Dow[0] = "Sunday" ;
	Dow[1] = "Monday" ;
	Dow[2] = "Tuesday" ;
	Dow[3] = "Wednesday" ;
	Dow[4] = "Thursday" ;
	Dow[5] = "Friday" ;
	Dow[6] = "Saturday" ;
	return Dow[n] ;
} 


function getCalendarMonth() { 
	var n = this.getMonth();
	var moy = new Array(12);
	moy[0] = "January" ;
	moy[1] = "February" ;
	moy[2] = "March" ;
	moy[3] = "April" ;
	moy[4] = "May" ;
	moy[5] = "June" ;
	moy[6] = "July" ;
	moy[7] = "August"; 
	moy[8] = "September" ;
	moy[9] = "October" ;
	moy[10] = "November"; 
	moy[11] = "December" ;
	return moy[n] ;
} 

function getCalendarMonthNum() { 
	var n = this.getMonth();
	var moy = new Array(12);
	moy[0] = "01" ;
	moy[1] = "02" ;
	moy[2] = "03" ;
	moy[3] = "04" ;
	moy[4] = "05" ;
	moy[5] = "06" ;
	moy[6] = "07" ;
	moy[7] = "08"; 
	moy[8] = "09" ;
	moy[9] = "10" ;
	moy[10] = "11"; 
	moy[11] = "12" ;
	return moy[n] ;
} 

var popup="Sorry, right-click is disabled.\n\nCopyright © Adrianas.co.uk 2008";
function noway(go) {
	if (document.all) {
		if (event.button == 2) {
			alert(popup);
			return false;
		}

	}
	if (document.layers) {
		if (go.which == 3) {
			alert(popup);
			return false;
		}
	}
}