// Print swf
function PrintSwf(swfUrl, swfWidth, swfHeight) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='" + swfWidth + "' height='" + swfHeight + "'>");
	document.write("<param name='movie' value='" + swfUrl + "' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='menu' value='false' />");
	document.write("<embed src='" + swfUrl + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + swfWidth + "' height='" + swfHeight + "'></embed>");
	document.write("</object>");
}

// jQuery smoothScroll
jQuery(function() {
	jQuery(".toHeader a[href^=#]").click(function() {
		var scrollTarget = this.hash;
		var target = jQuery(scrollTarget == "#header" ? "body" : scrollTarget);
		if(target.size()) {
			jQuery.scrollTo(target, 800, { easing:"easeOutCubic" });
		}
		return false;
	});
});

// jQuery current
jQuery(function() {
	jQuery("#globalNav a").each(function() {
		var docPath = document.URL.split("#");
		if(this == docPath[0]) {
			jQuery(this).addClass("current");
		}
	});
	jQuery("#headerNav a").each(function() {
		var docPath = document.URL.split("#");
		if(this == docPath[0]) {
			jQuery(this).addClass("current");
		}
	});
});

// jQuery dropDown
jQuery(function() {
	jQuery('#globalNav > ul > li').bind('mouseover', DropDownOpen)
	jQuery('#globalNav > ul > li').bind('mouseout',  DropDownTimer)
});
document.onclick = DropDownClose;

// jQuery listTable
jQuery(function() { jQuery(".listTable tr:even").addClass("even"); });

// jQuery lightBox
jQuery(function() { jQuery("a.lightBox").lightBox(); });

// Window control
jQuery(function() { jQuery(".popup").click(function() { window.open(this.href); return false; }); });
jQuery(function() { jQuery(".close").click(function() { window.close(); }); });

