//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/vladimir.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/vladimir.swf', 
  css: [ '.sIFR-root {color:#6b6c4c; font-size:36px;}'  ]
});
}




//Menu implementation	   
jQuery(document).ready(function(){

	jQuery("#Navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:800,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	}).find(">li:has(ul)").mouseover(function () {
		jQuery("ul", this).bgIframe({opacity:true});
		}).find("a").focus(function () {
		jQuery("ul", jQuery("#Navigation > ul >li:has(ul)")).bgIframe({opacity:true});
	
	});



//home

var PathHomeo = DNN_skinPath + "images/home.jpg";

jQuery(
"#Navigation40").append("<a href='#' title=''></a>");

jQuery(
"#Navigation40").find("img").mouseover(function () {

var PathHomeON = DNN_skinPath + "images/home_hover.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

jQuery(
"#Navigation40").find("img").mouseout(function () {

var PathHomeON = DNN_skinPath + "images/home.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

//End
//officeinfo

var PathHomeo = DNN_skinPath + "images/officeinfo.jpg";

jQuery(
"#Navigation63").append("<a href='#' title=''></a>");

jQuery(
"#Navigation63").find("img").mouseover(function () {

var PathHomeON = DNN_skinPath + "images/officeinfo_hover.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

jQuery(
"#Navigation63").find("img").mouseout(function () {

var PathHomeON = DNN_skinPath + "images/officeinfo.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

//End
//patientinfo
	var PathHome = DNN_skinPath + "images/patientinfo.jpg";
	jQuery("#Navigation64").append("<a href='#' title=''></a>");

	jQuery("#Navigation64").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientinfo_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation64").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patientinfo.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End

	//service
	var PathHome = DNN_skinPath + "images/service.jpg";
	jQuery("#Navigation67").append("<a href='#' title=''></a>");

	jQuery("#Navigation67").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/service_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation67").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/service.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End


	//contact us
	var PathHome = DNN_skinPath + "images/contactus.jpg";
	jQuery("#Navigation68").append("<a href='#' title=''></a>");

	jQuery("#Navigation68").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/contactus_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation68").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/contactus.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End

//resources
	var PathHome = DNN_skinPath + "images/resources.jpg";
	jQuery("#Navigation74").append("<a href='#' title=''></a>");

	jQuery("#Navigation74").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/resources_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation74").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/resources.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End


if (jQuery("#featureeye").length){	
		var sshow = new SWFObject("http://tools.televoxsites.com/eyesim_remoteversion/eyesimulator.swf", "slideshow", "500", "292", "6", "#000000");
    sshow.addParam("wmode", "transparent");
	sshow.write("featureeye");
	}





});

