﻿//image rotation created on April 5, 2006 
function image_Rotate()
{
	num =imgArray1.length;
	incr=Math.floor(Math.random()*num);
	document.open;
	document.write("<a href='" + ar_text1[incr] + "'><img  src = ' " + imgArray1[incr] + "' alt=\" \"/> </a>");
	
	document.write("<div style='margin:-25px 0px 0px 75px;'><a href='" + ar_text1[incr] + "'><img src ='../scripts/images/rotation/buynow.png' /> </a></div>");
	
	document.close();
}

var ar_text1 = new Array();
//Consumer Links
ar_text1[ar_text1.length] = "http://www.zarc.com/pepperspray/Items.aspx?code=KeyGuard&key=cat";
ar_text1[ar_text1.length] = "http://www.zarc.com/pepperspray/Items.aspx?code=SD&key=cat";
ar_text1[ar_text1.length] = "http://www.zarc.com/pepperspray/Items.aspx?code=MicroSpin&key=cat";
ar_text1[ar_text1.length] = "http://www.zarc.com/pepperspray/Items.aspx?code=SV&key=cat";
ar_text1[ar_text1.length] = "http://www.zarc.com/pepperspray/Items.aspx?code=UG&key=cat";
ar_text1[ar_text1.length] = "http://www.zarc.com/pepperspray/Items.aspx?code=OCFIRSTA&key=cat";
//Professional Links


var imgArray1 = new Array();
//Consumer Images
imgArray1[0] = "../scripts/images/rotation/001.gif";
imgArray1[1] = "../scripts/images/rotation/002.gif";
imgArray1[2] = "../scripts/images/rotation/003.gif";
imgArray1[3] = "../scripts/images/rotation/004.gif";
imgArray1[4] = "../scripts/images/rotation/005.gif";
imgArray1[5] = "../scripts/images/rotation/006.gif";
//Professional Images


/*********************************** PROFESSIONAL PRODUCTS ADS *************************************************/

//Image rotation Professional
function image_Rotate2() {
    num = imgArray1.length;
    incr = Math.floor(Math.random() * num);
    document.open;
    document.write("<a href='" + ar_text2[incr] + "'><img  src = ' " + imgArray2[incr] + "' alt=\" \"/> </a>");

    document.write("<div style='margin:-25px 0px 0px 75px;'><a href='" + ar_text2[incr] + "'><img src ='../scripts/images/rotation/buynow.png' /> </a></div>");

    document.close();
}

var ar_text2 = new Array();
//CAP-STUN Links
ar_text2[ar_text2.length] = "http://www.zarc.com/pepperspray/Items.aspx?code=OCFIRSTA&key=cat";
ar_text2[ar_text2.length] = "http://www.zarc.com/pepperspray/ProductDesc.aspx?code=Z-205&type=4&eq=&desc=Z-205-Undercover-Unit";
ar_text2[ar_text2.length] = "http://www.zarc.com/pepperspray/ProductDesc.aspx?code=T-305&type=4&eq=&desc=Cap-Stun-Inert-305-Training-Unit";
ar_text2[ar_text2.length] = "http://www.zarc.com/pepperspray/ProductDesc.aspx?code=Z-305&type=4&eq=&desc=Z-305-Standard-Duty";
ar_text2[ar_text2.length] = "http://www.zarc.com/pepperspray/ProductDesc.aspx?code=Z-505&type=4&eq=&desc=Z-505-Crowd-Control&key=it";
ar_text2[ar_text2.length] = "http://www.zarc.com/pepperspray/ProductDesc.aspx?code=Z-606&type=4&eq=&desc=Z-606-Grenade";
//VEXOR Links
ar_text2[ar_text2.length] = "http://www.zarc.com/pepperspray/Items.aspx?code=MK2&key=mr";
ar_text2[ar_text2.length] = "http://www.zarc.com/pepperspray/ProductDesc.aspx?code=V-7145-2MSS&type=4&eq=&desc=Vexor-Pepper-Spray-MK2-1.45-Micro-Spin";
ar_text2[ar_text2.length] = "http://www.zarc.com/pepperspray/ProductDesc.aspx?code=V-7145-3FTS-FA&type=4&eq=&desc=Vexor-MK3-FULL-AXIS-Stream";


var imgArray2 = new Array();
//CAP-STUN Images
imgArray2[0] = "../scripts/images/rotation/006.gif";//OC Aid Wipes. This ad will be on both Personal and Professional
imgArray2[1] = "../scripts/images/rotation/007.gif";
imgArray2[2] = "../scripts/images/rotation/008.gif";
imgArray2[3] = "../scripts/images/rotation/009.gif";
imgArray2[4] = "../scripts/images/rotation/010.gif";
imgArray2[5] = "../scripts/images/rotation/011.gif";
//VEXOR Images
imgArray2[6] = "../scripts/images/rotation/012.gif";
imgArray2[7] = "../scripts/images/rotation/013.gif";
imgArray2[8] = "../scripts/images/rotation/014.gif";
