 // following two functions kindly provided by Jonathan Howard
$.fn.pause = function(milli,type) {
	milli = milli || 1000;
	type = type || "fx";
	return this.queue(type,function(){
		var self = this;
		setTimeout(function(){
			$(self).dequeue();
		},milli);
	});
};

$.fn.clearQueue = $.fn.unpause = function(type) {
	return this.each(function(){
		type = type || "fx";
		if(this.queue && this.queue[type]) {
			this.queue[type].length = 0;
		}
	});
};
 
/////////// 

 
 

/////////// 


 $(document).ready(function(){

	if ( !$.browser.safari )
	$('.scroll-pane').jScrollPane({showArrows:true, scrollbarWidth:15 }).css('width', '100px');


   // stops the hourglass mouse pointer flicker
   if ( $.browser.msie )
 		document.execCommand("BackgroundImageCache", false, true);

 	 
	 $('#folio').cycle({
    fx:    'fade',
	speed:  700,
    sync:   0,
    delay: -2000,
	pause: 1
	
	});

	 
	

	
 });

