function loadFeedControl() {

 	var feed  = "http://www.prolaw1.com/blog/index.rss";

	var options = {
	    pauseOnHover : true,
	    horizontal : true
	}
	new GFdynamicFeedControl(feed, "feedControl", options);
	new GFdynamicFeedControl(feed, "home-feedControl", options);
}
google.load("feeds", "1");
google.setOnLoadCallback(loadFeedControl);

$(document).ready(function() {

	//Hides the slickbox as soon as the DOM is ready
	//(a little sooner than page load)
	$('#slickbox').hide();

	//Shows the slickbox on clicking the noted link  
	$('a#slick-down').click(function() 
	{
		$('#slickbox').slideDown('slow');
		return false;
	});

	//Hides the slickbox on clicking the noted link  
	$('a#slick-up').click(function() {
		$('#slickbox').slideUp('slow');
		return false;
	});

	/* Calendar
	---------------------------------------------------------------------------*/
	$("#date").dateinput();

	/* Contact Form Validator
	---------------------------------------------------------------------------*/	
	$("#myform").validator({ 
		position: 'center right', 
		offset: [-1, 0],
		message: '<div></div>' // em element is the arrow
	});

		$.tools.validator.fn("select", "Please complete this mandatory field.", function(input, value) { 
			return (value == 'N/A') ? false : true;
		});

	/* Affiliations Slideshow
	---------------------------------------------------------------------------*/	
	$(".slidetabs").tabs(".logos > div", {

		// enable "cross-fading" effect
		effect: 'fade',

		// start from the beginning after the last tab
		rotate: true

	// use the slideshow plugin. It accepts its own configuration
	}).slideshow({ autoplay: true, interval: 5000});

	/* Rounded corners for IE
	---------------------------------------------------------------------------*/
	DD_roundies.addRule('ul.practice-area li a', '4px');
	DD_roundies.addRule('div.affiliations', '6px');
	DD_roundies.addRule('.button', '6px');
	DD_roundies.addRule('.contact-button', '6px');
	DD_roundies.addRule('input.submit', '6px');
	DD_roundies.addRule('div.errors', '6px');
	DD_roundies.addRule('div.chat img', '8px');
	DD_roundies.addRule('div#related-articles', '6px');
	DD_roundies.addRule('.personalize-button', '6px');

	$("#browsable").scrollable({circular: true}).navigator().autoscroll({interval: 5000});
	
	$(".newsticker-jcarousellite").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 3,
		auto:2000,
		speed:3000
	});
	
	
	
});

function clearText(field){
    if (field.defaultValue == field.value) field.value = '';
    else if (field.value == '') field.value = field.defaultValue;
}

