

		


		
		
		
	
	
	
		
		
	


			function sIFR() {
		var fdetect = deconcept.SWFObjectUtil.getPlayerVersion();
		if (fdetect['major'] != 0) {
			$.sifr({
				path: '/images/skin/',
				save: true
			});
			$('.dosifr').sifr({ font: 'skinv1-font1', color: '#2E548D', fontSize:'24px' });
			$('.puff4').sifr({ font: 'skinv1-font1', color: '#2E548D', fontSize:'24px', roY:(InternetExplorer) ? '2': '10', height:30 });
		}
	}
	
	function supplierWebsite() {		
		if ($('##tieShape option:selected').val() == '') { alert('Please select a Tie Shape'); return false; }
		else { alert('You will now be redirected to our supplier website.'); return true; }
	}	

	jQuery().ready(function() {
		$("table[id^='sortable'] tr:odd, .sortable tr:odd").addClass('odd');
		$("table[id^='sortable'] tr:even, .sortable tr:even").addClass('even');

		if (typeof adminCount == "undefined" || adminCount == 0) $('#footerlinks').appendTo('#footerlinksnew');

		$('body').append('<div style="display:none;"><div id="fancyinfo"></div><a class="fancyboxinfo" href="#fancyinfo"></a></div>');
		
		$('a.fancybox').click(function () { 
			$.fn.fancybox.showLoading();
			
			$('#fancyinfo').load($(this).attr('href')+ '?ajax=yes #contentBody', {}, function(data) { $(".fancy_loading").hide(); $('#fancyinfo').html('<div style="background:#ffffff; height:430px; overflow:auto;">'+ $('#fancyinfo').html() + '</div>'); $('.fancyboxinfo').trigger('click'); } ); 
			return false;
			
		});

		popReload = function (event) { 
				$(".fancy_loading").hide(); 
				if (typeof FB != 'undefined') FB.XFBML.parse();
		};

		$("a.fancyboxinfo").fancybox({
			'hideOnContentClick'	: false,
			'frameWidth'			: 740,
			'frameHeight'			: Math.min($(window).height()-100, 430),
			'overlayShow'			: true,
			'zoomSpeedIn'			: 600,
			'zoomSpeedOut'			: 500,
			'easingIn'				: 'easeOutBack',
			'easingOut'				: 'easeInBack',
			'callbackOnShow'		: function() {
										popReload(); 
									}
		}); 

		$("#tieShape").live("change", function() {

			if ($("#tieShape option:selected").val().indexOf("Henry") != -1 || $("#tieShape option:selected").val().indexOf("Banded") != -1) {
				if ($('#tieSize')[0].options.length == 3) $("#tieSize").append($("<option></option>").val('Youth - (fits 11.5" - 13.5")').html('Youth - (fits 11.5" - 13.5")')); 
			}
			else 
				if ($('#tieSize')[0].options.length == 4) $('#tieSize')[0].options.length = 3;
		});

		if($.browser.msie) {
			$("#tieShape").live("click", function() {
				$(this).change();
			});
		}

		$("img").pngfix();		
	});



	

	

