/*
 * Setup
 *
 * Requires: jQuery 1.0
 *
 */

// Remove background flicker in Internet Explorer
$(document).ready(function(){
  //If browser is IE, disable BackgroundImageCache
  if (jQuery.browser.msie)
  {
    try
    {
      document.execCommand("BackgroundImageCache", false, true);
    } catch(err){}
  }
});


$(document).ready(function(){

    var options = {
		assetURL: 			'/js/shadowbox/images/',
        resizeLgImages:     true,
		loadingImage:		'loading.gif',
		overlayBgImage:		'raster.gif',
		overlayColor:		'#000',
		overlayOpacity:		0.70,
        displayNav:         true,
        handleUnsupported:  'remove',
        keysClose:          ['c', 27] // c or esc
    };

    Shadowbox.init(options);

	// Cycle products
	$('#products').cycle({ 
    	fx:    'fade',
		random: 1,
    	speed:  900,
		timeout: 9000
 	});

	// ClueTip
	$('a.tips').cluetip({
		width: 180,
		tracking: true,
		showTitle: false,
		dropShadow: true,
		dropShadowSteps: 3
	});
});
