jQuery.noConflict();
jQuery(document).ready(function($){

	// Slideshow Custom
	
	$('.slideshowCustom').cycle({
		fx: 'fade',
		pause: 1,
		speed: 2000, 
		timeout: 5000,
		delay: -2000
	});
	
	// Slideshow Stock
	
	$('.slideshow').cycle({
		fx: 'fade',
		pause: 1,
		speed: 2000, 
		timeout: 5000,
		delay: -2000
	});
	
	// Adding Classes
	
	$("#sitemap ul").addClass("icon");
	$(".imageStyle").addClass("png");
	$("ul.icon li").addClass("png");
	
	// The Seeker code courtesy Marten Claridge at http://www.rapidweavercentral.net
	
	$(function(){
		$("#searchBar").hide();
			$("#searchIcon").click(function(){
				$("#searchBar").animate({
					opacity: 'toggle', 
					top: 'toggle'
				}
			);
		});
	});
	
	window.onload = function() {
		var x,z;
		x = document.getElementById('seeker');
		z = document.getElementById('seeker');
		x.appendChild(z);
	};
	
	// IE z-index fix
	
	$(function() {
		var zIndexNumber = 450;
		$('#toolbarSubContainer, .topWrapper').each(function() {
			$(this).css('zIndex', zIndexNumber);
			zIndexNumber -= 10;
		});
	});
	
	// Hover Animation

	$("#toolbar").mouseenter(function() {
		$("#toolbar ul li a").stop("clearQueue").animate({opacity:0.28}, 400);});

	$("#toolbar").mouseleave(function() {
		$("#toolbar ul li a").stop("clearQueue").animate({opacity:1}, 400);});
	
});