jQuery(document).ready(function()
{	
	
	// INITIALIZE CUFON FONT REPLACEMENT
	
	
	// INITIALIZE DROPDOWN MENU
	jQuery('.dd-menu li:has(ul) > a').addClass('dd-submenu-title').append('<span class="dd-arrow"></span>');	
	jQuery('.dd-menu li').hover(function(){	
			// HOVER IN HANDLER
	
			jQuery('ul:first', this).css({visibility: "visible",display: "none"}).slideDown(250);									
			var path_set = jQuery(this).parents('.dd-menu li').find('a:first');
			jQuery(path_set).addClass('dd-path');						
			jQuery('.dd-menu li a.dd-path').not(path_set).removeClass('dd-path');
			
		},function(){			
			// HOVER OUT HANDLER
		
			jQuery('ul:first', this).css({visibility: "hidden"});			
	});
	jQuery('.dd-menu').hover(function() {
			// HOVER IN HANDLER
			
		}, function() {			
			// HOVER OUT HANDLER
		
			jQuery('a.dd-path', this).removeClass('dd-path');			
	});
	
	
		
	// APPEND SOME EXTRA SPANS TO STYLE FANCY FRAMES CORRECTLY
	jQuery('.frame').append('<span class="helper1"></span><span class="helper2"></span>');
	
		
	// REPLACE SUBMIT BUTTONS WITH SOMETHING EASIER TO STYLE:)
	jQuery('input[type=submit]').each(function() {		
	
		var val = jQuery(this).val();
		var a = jQuery('<a class="button primary small"><span>' + val + '</span></a>');
		var input = jQuery(this);
		
		input.after(a);
		input.hide();
		
		a.click(function() {			
			input.trigger('click');
		});
	});

	
	// INITIALIZE COIN SLIDER
	
	
	// INITIALIZE THUMB SLIDER
	
	
	// INITIALIZE PRETTYPHOTO PLUGIN
	//jQuery("a[rel^='prettyPhoto']").prettyPhoto();	
	
	
	
	// -----------------------------------------------------------------------------------------
	// Internet Explorer doesn't understand some CSS selectors, so we need some helpful classes
	// -----------------------------------------------------------------------------------------
	
	   
});

