$(document).ready(function(){
						   
	//scroll to top
	/*
			var defaults = {
	  			containerID: 'moccaUItoTop', // fading element id
				containerHoverClass: 'moccaUIhover', // fading element hover class
				scrollSpeed: 1200,
				easingType: 'linear' 
	 		};
			*/
   $().UItoTop({ easingType: 'easeOutQuart' });
   
   // use the custom easing
	$("div.scrollable").scrollable({speed: 700, circular: true});
	
	
	$('.slideshow').cycle({
		//fx: 'fade'  choose your transition type, ex: fade, scrollUp, shuffle, etc...
	fx:     'fade', 
    speed:  'slow'
   	
	});	
	
	$('#fade').fadeIn(2000);
	$('.phones').click(function()
		{
		$(this).slideDown("slow");
		});
							 
	// perform JavaScript after the document is scriptable.
	$(function() {
		// setup ul.tabs to work as tabs for each div directly under div.panes
		$("ul.tabs").tabs("div.panes > div",{event:'click'});
	});
	
					   
						   
	//font embed
	//Cufon.replace('.nav', {textShadow: '#337c90 1px 1px',hover:true});
   	//Cufon.replace('.nav', {hover:true});
 
	

	//IE input form FOCUS
	$("input, textarea").addClass("idle");
        $("input, textarea, input.small,input.checkbox,input.radio,select").focus(function(){
            $(this).addClass("activeField").removeClass("idle");
    }).blur(function(){
            $(this).removeClass("activeField").addClass("idle");
    });
 	
  //round corners for IE
	//DD_roundies.addRule('#home,#about,#stories,#books', '12px 12px 0px 0px', true);
	//DD_roundies.addRule('.stimg, .breadcrumb,.block', '5px', true);
	//DD_roundies.addRule('.adminsidebarhead,.rtabs', '5px 5px 0px 0px', true);
	
	$("ul.inphones li img").hover(
		function () {
		$(this).fadeTo("slow", 0.5);
		},
		function () {
		$(this).fadeTo("slow", 1);
		}
		);
	
	$("ul.phones li img").hover(
		function () {
		$(this).fadeTo("slow", 0.5);
		},
		function () {
		$(this).fadeTo("slow", 1);
		}
		);
	//$(".tip").tipTip({defaultPosition:"top"});


});

