jQuery(document).ready(function(){	
	jQuery("#slider").easySlider({
		continuous: true,
		pause: 8000
	});
});









window.addEvent('domready', function() { 
			myCal1 = new Calendar({ date1: 'm/d/Y' }, { direction: 1, tweak: {x: 6, y: 0} });
		});

	
	
	
	
	
	
	

var drop1 = document.getElementById('drop1');
var drop2 = document.getElementById('drop2');
var drop3 = document.getElementById('drop3');
var drop4 = document.getElementById('drop4');
var drop5 = document.getElementById('drop5');
var drop6 = document.getElementById('drop6');
var drop7 = document.getElementById('drop7');








startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;








	

var total_divs=0; //do not change this. it will be calculated automatically
var className="fadeThis";
jQuery(document).ready(function(){
jQuery("."+className).attr("id", function (arr) {
total_divs++;
return "fade" + (arr+1);
})
fadeEngine(0);
});

function fadeEngine(x) {
var y=x;
if(x==total_divs) y=1; else y++;
jQuery("#fade"+x).css("display","none");
jQuery("#fade"+y).fadeIn("slow");
setTimeout('fadeEngine('+y+')',10000);
}





//<![CDATA[
	function add_event(el, type, handler) {
		if (typeof el == 'string')
			el = document.getElementById(el);
		if (typeof el.attachEvent != 'undefined') {
			el.attachEvent("on"+type, handler);
		} else if (typeof el.addEventListener != 'undefined') {
			el.addEventListener(type, handler, false);
		}
	}
	//]]>
	//
