$(function() {
	
	// toggle hidden content
	$("a").live("click",function(){
		var selector = $(this).attr("rel");
		$(selector).slideToggle(400,"easeInOutQuart");
		/* return false; */
	});
	
	// read more
	$(".more").live("click",function(){
		$(this).attr("class","less button").contents().replaceWith("&laquo; View Less");
	});
	
	$(".less").live("click",function(){
		$(this).attr("class","more button").contents().replaceWith("Expand to Read More &raquo;");
	});
	
	
	// input fields focus
	
	/*
	var field_value = '';
	
	$(".field").live("focus",function(){
		field_value = $(this).attr("value");
		$(this).attr("value", '');
	});
	
	$(".field").live("blur",function(){
		if ($(this).attr("value") == '') {
			$(this).attr("value", field_value);
			field_value = '';
		}
		
	});
	*/
	
	
	// comment button
	$(".view-comments").live("click",function(){
		$(this).attr("class","action-link hide-comments").contents().replaceWith("Hide Comments");
		return false;
	});
	$(".hide-comments").live("click",function(){
		$(this).attr("class","action-link view-comments").contents().replaceWith("View Comments");;
		return false;
	});
	
	
	
	// star rating plugin 
	// $('#Rating01, #Rating02').raty();
	
	// custom select box
	$('.customStyleSelectBox').customStyle();
	
	// TOP MESSAGING DROP-DOWN
	$('#Msg-DD').live('click', function(){
		$('#Msg-DD-Content').show();
		return false;
	});
	
	$('#Msg-DD-Content a, #Main').live('click', function(){
		$('#Msg-DD-Content').hide();
		return false;
	});
	
	
	// Table styling
	$("tr:even").addClass("even");
	
	
	// Homepage Footer Tabs
	/*
$('.s-footer .why,.s-footer .tools,.s-footer .support,').hover(
		function() {
			$(this).css({'margin-top':'-1px'})
				.animate({'margin-top':'-10px', 'height':'120px'},300, 'easeInOutQuart');
		},
		function() {
			$(this).css({'height':'119px'})
				.animate({'height':'110px', 'margin-top':'0px'},300, 'easeInOutQuart');
		}
	);
*/

	
   
// Initialise the first and second carousel by class selector.
// Note that they use both the same configuration options (none in this case).
//

/*
	
	$('.slide-container').jcarousel({
		visible:1, 
		scroll:1,
		auto:true,
		animation: 'slow',
		wrap:'circular',
	 	itemFallbackDimension:490
	});
	
	$('.slide-container').css({'opacity':1});
*/
	
	
	// jCarousel Lite...
	
/*
	$(".slide-container").jCarouselLite({
		btnNext: ".next",
		btnPrev: ".prev"
	});
*/


});

