
/*Vertical Pausing Slideshow - freely adapted from:
Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and TOS, visit http://www.dynamicdrive.com
Modified by jscheuer1 for continuous content slideshow. Credit MUST stay intact for use
visit http://www.dynamicdrive.com/forums*/


//Specify the marquee's width (in pixels)
var marqueewidth="175px"
//Specify the marquee's height
var marqueeheight="790px"
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=1
//Specify initial pause before scrolling in milliseconds
var initPause=1000
//Specify start with Full(1)or Empty(0) Marquee
var full=1
//Pause marquee onMousever (0=no 1=yes)?
var pauseit=1
//Specify images' border
imgBorder=0
//Specify enlargement factor onmouseover
var efactor='110%'
//specify enlarged image's top and left offsets
var etop=-10
var eleft=-3

var photos=new Array();
//Specify images, optional link, optional target:
photos[0]=['images/Jasper_Hill_Logo.gif', 'http://www.jasperhill.com', '_blank']
photos[1]=['images/space.gif']
photos[2]=['images/chalkhill.gif', 'http://www.chalkhill.com.au', '_blank']
photos[3]=['images/space.gif']
photos[4]=['images/bress.gif', 'http://www.bress.com.au', '_blank']
photos[5]=['images/space.gif']
photos[6]=['images/allandale.jpg', 'http://www.allandalewinery.com.au', '_blank']
photos[7]=['images/space.gif']
photos[8]=['images/ArgiolasLogo.gif', 'http://www.cantine-argiolas.it', '_blank']
photos[9]=['images/space.gif']
photos[10]=['images/PioCesareLogo.gif', 'http://www.piocesare.it', '_blank']
photos[11]=['images/space.gif']
photos[12]=['images/LivioFellugaLogo.jpg', 'http://www.liviofelluga.it', '_blank']
photos[13]=['images/space.gif']
photos[14]=['images/DonnafugataLogo.gif', 'http://www.donnafugata.it', '_blank']
photos[15]=['images/space.gif']
photos[16]=['images/CastellareLogo.gif', 'http://www.isodi.it', '_blank']
photos[17]=['images/space.gif']
photos[18]=['images/CastagnaLogo.jpg', 'http://www.castagna.com.au', '_blank']
photos[19]=['images/space.gif']
photos[20]=['images/BrancaLogo.jpg', 'http://www.villabranca.it', '_blank']
photos[21]=['images/space.gif']
photos[22]=['images/BirraMessinalogo.jpg', 'http://www.heineken.com', '_blank']
photos[23]=['images/space.gif']
photos[24]=['images/BellussiLogo.gif', 'http://www.bellussi.com', '_blank']
photos[25]=['images/space.gif']
photos[26]=['images/ZenatoLogo.gif', 'http://www.zenato.it', '_blank']
photos[27]=['images/space.gif']
photos[28]=['images/savaterrelogo.gif', 'http://www.savaterre.com', '_blank']
photos[29]=['images/space.gif']
photos[30]=['images/TeWhareRaLogo.gif', 'http://www.te-whare-ra.co.nz', '_blank']
photos[31]=['images/space.gif']
photos[32]=['images/Oakridgelogo.gif', 'http://www.oakridgeestate.com.au', '_blank']
photos[33]=['images/space.gif']
photos[34]=['images/springvalelogo.gif', 'http://www.springvalewines.com', '_blank']
photos[35]=['images/space.gif']
photos[36]=['images/CrawfordLogo.gif', 'http://www.crawfordriverwines.com', '_blank']
photos[37]=['images/space.gif']
photos[38]=['images/gossetlogo.gif', 'http://www.champagne-gosset.com', '_blank']
photos[39]=['images/space.gif']
photos[40]=['images/philipponnatlogo.gif', 'http://www.philipponnat.com', '_blank']
photos[41]=['images/space.gif']
photos[42]=['images/spinifexlogo.gif', 'http://www.spinifexwines.com.au', '_blank']
photos[43]=['images/space.gif']
photos[44]=['images/rolfbinder.gif', 'http://www.rolfbinder.com', '_blank']
photos[45]=['images/space.gif']
photos[46]=['images/magpie.gif', 'http://www.rolfbinder.com', '_blank']
photos[47]=['images/space.gif']
photos[48]=['images/LBLogo.gif', 'http://www.lentonbrae.com', '_blank']
photos[49]=['images/space.gif']
photos[50]=['images/KTBrand.gif', 'http://www.ktandthefalcon.com.au', '_blank']
photos[51]=['images/space.gif']
photos[52]=['images/lucylogo.gif', 'http://www.domainelucci.com', '_blank']
photos[53]=['images/space.gif']
photos[54]=['images/ldhlogo.gif', 'http://www.lawsonsdryhills.co.nz', '_blank']
photos[55]=['images/space.gif']
photos[56]=['images/punkslogo.gif', 'http://www.someyoungpunks.com.au', '_blank']
photos[57]=['images/space.gif']
photos[58]=['images/adelina.gif', 'http://www.adelina.com.au', '_blank']
photos[59]=['images/space.gif']
////NO NEED TO EDIT BELOW THIS LINE////////////
var preload=new Array()
for (var i_tem = 0; i_tem < photos.length; i_tem++){
preload[i_tem]=new Image()
preload[i_tem].src=photos[i_tem][0]
}

var actualheight=marqueecontent=''
var copyspeed=marqueespeed
var pausespeed=(pauseit)? 0 : copyspeed
var iedom=document.all||document.getElementById
var cross_marquee, cross_marquee2, ns_marquee

function disp(im){

document.getElementById('disparea').style.visibility='visible';
}

for (var i_tem = 0; i_tem < photos.length; i_tem++){
if (typeof photos[i_tem][1]!=='undefined'){
marqueecontent+='<a href="'+photos[i_tem][1]+'"'
marqueecontent+=typeof photos[i_tem][2]!=='undefined'? ' target="'+photos[i_tem][2]+'"' : ''
marqueecontent+='>'
}
marqueecontent+='<img onmouseover="disp(photos);" src="'+photos[i_tem][0]+'" alt="Link to Winery" border="'+imgBorder+'"><br>'
marqueecontent+=typeof photos[i_tem][1]!=='undefined'? '</a>' : ''
}
if (iedom||document.layers){
with (document){
if (iedom){
write('<div style="overflow:hidden;"><div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')
write('<div id="iemarquee" style="position:absolute;left:0px;top:0px;width:100%;"><table align="center"><tr><td height="'+marqueeheight+'" align="center" valign="middle" class="smalltext">Loading . . .</td></tr></table>')
write('</div><div id="iemarquee2" style="position:absolute;left:0px;top:0px;width:100%;">')
write('</div></div><div id="disparea" style="position:absolute;visibility:hidden;" onMouseOver="copyspeed=pausespeed;" onMouseOut="copyspeed=marqueespeed;this.style.visibility=\'hidden\';"></div></div>')
}
else if (document.layers){
write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee">')
write('<layer name="ns_marquee2" width='+marqueewidth+' height='+marqueeheight+' left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
write('</ilayer>')
}
}
}

function populate(){
if (document.all)
for (var i_tem = 0; i_tem < preload.length; i_tem++)
if (typeof preload[i_tem].complete=='boolean'&&!preload[i_tem].complete){
setTimeout("populate();", 2000)
return;
}
if (iedom){
document.getElementById('disparea').style.top=document.getElementById('disparea').previousSibling.offsetTop+etop+'px';
document.getElementById('disparea').style.left=document.getElementById('disparea').previousSibling.offsetLeft+eleft+'px';
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
cross_marquee2=document.getElementById? document.getElementById("iemarquee2") : document.all.iemarquee2
cross_marquee.style.top=(full==1)? '0px' : parseInt(marqueeheight)+0+"px"
cross_marquee2.innerHTML=cross_marquee.innerHTML=marqueecontent
actualheight=cross_marquee.offsetHeight
cross_marquee2.style.top=(parseInt(cross_marquee.style.top)+actualheight+0)+"px" //indicates following #1
}
else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee2
ns_marquee.top=parseInt(marqueeheight)+8
ns_marquee.document.write(marqueecontent)
ns_marquee.document.close()
actualheight=ns_marquee.document.height
}
setTimeout('lefttime=setInterval("scrollmarquee()",20)',initPause)
}
window.onload=populate

function scrollmarquee(){

if (iedom){
if (parseInt(cross_marquee.style.top)<(actualheight*(-1)))
cross_marquee.style.top=(parseInt(cross_marquee2.style.top)+actualheight)+"px"
if (parseInt(cross_marquee2.style.top)<(actualheight*(-1)))
cross_marquee2.style.top=(parseInt(cross_marquee.style.top)+actualheight)+"px"
cross_marquee2.style.top=parseInt(cross_marquee2.style.top)-copyspeed+"px"
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
}

else if (document.layers){
if (ns_marquee.top>(actualheight*(-1)+8))
ns_marquee.top-=copyspeed
else
ns_marquee.top=parseInt(marqueeheight)+8
}
}