jQuery(function( $ ){

$('.Pagination a').each( function(){
var temp = $(this).attr('href').replace('index.php/', '');
$(this).attr('href',temp);
});

$('#Slideshow').cycle({
speed: 1000,
timeout: 7000,
pager: '.SlideNav'
});


$("a.Inline").fancybox({
		'swf' :  {wmode: 'transparent'},
		'enableEscapeButton': true,
		'titlePosition' : 'over',
		'autoDimensions' : true,
		'autoDimensions' : true,
		'scrolling' : 'no',
		'centerOnScroll' : true,
		 'padding': 0,'margin':0,
		'showCloseButton': true
	});

$('#Sliders').cycle({
speed: 1000,
timeout: 8000,
next: "#Sliders IMG"
});


$('#Slogan').cycle({
speed: 1000,
 cleartype:  false,
timeout: 6000
});

/* SEARCH */ 
$('.Search INPUT').focus( function() {  if($(this).attr("value") == "Search") $(this).attr("value", "").css({'background':'#e0e0e0','color':'black','font-variant': 'normal'});  });
$('.Search INPUT').blur(function() {  if($(this).attr("value") == "") $(this).attr("value", "Search").css({'background':'url(/images/navigation-bg.jpg) repeat-x top','color':'#FFF','font-variant': 'small-caps'}); });

$(".SubNav LI A.Selected").parent().find('li').addClass("Selected"); 

$("#LogIN,.LogIN").fancybox({
       'width'	: 300,
		'height': 300,
		'modal' : true
	});

$("#Navigation LI:not('LI LI')").stop().hover(
	function(){ $(this).addClass("Hovered").find('ul').show(); },
	function(){ $(this).removeClass("Hovered").find('ul').hide(); });

 $('.Images, .Image').bind("contextmenu", function(e) {
                e.preventDefault();
            });


$('.SocialNetworks').fadeTo('slow',0.6);
$('.SocialNetworks').hover(function(){$('.SocialNetworks').stop(true, true).fadeTo('fast',1);},function(){$('.SocialNetworks').stop(true, true).fadeTo('slow',0.6);});

});



