$(function() {
    $('#slideshow').simpleslider({
		transition : 'fade', //slide, fade, cut
        easing : 'linear', //swing, linear
        direction : 'horizontal', //horizontal, veretical
        speed : 1500, //duration of the transition (in milliseconds)
        auto : true,
        interval : 3000, // Milliseconds between each animation, if Auto is set to TRUE.
        hoverPause : true, // When Auto is set to TRUE ...
        buttons : false,
        prevText  : 'Previous',
        nextText : 'Next',
        loop  : true	
	});
});

function show(id) {
	document.getElementById(id).style.display="block";
	document.getElementById(id + "_arrow").src="_img/arrow_down_green.jpg";
}


function hide(id) {
	document.getElementById(id).style.display="none";
	document.getElementById(id + "_arrow").src="_img/arrow_right_green.jpg";
}


function externalLinks() {
 if (!document.getElementsByTagName) return;
 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";
 }
}
window.onload = externalLinks;

