//var curvyCornersVerbose = false;
$(document).ready(function() {	
	/* Send External Links to New Window */
	$("a[rel=external]").attr('target','_blank');
	
	/* Font Replacement */
	Cufon.replace('#home-features h2, #title h2, #title p');
	
	/* Home Features */
  $("#home-features").easySlider({
		auto: true,
		continuous: true,
		pause: 8000,
		controlsShow: false
	});
	
	/* Home Video Lightbox */
	$("a.play-home-cnbc").fancybox({
    'overlayShow': true,
    'centerOnScroll': false,
    'padding': '20',
    'frameWidth': 720,
    'frameHeight': 480,
    'hideOnContentClick': false
	});
	
	/* Resources Video Lightbox */
	$("a.play-home-intro").fancybox({
    'overlayShow': true,
    'centerOnScroll': false,
    'padding': '20',
    'frameWidth': 640,
    'frameHeight': 480,
    'hideOnContentClick': false
	});
	
});

// Navigation Script

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("navigation");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;