

 jQuery(document).ready(function(){
 jQuery("#menu div.abscontainer:last").addClass("last");	
 jQuery("p.active").hide();
	jQuery("p.active").hide();
				
	jQuery("a.active").mouseover(function(){
					jQuery("p.active:not(p.active:eq("+ jQuery("a.active").index(this) + "))").hide();
					jQuery("p.active:eq("+ jQuery("a.active").index(this) + ")").show();
				
								
 	});
	jQuery("#dnn_ContentPane,a.empty").mouseover(function(){
					jQuery("p.active").hide();
								
 	});
	
	
	jQuery("#tab57").click(function(){return false;});
	jQuery("#tab66").click(function(){return false;});
	jQuery("#tab79").click(function(){return false;});
	jQuery("#tab93").click(function(){return false;});
	jQuery("#tab154").click(function(){return false;});

	imagePreview();

	
 });
 
 
 this.imagePreview = function(){	
	/* CONFIG */
		
		xOffset = 150;
		yOffset = 30;
		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result
		
	/* END CONFIG */
	jQuery("a.preview").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		jQuery("body").append("<p id='preview'><img src='"+ this.href +"' alt='Image preview' />"+ c +"</p>");								 
		jQuery("#preview")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");						
    },
	function(){
		this.title = this.t;	
		jQuery("#preview").remove();
    });	
	jQuery("a.preview").mousemove(function(e){
		jQuery("#preview")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};

/*
function preloadMenu() {

	menu1 = new Image(); 
	menu1.src = "/Portals/_default/Skins/siteSkin/images/menu/home_hover.jpg";
	menu2 = new Image(); 
	menu2.src = "/Portals/_default/Skins/siteSkin/images/menu/ouroffice_hover.jpg";
	menu3 = new Image(); 
	menu3.src = "/Portals/_default/Skins/siteSkin/images/menu/patient_hover.jpg";
	menu4 = new Image(); 
	menu4.src = "/Portals/_default/Skins/siteSkin/images/menu/treatment_hover.jpg";
	menu5 = new Image(); 
	menu5.src = "/Portals/_default/Skins/siteSkin/images/menu/misc_hover.jpg";
	menu6 = new Image(); 
	menu6.src = "/Portals/_default/Skins/siteSkin/images/menu/login_hover.jpg";

	
}*/

function runSiteScripts(path) {

//here's the sIfr
//code for the h1 tags
var copperPlateGothicBold = {  src: path + 'copperPlateGothicBold.swf' };
sIFR.activate(copperPlateGothicBold);
sIFR.replace(copperPlateGothicBold, {
  selector: '.contentTitle', 
  wmode: 'transparent', 
  src:  path +  'copperPlateGothicBold.swf', 
  css: [ '.sIFR-root {color:#65b723; }'  ]
});


var copperPlateGothicBold = {  src: path + 'copperPlateGothicBold.swf' };
sIFR.activate(copperPlateGothicBold);
sIFR.replace(copperPlateGothicBold, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  path +  'copperPlateGothicBold.swf', 
  css: [ '.sIFR-root {color:#5e3889; }'  ]
});



// gets rid of focus box on click
if(document.getElementsByTagName) {
var a = document.getElementsByTagName("a");
//collect all anchors A
for(var i = 0; i < a.length; i++){
// mouse onfocus, blur anchors
a[i].onfocus = function(){this.blur();};
}
}


}
