/*
Fancy Folio
Created: 15/10/2009
By: Catalin Pinte
Contact Info: pinte_catalin@yahoo.com
*/
var $j = jQuery.noConflict();
$j(document).ready(function () {
if(!/msie|MSIE 6/.test(navigator.userAgent)){
// this will not work in ie6 because after png transparency fix the hover img will move verry slowly 
  
    $j("#navigation_bar a").click(function () {

        var $elem = $j(this),
			 last = $j("#navigation_bar ul").find(".current"),
			 lastPosition = last.position().left; 
			 last.removeClass("current");
			 $j("#hover").attr('style', 'left:' + lastPosition + 'px').show();
			 var where =  $elem.parent().position().left;
			 $j("#hover").animate({ "left": where }, 300 /* Animation speed */, "jswing" /* Easing type */, function () {
			     $j("#hover").hide();
					$elem.parent().addClass("current"); where = "";
					window.location = $elem.attr('href');
			});

		return false;    
	});
}
});


