$(function(){
	$('#Map area#Asheville').qtip({
		content: "Asheville",
   		position: {
      		my: 'top right', 
      		at: 'bottom left'
   		},
		show: { delay: 1000 },
   		hide: 'mouseout'
	});
	$('#Map area#Charlotte').qtip({
		content: "Charlotte",
   		position: {
      		my: 'top right', 
      		at: 'bottom left'
   		},
		show: { delay: 1000 },
   		hide: 'mouseout'
	});
	$('#Map area#Raleigh').qtip({
		content: "Raleigh",
   		position: {
      		my: 'top right', 
      		at: 'bottom left'
   		},
		show: { delay: 1000 },
   		hide: 'mouseout'
	});
	$('#Map area#Wilmington').qtip({
		content: "Wilmington",
   		position: {
      		my: 'top right', 
      		at: 'bottom left'
   		},
		show: { delay: 1000 },
   		hide: 'mouseout'
	});
	$('#Map area#Charleston').qtip({
		content: "Charleston",
   		position: {
      		my: 'top right', 
      		at: 'bottom left'
   		},
		show: { delay: 1000 },
   		hide: 'mouseout'
	}); 
	
	$('#studios-gallery #lg-image #holder').cycle(
	{
	    fx:     'fade',
	    timeout: 6000,
		speed:  4000, // 'fast', 
		next: '#nav .next',
	    prev: '#nav .prev',
		pager:  '#thumbs', 
		
	    pagerAnchorBuilder: function(idx, slide) { 
	        return '<a href="#"><img src="' + slide.src + '" width="45" /></a>'; 
	    }, 

	    after:   function() {
		var title = $(this).attr('alt');
			$('.title').html(title); 
		var $style='/style/';
		var $path = window.location.pathname;
			if( $path.match(/style/gi) ) {   
				var title2 = $path.replace('/style/','');
				title2 = title2.replace('/','');
				title2 = title2.replace('-',' ');
				$('.title').html(title2); 
				// alert($path);
			}
	    }
	});
});


