//sIFR implementation
function pageScripts(){
var HelveticaNeuelight= {  src: DNN_skinPath + 'HelveticaNeuelight.swf' };
sIFR.activate(HelveticaNeuelight);
sIFR.replace(HelveticaNeuelight, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'HelveticaNeuelight.swf', 
  css: [ '.sIFR-root {color:#452780;font-size:33px;}'  ]
});
}

//Menu implementation	   
jQuery(document).ready(function($){

	$("#Navigation > ul").superfish({
		delay:1200,
		animation:{height:"show"},
		speed:"normal"
	});

		/* remove box from links */
	$("a").focus(function(){
		this.blur();
	});
	
	$(".LinkIcon").rollover();
	
	if ($('#flashphoto').length) {
  	 var so = new SWFObject(DNN_skinPath+"images/photos_v1.swf", "slide", "994", "355", "9", "#336699");
  	 so.addParam("quality", "high");
  	 so.addParam("wmode", "transparent");
  	 so.write("flashphoto");
	}
	
	if ($("#orthodontist").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/beOrtho.swf", "slideshow", "500", "373", "6", "#000000"); 
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt"); 
		sshow.addParam("wmode", "transparent"); 
		sshow.write("orthodontist");
	}
	
	if ($("#featureorthognathic").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/orthognathic.swf", "slideshow", "190", "205", "6", "#000000"); 
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt"); 
		sshow.addParam("wmode", "transparent"); 
		sshow.write("featureorthognathic");
	}
	
	if ($("#featureparts").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("xmlfile", "/features/parts.xml");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featureparts");
	}
	
	$('#rpeClick').click(function() {
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/rpa2.swf", "slideshow", "450", "350", "6", "#000000");
	    sshow.addParam("wmode", "transparent");
	    sshow.addParam("quality", "high");
		sshow.write("RPEflash");		
	});
	
	 $('.acc h4').click(function() {
	 	$(this).toggleClass('active').next().toggle("fast");
	 	return false;
	 }).next().hide(); 
	 
	
	// jwplayer custom player provided by the client
	// O:\d\drfravel.com\client\FravelVideos
	if ($('#player-container').length) {
		jwplayer("player-container").setup({
			flashplayer: DNN_skinPath+"jwplayer/player.swf",
			skin: DNN_skinPath+'jwplayer/Videos/skins/FravelModieus.zip',
			playlist: [
				{
					duration: "100",
					file: DNN_skinPath+"jwplayer/Videos/Welcome_568x320.flv",
					image: DNN_skinPath+"jwplayer/Videos/welcome.jpg",
					title: "Welcome!",
					description: "Welcome to Dr. Fravel.com. Click here to find out all about us."
				},
				{
					duration: "107",
					file: DNN_skinPath+"jwplayer/Videos/Before-and-after_568x320.flv",
					image: DNN_skinPath+"jwplayer/Videos/Before-and-After.jpg",
					title: "Before & After",
					description: "Check out these amazing transformations from real patients."
				},
				{
					duration: "263",
					file: DNN_skinPath+"jwplayer/Videos/About-Us_568x320.flv",
					image: DNN_skinPath+"jwplayer/Videos/about-us.jpg",
					title: "About Us",
					description: "Get to know our professional and courteous staff."
				},
				{
					duration: "241",
					file: DNN_skinPath+"jwplayer/Videos/Testimonials_568x320.flv",
					image: DNN_skinPath+"jwplayer/Videos/testimonials.jpg",
					title: "Testimonials",
					description: "Hear first hand from real patients how Dr. Fravel helped them."
				}
			],
			"playlist.position": "right", "playlist.size": 307, height: 320, width: 875
		});
	 }
	
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/ao_on.jpg";	
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/cus_on.jpg";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/fz_on.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/h_on.jpg";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/np_on.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/oo_on.jpg";	 
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/plogin_on.jpg";	 
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/to_on.jpg";	 
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/Submenu.jpg";	 
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/Line.jpg";	 
	menuImage11 = new Image(); 
	menuImage11.src = DNN_skinPath + "images/Hover.jpg";	 
	menuImage12 = new Image(); 
	menuImage12.src = DNN_skinPath + "images/LastHover.jpg";	 
});
