if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;


/*
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
*/


//if you are on homepage you need <script> var homepage = "yes";</script> to make codework properly

var imgdir;
var sitedir;
var scriptdir;
var homedir;

if(window.homepage)
{
imgdir="images/";
sitedir="";
scriptdir="js/";
homedir="";
}
else if(window.absolutepage)
{
imgdir="http://www.digitalinsight.com/images/";
sitedir="http://www.digitalinsight.com/";
scriptdir="http://www.digitalinsight.com/js/";
homedir="http://www.digitalinsight.com/";
}
else
{
imgdir="../images/";
sitedir="../";
scriptdir="../js/";
homedir="../";
}

if (document.images) {
  //sub nav
  image1on = new Image();
  image1on.src = imgdir + "global_subnav_company_on.gif";

  image2on = new Image();
  image2on.src = imgdir + "global_subnav_events_on.gif";

  image3on = new Image();
  image3on.src = imgdir + "global_subnav_press_on.gif";

  image4on = new Image();
  image4on.src = imgdir + "global_subnav_career_on.gif";

  image5on = new Image();
  image5on.src = imgdir + "global_subnav_investor_on.gif";
  
  image5aon = new Image();
  image5aon.src = imgdir + "global_subnav_contact_on.gif";

  image1off = new Image();
  image1off.src = imgdir + "global_subnav_company_off.gif";

  image2off = new Image();
  image2off.src = imgdir + "global_subnav_events_off.gif";

  image3off = new Image();
  image3off.src = imgdir + "global_subnav_press_off.gif";

  image4off = new Image();
  image4off.src = imgdir + "global_subnav_career_off.gif";

  image5off = new Image();
  image5off.src = imgdir + "global_subnav_investor_off.gif";
  
  image5aoff = new Image();
  image5aoff.src = imgdir + "global_subnav_contact_off.gif";
  
  //side nav
  
  image6off = new Image();
  image6off.src = imgdir + "/sidenav_case_studies_off.gif";
  image6on = new Image();
  image6on.src = imgdir + "sidenav_case_studies_on.gif";
  
  image7off = new Image();
  image7off.src = imgdir + "sidenav_demo_off.gif";
  image7on = new Image();
  image7on.src = imgdir + "sidenav_demo_on.gif";
  
  image8off = new Image();
  image8off.src = imgdir + "sidenav_learn_off.gif";
  image8on = new Image();
  image8on.src = imgdir + "sidenav_learn_on.gif";
  
  image9off = new Image();
  image9off.src = imgdir + "sidenav_whitepaper_off.gif";
  image9on = new Image();
  image9on.src = imgdir + "sidenav_whitepaper_on.gif";
  
  image10off = new Image();
  image10off.src = imgdir + "global_subnav_security_off.gif";
  image10on = new Image();
  image10on.src = imgdir + "global_subnav_security_on.gif";
  
  

}

function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}

//show-hide layers
function toggleVisibility(id, NNtype, IEtype, W3Ctype) {
    if (document.getElementById) {
    eval("document.getElementById(id).style.visibility = \"" + W3Ctype + "\"");
    } else {
    if (document.layers) {
    document.layers[id].visibility = NNtype;
    } else {
    if (document.all) {
    eval("document.all." + id + ".style.visibility = \"" + IEtype + "\"");
            }
        }
    }
}


//Open Window Function
function openWin (url,width,height,extras) {
	if (window.open) {
		if (width < 0 || height < 0) {
			newWin = window.open(url,"new_win",extras);
		} else {
			newWin = window.open(url,"new_win","width="+ width +",height="+ height +","+ extras);
		}
	} else {
		return false;
	}
}

function open_apps(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open('https://www.srifcu.org/Forms/OnlineForm.cgi?form=' + nameofapp,'application',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=700,height=600,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
}

function open_link(url){
	window.open(url);
}

function quickstartWindow(selection) {
	PreView = window.open("", "Preview", "screenX=0,screenY=0,top=0,left=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=800,height=600");
	PreView.document.open();
	PreView.document.write("<html>");
	PreView.document.write("<head>");
	PreView.document.write("<title>QuickStart Template Website</title>");
	PreView.document.write("</head>");
	PreView.document.write("");
	PreView.document.write("<body bgcolor=#FFFFFF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad='window.focus();'>");
	PreView.document.write("");
	PreView.document.write("<form><div align=center>");
	PreView.document.write("<img " + "src=" + selection + " border=0>");
	PreView.document.write("<p>");
	PreView.document.write("<div align=center><input type='button' value='Close Window' " + " onClick='window.close()'></div>");
	PreView.document.write("</div></form>");
	PreView.document.write("");
	PreView.document.write("</body>");
	PreView.document.write("</html>");
	PreView.document.close();
}


/************************************** End of File ******************************************/
