// Purpose:			NetAssociates ad functions
// Author:			Kieran O'Toole - NetAssociates Limited. 03/2002
// History:			24/03/2005	Removed ary2, ary3, ary4
// Note:			Custom made for Netassoc.com

// pic1
var ary1 = new Array();
ary1[0] = "<a href='http://rss.geek.nz/'><img src='imgs/ad/adRSSAddYours01.gif' alt='click here to find out how to add a live news feed to your website!' width='126' height='56' hspace='0' vspace='0' border='0' align='absmiddle'></a>";
ary1[1] = "<a href='Associates/Default.asp?pg=forhire'><img src='imgs/ad/adHelpWanted01.gif' alt='can you help us?' width='126' height='56' hspace='0' vspace='0' border='0' align='absmiddle'></a>";
ary1[2] = "<a href='http://www.netassoc.co.nz/services/default.asp?pg=WebForwardingPlus' title='Register a domain name and get free Email and Web forwarding !!'><img src='http://www.netassoc.co.nz/imgs/ad/anidomainregistrations02.gif' width='126' height='56' hspace='0' vspace='0' border='0'></a>";
ary1[3] = "<a href='http://rss.netassoc.co.nz/'><img src='imgs/ad/adRSSBrowse01.gif' alt='check out our RSS news database.' width='126' height='56' hspace='0' vspace='0' border='0' align='absmiddle'></a>";
ary1[4] = "<a href='http://aspn.activestate.com/ASPN/Reference/Products/ActivePerl/Windows/ActiveServerPages.html' target='_blank'><img src='imgs/ad/aniActivePerl01.gif' alt='Program in Perl 5.5, intregrated tightly with Microsoft`s Active Server Pages technology' width='126' height='56' hspace='0' vspace='0' border='0' align='absmiddle'></a>";
ary1[5] = "<a href='services/default.asp?pg=php'><img src='imgs/ad/aniphp01.gif' alt='PHP scripting version 4.04 available with our web hosting services.' width='126' height='56' hspace='0' vspace='0' border='0' align='absmiddle'></a>";
ary1[6] = "<a href='services/default.asp?pg=mySQL'><img src='imgs/ad/aniMySQL01.gif' alt='My SQL version 4.0 available here with online administration via phpMyAdmin' width='126' height='56' hspace='0' vspace='0' border='0' align='absmiddle'></a>";
ary1[7] = "<a href='http://www.w3.org/P3P/validator.html' target='win_p3p'><img src='imgs/ad/aniP3P01.gif' alt='this website supports The Platform for Privacy Preferences Project (P3P), developed by the World Wide Web Consortium' width='126' height='56' hspace='0' vspace='0' border='0' align='absmiddle'></a>";
ary1[8] = "<img src='imgs/ad/anidot02.gif' alt='register domains here' width='126' height='56' hspace='0' vspace='0' border='0' align='absmiddle'>";
ary1[9] = "<a href='http://www.icra.org' target='win_icra'><img src='imgs/ad/adICRA01.gif' alt='this website is supports the Internet Content Rating Association.' width='126' height='56' hspace='0' vspace='0' border='0' align='absmiddle'></a>";
ary1[10] = "<A HREF='http://www.eff.org/blueribbon' target='_blank'><IMG SRC='http://www.netassoc.co.nz/imgs/logos/br.gif' ALT='[Blue Ribbon Campaign icon]' HEIGHT='76' WIDTH='112' BORDER='1' ALIGN='MIDDLE'><BR>Join the Blue Ribbon Online Free Speech Campaign!</A><BR>"
ary1[11] = "<a href='http://www.wunderground.com/global/stations/93119.html' target='win_weather'><img src='http://banners.wunderground.com/banner/infoboxtr_metric/language/www/global/stations/93119.gif' alt='click for forecast' width='144' height='108' hspace='0' vspace='0' border='0' align='absmiddle'></a>";
ary1[12] = "<a href='http://geourl.org/near/?p=http://www.netassoc.co.nz/' title='check out my neighbors in meatspace' target='_blank'><img src='imgs/logos/geourl.gif' border=0 width=52 height=14></a>";
ary1[13] = "<img src='imgs/ad/aniVCard4Free01.gif' width='126' height='56' hspace='0' vspace='0' border='0'>";

var intThumb01 = 1;
var objThumb01 = setInterval("", 0);

function ThumbDisplay(id, str) {
  if (NS4) {
    with (document[id].document) {
      open();
      write(str);
      close();
    }
  }
  if (IE4 && isWin) {
  //	alert("got here OK; id= " + id + " str= " + str);
  	if (getE(id)) {
  		getE(id).filters[0].apply();
    	getE(id).innerHTML = str;
		getE(id).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];
	}
	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 + ")", 12000);
	}
}

function doTrans() {
	imgObj.filters[0].apply();
	imgObjText.innerHTML =     "";
	imgObj.filters[0].play();
}
