// JavaScript Document
function load_randomImage(){
 var splashIMGclass=new Array()
 splashIMGclass[1]="<img src='images/hp-image1.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image2.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image3.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image4.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image5.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image6.jpg' width='1063' height='578' alt='background-02' />"
 splashIMGclass[2]="<img src='images/hp-image2.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image3.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image4.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image5.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image6.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image1.jpg' width='1063' height='578' alt='background-02' />"
 splashIMGclass[3]="<img src='images/hp-image3.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image4.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image5.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image6.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image1.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image2.jpg' width='1063' height='578' alt='background-02' />"
 splashIMGclass[4]="<img src='images/hp-image4.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image5.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image6.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image1.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image2.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image3.jpg' width='1063' height='578' alt='background-02' />"
 splashIMGclass[5]="<img src='images/hp-image5.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image6.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image1.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image2.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image3.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image4.jpg' width='1063' height='578' alt='background-02' />"
 splashIMGclass[6]="<img src='images/hp-image6.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image1.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image2.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image3.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image4.jpg' width='1063' height='578' alt='background-02' /><img src='images/hp-image5.jpg' width='1063' height='578' alt='background-02' />"

 var ry=Math.floor(Math.random()*splashIMGclass.length)

 if (ry==0)
    ry=1
    document.write('<div id="slideshow" class="pics">'+splashIMGclass[ry]+'</div>')
	 
}

function activate_slideshow(){	
setTimeout(function() {
$('.pics').fadeIn(1000); 
 }, 800);  
    setTimeout(function() {
       $('#slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});


	  

    }, 1500);


}


