$(document).ready(function() {
						   
	/** preload rover image **/
	$(".rover").preload({
		find: ".gif",
		replace: "_o.gif"
	});

	/** highlighted menu item **/
	$(".highlight").each(
		function (){
			$(this).children().removeClass("rover");
			s = $(this).children().attr("src").replace(/\.(.+)$/i, "_o.$1");
			$(this).children().attr("src", s);
			return false;
		}
	);

	/** rollover image **/
	$(".rover").hover(function() {
        s = $(this).attr("src").replace(/\.(.+)$/i, "_o.$1");
        $(this).attr("src", s);
		return false;
    }, function() {
        s = $(this).attr("src").replace(/_o\.(.+)$/i, ".$1");
        $(this).attr("src", s);
		return false;
    });
	


	$("a.cag_name").filter(":not(.selected)").hover(function() {
        $(this).addClass("selected");
    }, function() {
		$(this).removeClass("selected");
    });
	
	

	/** product cag listing **/
	$(".subcag").hide().filter(":has(ul li a.selected)").show();
	
	$(".cag li").click(function () { 
		$(this).next().filter(".subcag").slideToggle('fast');
	});
	
	$('#s1').cycle();
		
/*	$(".cag li.last").height(
		300+
		$(".pdt_list").height()+
		$(".pdts_details").height()+
		$(".first_line").height()-
		$(".cag").height());
*/

/*	$(".pdt_list img").hover(function() {
		$(this).before("<div class='highlight_item'></div>");
    }, function() {
		$(this).prev(".highlight_item").remove();
    });
*/	
	return false;
	
});

