
// General Site variables script

pagelink			= document.location
pagename			= document.title
siteUrl			= 'www.temptationsbydesign.co.uk'
developer			= 'John Mounsey'
developerurl		= 'www.peaknet.ltd.uk'
defaultStatus		= siteUrl



function bookmark() // Bookmark page
	{ 
	if (window.external)
		{
		external.AddFavorite(pagelink,pagename)
		}
	
		else if (navigator.appName == "Netscape") 	{ alert('press control and D now to bookmark this page') }
		else if (navigator.appName == "Opera") 	{ alert('press control and T now to bookmark this page') }
	}


function sendlink() // Send page to friend
	{
	alert('This opens a new Email message for you to send to friends ...');
	window.location='mailto:?subject=Check out '+siteUrl+' - Wedding Dresses!&body=' + pagename + ' : ' + pagelink
	}

function previous() // Go back
	{
	history.go(-1);
	}

function title() // Output Page Title
	{
	document.write(pagename);
	}


// Print Today's DATE function - Y2K + Netscape friendly

var months=new Array(13);

months[1]		= "January";
months[2]		= "February";
months[3]		= "March";
months[4]		= "April";
months[5]		= "May";
months[6]		= "June";
months[7]		= "July";
months[8]		= "August";
months[9]		= "September";
months[10]	= "October";
months[11]	= "November";
months[12]	= "December";

var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;

function today() { document.write(lmonth + " " + date); }



function bigPic(theDress) // Big Photo Preview
{
	//if (document.standard.id == theDress)
	//{
	//	zoom(theDress)
	//}
	//else
	//{
		document.standard.src='gfx/photographs/medium/null.gif';
		document.standard.src='gfx/photographs/medium/'+theDress+'.jpg';
		document.standard.id=theDress;
		document.standard.alt = '\"' + theDress + '\" - click here to Zoom in ...';
	//}
	return true;
}



function zoom(thePage) // Photo zoom page
	{
	//document.location = thePage + '.html';
	popup(document.standard.id + '.html')
	}
	
function hideLoad()
	{
	document.getElementById('loading').className="hidden";
	}
	


// Form field highlighting

function hi(field)	{ field.className = 'hilite'; }
function lo(field)	{ field.className = 'lolite'; }


/* Popup */

var newwindow;
function popup(url)
{
	newwindow=window.open(url,'name','height=790,width=620,scrollbars=yes,resizable=yes');
	if (window.focus) {newwindow.focus()}
}