$(document).ready(function() {
    $("a.fancy").fancybox({
		'overlayOpacity'	: 0.8,			//Opacity of the overlay (from 0 to 1; default - 0.3)
		'overlayColor'		: '#fff',		//Color of the overlay
		'titlePosition'		: 'inside',	//The position of title. Can be set to 'outside', 'inside' or 'over'
		'showNavArrows'         : true,              //Toggle navigation arrows
        'padding'			: 0				//Toggle navigation arrows
    });

	jQuery('img.main_prod').mouseover(function() {
		var img_src = jQuery(this).attr('src').replace("/tn100x50/", "/tn440x220/");
		var prod_id = jQuery(this).attr('id').replace("_img", "");
		var prod_url = jQuery('#'+prod_id+'_a').attr('href');
		var prod_title = jQuery(this).attr('title');

		jQuery('#bigpic img').attr('src', img_src);
		jQuery('#bigpic img').attr('title', prod_title);
		jQuery('#bigpic a').attr('href', prod_url);
	});
});

var arial = {
    src: '/gfx/arial.swf'
        ,ratios: [6, 1.41, 9, 1.35, 15, 1.29, 21, 1.25, 22, 1.22, 27, 1.24, 29, 1.21, 34, 1.22, 41, 1.21, 45, 1.2, 46, 1.21, 59, 1.2, 68, 1.19, 69, 1.2, 96, 1.19, 97, 1.18, 102, 1.19, 103, 1.18, 107, 1.19, 108, 1.18, 112, 1.19, 114, 1.18, 116, 1.19, 120, 1.18, 121, 1.19, 1.18]
};
sIFR.activate(arial);
sIFR.replace(arial, {
    selector: 'h1'
    ,wmode: 'transparent'
    ,css: {
        '.sIFR-root': { 'color': '#b3b3b3', 'text-transform': 'uppercase', 'background': 'transparent' }
    }
    ,filters: {
        DropShadow: {
            knockout: false
			,angle: 45
            ,distance: 1
			,inner: true
            ,color: '#000'
            ,strength: .50
			,blurX: 1
			,blurY: 1
        }
    }
});
