$(document).ready(function(){
	
	//stripe table 
	$(".tableStripes tr").mouseover(function() {$(this).addClass("over");}).mouseout(function() {$(this).removeClass("over");});
	$(".tableStripes tr:even").addClass("even");
	
	/*$('a').filter(function() {
         return this.hostname && this.hostname !== location.hostname;
    }).addClass('externalLink');*/
	
	$(".carousel").jCarouselLite({
		vertical: true,
		hoverPause:true,
		mouseWheel: true,
		visible: 1,
		auto:6000,
		speed:1000
	});
	$(".tLogo img").each(function() {
   		$(this).cjObjectScaler({
     		destElem: $(this).parent().parent(),
     		method: "fit"
   		});
	});
	$("#logoGrid li a img").each(function() {
   		$(this).cjObjectScaler({
     		destElem: $(this).parent().parent(),
     		method: "fit"
   		});
	});

	$(".emailLink").emailencode();
	
	$("ul.sf-menu").supersubs({ 
			minWidth:    10,   
            maxWidth:    28,   
            extraWidth:  1     
        }).superfish({
			animation:   {opacity:'show',height:'show'},
            speed:       'fast',
            autoArrows:  false,
            dropShadows: false
	});		
});
function clearField2(name) {
    var fn = eval("document.newsletter." + name);
	if ((fn.value=="")||(fn.value.length <5)){return;}
	else
	{
		var firstpart = fn.value.substring(0,4);
		if (firstpart=="Your") {fn.value="";}
		return;
	}
  }
