// JavaScript Document
$(document).ready(function(){
	
	
	
	var defaultValue = 'search our website...';
  
	$('#header .searchBox').focus(function() {
		$(this).val("");
	});
  
	$('#header .searchBox').blur(function() {
		if($(this).val()=='') {
			$(this).val(defaultValue);
		}
	});
	
	$.creaseFont({
		content:'#middle',
		unit:'px',
		defaultSize:12,
		maxSize:20,
		minSize:8,
		stepSize:2
	});
	
	//Hide (Collapse) the toggle containers on load
	$(".toggle_container").hide(); 

	//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
	$("h4.trigger").click(function(){
		$(this).toggleClass("active").next().slideToggle("slow");
		return false; //Prevent the browser jump to the link anchor
	});
	
	//slider
	$('#slides').bxSlider({
		wrapper_class: 'slideshow',
		margin: 0,
		controls: false,
		auto: true,
		auto_hover: true,
		auto_controls: false,
		pause: 4500,
		pager: false
	});
	
	$(function(){
		$("ul#ticker01").liScroll();
});
	
});

