
var kozuka = {  src: DNN_skinPath + 'kozuka_gothic.swf' };
sIFR.activate(kozuka);
sIFR.replace(kozuka, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'kozuka_gothic.swf', 
  css: [ '.sIFR-root {color:#FFFFFF;}'  ]
  ,filters: {
        DropShadow: {
           distance: 4
          ,color: '#3b3b3b'
          ,strength: 1
          ,alpha: .8
        }
      }
   ,wmode: 'transparent'
});


jQuery(document).ready(function(){
	jQuery("#navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:750,
		animation:{height:'show'},
		disableHI:true,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
});

/* Nivo Slideshow on Homepage */
    jQuery('#slider').nivoSlider({
        effect:'fade', 
        animSpeed:650, 
        pauseTime:4700, 
        directionNav:true,
		directionNavHide:false, 
        controlNav:false, 
        controlNavThumbs:false, 
        controlNavThumbsFromRel:false
});


/* remove box from links */
jQuery("a").focus(function(){
		this.blur();
});


//animate sidebar callouts		
jQuery('#callouts img').hover( 
	function() {
		jQuery(this).animate(
			{
				'margin-top' : '-3px'
			},{queue:false,duration:400});}, 
	function() {
		jQuery(this).animate(
			{
				'margin-top' : '1px'
			},{queue:false,duration:400});
});

//animate email and phone images in header	
jQuery('#email_phone img').hover( 
	function() {
		jQuery(this).animate(
			{
				'margin-top' : '-3px'
			},{queue:false,duration:400});}, 
	function() {
		jQuery(this).animate(
			{
				'margin-top' : '1px'
			},{queue:false,duration:400});
});


// The Content accordions
	jQuery('.accordion-faq h2').click(function() {
		jQuery(this).toggleClass('active').next().toggle('normal');
		return false;
	});
	

//back to top link shows when scroll to bottom of screen
jQuery(function () {
 
	/* set variables locally for increased performance */
	var scroll_timer;
	var displayed = false;
	var jQuerymessage = jQuery('#message a');
	var jQuerywindow = jQuery(window);
	var top = jQuery(document.body).children(0).position().top;
 
	/* react to scroll event on window */
	jQuerywindow.scroll(function () {
		window.clearTimeout(scroll_timer);
		scroll_timer = window.setTimeout(function () { // use a timer for performance
			if(jQuerywindow.scrollTop() <= top) // hide if at the top of the page
			{
				displayed = false;
				jQuerymessage.fadeOut(500);
			}
			else if(displayed == false) // show if scrolling down
			{
				displayed = true;
				jQuerymessage.stop(true, true).show().click(function () { jQuerymessage.fadeOut(500); });
			}
		}, 100);
	});
});

/* Invisalign Video */
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' }
	});
}

/* Damon Video */
if(jQuery("#damon-video").length) {	
	flowplayer("damon-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/damon-video.flv' }
	});	
}


// remove tooltips by storing/removing titles.
jQuery('[title]').each( function() {
	var lnk = jQuery(this);
	lnk.data('title', lnk.attr('title'));
	lnk.removeAttr('title');
});
// can add titles back this way.
jQuery('a').click( function() {
	var lnk = jQuery(this);
	var title = lnk.data('title');
	//alert(lnk.data('title'));
});


});/* End (document).ready */
