// ROTATING IMAGE SCRIPT (Industry Partners section)
if (document.images)
{

	// Array of banner images (sitename is defined in "config.js"
    adImages = new Array();
	adImages[0] = sitename + '/images/IndustryPartners_ADT.gif'
	adImages[1] = sitename + '/images/IndustryPartners_Vector.gif'
	adImages[2] = sitename + '/images/IndustryPartners_IBM.jpg'	
	adImages[3] = sitename + '/images/IndustryPartners_ChoicePoint.jpg'		
	adImages[4] = sitename + '/images/IndustryPartners_KPMG.jpg'			
	adImages[5] = sitename + '/images/IndustryPartners_Enabl-u.jpg'				
	adImages[6] = sitename + '/images/IndustryPartners_LPMagazine.jpg'					

	// Array of banner URLs (keep in same order as image array)
    adURLs = new Array();
	adURLs[0] = 'www.adt.com';
	adURLs[1] = 'www.vectorsecurity.com';
	adURLs[2] = 'www.ibm.com';	
	adURLs[3] = 'www.choicepoint.com';		
	adURLs[4] = 'www.kpmg.com';			
	adURLs[5] = 'www.enabl-u.com';				
	adURLs[6] = 'www.losspreventionmagazine.com';					
					   
    thisAd = 0;
}

// The following function cycles through each banner image.
// Notice the use of the variable thisAd to go from 0 to 2 and then
// back to 0. JavaScript has an object called document whose
// member adBanner can be set to the current banner to display.

function cycleAds()
{
    if (document.images)
    {
        if (document.adBanner.complete)
        {
            if (++thisAd == adImages.length)
                thisAd = 0;

            document.adBanner.src = adImages[thisAd];
        }
    }

    // change to next banner every 15 seconds
    setTimeout("cycleAds()", 4300);
}

// This function is used to direct the user to the website when
// the user clicks on a particular banner image.

function gotoAd()
{
    //document.location.href = "http://" + adURLs[thisAd];
	window.open("http://" + adURLs[thisAd]);
}