function openWindow(url, height, width, name) { var left = Math.floor( (screen.width - width) / 2); var top = Math.floor( (screen.height - height) / 2); var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width; winParms += ",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes"; var win = window.open(url, name, winParms); if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } //return win; } function openWindowNoScroll(url, height, width, name) { var left = Math.floor( (screen.width - width) / 2); var top = Math.floor( (screen.height - height) / 2); var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width; winParms += ",status=no,toolbar=no,menubar=no,location=no,scrollbars=no"; var win = window.open(url, name, winParms); if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } //return win; } function mycarousel_initCallback(carousel) { jQuery('.jcarousel-control a').bind('click', function() { carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text())); carousel.stopAuto(); return false; }); }; $(document).ready( function(){ $('#home_caroussel_ul').innerfade({ animationtype: 'fade', speed: 1250, timeout: 6000, type: 'random_start', containerheight: '240px' }); $('#mycarousel').jcarousel({ animation: 1250, auto: 8, vertical: true, scroll: 1, wrap: 'last', initCallback: mycarousel_initCallback, // This tells jCarousel NOT to autobuild prev/next buttons buttonNextHTML: null, buttonPrevHTML: null }); } );