
/*
Random Image Script- By JavaScript Kit (http://www.javascriptkit.com) 
Over 400+ free JavaScripts here!
Keep this notice intact please
*/

function random_imglink(){
var myimages=new Array()
var mylink=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="/images/homepage/01/60659-6panel-brushed-twill-structured-cap.jpg"
myimages[2]="/images/homepage/01/224478-24oz-h2go-stainless-steel-athans.jpg"
myimages[3]="/images/homepage/01/317576-alternative-aa1070-basic-crew.jpg"
myimages[4]="/images/homepage/01/86462-rubberized-sunglasses.jpg"
myimages[5]="/images/homepage/01/311602-16-oz-double-wall-acrylic-tumbler-w-straw.jpg"

mylink[1]="http://www.theiceboxshop.com/product/60659/"
mylink[2]="http://www.theiceboxshop.com/product/224478/"
mylink[3]="http://www.theiceboxshop.com/product/317576/"
mylink[4]="http://www.theiceboxshop.com/product/86462/"
mylink[5]="http://www.theiceboxshop.com/product/311602/"

var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<a href="'+mylink[ry]+'" target="blank"><img src="'+myimages[ry]+'" /></a>')
}

function random_imglink2(){
var myimages2=new Array()
var mylink2=new Array()
//specify random images below. You can have as many as you wish
myimages2[1]="/images/homepage/02/245824-alternative-aa1973-eco-heather-crew.jpg"
myimages2[2]="/images/homepage/02/245017-alternative-aa1973-eco-heather-crew.jpg"
myimages2[3]="/images/homepage/02/222264-big-bobber-floating-cooler.jpg"
myimages2[4]="/images/homepage/02/86601-small-sports-pack.jpg"
myimages2[5]="/images/homepage/02/329308-2gb-rotate-usb-flash-drive.jpg"

mylink2[1]="http://www.theiceboxshop.com/product/245824/"
mylink2[2]="http://www.theiceboxshop.com/product/245017/"
mylink2[3]="http://www.theiceboxshop.com/product/222264/"
mylink2[4]="http://www.theiceboxshop.com/product/86601/"
mylink2[5]="http://www.theiceboxshop.com/product/329308/"

var ry=Math.floor(Math.random()*myimages2.length)
if (ry==0)
ry=1
document.write('<a href="'+mylink2[ry]+'" target="blank"><img src="'+myimages2[ry]+'" /></a>')
}
