/** * Animated Main Menu * @author Alexander Farkas * v. 1.02 *///(function($) {//	$.extend($.fx.step,{//	    backgroundPosition: function(fx) {//            if (fx.state === 0 && typeof fx.end == 'string') {//                var start = $.curCSS(fx.elem,'backgroundPosition');//                start = toArray(start);//                fx.start = [start[0],start[2]];//                var end = toArray(fx.end);//                fx.end = [end[0],end[2]];//                fx.unit = [end[1],end[3]];//			}//            var nowPosX = [];//            nowPosX[0] = ((fx.end[0] - fx.start[0]) * fx.pos) + fx.start[0] + fx.unit[0];//            nowPosX[1] = ((fx.end[1] - fx.start[1]) * fx.pos) + fx.start[1] + fx.unit[1];//            fx.elem.style.backgroundPosition = nowPosX[0]+' '+nowPosX[1];////           function toArray(strg){//               strg = strg.replace(/left|top/g,'0px');//               strg = strg.replace(/right|bottom/g,'100%');//               strg = strg.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");//               var res = strg.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);//               return [parseFloat(res[1],10),res[2],parseFloat(res[3],10),res[4]];//           }//        }//	});//})(jQuery);////$(function(){//	$('#main-nav a.about-us')//		.css( {backgroundPosition: "-118px 0"} )//		.mouseover(function(){//			$(this).stop().animate({backgroundPosition:"(-118px -69px)"}, {duration:500})//		})//		.mouseout(function(){//			$(this).stop().animate({backgroundPosition:"(-118px 0)"}, {duration:500})//		})//	$('#main-nav a.cox-programming')//		.css( {backgroundPosition: "-206px 0"} )//		.mouseover(function(){//			$(this).stop().animate({backgroundPosition:"(-206px -69px)"}, {duration:500})//		})//		.mouseout(function(){//			$(this).stop().animate({backgroundPosition:"(-206px 0)"}, {duration:500})//		})//});// Auto-Fill Plugin// Written by Joe Sak http://www.joesak.com/2008/11/19/a-jquery-function-to-auto-fill-input-fields-and-clear-them-on-click/(function($){$.fn.autofill=function(options){var defaults={value:'First Name',defaultTextColor:"#b2adad",activeTextColor:"#333"};var options=$.extend(defaults,options);return this.each(function(){var obj=$(this);obj.css({color:options.defaultTextColor}).val(options.value).focus(function(){if(obj.val()==options.value){obj.val("").css({color:options.activeTextColor});}}).blur(function(){if(obj.val()==""){obj.css({color:options.defaultTextColor}).val(options.value);}});});};})(jQuery);$(document).ready(function(){				$('#txtSearch').autofill({					value: 'Search the Cox 4 Website',					defaultTextColor: '#666',					activeTextColor: '#000'				});			});// Main Nav background image fade$(document).ready(function(){						   		$("li#active a").css("backgroundImage", "url(http://cox4.tv/themes/site_themes/default/images/neworleans/main-nav-over.jpg)");		$("li#active a").removeClass("main");						           $("a.main").hover(				function(){					$(this).fadeTo("fast", 0.6); 					$(this).queue(function () {						$(this).css("backgroundImage", "url(http://cox4.tv/themes/site_themes/default/images/neworleans/main-nav-over.jpg)");						$(this).fadeTo("fast", 1);						$(this).dequeue();											});				},								function(){					$(this).fadeTo("fast", 0.6); 					$(this).queue(function () {						$(this).css("backgroundImage", "none");						$(this).fadeTo("fast", 1);						$(this).dequeue();											});				}        	);}); 
