jQuery.noConflict();

// Run on DOM ready
jQuery(function() {

	// PREPARE INTERFACE ELEMENTS (for animation on full content load)
	// Fade-in wrapped content
	//jQuery('.fadein_wrapper').hide();

	// NAVIGATION MENU INTERACTION
	jQuery('#nav li').hover(
		function() {
			jQuery(this).children('ul').show();
		},
		function() {
			jQuery(this).children('ul').hide();
		}
	);
	
	// NAVIGATION IMAGE INTERACTION
	jQuery('#nav a img').hover(
		function() {
			if (jQuery(this).parent().parent().attr('class') != 'current') {
				var imgfile = jQuery(this).attr('id').substring(8) + '.png';
				jQuery(this).attr('src',baseUrl + '/theme/' + siteTheme + '/img/nav/2/' + imgfile);
			}
		},
		function() {
			if (jQuery(this).parent().parent().attr('class') != 'current') {
				var imgfile = jQuery(this).attr('id').substring(8) + '.png';
				jQuery(this).attr('src',baseUrl + '/theme/' + siteTheme + '/img/nav/0/' + imgfile);
			}
		}
	);

});

// Run on full content load
jQuery(window).load(
	function() {

		// ANIMATE INTERFACE ELEMENTS
		// Fade-in wrapped content
		//jQuery('.fadein_wrapper').fadeIn(1000);

	}
);

