function popTFWin() { 
  var w3 = window.open('danactive_Tell_a_Friend.htm', 'TellFriendWindow', 'resizable=no,status=no,location=no,toolbar=no,scrollbars=no,directories=no,menubar=no,width=667,height=310');
  w3.focus();
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		btn1_on = newImage("images/nl_topbtn1_on.gif");
		btn2_on = newImage("images/nl_topbtn2_on.gif");
		btn3_on = newImage("images/HealthCare_on.gif");
		btn4_on = newImage("images/nl_topbtn4_on.gif");
		btn5_on = newImage("images/Q&A_on.gif");
		btn6_on = newImage("images/nl_topbtn6_on.gif");
		btn7_on = newImage("images/nl_topbtn7_on.gif");
		btn8_on = newImage("images/nl_topbtn8_on.gif");
		btn9_on = newImage("images/Science_on.gif");
		faq_on = newImage("images/nl_ev_faq_on.gif");
		preloadFlag = true;
	}
}

// base
function rollOverOrg(ImgNme)
{
        obj=document.images[ImgNme];
        obj.src=(obj.src.lastIndexOf('_on')!=-1)? obj.src.replace(/_on/gi,"_off"):obj.src.replace(/_off/gi,"_on");
}

// layers
function rollOver(ImgNme)
{
        obj=(document.images)? document.images[ImgNme]:0; ClicNme=(document.clicImg)? document.clicImg.name:""; 
        if (!obj && document.layers) {
                for (i=0; i<document.layers.length; i++) { ObjLyr=document.layers[i].document;
                        if (ObjLyr.images && ObjLyr.images[ImgNme]) obj=ObjLyr.images[ImgNme];}}                
        if (ClicNme!=ImgNme) obj.src=(obj.src.lastIndexOf('_on')!=-1)? obj.src.replace(/_on/gi,"_off"):obj.src.replace(/_off/gi,"_on");
        document.OnImg=obj;
}

// clic
function Clic(ImgNme)
{
        obj=(document.images)? document.images[ImgNme]:0; ClicNme=(document.clicImg)? document.clicImg.name:""; 
        if (!obj && document.layers) {
                for (i=0; i<document.layers.length; i++) { ObjLyr=document.layers[i].document;
                        if (ObjLyr.images && ObjLyr.images[ImgNme]) obj=ObjLyr.images[ImgNme];}}        
        if (document.clicImg) document.clicImg.src=document.clicImg.src.replace(/_on/gi,"_off");
        obj.src=obj.src.replace(/_off/gi,"_on");
        document.clicImg=obj;
}

// popup
function Sesame(page,target,larg,haut,scraul){
	var posXpop = (screen.availWidth-larg)/2;
	var posYpop = (screen.availHeight-haut)/2;
	param = "width="+larg+",height="+haut+",left="+posXpop+",top="+posYpop+",scrollbars="+scraul;
	popup = window.open(page,target,param);
}