// ** All code © paul@mirashade.com 2002
gSelSection = 0;
gClicked = 0;
newWin = 0;

function mainFooter(){
		document.writeln('<span class="footer"><br clear="all">');
		document.writeln('&copy; Sophie Henderson . All rights reserved.');
		document.writeln(doClock("D1","/","M3","/","Y0"));
}

function pageFooter(){
		document.writeln('<span class="footer"><br clear="all">');
		document.writeln('<a href="#" onClick="parent.content.focus(); parent.content.print()">Print text</a></span>');
}
 
function setSection(tSect) {
if (gClicked == 1){
 document.images[gSelSection].src = "images/"+gSelSection+".gif";
 document.images.header.src = "images/"+gSelSection+"_hdr.gif";
 }
 document.images[tSect].src = "images/"+tSect+"_ro.gif";
 document.images.header.src = "images/"+tSect+"_hdr.gif";
 gSelSection = tSect;
 gClicked = 1;
}
 
function swapImg(tDir, swapimg) {
if (swapimg != gSelSection) {
 if (tDir == 1) {
  document.images[swapimg].src = "images/"+swapimg+".gif";
  document.images.header.src = "images/"+gSelSection+"_hdr.gif";  
 } else if (tDir == 2) {
  document.images[swapimg].src = "images/"+swapimg+"_ro.gif";
  document.images.header.src = "images/"+swapimg+"_hdr.gif";
  }
 }
}

function popUp(orient, wPage){
	checkPop();
   	if (orient==0){
		newWin = window.open('popUps/'+wPage+'.htm', 'popPic', 'width=420, height=380');
		newWin.document.focus();	
		}
	if (orient==1){
		newWin = window.open('popUps/'+wPage+'.htm', 'popPic', 'width=320, height=480');
		newWin.document.focus();
	}
}
 
function checkPop(){
if (newWin && !newWin.closed){
		newWin.close();
	}
}

function reSizeCont(hgt){
	document.getElementById('content').style.height = String( hgt + 'px');
}

function openMadeWindow() {
			window.open('http://www.mirashade.com/imadethis.htm','mira','scrollbars=0,resizable=0,width=295,height=138');
}

// ** / end Paul© code ;)
//
// ** Clock code by © Paul Davis, can be found @ http://www.kaosweaver.com/
function doClock(){
  var t=new Date(),a=doClock.arguments,str="",i,a1,lang="1";
  var month=new Array('January','Jan', 'February','Feb', 'March','Mar', 'April','Apr', 'May','May', 'June','Jun', 'July','Jul', 'August','Aug', 'September','Sep', 'October','Oct', 'November','Nov', 'December','Dec');
  var tday= new Array('Sunday','Sun','Monday','Mon', 'Tuesday','Tue', 'Wednesday','Wed','Thursday','Thr','Friday','Fri','Saturday','Sat');
  for(i=0;i<a.length;i++) {a1=a[i].charAt(1);switch (a[i].charAt(0)) {
  case "M":if  ((Number(a1)==3) && ((t.getMonth()+1)>10)) str+="0";
  str+=(Number(a1)>1)?t.getMonth()+1:month[t.getMonth()*2+Number(a1)];break;
  case "D": if ((Number(a1)==1) && (t.getDate()<10)) str+="0";str+=t.getDate();break;
  case "Y": str+=(a1=='0')?t.getFullYear():t.getFullYear().toString().substring(2);break;
  case "W":str+=tday[t.getDay()*2+Number(a1)];break; default: str+=unescape(a[i]);}}return str;
}
 
// ** All Dreamweaver code below:
function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) { //v4.0
  var newURL='', verStr=navigator.appVersion, app=navigator.appName, version = parseFloat(verStr);
  if (app.indexOf('Netscape') != -1) {
    if (version >= NSvers) {if (NSpass>0) newURL=(NSpass==1)?URL:altURL;}
    else {if (NSnoPass>0) newURL=(NSnoPass==1)?URL:altURL;}
  } else if (app.indexOf('Microsoft') != -1) {
    if (version >= IEvers || verStr.indexOf(IEvers) != -1)
     {if (IEpass>0) newURL=(IEpass==1)?URL:altURL;}
    else {if (IEnoPass>0) newURL=(IEnoPass==1)?URL:altURL;}
  } else if (OBpass>0) newURL=(OBpass==1)?URL:altURL;
  if (newURL) { window.location=unescape(newURL); document.MM_returnValue=false; }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

<!-- Original:  Martin Webb (martin@irt.org) -->
function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Copyright Sophie Henderson. Sorry, you do not have permission to right click.");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
