// begin absolutely positioned autoscroll area object scripts 

/*
Extension developed by David G. Miles (www.z3roadster.net/dreamweaver)
To add more shock to your site, visit www.DHTML Shock.com
*/

// begin dHTML SlideShow Script 
 
if(document.images) { 
        currentslide=1; 
        maxslides=5; 
        slide = new Array(maxslides+1); 
        thumb = new Array(maxslides+1); 
        for(var n=1;n<=maxslides;n++) { 
            slide[n]=new Image(200,150); 
            slide[n].src='images/slide_'+n+'.gif'; 
        } 
        for(var n=1;n<=maxslides;n++) { 
            thumb[n]=new Image(75,75); 
            thumb[n].src='thmbnls/tn_'+n+'.gif'; 
        } 
    } 
    
    function prevSlide() { 
        if(document.images) { 
            currentslide--; 
            if(currentslide<1) currentslide=maxslides; 
            document.images['slide'].src=thumb[currentslide].src; 
        } 
    } 


    function nextSlide() { 
        if(document.images) { 
            currentslide++; 
            if(currentslide>maxslides) currentslide=1;  
            document.images['slide'].src=thumb[currentslide].src; 
        } 
    } 
    function showFullSize(){ 
        openPictureWindow('images/slide_'+currentslide+'.gif', 200, 150, 'Full Size Image'); 
    } 
    
    function openPictureWindow(imageName,imageWidth,imageHeight,alt) 
    { 
        newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no"); 
        newWindow.document.open(); 
        newWindow.document.write('<HTML><TITLE>'+alt+'<\/TITLE><BODY bgcolor="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" onBlur="self.close()">'); 
        newWindow.document.write('<IMG SRC='+imageName+' WIDTH='+imageWidth+' HEIGHT='+imageHeight+' ALT="'+alt+'">'); 
        newWindow.document.write('<\/BODY><\/HTML>'); 
        newWindow.document.close(); 
        newWindow.focus(); 
    }
