$(document).ready(function(){   
	
	$(document).pngFix();
	
	$('#imagechanger').innerfade({
		speed: 2000,
		timeout: 4000,
		type: 'random',
		containerheight: '114px'
	});
	$('#imagechanger2').innerfade({
		speed: 1800,
		timeout: 5000,
		type: 'random',
		containerheight: '114px'
	});
	$('#imagechanger3').innerfade({
		speed: 2400,
		timeout: 6000,
		type: 'random',
		containerheight: '114px'
	});
	
	$(".fancybox").fancybox();
	$(".fancyframe").fancybox({
		'zoomSpeedIn': 0, 
		'zoomSpeedOut': 0, 
		'overlayShow': true,
		'frameWidth': 600,
		'frameHeight': 600
	});	
	
	$(".iframe").fancybox({
		'zoomSpeedIn': 0, 
		'zoomSpeedOut': 0, 
		'frameWidth': 280,
		'frameHeight': 175
	});	
	
	$("table").tablesorter({widthFixed: true, widgets: ['zebra']});
	
});

$(function () {
	var tabContainers = $('div.prodtabs > div');
	$('div.prodtabs ul.tabNav a').click(function () {
		tabContainers.hide().filter(this.hash).show();
		$('div.prodtabs ul.tabNav a').removeClass('selected');
		$('div.prodtabs ul.tabNav li').removeClass('current');
		$(this).addClass('selected');
		$(this).parent().addClass('current');
		return false;
}).filter(':first').click();});	
