var active_TN = ""; // these are need to prevent a javascript error in NS
var active_SN = "";
var active_LN = "";

if (document.images) {

	// side nav
	sn_products_on = new Image();
	sn_products_on.src = "images/sn_products_on.gif";
	sn_products_pop_on = new Image();
	sn_products_pop_on.src = "images/sn_products_pop_on.gif";
	sn_products_ebrochure_on = new Image();
	sn_products_ebrochure_on.src = "images/sn_products_ebrochure_on.gif";
	sn_products_webadmin_on = new Image();
	sn_products_webadmin_on.src = "images/sn_products_webadmin_on.gif";
	sn_login_on = new Image();
	sn_login_on.src = "images/sn_login_on.gif";
	sn_clients_on = new Image();
	sn_clients_on.src = "images/sn_clients_on.gif";
	sn_partners_on = new Image();
	sn_partners_on.src = "images/sn_partners_on.gif";
	sn_contact_on = new Image();
	sn_contact_on.src = "images/sn_contact_on.gif";
	
	sn_products_off = new Image();
	sn_products_off.src = "images/sn_products_off.gif";
	sn_products_pop_off = new Image();
	sn_products_pop_off.src = "images/sn_products_pop_off.gif";
	sn_products_ebrochure_off = new Image();
	sn_products_ebrochure_off.src = "images/sn_products_ebrochure_off.gif";
	sn_products_webadmin_off = new Image();
	sn_products_webadmin_off.src = "images/sn_products_webadmin_off.gif";
	sn_login_off = new Image();
	sn_login_off.src = "images/sn_login_off.gif";
	sn_clients_off = new Image();
	sn_clients_off.src = "images/sn_clients_off.gif";
	sn_partners_off = new Image();
	sn_partners_off.src = "images/sn_partners_off.gif";
	sn_contact_off = new Image();
	sn_contact_off.src = "images/sn_contact_off.gif";
									
}

/*
Functions are down here
*/

// Function to 'activate' images.
function imgOn(imgName) {
	if (document.images) {
		document[imgName].src = eval(imgName + "_on.src");
	}
}

// Function to 'deactivate' images.
function imgOff(imgName) {
	if ((imgName == active_TN) || (imgName == active_SN) || (imgName == active_LN)) {}
	else {
		if (document.images) {
			document[imgName].src = eval(imgName + "_off.src");
		}
	}
}

function popWin(file,width,height,scrollbars,menubar){
	window.open(file,'','toolbar=no,left=150,top=150,status=no,width='+width+',height='+height+',scrollbars='+scrollbars+',directories=no,location=no,resizable=yes,menubar='+menubar+'');
}	