// JavaScript Document

/*************************************************
 * Default settings for 3 banners only, change it
 * to your desired number. Let's say you want
 * 7 banners to rotate. Then you should change
 * var urlArray = new Array(7);
 * var banArray = new Array(7);
 *************************************************/
var urlArray = new Array(2);
var banArray = new Array(2);


/************************************************
 * Please provide the initial URL for the first
 * banner.
 ***********************************************/
var url = "http://www.techenterprises.net/clickthroughs.taf?iLinkIdn=15";


/***************************************************
 * Insert your advertising URLs, add more
 * urlArray[]. Let's say, you want 7 banners. Then
 * you should add urlArray[0] to urlArray[6].
 * Remember the count begins from 0, not from 1.
 *************************************************/

urlArray[0] = "http://www.techenterprises.net/clickthroughs.taf?iLinkIdn=15";
//urlArray[1] = "/index.taf?_function=fullArticle&post_idn=42"


/****************************************************
 * Provide width and height of your banners. Default
 * is 468x60 pixels.
 ****************************************************/
var bwidth = 800;
var bheight = 200;


/**************************************************
 * Provide your advertising banners address below.
 * You should provide only one address in each
 * banArray[]. You can provide different locations
 * for every banner. Sample:
 * banArray[0].src = "http://ads.pac.com/ad1.gif";
 * ...
 * banArray[6].src = "http://xop.net/img/ad7.jpg";
 * If all the banners reside on your web server,
 * you can use relative paths. Always add a pair
 * of banArray[].
 *************************************************/

banArray[0] = new Image(bwidth, bheight);
banArray[0].src = "/images/banners/PPBU_Q409_Cp_CsTs_NaSPA_GIF.gif";

//banArray[1] = new Image(bwidth, bheight);
//banArray[1].src = "/images/banners/NaSPA_JOB_LISTINGS!_a.gif";



/****************************************************
 * Time to display each banner, default is 2 seconds.
 ****************************************************/
Display_Time = 8;



var counter = 1;


/*****************************************************
 * FUNCTION: changeBanner()
 * ARGUMENTS: None.
 * PURPOSE: This function increases the counter value
 * and rotates your banners on any modern browsers
 * such as MSIE, Firefox, Opera, Mozilla, Netscape.
 *****************************************************/
function changeBanner()
{
  if(counter > (urlArray.length - 1))
  {
    counter = 0;
  }

  document.banner.src = banArray[counter].src;
  url = urlArray[counter];
  counter++;
}

var timer = window.setInterval("changeBanner();", (Display_Time * 1000));


