var serp = {  src: DNN_skinPath + 'SerpentineMed.swf' };
sIFR.activate(serp);
sIFR.replace(serp, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'SerpentineMed.swf', 
  css: [ '.sIFR-root {color:#056DAC;}'  ]
});


var addressserp = {  src: DNN_skinPath + 'SerpentineMed.swf' };
sIFR.activate(addressserp);
sIFR.replace(addressserp, {
  selector: 'h5', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'SerpentineMed.swf', 
  css: [ '.sIFR-root {color:#FFFFFF; text-align:center;}'  ]
});


//Menu implementation
jQuery(document).ready(function(){
jQuery('#navigation').accordion({
active: false,
header: '.menuTitle',
animation:{height:"show"},
event: 'click',
autoheight:false,
navigation:true,
showSpeed: 1200,
hideSpeed: 1400
});
	

//jQuery Spacegallery
jQuery('#officetour').spacegallery({loadingClass: 'loading'});

	
/* THIS REMOVE THE LINE FROM THE EMPTY <UL> ELEMENTS (NOTE: be sure there is NO space between the <ul></ul> elements) */
jQuery("#navigation li ul:empty").remove();
jQuery("a").focus(function(){
this.blur();
});


/* remove box from links */
jQuery("a").focus(function(){
this.blur();
});
	

//Back to top Link
if (jQuery('#container').height() > jQuery(window).height()) {
jQuery('.back-to-top').removeClass('hide');
}


/* FAQ page */
jQuery('.accordion h3').click(function() {
 jQuery(this).toggleClass('active').next().toggle("slow");
 return false;
 }).next().hide(); 
 

// flash features
if (jQuery("#featurebefore").length){
var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("feature", "beforeafter"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featurebefore"); 
}	

if (jQuery("#featureemer").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("featureemer");
}

if (jQuery("#featuretypes").length){
var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("xmlfile", "/features/types.xml"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featuretypes");
}

if (jQuery("#featureretention").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/retainer.swf", "slideshow", "450", "265", "6", "#ffffff");
sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
sshow.addParam("wmode", "transparent");
sshow.write("featureretention");
}

if (jQuery("#featurejaws").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/jaws.swf", "slideshow", "260", "250", "6", "#ffffff");
	sshow.addParam("wmode", "transparent");
	sshow.write("featurejaws");
}

if (jQuery("#featureorthosurgery").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/orthognathic.swf", "slideshow", "190", "205", "6", "#ffffff");
	sshow.addParam("wmode", "transparent");
	sshow.write("featureorthosurgery");
}


// invisalign video
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' }
});
	
});	
