// Font Replacement
/*Cufon.replace('.category-title h1,.footer h4, .product-view .product-shop .product-name h1,.page-title h1, .page-title h2,.wired-home .subscribe strong', {
	hover: true
});*/

jQuery(document).ready(function() {
	// Featured Products
    jQuery('#featured').jcarousel({visible: 4});
	// FancyBox jQuery
	//jQuery("a.group").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300, 'overlayShow': true }); 	
	// Slider Homepage
	/*jQuery('#slider').cycle({
        fx: 'fade',
        speed: 2000,
		timeout: 5000,
        pager: '#controls',
		slideExpr: '.panel'
    });*/
	//jQuery('#slideshow_banner').cycle('fade');
	jQuery('.slideshow_banner').cycle({
		fx: 'fade',
		pause: true
	});
	jQuery(".menu li").hover(function(){
		   jQuery(".submenu", this).show();
		},
		function(){
			jQuery(".submenu", this).hide();
		}
	);
	/*jQuery('.logo a').tipsy({trigger: 'manual', html: true, gravity: 'ne', offset: (-10)});
	jQuery('.logo a').hover(
		function(){
			jQuery('.logo a').tipsy("show");
			return false;
		}
	);
	jQuery('div.logo').mouseleave(function() {
		jQuery('.logo a').tipsy("hide");
		return false;
	});*/
});
function showLogoIcn()
{
	jQuery('#logo_hover_icn').show();
}
function hideLogoIcn()
{
	jQuery('#logo_hover_icn').hide();
}

function youtubeVideo(videoUrl){
	jQuery("#youtube_video").html('<iframe allowTransparency="true" width="801" height="474" src="'+videoUrl+'" frameborder="0" allowfullscreen></iframe>');
	jQuery("#youtube_video").modal({closeHTML:"",
		overlayClose:true,
		opacity:40,
		overlayCss: {backgroundColor:"#000"},
		onOpen: function (dialog) {
			dialog.overlay.fadeIn('slow', function () {
				dialog.data.hide();
				dialog.container.fadeIn('slow', function () {
					dialog.data.fadeIn('slow');
				});
			});
		},
		onClose: function (dialog) {
			dialog.data.fadeOut('slow', function () {
				dialog.container.hide('slow', function () {
					dialog.overlay.fadeOut('slow', function () {
						jQuery.modal.close();
					});
				});
			});
		}
	});
}

