jQuery(document).ready(function(){

	jQuery("#navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:400,
		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});
	});

	/* Activate all media */
	jQuery(".media").media();

	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
	jQuery("#navigation >ul >li").append ("<img src="+DNN_skinPath +"images/menudots.jpg>" );
	
	jQuery("#navigation >ul >li >img").each(function() {
	newclass = "seperator";
	jQuery(this).attr("class", newclass);
	});
	
	jQuery("#navigation155 a").attr("target","_blank");

});

/*sIFR*/
var futurabtlt = {  src: DNN_skinPath + 'futurabtlt.swf' };
sIFR.activate(futurabtlt);

sIFR.replace(futurabtlt, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath + 'futurabtlt.swf', 
  css: [ '.sIFR-root {color:#4a0100; text-transform: uppercase;}' ]
});	

/*Popups*/

function OpenChildWin(nurl,nname, nwidth,nheight) {
  popupWin = window.open(nurl, nname, 'scrollbars=1,width=' + nwidth +',height=' + nheight)
}

function popTreasure(urly) {window.open(urly,"windowName","scrollbars=yes,toolbar=no,menubar=no,statusbar=no,resizable=yes,width=380,height=250,left=100,top=100");}

function popLogo(urly) {window.open(urly,"windowName","scrollbars=yes,toolbar=no,menubar=no,statusbar=no,resizable=yes,width=380,height=350,left=100,top=100");}

function popPreorder(urly) {window.open(urly,"windowName","scrollbars=yes,toolbar=no,menubar=no,statusbar=no,resizable=yes,width=420,height=390,left=100,top=100");}

function treasure(x){
	
	popTreasure("http://www.hamiltonortho.com.televoxpreview2.com/treasuremap.asp?month=" + x);
	
	}

function logoinfo(x){
	
	popLogo("http://www.hamiltonortho.com.televoxpreview2.com/logoinfo.asp?logo=" + x);
	
	}
function preorder(){
	
	popPreorder("http://www.hamiltonortho.com.televoxpreview2.com/preorder.asp");
	
	}

