$.noConflict();
jQuery(document).ready(function($){
	// Set up the cookies and interstitial:
	if( undefined == $.cookie('action')){
		$.cookie('action', 'shown', { expires: 3, path: '/', domain: 'huntbigsales.com' });
		// Show the interstitial:
		var interstitial = $('#interstitial').dialog({
			dialogClass: "module",
			draggable: false,
			modal: true,
			resizable: false,
			width: '550',
			open: function() {
				try {
					pageTracker._trackEvent("Interstitial", "Show");
				} catch(err) {}

				$('.ui-widget-overlay').click(function() {
					$(interstitial).dialog("close");
					$.cookie('action', 'clickbehind', { expires: 3, path: '/', domain: 'huntbigsales.com' });
					try {
						pageTracker._trackEvent("Interstitial", "Click Behind");
					} catch(err) {}
					return false;
				});
				$(".module .close_modal").click(function() {
					$(interstitial).dialog("close");
					$.cookie('action', 'nothanks', { expires: 30, path: '/', domain: 'huntbigsales.com' });
					try {
						pageTracker._trackEvent("Interstitial", "No Thanks");
					} catch(err) {}
					return false;
				});
				$(".module .dismiss_modal").click(function() {
					$(interstitial).dialog("close");
					$.cookie('action', 'maybelater', { expires: 3, path: '/', domain: 'huntbigsales.com' });
					try {
						pageTracker._trackEvent("Interstitial", "Maybe Later");
					} catch(err) {}
					return false;
				});
			}
			
		});
	} 
		// Determine if we should show the interstitial:
		if($.cookie('first') != 'shown'){
		}
});