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

/*
jQuery.easing['Fade'] = function() {
	$("#mycarousel").fadeIn("slow");
};
*/

jQuery(document).ready(function() {
	jQuery("#mycarousel").jcarousel({
        scroll: 1,
        auto: 5,
        wrap: 'last',
        initCallback: mycarousel_initCallback,
        //easing: 'Fade'
    });
});

function clearText(thefield){
  if (thefield.defaultValue==thefield.value)
  thefield.value = ""
}

function openMenu(prefix,num){
  ul=document.getElementById(prefix + '_' + num);
  if (ul.style.display == "none"){
    
    var count = 0;
    while(true) {
        if(count!=num) { 
		 if(document.getElementById(prefix + '_' + count)!=null) document.getElementById(prefix + '_' + count).style.display="none";
		 else break;
		}
		count++;
	}
	
	ul.style.display="block";
    
  }
  else{
    ul.style.display="none";
  }
}

