var baseURL = '/';
$(document).ready(function(){
    //$('.hidden').css('display' , 'none');
    $(".fade, .teamMember img, #send").hover(
      function () {
        $(this).fadeTo("fast", 0.5);
      }, 
      function () {
        $(this).fadeTo("fast", 1);
      }
    );
	
	$(".topMenu li:first").css({'padding-left' : '0'});
	$(".topMenu li:last").css({'padding-right' : '0', 'background' : 'none'});
	
	$(".newsletterInput").focus(
    	function(){
    		this.value = "";
    	}
    );	
	
	$(".publication .title span").html('<img src="images/arrow.gif" alt=""  />');
	
	$(".oneSubOffer a").click(function(){
		$("#footerFlash").html('<img src="'+baseURL+'public/images/footer_image.jpg" alt="" />');
		$(".oneSubOffer a").next('div').css('display' , 'none');
		$('.oneSubOffer a').removeClass("active"); 
		
		$(this).next("div").css('display' , 'block').css('clear' , 'both');//.toggle()
		$(this).toggleClass("active"); 
		//return false;
	});
	
	// $('.active').click(function() { 
		// $(this).next("div").css('display' , 'none').css('clear' , 'none');//.toggle()
		// $(this).removeClass("active"); 
		// return false;
	// });
	
 });