//////////////////////// Mail to /////////////////////////////////////////
function mailpage() {
	mail_str = "mailto:?subject=Check out " + escape(document.title);
	mail_str += "&body=I thought you might be interested in the " + escape(document.title);
	mail_str += ". You can view it at, " + location.href;
  	location.href = mail_str;
}


// Open .pdf, external links, and links with the class _blank into a new window
jQuery(function(){
	jQuery("a[href$='.pdf'], ._blank").click(function(){
		var newwindow = window.open(this.href, '_blank');
		newwindow.focus();
		return false;
	});
});

// Document Ready

jQuery().ready(function(){
//		jQuery('#siteMap').accordion({
//			header: 'div.titleSM',						 
//			animated: 'easeslide',
//			alwaysOpen: false,
//			navigation: true,
//			active: false
//		});
    jQuery('.jcarousel-skin-tango').jcarousel();

		jQuery('#navigation').accordion({
			active: false,
			header: '.head',
			navigation: true,
			event: 'mouseover',
			fillSpace: false,
			animated: 'easeslide'
		});


		//
		// bind to change event of select to control first and seconds accordion
		// similar to tab's plugin triggerTab(), without an extra method
		var accordions = jQuery('#navigation');
		
		jQuery('#switch select').change(function() {
			accordions.accordion("activate", this.selectedIndex-1 );
		});
		jQuery('#close').click(function() {
			accordions.accordion("activate", -1);
		});
		jQuery('#switch2').change(function() {
			accordions.accordion("activate", this.value);
		});
		jQuery('#enable').click(function() {
			accordions.accordion("enable");
		});
		jQuery('#disable').click(function() {
			accordions.accordion("disable");
		});
		jQuery('#remove').click(function() {
			accordions.accordion("destroy");
			wizardButtons.unbind("click");
		});



//
//	jQuery(document).ready(function() {
//    jQuery('.jcarousel-skin-tango').jcarousel();
//});


// carousel for video
//	jQuery('#slide_holder').agile_carousel({
//	disable_on_first_last: "yes",
//	next_prev_buttons: "yes",
//	number_slides_visible: "3",
//	slide_directory: "slide_directory",
//	slide_buttons: "yes",
//	slide_links: "breast-augmentation.html, ciaravino.html, testimonials.html",
//	slide_captions: "Breast Procedures: Suspendisse tincidunt diam dui, eu aliquet purus. Curabitur tincidunt mauris. Suspendisse fermentum faucibus semper. | Doctor and Practice: Curabitur tincidunt mauris vel lacus placerat in tincidunt magna consectetur. Suspendisse fermentum faucibus semper. | Patient Experiences: Suspendisse tincidunt diam dui, eu aliquet purus. Curabitur tincidunt mauris.",
//	timer_on: "no",
//	transition_duration: 1500,
//	transition_easing: "easeOutQuint"
//	});
	
//	 $('#slide_holder').agile_carousel({
//
//  disable_on_first_last: "yes",
//
//  next_prev_buttons: "yes",
//
//  number_slides_visible: "3",
//  slide_directory: "slide_directory",
//
//  slide_buttons: "yes",
//  slide_links: "videos.html#procedures, videos.html#doctor, videos.html#patients",
//  slide_captions: "Visit our Video page for information on the different Breast Surgery Procedures we offer. | Learn more about Dr. Michael Ciaravino, one of the world&#39;s leading Plastic Surgeons. |  Click to view our Patient Videos and Testimonials.", 
//
//  timer_on: "no",
//
//  transition_duration: 1500,
//
//  transition_easing: "easeOutQuint"
//
//  });
	


	// carousel for photo gallery
//	jQuery('#slide_holder2').agile_carousel({
//	disable_on_first_last: "yes",
//	next_prev_buttons: "yes",
//	number_slides_visible: "3",
//	slide_directory: "slide_directory2",
//	slide_buttons: "yes",
//	slide_links: "breast-augmentation.html, breast-lift.html, breast-implant-revision.html, breast-augmentation.html, ciaravino.html, testimonials.html, breast-augmentation.html, ciaravino.html, testimonials.html",
//	slide_captions: "Breast Procedures: Suspendisse tincidunt diam dui, eu aliquet purus. Curabitur tincidunt mauris. Suspendisse fermentum faucibus semper. | Breast Lift: Curabitur tincidunt mauris vel lacus placerat in tincidunt magna consectetur. Suspendisse fermentum faucibus semper. | Breast Implant Revision: Suspendisse tincidunt diam dui, eu aliquet purus. Curabitur tincidunt mauris.",
//	timer_on: "no",
//	transition_duration: 1500,
//	transition_easing: "easeOutQuint"
//	});
});	

