$.metadata.setType("attr", "validate");
	
setTimeout(function(){ $('.fadeout').fadeOut('slow'); }, 4000);

var ajax_load = '<img src="' + getPathToRoot() + 'images/loading_small.gif" alt="" />';

$(document).ready(

	function() {
	
		$('body').supersleight({shim: getPathToRoot() + 'images/transparent.gif'}); // transparent PNGs for IE6
	
		//$('#banner_text img').fadeIn('slow');
	
		$('.tooltip').qtip(
			{
			style: { name: 'cream', border: { width: 1, radius: 4 } },
			position : { corner: { target: 'bottomRight', tooltip: 'topLeft' } }
			}
		);
		
		$('.hilite').highlightFade();
		
		$('.close_box a').bind('click', function() { $(this).parents('div:first').slideUp(); });
		
		$('.stripe_me tr:not([th])').mouseover(function() {$(this).addClass("over");}).mouseout(function() {$(this).removeClass("over");});
		$('.stripe_me tr:not([th]):odd').addClass("alt");
		
		$('a.lightbox').lightBox();
		
  		if ($('#news_ticker').length > 0) {
			$().newsTicker(
				{
					newsList: "#news_ticker",
					startDelay: 10,
					placeHolder1: "..."
				}
			);
		}
  		
  		// toogle function (e.g. for FAQs)
  		
  		$('.toggle h2 a').bind('click', function(e) {
  			e.preventDefault();
			//alert('foo');
			// find the div sibling
			$(this).parent().next().slideToggle('fast');
			$(this).parent().toggleClass('toggled');
			
		});
		
		// show element if ID passed via URL hash
		/*
		var target_element = location.hash;
		if (target_element.length > 0) {
			//alert(target_element);
			$(target_element).slideToggle('fast');
		}
		*/

	}
	
);