jQuery(document).ready(function() {
    // Gray, Comment this out to stop banner rotation on main
	 if(jQuery('ul#point-main').attr('id')) {
	 	jQuery('ul#point-main').innerfade({
	 		speed: 1000,
	    	timeout: 8000,
			type: 'sequence',
			containerheight: '280px'
		});
	}
    // Stop commenting out here

	jQuery('.afeaturetitle').children('a').attr('href', 'javascript:void(0);')
	jQuery('.afeaturetitle').children('a').click(function() {
		clearTimeout(jQuery.innerfade.ifchanger);
		for(i=1;i<5;i++) {
			jQuery('#the'+i+'feature').css("display", "none");
			// jQuery('#the'+i+'title').children('a').css("font-family", "Helvetica, Arial, sans-serif");
			jQuery('#the'+i+'title').children('a').css("font-size","11px");
			jQuery('#the'+i+'title').children('a').css("font-weight","bold");
			jQuery('#the'+i+'title').children('a').css("font-style","italic");
			jQuery('#the'+i+'title').children('a').css("text-shadow","#000 1px 1px 2px");
			jQuery('#the'+i+'title').children('a').css({"width":"100px" });
			jQuery('#the'+i+'title').children('a').css("color","#FFF");
			jQuery('#the'+i+'title').children('a').css("background","transparent url(img/bg_submenu.png)");
		}
		// if(the_widths[(jQuery(this).attr('rel')-1)]==960) {
		// 	jQuery("#vic").hide();
		// } else {
		// 	jQuery("#vic").show();
		// }
		
		jQuery('#the'+(jQuery(this).attr('rel'))+'feature').css("display", "block");
		
		var a_left_space = ((jQuery(this).attr('rel')-1)*140) + 20;
		jQuery("#the_arrow").animate({ left:a_left_space.toString()+"px" }, 300);
		jQuery(this).animate({ "width":"180px" }, 300);
		jQuery(this).css("background","transparent url(img/bg_submenu2.png)");
        // jQuery(this).css("font-family", 'Georgia, "Times New Roman", serif');
		jQuery(this).css("font-size","13px");
	    clearTimeout(jQuery.innerfade.ifchanger);
	});
});
