// This file contains the following JavaScript functions
// Default status copyright notice
// Rollover script for NN3+ & IE4+
// Footer for html files
// Designer's promo link
// Functions to display menus
// Des Carne, oz-imagineering.com, Darwin NT des@oz-imagineering.com

//Default status copyright notice
defaultStatus="© 2000 Skyscans Australia, All Rights Reserved."

// Handles rollover images for NN3+ and IE4+
var loaded = new Array();
function F_loadRollover(image,imageName) {
	if (image && image.src &&
		(null == image.out || typeof(image.out) == typeof(void(0)))) {
		s = image.src;
		image.out = new Image();
		image.out.src = s;
		image.over = new Image();
		if (imageName.lastIndexOf('/') >= 0 || imageName.lastIndexOf('\\') >= 0) {
			s = imageName;
		} else {
			i = s.lastIndexOf('/');
			if (i<0) i = s.lastIndexOf('\\');
			if (i<0) { s = imageName; }
			else	 { s = s.substring(0,i+1) + imageName; }
		}
		image.over.src = s;
		loaded[image.name] = image;
	}
}

function F_roll(imageName,over) {
	if (document.images) {
	if (over) { imageObject = "over"; }
	else	  { imageObject = "out"; }
	image = loaded[imageName];
	if (image) {
		ref = eval("image."+imageObject);
		if (ref) image.src = eval("image."+imageObject+".src");
	}
	if (window.event)
		window.event.cancelBubble = true;
	}
}

// Footer for html files
function writeFooter() {
document.write('<center><HR> ');
document.write(' <A HREF="javascript:history.back();" title="Go back"><IMG SRC="../images/icons/b_left.gif" WIDTH=18 HEIGHT=18 BORDER=0 ALIGN=top></A>');
document.write(' | <a href="../index1.html" TARGET="_top">Home Page</a>'); 
document.write(' | <a href="sitemap.html" TARGET="_self">Site Map</a>');
document.write(' | <A HREF="javascript:history.go(1);" title="Go next"><IMG SRC="../images/icons/b_right.gif" WIDTH=18 HEIGHT=18 BORDER=0 ALIGN=top></A>');
document.write('<I><P class=footmenu>Revision 2 December 2000<BR> ');
document.write('Last modified on ');
document.write('<SCRIPT LANGUAGE=JavaScript>document.write(document.lastModified)</SCRIPT> ');
}

function godata(){
var pass = document.form.pass.value;
var contactsheet = null;
if ( pass == "" ) { alert("Invalid Password!"); } else {
//code to show private clients in frameset
location="" + pass.toLowerCase() + ".html";
//code to show private clients in separate fulls screen browser
//window.open("" + pass.toLowerCase() + ".html", "contactsheet", "toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0,fullscreen=1");
}}

// Display designer promo
function openPromo() {
	document.write('<a class=promo href="http://www.oz-imagineering.com" target="_blank" onmouseover="window.status=\'Visit this site designers home page\'; return true" onmouseout="window.status=\'\'; return true")> </a>');
}  

//Reload NS bug
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//Find object to display
function MM_findObj(n, d) { //v3.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); return x;
}

//Show-hide layers
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

