$(document).ready(function() { // start jquery
		
		// hide login box div
		$('#loginbox').hide();
		
		// toggle login box div
		$('.login-toggle').click(function() {
			$('#loginbox').slideToggle(400);
    		return false;
  		});
		
		// preload rollovers
		$("#nav img").each(function() {
			rollsrc = $(this).attr("src");
			rollON = rollsrc.replace(/.png$/ig,"_on.png");
			$("<img>").attr("src", rollON);
		});
		
		// image rollovers for PNG files
		$("#nav a").mouseover(function(){
			imgsrc = $(this).children("img").attr("src");
			matches = imgsrc.match(/_on/);
			if (!matches) {
				imgsrcON = imgsrc.replace(/.png$/ig,"_on.png");
				$(this).children("img").attr("src", imgsrcON);
			}
		});
		
		// reset to original image
		$("#nav a").mouseout(function(){
			$(this).children("img").attr("src", imgsrc);
		});
		
		// superfish drop down
		$('ul.sf-menu').superfish({
			dropShadows: false,
      		autoArrows: false
		});
		
		
		$('.pics').cycle({ 
    fx:      'fade', 
    speed:    800, 
    timeout:  7500 
});
		
		
	}); // end jquery
