function fadeMainImage(){
$('mainImage').style.display='none';	
new Effect.Appear('mainImage',{duration:1.5})
}
 
function strapChange(){
strapNum ++; if (strapNum>numStraplines) strapNum=1;
new Effect.Fade('strapLine',   { duration:0.3} ) 
window.setTimeout("document.getElementById('strapLine').innerHTML= strapLines[strapNum]"  , 300  );
window.setTimeout("new Effect.Appear('strapLine',   { duration:0.5} ) " , 500  );
window.setTimeout(" strapChange(); " , 5000 ); 
}


function changeHomePics(){
window.clearTimeout(changeTimer); 
nextImage = currPicNum+1;
if(nextImage > 5 ) nextImage=1;
new Effect.Fade('homeImage_' + currPicNum,   { duration:2.5 } )
new Effect.Appear('homeImage_' + nextImage,   { duration:2.5 } )
currPicNum = nextImage;
changeTimer = window.setTimeout("changeHomePics()",5000);
} 

 
 
Event.observe(window, 'load', function() {
var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++) {
var anchor = anchors[i];
if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank";
}
})// eo ready*/






 