//*****************************//

//*****************************//

<!--
// DATE FOR PAGE
function GetDay(nDay)
{
	var Days = new Array("Sun","Mon","Tue","Wed",
	                     "Thu","Fri","Sat");
	return Days[nDay]
}

function GetMonth(nMonth)
{
	var Months = new Array("Jan","Feb","Mar","Apr","May","Jun",
	                       "Jul","Aug","Sep","Oct","Nov","Dec");
	return Months[nMonth] 	  	 
}

function DateString()
{
	var Today = new Date();
	var suffix = "th";
	switch (Today.getDate())
	{
		case 1:
		case 21:
		case 31: 
			suffix = "st"; break;
		case 2:
		case 22:
			suffix = "nd"; break;
		case 3:
		case 23:
			suffix = "rd"; break;
	};

	var strDate = GetDay(Today.getDay()) + " " + Today.getDate();
	strDate += suffix + " " + GetMonth(Today.getMonth()) + ", " + Today.getYear();
	return strDate
}
//-->

//*****************************//
<!--
// IMAGE SWAP

if (document.images) {
//Leftbar images  
  background = new Image();
  background.src = "/images/background1.jpg";
  background2 = new Image();
  background2.src = "/images/background2.jpg";
  showreel = new Image();
  showreel.src = "/images/showreel1.jpg";
  showreel2 = new Image();
  showreel2.src = "/images/showreel2.jpg";
  credits = new Image();
  credits.src = "/images/credits1.jpg";
  credits2 = new Image();
  credits2.src = "/images/credits2.jpg";
  costs = new Image();
  costs.src = "/images/costs1.jpg";
  costs2 = new Image();
  costs2.src = "/images/costs2.jpg";
  contact = new Image();
  contact.src = "/images/contact1.jpg";
  contact2 = new Image();
  contact2.src = "/images/contact2.jpg";

}
function OnImage(name) {
	if (document.images) {
		fullname = eval(name + "2");
		document[name].src = fullname.src;
	}
}
function OffImage(name) {
  if (document.images) {
    fullname = eval(name);
	if (fullname.complete) {
      document[name].src = fullname.src;
	}
  }
}
//-->

//****************************//

// WINDOW OPEN


self.name = "main-page"; // names current window as "main-page"
var win1Open = null
var win2Open = null

function displayImage(picName, windowName, windowWidth, windowHeight){
  return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+20)  + ",height=" + (parseInt(windowHeight)+15))
  }

function winClose(){    // close all open pop-up windows
  if(win1Open != null) win1Open.close()
  if(win2Open != null) win2Open.close()
  }

function doNothing(){}  // does nothing but required by JavaScript in this case

var strWinProp

function init() {

  intWidth = screen.width - 10; //Adjust for the end of screen (don't know why?)
  intHeight = screen.height - 80; //Adjust for the Icon Bar at the bottom of the window.

  strWinProp = " toolbar=no"         //Back, Forward, etc...
               + ",location=no"      //URL field
               + ",directories=no"   //"What's New", etc...
               + ",status=no"       //Status Bar at bottom of window.
               + ",menubar=no"       //Menubar at top of window.
               + ",resizeable=no"    //Allow resizing by dragging. (Yes - Does not work with Netscape or IE)
               + ",scrollbars=no"   //Displays scrollbars is document is larger than window.
               + ",titlebar=yes"     //Enable/Disable titlebar resize capability.
               + ",width=500"    //Standard 640,800/788, 800/788
               + ",height=100"  //Standard 480,600/541, 600/566
               + ",top=0"              //Offset of windows top edge from screen.
               + ",left=0"             //Offset of windows left edge from screen.
               + "";
               }