$(document).ready(function() {	
	$('.link-scroll').vTicker({ 
		speed: 1000,
		pause: 3000,
		animation: 'fade',
		mousePause: false,
		showItems: 2
	});

	
	if($(".jbanner").attr("class")) {
		$(".jbanner").cycle({
			fx: h_fx,
			timeout: h_timeout,
			speed: h_speed,
			sync: h_sync,
			easing: 'easeinout'
		});
	}
		
	//Home Page Right Side Slide Content	
	$("ul.accordion li:eq(0) div").animate({ height: 'show', opacity: 'show' }, 'slow');
	$("ul.accordion li:eq(0) span").addClass("down");
	$("ul.accordion li span").click(function() {		
		var eq_indx=$(this).parents("li").prevAll().size();		
		$(this).parents("ul").children("li:not(:eq("+eq_indx+"))").each(function() {			
			$(this).children("div").animate({ height: 'hide', opacity: 'hide' }, 'slow');
			$(this).children("span").removeClass("down");												   
			$(this).children("span").addClass("up");				
		});
		if($(this).attr("class")=="up") {
			$(this).removeClass("up");												   
			$(this).addClass("down");							
			$(this).parents("li").children("div").animate({ height: 'show', opacity: 'show' }, 'slow');		
		}
   	});
});
