<!--external javascript document www.WebVox.com.au-->
var isDHTML = 0;
var isID = 0;
var isAll = 0;
var isLayers = 0;


if (document.getElementById) {isID = 1; isDHTML = 1;}
else {
if (document.all) {isAll = 1; isDHTML = 1;}
else {
browserVersion = parseInt(navigator.appVersion);
if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) {isLayers = 1; isDHTML = 1;}
}}

function findDOM(objectID,withStyle) {
	if (withStyle == 1) {
		if (isID) { return (document.getElementById(objectID).style) ; }
		else { 
			if (isAll) { return (document.all[objectID].style); }
		else {
			if (isLayers) { return (document.layers[objectID]); }
		};}
	}
	else {
		if (isID) { return (document.getElementById(objectID)) ; }
		else { 
			if (isAll) { return (document.all[objectID]); }
		else {
			if (isLayers) { return (document.layers[objectID]); }
		};}
	}
}
   
function setVisibility() {
	var i, dom, state, layerarg;
	layerarg = setVisibility.arguments
	for (i=0; i<(layerarg.length-1); i+=2)
	if ((dom=findDOM(layerarg[i]))!=null) {
		state=layerarg[i+1];
		if (dom.style) {
			dom=dom.style; state=(state=='show')?'visible':(state=='hide')?'hidden':state;
		}
		dom.visibility = state;
}
	
function toggleVisibility(objectID) {
	var dom = findDOM(objectID,1);
	state = dom.visibility;
	if (state =='hidden' || state =='hide')
		dom.visibility = 'visible';
	else {
		if (state == 'visible' || state =='show')
			dom.visibility ='hidden';
		else dom.visibility = 'hidden';
		}
	}
}
					
function toggleClient(){	
	var arg, state, target ;
	arg = toggleClient.arguments;
	for (var a=0; a<(arg.length - 1); a+=2){
		target = arg[a];
		state=arg[a+1]
		tmp = document.getElementsByTagName('div') ;
		for (i=0;i<tmp.length;i++)
		{
		   //	if (tmp[i].className == target) tmp[i].style.display = state;
			if (tmp[i].id.match(target)) tmp[i].style.display = state;
		}
	}
}



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);


function setClass(objectID,newClass) {
	var dom = findDOM(objectID,0);
	dom.className = newClass;
}



function findLivePageWidth() {
	if (window.innerWidth != null)
		return ((window.innerWidth));
	if (document.body.clientWidth != null)
		return ((document.body.clientWidth));
	return (null);
}

function livePage(){
livePageWidth = findLivePageWidth();
document.writeln('<div id="line1" style="position:absolute; top:12px; left:0px; width:' + livePageWidth + 'px; height:3px; background-image:url(http://www.WebVox.com.au/images/linerepeat.gif); background-repeat:repeat-x;"></div>');
document.writeln('<div id="line2" style="position:absolute; top:125px; left:0px; width:' + livePageWidth + 'px; height:3px; background-image:url(http://www.WebVox.com.au/images/linerepeat.gif); background-repeat:repeat-x;"></div>');
document.writeln('<div id="line3" style="position:absolute; top:198px; left:0px; width:' + livePageWidth + 'px; height:3px; background-image:url(http://www.WebVox.com.au/images/linerepeat.gif); background-repeat:repeat-x;"></div>');
document.writeln('<div id="line4" style="position:absolute; top:281px; left:0px; width:' + livePageWidth + 'px; height:3px; background-image:url(http://www.WebVox.com.au/images/linerepeat.gif); background-repeat:repeat-x;"></div>');
document.writeln('<div id="line5" style="position:absolute; top:534px; left:0px; width:' + livePageWidth + 'px;  height:3px; background-image:url(http://www.WebVox.com.au/images/linerepeat.gif); background-repeat:repeat-x;"></div>');
document.writeln('<div id="line6" style="position:absolute; top:552px; left:0px; width:' + livePageWidth + 'px;  height:3px; background-image:url(http://www.WebVox.com.au/images/linerepeat.gif); background-repeat:repeat-x;"></div>');
}


//function preloadImages()
var pics = new Array(
'http://www.WebVox.com.au/pages/clientimg/aus1.jpg',
'http://www.WebVox.com.au/pages/clientimg/aus2.jpg',
'http://www.WebVox.com.au/pages/clientimg/aus3.jpg',
'http://www.WebVox.com.au/pages/clientimg/aus4.jpg',
'http://www.WebVox.com.au/pages/clientimg/combi1.jpg',
'http://www.WebVox.com.au/pages/clientimg/combi2.jpg',
'http://www.WebVox.com.au/pages/clientimg/combi3.jpg',
'http://www.WebVox.com.au/pages/clientimg/combi4.jpg',
'http://www.WebVox.com.au/pages/clientimg/djc1.jpg',
'http://www.WebVox.com.au/pages/clientimg/djc2.jpg',
'http://www.WebVox.com.au/pages/clientimg/djc3.jpg',
'http://www.WebVox.com.au/pages/clientimg/djc4.jpg',
'http://www.WebVox.com.au/pages/clientimg/evisas1.jpg',
'http://www.WebVox.com.au/pages/clientimg/evisas2.jpg',
'http://www.WebVox.com.au/pages/clientimg/evisas3.jpg',
'http://www.WebVox.com.au/pages/clientimg/evisas4.jpg',
'http://www.WebVox.com.au/pages/clientimg/free1.jpg',
'http://www.WebVox.com.au/pages/clientimg/free2.jpg',
'http://www.WebVox.com.au/pages/clientimg/free3.jpg',
'http://www.WebVox.com.au/pages/clientimg/free4.jpg',
'http://www.WebVox.com.au/pages/clientimg/lnt1.jpg',
'http://www.WebVox.com.au/pages/clientimg/lnt2.jpg',
'http://www.WebVox.com.au/pages/clientimg/lnt3.jpg',
'http://www.WebVox.com.au/pages/clientimg/lnt4.jpg',
'http://www.WebVox.com.au/pages/clientimg/tt1.jpg',
'http://www.WebVox.com.au/pages/clientimg/tt2.jpg',
'http://www.WebVox.com.au/pages/clientimg/whg1.jpg',
'http://www.WebVox.com.au/pages/clientimg/whg2.jpg',
'http://www.WebVox.com.au/pages/clientimg/whg3.jpg',
'http://www.WebVox.com.au/pages/clientimg/whg4.jpg');

var imgsrc = new Array(pics.length);		

function preloadImages(){
	for (i=0; i<pics.length; i++)
	{
		imgsrc[i] = new Image();
		imgsrc[i].src = pics[i];
	}
}


//var p = imgsrc.length
//function preloadImages1(){
//var preLoad = new Array()
//for (i = 0; i < p; i++){
  // preLoad[i] = new Image()
   //preLoad[i].src = imgsrc[i]
//}



//function preloadImages()

