<!--
        //Step 1: Set number of URL array, increase number to the
        //        number of ads you want to display.
var urlArray = new Array(4); 

        //Step 2: Set number of Image array, increase number as necessary.
        //Make sure these numbers are the same.
var banArray = new Array(4);

        //Step 3: Put your initial URL here.
var adNo = 0;
var heigh;
var wide;
var itype;

function changeAd(){
        // This statement allows IE browsers to display images and URL's.
  itype = document.adcoop.type1.value;
  switch(itype){
  	case '1':
  		wide = '120';
  		heigh = '60';
  	break;
  	case '2':
  		wide = '120';
  		heigh = '90';
  	break;
  	case '3':
  		wide = '468';
  		heigh = '60';
  	break;
  	case '4':
  		wide = '728';
  		heigh = '90';
  	break;
  	case '5':
  		wide = '180';
  		heigh = '150';
  	break;
  	case '6':
  		wide = '120';
  		heigh = '240';
  	break;
  	case '7':
  		wide = '120';
  		heigh = '600';
  	break;
	}
  
	if (navigator.appName == "Microsoft Internet Explorer"){
	        //STEP 6: If you display more ads than 3, change the 3 below to the
	        // total number of ads you want to display.
		if (adNo < 4){ 
			switch(adNo){
			        //STEP 7: For each case, input your URL and Banner Image source.
			        // If you have more than 3 ads, add a case and all its statements
			        // for each additional banner.
				case 0:
					banRot2.filters[0].Apply();
					banRot2.innerHTML = '<a href="http://' + document.adcoop.url1.value + '" target="_blank"><img src="http://www.adcoop.net/images/' + document.adcoop.img1.value + '" width="' + wide + '" height="' + heigh + '" border="0"/></a>';
					banRot2.filters[0].Play();
					adNo++;
				break;
				
				case 1:
					banRot2.filters[0].Apply();
					banRot2.innerHTML = '<a href="http://' + document.adcoop.url2.value + '" target="_blank"><img src="http://www.adcoop.net/images/' + document.adcoop.img2.value + '" width="' + wide + '" height="' + heigh + '" border="0"/></a>';
					banRot2.filters[0].Play();
					adNo++;
				break;
				
				case 2:
					banRot2.filters[0].Apply();
					banRot2.innerHTML = '<a href="http://' + document.adcoop.url3.value + '" target="_blank"><img src="http://www.adcoop.net/images/' + document.adcoop.img3.value + '" width="' + wide + '" height="' + heigh + '" border="0"/></a>';
					banRot2.filters[0].Play();
					adNo++;
				break;

				case 3:
					banRot2.filters[0].Apply();
					banRot2.innerHTML = '<a href="http://' + document.adcoop.url4.value + '" target="_blank"><img src="http://www.adcoop.net/images/' + document.adcoop.img4.value + '" width="' + wide + '" height="' + heigh + '" border="0"/></a>';
					banRot2.filters[0].Play();
					adNo = 0;
				break;
			}
		}
	}
	        // The else statement allows all other browsers to display images
	        // without fadein. You don't change anything in this section.
	else{
		urlArray[0] = 'http://' + document.adcoop.url1.value;
		urlArray[1] = 'http://' + document.adcoop.url2.value;
		urlArray[2] = 'http://' + document.adcoop.url3.value;
		urlArray[3] = 'http://' + document.adcoop.url4.value;
		
		banArray[0] = new Image(wide, heigh);
		banArray[0].src = 'http://www.adcoop.net/images/' + document.adcoop.img1.value;
		banArray[1] = new Image(wide, heigh);
		banArray[1].src = 'http://www.adcoop.net/images/' + document.adcoop.img2.value;
		banArray[2] = new Image(wide, heigh);
		banArray[2].src = 'http://www.adcoop.net/images/' + document.adcoop.img3.value;
		banArray[3] = new Image(wide, heigh);
		banArray[3].src = 'http://www.adcoop.net/images/' + document.adcoop.img4.value;
		
		var banArrayLength = banArray.length-1; 
		if(adNo > banArrayLength) adNo = 0;
		document.bR.src = banArray[adNo].src;
		//document.bR.src = 'http://www.adcoop.net/images/0000000001-2.jpg';
		banRot2.url = urlArray[adNo]; 
		adNo++;
	}
}
        //STEP 8: Change speed to your requirement, 5000 equals 5 sec.
var speed = window.setInterval("changeAd()",10000);

//-->


//*********************************
//   Make any changes to the .js file by following the 8 steps included in the code above.
//   For example if you have more then 3 ads, You have to change the number of ads, to your requirements. 
//   you also have to input your own banner image sources and URL's.
//
//   After making changes to the BanRotator2.js file,place this line of code into the head.
//
//<script src="www.adcoop.net/AdCoopRotator.js" language="JavaScript"></script>
//
//   Next put these lines of code in the body where you want the banners to display.
//   Change the banner image to your initial display, ex; src="Cognigen.png". 
//   you can also change the blendTrans (duration=1) to any number from 0 to 10.
//
//<div id="banRot2" align="left" style="width:468; height:60;filter:blendTrans(duration=1)">
//<a href="#" onClick="window.open(url,'BannerWin');"><img name="bR"
//src="Cognigen.png" width="468" height="60" border="0"/></a>
//</div>
//*********************************
