<!--

var message="This web site is copyright (c) 2006, 2007, 2008 HITS-UK, all rights reserved. If you wish to use our web services, please contact 0844 414 2274 for more information, or send a request via our contacts page.";

// JavaScript by David Wade
// Published at: www.HITS-UK.com

function IE(e) 
{
     if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))
     {
          alert(message);
          return false;
     }
}
function NS(e) 
{
     if (document.layers || (document.getElementById && !document.all))
     {
          if (e.which == "2" || e.which == "3")
          {
               alert(message);
               return false;
          }
     }
}
document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");

function printWindow(strPage)
{
	var url;
	url = "hits-uk.com/" + strPage;
	window.print(url);
}

/*
MAIL ADDRESS ZONE
*/

function writeMailAddress()
{
	var user = "software";
	var domain = "hits-uk.com";
	var mail = user + "@" + domain;
	var message = user + "@" + domain;
	document.write("<a href=\"mailto:"+mail+"\">"+ message+"</a>");
}

function writeAccountsAddress()
{
	var user = "accounts";
	var domain = "hits-uk.com";
	var mail = user + "@" + domain;
	var message = user + "@" + domain;
	document.write("<a href=\"mailto:"+mail+"\">"+ message+"</a>");
}

function writeSupportAddress()
{
	var user = "support";
	var domain = "hits-uk.com";
	var mail = user + "@" + domain;
	var message = user + "@" + domain;
	document.write("<a href=\"mailto:"+mail+"\">"+ message+"</a>");
}

/* 
RANDOM IMAGE DISPLAY FOR BANNER
*/

var theImages = new Array() // do not change this unless req'd

theImages[0] = './images/banner/1.jpg'
theImages[1] = './images/banner/2.jpg'
theImages[2] = './images/banner/3.jpg'
theImages[3] = './images/banner/1.jpg'
theImages[4] = './images/banner/5.jpg'

// ======================================
//     Sets variable header display
// ======================================

var j = 0
var p = theImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}


//-->

