if (document.images)
 {
 	blank_text = new Image;
    title_blank = new Image;
	jerram_img = new Image;
	jerram_text = new Image;
	jerramgallery_title = new Image;
	workshops_img = new Image;
	workshops_title = new Image;
	workshops_text = new Image;
	famous_img = new Image;
	famous_title = new Image;
	famous_text = new Image;
	
	blank_text.src = "images/text-line_blank.gif";
	title_blank.src = "images/title_blank.gif";
	jerram_img.src = "images/jerramgallery2.jpg";
	jerram_text.src = "images/jerram_text.gif";
	jerramgallery_title.src = "images/jerramgallery_title2.gif";
	workshops_img.src = "images/workshops.jpg";
	workshops_title.src = "images/workshops_title.gif";
	workshops_text.src = "images/workshops_text.gif";
	famous_img.src = "images/famousfishing.jpg";
	famous_title.src = "images/famous_title.gif";
	famous_text.src = "images/famous_text.gif";
 }
else
 {
 	blank_text = "";
 	title_blank = "";
 	document.title_pic = "";
	document.port_img = "";
	document.pic_text = "";
	jerram_img = "";
	jerram_text = "";
	jerramgallery_title = "";
	workshops_img = "";
	workshops_title = "";
	workshops_text = "";
	famous_img = "";
	famous_title = "";
	famous_text = "";
	
 }
 
 // The arguments are used in pairs, the image ID(Name) and it's file pointer.
 // Apart from the first which is the smartie-number.
 function swap_all( smartie_num, pic1a,pic1b, pic2a,pic2b, pic3a,pic3b )
 {
 	Swap('ani_smartie',smartie_num,jerr_text,ani_smartie); 
	swap2(pic1a, pic1b);
	swap2(pic2a, pic2b); 
	swap2(pic3a, pic3b); 
	
	if(document.layers)
		{
		document.bac.visibility="hide";
		}
	textt.style.display="none";
	
	return true;
 }
 
 function swap_bac_all(smartie_num)
 {
 	Swap_back('ani_smartie',smartie_num,'',smartie);
	//timerID = setTimeout('document.title_pic.src = tx.src', 500);
	swap2_bac('port'); 
	//document.port_img.src = "images/port_blank.gif";
	swap2_bac('pic'); 
	//document.pic_text.src = "images/ptext_blank.gif";
	swap2_bac('title');
	
	return true;
 }
 
 //########################################################
 
var marqueewidth=550
var marqueeheight=38
var speed=10
var marqueecontents="<B><font color='white' face=arial size=3>To visit the sites please make your<BR>selection from the right.</FONT></B>"
var x=520;


function regenerate(){
window.location.reload()
}

function regenerate2()
{
if (document.layers)
	{
	setTimeout("window.onresize=regenerate",450);
	intializemarquee();
	}
else
	{
	scrollit_m();
	}
}


function intializemarquee()
{
document.bac.document.marquee.left=550;
document.bac.document.marquee.document.write(marqueecontents)
document.bac.document.marquee.document.close()
thelength=marqueewidth 
scrollit()
}

function scrollit(){
if (document.bac.document.marquee.left>=10){
document.bac.document.marquee.left-=speed
setTimeout("scrollit()",100)
}

}

function scrollit_m()
	{
	x=x-10;
	textt.style.left=x;
	if(x>80)
		{
		setTimeout("scrollit_m()",100)
		}
	}

window.onload=regenerate2;