
var segoe = {  src: DNN_skinPath + 'SegoePrint.swf' };
sIFR.activate(segoe);
sIFR.replace(segoe, {
selector: 'h1', 
wmode: 'transparent', 
src: DNN_skinPath +  'SegoePrint.swf', 
css: [ '.sIFR-root {color:#2c5f87;}'  ]
});


var segoe2 = {  src: DNN_skinPath + 'SegoePrint.swf' };
sIFR.activate(segoe2);
sIFR.replace(segoe2, {
selector: 'h5', 
wmode: 'transparent', 
src: DNN_skinPath +  'SegoePrint.swf', 
css: [ '.sIFR-root {color:#2c5f87; line-height:14px; text-align:center;}'  ]
});


jQuery(document).ready(function(){
	jQuery("#Navigation>ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:500,
		animation:{opacity:'show', height:'show'},
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	});		
	
	// add class of last to navigation menus
	jQuery('li:last', 'ul.Level1').addClass('last');
		
	/* remove box from links */
	jQuery("a").focus(function(){
			this.blur();
	});
	
	jQuery('#Navigation a[href="#"]').click(function() { return false; });
	
	
	// home cycled photos
	if(jQuery("#header-cycle").length) {
		jQuery('#header-cycle').cycle({
				fx:'fade',
				speed:2000,
				timeout:6000	
		});
	}
	
	/* Flash Features and FlowPlayer*/
	if(jQuery("#invisalign-video").length) {
		flowplayer("invisalign-video", {
			src: "http://tools.televoxsites.com/vendor/flash/flowplayer-3.2.6.swf",
			wmode: "transparent"
			}, {
			plugins: { controls: { url: 'flowplayer.controls-tube-3.2.4.swf' } },
			clip: { autoPlay: false, autoBuffering: true, url: 'http://tools.televoxsites.com/vendor/flash/invisalign.flv' }
		});
	}

	if (jQuery("#featurecommon").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("feature", "problems");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featurecommon"); 
	}	
	
	if (jQuery("#featureoral").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "325", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("feature", "hygiene");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featureoral"); 
	}		
	
	if (jQuery("#featureemerg").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("feature", "emergencies");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featureemerg");
	}
	
	// init office tour
	if (jQuery('.picture-slides-container').length) {
		jQuery.PictureSlides.init();
	}
			
});//end document ready

	// office tour slideshow jquery pictureslides http://www.robertnyman.com/picture-slides/index.htm
	jQuery.PictureSlides.set({
		// Switches to decide what features to use
		useFadingIn: true,
		useFadingOut: true,
		useFadeWhenNotSlideshow: true,
		useFadeForSlideshow: true,
		useDimBackgroundForSlideshow: true,
		loopSlideshow: false,
		usePreloading: true,
		useAltAsTooltip: true,
		useTextAsTooltip: false,
				
		// Fading settings
		fadeTime: 800, // Milliseconds	
		timeForSlideInSlideshow: 4000, // Milliseconds
	
		// At page load
		startIndex: 1,	
		startSlideShowFromBeginning: true,
		startSlideshowAtLoad: false,
		dimBackgroundAtLoad: false,
	
	// Large images to use and thumbnail settings
	images : [
	{
		image: "/Portals/0/tour/slide01.jpg", 
			alt: "Picture 1",
			text: "This is picture 1"
			// if you want image to link somewhere 
			//url : "http://www.google.com"
	},
	
	{                                  
		image: "/Portals/0/tour/slide02.jpg", 
			alt: "Picture 2",
			text: "This is picture 2"
	},
	
	{                                  
						
		image: "/Portals/0/tour/slide03.jpg", 
			alt: "Picture 3",
			text: "This is picture 3",
			
	},
	
	{                                  
						
		image: "/Portals/0/tour/slide04.jpg", 
			alt: "Picture 4",
			text: "This is picture 4",
			
	},
					
	{                                  
						
		image: "/Portals/0/tour/slide05.jpg", 
			alt: "Picture 5",
			text: "This is picture 5"
	},
	
	{                                  
						
		image: "/Portals/0/tour/slide06.jpg", 
			alt: "Picture 6",
			text: "This is picture 6"
	}
	
	],
	
	thumbnailActivationEvent: "click",
	
	// Classes of HTML elements to use
		mainImageClass: "picture-slides-image", // Mandatory
		mainImageFailedToLoadClass: "picture-slides-image-load-fail",
		imageLinkClass: "picture-slides-image-link",
		fadeContainerClass: "picture-slides-fade-container",
		imageTextContainerClass: "picture-slides-image-text",
		previousLinkClass: "picture-slides-previous-image",
		nextLinkClass: "picture-slides-next-image",
		imageCounterClass: "picture-slides-image-counter",
		startSlideShowClass: "picture-slides-start-slideshow",
		stopSlideShowClass: "picture-slides-stop-slideshow",
		thumbnailContainerClass: "picture-slides-thumbnails",
		dimBackgroundOverlayClass: "picture-slides-dim-overlay"
		
});
