 $(document).ready(function() {
    	$("a.fancy").fancybox({
				'opacity'       : false,
				'overlayShow'	: true,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});
 
      });
	  /*
    $(document).ready(function() {
        $('#bg').cycle({
            fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
     timeout: 10000,
	 speed: 4500,
    cleartype: true, 
    cleartypeNoBg: true
        
        });
    });
	*/
	
	$(function() {

 var imgc = $('#bg img').length-1;
   var c = 2;

	 
    $('#bg').cycle({
	        fx: 'fade',
	        before: function(currHTML, nextHTML, options) {
	            if(c === 2) {
	                options.currSlide = imgc;
	                c--;
            } else if (c === 1) {
	                options.currSlide = 0;
	                c--;
	            }
	 
	            
	        }
	    });
	});
	
	
	  $(document).ready(function() {
        $('.sfeerslide').cycle({
            fx: 'scrollHorz', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
     timeout: 4000,
	 continuous:    0,
	 startingSlide: 1,
    cleartype: true, 
    cleartypeNoBg: true,
	next:   '.next',     
	prev:   '.prev' 
        
        });
			$(this).cycle('stop').cycle({
    startingSlide: 1
});
		
		$('#goto1').click(function() { 
        $('#s1').cycle(0); 
        return false; 
    });
	
    });
	  
	  
	  
	  
$(document).ready(function(){	

    if (!$.browser.opera) {

        $('select.dropdown').each(function(){
            var title = $(this).attr('title');
            if( $('option:selected', this).val() != ''  ) title = $('option:selected',this).text();
            $(this)
                .css({'z-index':10,'opacity':0,'-khtml-appearance':'none'})
                .after('<span class="dropdown">' + title + '</span>')
                .change(function(){
                    val = $('option:selected',this).text();
                    $(this).next().text(val);
                    })
        });

    };
		
});

	$(function() {
		$( "#datepicker" ).datepicker();
	});
	
	

function mouseOver()
{
document.getElementByClass("btn").src ="images/nbrief_btn_over.png"
}
function mouseOut()
{
document.getElementByClass("btn").src ="images/nbrief_btn_over.png"
}

