
//###############
// these are cleaner js functions slowly being integrated 
// <a href="" "onMouseOut="rollOut('btngo','btngo')" onMouseOver="rollIn('btn1','btngo')"><img src="/images/btn_go0.gif" name="btngo"></a>
function rollIn(imgName, imgObjName) {
    //alert('nav images ' + eval(imgObjName + "on.src"));
    if (document.images) {
        document[imgName].src = eval(imgObjName + "on.src");
    }
}

function rollOut(imgName, imgObjName) {  // the normal onMouseOut function
    if (document.images){
        document[imgName].src = eval(imgObjName + "off.src");
    }
}



function loadGlobalImages()
{   
    btngoon = new Image(); btngoon.src = '/images/btn_go1.gif';
    btngooff = new Image(); btngooff.src = '/images/btn_go0.gif';
	btnfindon = new Image(); btnfindon.src = '/images/btn_find1.gif';
    btnfindoff = new Image(); btnfindoff.src = '/images/btn_find0.gif';
    btnarro_righton = new Image(); btnarro_righton.src = '/images/img_arro_rt1.gif';
    btnarro_rightoff = new Image(); btnarro_rightoff.src = '/images/img_arro_rt0.gif';
	btnarro_lefton = new Image(); btnarro_lefton.src = '/images/img_arro_lf1.gif';
    btnarro_leftoff = new Image(); btnarro_leftoff.src = '/images/img_arro_lf0.gif';
}

function loadPlansImages()
{   
    btngo2on = new Image(); btngo2on.src = '/images/btn_go3_1.gif';
    btngo2off = new Image(); btngo2off.src = '/images/btn_go3_0.gif';
    btngo3on = new Image(); btngo3on.src = '/images/btn_go3_1.gif';
    btngo3off = new Image(); btngo3off.src = '/images/btn_go3_0.gif';
}

function loadFormImages()
{   
    btnclearon = new Image(); btnclearon.src = '/images/btn_clear1.gif';
    btnclearoff = new Image(); btnclearoff.src = '/images/btn_clear0.gif';
	btnsearchon = new Image(); btnsearchon.src = '/images/btn_search1.gif';
    btnsearchoff = new Image(); btnsearchoff.src = '/images/btn_search0.gif';
}

function loadNavigationImages()
{   
    
    btnhipaon = new Image(); btnhipaon.src = '/images/nav_hipa1.gif';
    btnhipaoff = new Image(); btnhipaoff.src = '/images/nav_hipa0.gif';
	btnserviceson = new Image(); btnserviceson.src = '/images/nav_serv1.gif';
    btnservicesoff = new Image(); btnservicesoff.src = '/images/nav_serv0.gif';
	btnabouton = new Image(); btnabouton.src = '/images/nav_abou1.gif';
    btnaboutoff = new Image(); btnaboutoff.src = '/images/nav_abou0.gif';
	btnonlineon = new Image(); btnonlineon.src = '/images/nav_onli1.gif';
    btnonlineoff = new Image(); btnonlineoff.src = '/images/nav_onli0.gif';
	btnplanson = new Image(); btnplanson.src = '/images/nav_plan1.gif';
    btnplansoff = new Image(); btnplansoff.src = '/images/nav_plan0.gif';
	btnhome2on = new Image(); btnhome2on.src = '/images/btn_home2_1.gif';
    btnhome2off = new Image(); btnhome2off.src = '/images/btn_home2_0.gif';
	btncontacton = new Image(); btncontacton.src = '/images/btn_cont1.gif';
    btncontactoff = new Image(); btncontactoff.src = '/images/btn_cont0.gif';
    
}

function loadPlanNavigationImages()
{   
    
    btnhomeon = new Image(); btnhomeon.src = '/images/nav_home1.gif';
    btnhomeoff = new Image(); btnhomeoff.src = '/images/nav_home0.gif';
    btnpharon = new Image(); btnpharon.src = '/images/nav_phar1.gif';
    btnpharoff = new Image(); btnpharoff.src = '/images/nav_phar0.gif';
    btnformon = new Image(); btnformon.src = '/images/nav_form1.gif';
    btnformoff = new Image(); btnformoff.src = '/images/nav_form0.gif';
    btndrugon = new Image(); btndrugon.src = '/images/nav_drug1.gif';
    btndrugoff = new Image(); btndrugoff.src = '/images/nav_drug0.gif';
    btnacceon = new Image(); btnacceon.src = '/images/nav_acce1.gif';
    btnacceoff = new Image(); btnacceoff.src = '/images/nav_acce0.gif';
    btnhelpon = new Image(); btnhelpon.src = '/images/nav_help_1.gif';
    btnhelpoff = new Image(); btnhelpoff.src = '/images/nav_help_0.gif';
    btnfavon = new Image(); btnfavon.src = '/images/btn_favorite1.gif';
    btnfavoff = new Image(); btnfavoff.src = '/images/btn_favorite0.gif';
    btnnechomeon = new Image(); btnnechomeon.src = '/images/btn_nec_home1.gif';
    btnnechomeoff = new Image(); btnnechomeoff.src = '/images/btn_nec_home0.gif';
}
  
 var popWindow;
   function popWindow(url, hsize, wsize, winname)
   {
        window.open(url,winname,"Toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + wsize + ",height=" + hsize + "\"");
		_2p2init();
    }
	
//follow order of attributes in html 1=url, 2=height, 3=width, 4=window name, 5=toolbar, 6=scrollbar, 7=resizeable 
   
   function popAdjWindow(url, hsize, wsize, winname, tBar, sBar, resizeable)
   {
        window.open(url,winname,"Toolbar=" + tBar + ",location=no,directories=no,status=no,menubar=no,scrollbars=" + sBar + ",resizable=" + resizeable + ",width=" + wsize + ",height=" + hsize + "\"");
		 _2p2init();

    }
	
	
	function popWinCenterFixed(url, hsize, wsize, winname)
            {
                  var winLeft = (screen.width - wsize) / 2;
                  var winUp = (screen.height - hsize) / 2;
                  window.open(url,winname,"top="+winUp+",left="+winLeft+"+,Toolbar=no,location=no,directories=no,status=no menubar=no scrollbars=no,resizable=no,width=" + wsize + ",height=" + hsize + "\"");
            }
   
		
        