  <!--
	 var loaded = 0;
	 function getob(itm)
	 {var o = null;
	  if(document.getElementById && document.getElementById(itm) != null)
		 return document.getElementById(itm);
		if(document.all && document.all[itm] != null)
		 return document.all[itm];
	  return o;
	 }
	 
  function shw(itm,cl)
	 {var o = getob(itm);
	  if(o == null)
		 return;
		o.style.display = '';
		var o = getob(cl);
	  if(o == null)
		 return;
		o.style.backgroundColor="#660000";
	 }
	 
	 function hde(itm,cl)
	 {var o = getob(itm);
	  if(o == null)
		 return;
		o.style.display = 'none';
		var o = getob(cl);
	  if(o == null)
		 return;
		o.style.backgroundColor="FF3300";		
	 }  

  function doIt()
	 {if(document.getElementById && document.getElementById("view") != null)
		 document.getElementById("view").style.visibility = "visible";
	 }
	 
	 function show(picture,caption)
  {var objcaption = null;
   if(loaded == 0)
    return;
		if(document.getElementById && document.getElementById("view") != null)
		 document.getElementById("view").style.visibility = "hidden"; 
 	
   if(picture != "" && picture != null)
   {document["view"].src = "img/loading.png";
		 doIt();
		 document["view"].src = "gallery/projects/" + picture + ".jpg";
		}
		 
		 
  }	 
 
	 
  function getCookie(name) 
  {var start = document.cookie.indexOf(name+"=");
   var len = start+name.length+1;
   if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
   if (start == -1) return null;
   var end = document.cookie.indexOf(";",len);
   if (end == -1) end = document.cookie.length;
   return unescape(document.cookie.substring(len,end));
  }
      
  function doCounter()
  {counted = getCookie('counted');
   if(counted == null)
    counted = 0;
   colorDepth = window.screen.colorDepth;
   colors = Math.pow (2, colorDepth);
   if(window.screen.fontSmoothingEnabled == true)
    smooth = 1;
   else smooth = 0;
   nav = escape(navigator.appName);
   ver = escape(navigator.appVersion);
   w = window.screen.width;
   h = window.screen.height;
   aw = window.screen.availWidth;
   ah = window.screen.availHeight;
   ac = escape(navigator.appCodeName);
   os = escape(navigator.platform);
   ref = escape(document.referrer);
   
		if(navigator.javaEnabled() < 1)
    java = 0;
   else java = 1;
   counter = "?id=vitragroup&js=1&cd=" + colorDepth + "&co=" + colors + "&sm=" + smooth + "&nav=" + nav;
   counter = counter + "&ver=" + ver + "&w=" + w + "&h=" + h + "&aw=" + aw + "&ah=" + ah;
   counter = counter + "&ac=" + ac + "&os=" + os + "&java=" + java + "&ref=" + ref + "&c=" + counted;
   imgCounter = new Image();
   document['icount'].src = "http://www.bmsolutions.com.au/counters/count.php" + counter;
   if(counted != 1)
    document.cookie = "counted=1";
  }	 
	 
	 

var trailimage=["test.gif", 0, 0] //image path, plus width and height
var offsetfrommouse=[-60,-260] //image x,y offsets from cursor position in pixels. Enter 0,0 for no offset
var displayduration=0 //duration in seconds image should remain visible. 0 for always.

function gettrailobj(){
if (document.getElementById)
return document.getElementById("trailimageid").style
else if (document.all)
return document.all.trailimageid.style
}

function truebody(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function hidetrail(){
gettrailobj().visibility="hidden"
document.onmousemove=""
}

function followmouse(e){
var xcoord=offsetfrommouse[0]
var ycoord=offsetfrommouse[1]
if (typeof e != "undefined"){
xcoord+=e.pageX
ycoord+=e.pageY
}
else if (typeof window.event !="undefined"){
xcoord+=truebody().scrollLeft+event.clientX
ycoord+=truebody().scrollTop+event.clientY
}
var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15
var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)
if (xcoord+trailimage[1]+3>docwidth || ycoord+trailimage[2]> docheight)
gettrailobj().display="" // none
else 
gettrailobj().display=""
gettrailobj().left=xcoord+"px"
gettrailobj().top=ycoord+"px"
}
	 
	 
  //-->