// JavaScript Document
// JavaScript Document

// Son of Suckerfish Drop Down navigation
// http://www.htmldog.com/articles/suckerfish/dropdowns/

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



// add class="rollover" to an image to invoke a rollover image name currnetimage_roll


function initPopups() {
   if (!document.getElementsByTagName) return false;
   var aLinks = document.getElementsByTagName('a');
   for (var i=0; i < aLinks.length; i++) {
      if (aLinks[i].className.match('popup')) {
         aLinks[i].onclick = function() {
            newwindow = window.open(this.href,'popup','resizable,scrollbars,height=600,width=980');
            if(window.focus) {newwindow.focus()}
            return false;
         }
      }
   }
}



function initSlideshow (){
	$('#slideshow').slideshow({
		timeout: 5000,
		type: 'random'
	});
		$('#slideshow2').slideshow({
		timeout: 8000,
		type: 'random'
	});

}

function init(){ 
$.hide.init();
initPopups();
initSlideshow ();
}

$(document).ready(init);

jQuery.hide=
{
init: function()
      {
               /*  $("div.topsection").hide();*/
                  $("a.jump")
                 .mouseover($.hide.click);
      },
click: function()
     {
     $("div.topsection").hide();
     $("div#content_"+this.id).show();
     }
}

