// Purpose:			NetAssociates Net-Executive ad functions
// Author:			Kieran O'Toole - NetAssociates Limited. 05/2002
// Note:				Custom made for Netassoc.co.nz

// pic1
var ary1 = new Array();
ary1[0] = "Access your information system from anywhere in the world, with any computer which has connection to the Internet.";
ary1[1] = "The only software needed to access and execute your applications is your favourite web browser. ";
ary1[2] = "The pay-as-you-go model is often significantly less expensive for all but the most frequent users of the service.";
ary1[3] = "The ASP model, as with any outsourcing arrangement eliminates head-count, IT head-counts tend to be very expensive and very specialised.";
ary1[4] = "The ASP model <b>reduces the high cost of specialised software</b>. As the costs grow, it becomes nearly impossible for a small business to afford to purchase the software, so the ASP makes using the software possible.";
ary1[5] = "The ASP model can shift Internet bandwidth to the ASP, who can often provide it at lower cost.";


var intThumb01 = 1;
var objThumb01 = setInterval("", 0);

var IE4 = (document.all) ? 1 : 0;									// IE4+	
var NS4 = (document.layers) ? 1 : 0;								// Netscape ver 4-6
var NS5 = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= 5) ? 1 : 0; 

function ThumbDisplay(id, str) {
  if (NS4) {
    with (document[id].document) {
      open();
      write(str);
      close();
    }
  }
  if (NS5) {
  	if (document.getElementById("weead1")) {
		document.getElementById(id).innerHTML = str;
	}
  }
  if (IE4) {
  //	alert("got here OK; id= " + id + " str= " + str);
  	if (document.all("weead1")) {
  		weead1.filters[0].apply();
    	document.all[id].innerHTML = str;
		weead1.filters[0].play();
	}
  }
}

function ThumbNext(intDB) {
var intThm = 0;
var strHTML = "";
	if (intDB == 1) { 
		intThumb01++; 
		if (intThumb01 == ary1.length) { intThumb01 = 0; }
		intThm = intThumb01;
		strHTML = ary1[intThm];
	}
	//alert("strHTML= " + strHTML);
	//alert("intDB= " + intDB);
	ThumbDisplay("pic" + intDB, strHTML);
}

function ThumbPrev(intDB) {
var intThm = 0;
var strHTML = "";
	if (intDB == 1) { 
		intThumb01--;
		if (intThumb01 == 0) { intThumb01 = ary1.length -1; }
		intThm = intThumb01;
		strHTML = ary1[intThm];
	}
	ThumbDisplay("pic" + intDB, strHTML);
}

function ThumbSlide(intDB) {
	if (intDB == 1) {
		clearInterval(objThumb01);
		objThumb01 = setInterval("ThumbNext(" + intDB + ")", 8500);
	}
}


