
$(document).ready(function(){
Cufon.replace('.hireme,.sifr_lubalin,.orangeTitle ',{ fontFamily: 'ITC Lubalin Graph' });
Cufon.replace('.sifr_frutiger',{ fontFamily: 'Frutiger 400' });
Cufon.replace('.sifr_frutiger900',{ fontFamily: 'Frutiger 900' });
});



function mycarousel_initCallback(carousel, state)
{
	// 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();
    });
	$("#carousel_container").css('visibility','visible');
};

function fixHeight(scrollHeight, offsetHeight)
{
	return (scrollHeight > offsetHeight ? scrollHeight : offsetHeight + 'px');
}
function fixMarginTop(offsetHeight,documentElement,scrollTop)
{
	return (0 - parseInt(offsetHeight / 2) + (TBWindowMargin = documentElement && documentElement.scrollTop || scrollTop) + 'px');
} 
