$(document).ready(function() {
	//$(".hint").inputHint();
	$(".select").click(function() {
	    $(this).children("ul:hidden").slideDown("fast");
	});
	
	$("#tabs li a").click(function() {
		$(this).parent().siblings().children().removeClass("active");
		$(this).addClass("active");
		var div_to_show = $(this).attr("rel");
		$("#description, #features, #product-specs").hide();
		$("#" + div_to_show).show();
	});
	
	$("#sub-banner li").hover(
		function() {
			$(this).addClass("active");
		},
		function() {
			$(this).removeClass("active");
		}
	);

	$("#menu-item-18").hover(
		function() {
			$("#product-nav").fadeIn('fast');
			hoverElement = this.id;
		},
		function() {
			isHovered = false;
			$("#product-nav").hover(function() {
				/* dont do nothin */
				isHovered = true;
			},
			function() {
				isHovered = false;
				if ($.browser.msie && $.browser.version.substr(0,1)==7) {
					$("#product-nav").mouseout(function() {
						$("#product-nav").fadeOut('fast');
					});
					iehover = false;
					$("#product-nav ul").hover(function() {
					/* dont do nothin */
						return false;
					});
					$("#product-nav ul li").hover(function() {
					/* dont do nothin */
						return false;
					});
					$("#product-nav ul li a").hover(function() {
					/* dont do nothin */
						return false;
					});
					
				}
				$("#product-nav").fadeOut('fast');
				return false;
			});
			setTimeout(function() {if (!isHovered) { $("#product-nav").fadeOut('fast'); }},200);
		}
	);
	
});

var gotham = {
	src: '/dev/fonts/gotham.swf'
};

sIFR.delayCSS  = true;

// MAIN HEADINGS  
sIFR.activate(gotham);

sIFR.replace(gotham, {
selector: 'h1',
wmode: 'transparent',
  css: '.sIFR-root { color: #ffffff; text-transform: uppercase; leading: 10; }',
  filters: {
        DropShadow: {
           distance: 1.5
          ,color: '#000000'
          ,strength: .7
          ,alpha: .20
        }
      }
});

sIFR.replace(gotham, {
selector: 'h3',
wmode: 'transparent',
  css: '.sIFR-root { color: #ed9c00; leading: 4; }',
  offsetTop:5
});

sIFR.replace(gotham, {
selector: 'h4',
wmode: 'transparent',
  css: '.sIFR-root { color: #ffffff; leading: 4; }',
  offsetTop:5
});

sIFR.replace(gotham, {
selector: 'h5',
wmode: 'transparent',
  css: '.sIFR-root { color: #0e7cbf; leading: 4; }',
  offsetTop:5
});

sIFR.replace(gotham, {
selector: 'h6',
wmode: 'transparent',
  css: '.sIFR-root { color: #0fa1d1; text-transform: uppercase; leading: 4; }',
  offsetTop:5
});
