
function showModal(url, height, width){    
    var dialog = $('#modalDialog')
        .jqm({ 
            onShow: function(h) {
                var $modal = $(h.w);                
                var $modalContent = $("iframe", $modal); 
                $modalContent.html('').attr('src', url); 
                if (height > 0) $modal.height(height);    
                if (width > 0) $modal.width(width);                
                h.w.show();          
            } 
         }).jqmShow();        
}
function closeModal(postback) {
    $('#modalDialog').jqmHide();
}

function slideDiv( theObjName ) {
	$( document.getElementById( theObjName ) ).slideToggle( 'slow' , 'swing' , function( ){
		// animation complete.
	}) ;
}


/* ui enhancements - via jQuery */

$(document).ready(function() 
    { 
/*	Cufon.replace( '.cufon' ) ;
	Cufon.replace( 'h1' ) ;  
	Cufon.replace( 'h2' ) ; */

	/* home page - banner scrolling. */	
	if( typeof( isHomePage ) != 'undefined' )
	{
		if ( isHomePage == '1' ) {
			/* scroll the speakers */

			jQuery('.sp-slides').cycle({
			    fx:      	'uncover', 
				timeout: 	6000,
				delay: 		0,
    			speed: 		1200, 
				continuous: 0,
				sync: 		0,
				pause: 		0,				/* mouse over pausing */
				pauseOnPagerHover: 0
			});
			
			
			
		}
	}

}); /* document.ready.function ... 	*/


