// initialise plugins
jQuery(function(){
	jQuery('ul.sf-menu').superfish();
	jQuery().UItoTop({ easingType: 'easeOutQuart' });
	//changeBg();
	//setInterval ( "changeBg()", 18100 );

	jQuery('div.mar marquee').marquee('pointer').mouseover(function () {
		jQuery(this).trigger('stop');
	}).mouseout(function () {
		jQuery(this).trigger('start');
	}).mousemove(function (event) {
		if (jQuery(this).data('drag') == true) {
			this.scrollLeft = jQuery(this).data('scrollX') + (jQuery(this).data('x') - event.clientX);
		}
	}).mousedown(function (event) {
		jQuery(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
	}).mouseup(function () {
		jQuery(this).data('drag', false);
	});
 
	jQuery(".recent").fancybox({
		width			:	640,
		height			:	500
	});	
	
	jQuery("a.blog, a.x").fancybox({
		width			:	533,
		height			:	360,
		scrolling		:	'no',	// 'auto', 'yes' or 'no'
	});
	
	
	
	
	
	
	

	jQuery("a.close").click(function(ec) {
	   ec.preventDefault();
	  jQuery(".bubble-bottom").hide("slow");
	});

	 
	
	 
	
	//jQuery("html").bind("copy", handleCopy);  
});

function handleCopy(event) {  
	jQuery( "#dialog-message" ).dialog({width: 350, modal:true});
	event.preventDefault();
	return false;
} 	



