function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

function propergateformfeild(idname,valuetext){
values = jQuery(idname).attr('value');
if(values != valuetext && values == undefined){
jQuery(idname).attr('value',valuetext);
jQuery(idname).click(function(){
jQuery(idname).attr('value','');});}}


jQuery(document).ready(function(){

propergateformfeild('#maillist-name','Name:');
propergateformfeild('#maillist-email','E-mail Address:');
propergateformfeild('#maillist-tel','Telephone number');
    jQuery('#mycarousel li').removeClass('hidden');
    jQuery('#mycarousel').jcarousel({scroll:1,
        auto: 5,
		animation:1100,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });



	jQuery('#nav a').eq('0').css('border-left','0px');	
	nlen = jQuery('#nav a').length;		
	jQuery('#nav a').eq(nlen-=1).css('border-right','0px');	

jQuery('#nav li').hover(function(){

jQuery(this).css('background','url(/images/nav_bac.jpg) no-repeat center center');

},function(){

jQuery(this).css('background','none');

})
							
});
