	var headline_count;
	var headline_interval;
	var old_headline = 0;
	var current_headline = 0;
	
	$(document).ready(function(){
	  headline_count = $("div.headline").size();
	  $("div.headline:eq("+current_headline+")").css('top', '5px');
	  headline_interval = setInterval(headline_rotate,5000);
	  $('#scrollup').hover(function() {
		clearInterval(headline_interval);
	  }, function() {
		headline_interval = setInterval(headline_rotate,5000);
		headline_rotate();
	  });
	});
	
	$(function() {
		$('a[@rel*=lightbox]').lightBox();
	});
	
	function headline_rotate() {
	  current_headline = (old_headline + 1) % headline_count;
	  $("div.headline:eq(" + old_headline + ")")
		.animate({top: -205},"slow", function() {
		  $(this).css('top', '210px');
		});
	  $("div.headline:eq(" + current_headline + ")")
		.animate({top: 5},"slow");
	  old_headline = current_headline;
	}
	
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->



// JavaScript Document
function getChildElements(elemName) {
   nodesList = elemName.childNodes;
   var childElems = new Array();
   var counter = 0;
   for (var m = 0; m < nodesList.length; m++) {
   if (nodesList[m].nodeType == 1) {
   childElems[counter] = nodesList[m];
   counter = counter + 1;
   }
   }  
   return childElems;
}

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);


function addLoadEvent(func) {
	var oldonload = window.onload;
	  	if (typeof window.onload != 'function') {
    	window.onload = func;
  	} else {
    	window.onload = function() {
    	oldonload();
    	func();
    	}
	}
}

