function swapImage(id, file) {
	if (document.getElementById) {
		document.getElementById(id).src = file;
	}
}
function preloadImage(img) {
	if (document.images) {
		var preloadImg1 = new Image();
		preloadImg1.src = img;
	}

}
var iconsLoaded = 0;
function preloadIcons(path) {

	if (!iconsLoaded) {
		preloadImage(path +"images/icon_business_off.gif");
		preloadImage(path +"images/icon_business_on.gif");
		preloadImage(path +"images/icon_computer_off.gif");
		preloadImage(path +"images/icon_computer_on.gif");
		preloadImage(path +"images/icon_family_off.gif");
		preloadImage(path +"images/icon_family_on.gif");
		preloadImage(path +"images/icon_financial_off.gif");
		preloadImage(path +"images/icon_financial_on.gif");
		preloadImage(path +"images/icon_law_off.gif");
		preloadImage(path +"images/icon_law_on.gif");
		preloadImage(path +"images/icon_magnify_off.gif");
		preloadImage(path +"images/icon_magnify_on.gif");
		preloadImage(path +"images/icon_shop_off.gif");
		preloadImage(path +"images/icon_shop_on.gif");

		iconsLoaded = 1;
	}
}
function cw_printDiv(divID,pageTitle) {
	if (window.print) {
		if (document.getElementById) {
			var htmlForPrint = "";
			htmlForPrint = "<h3><img src='images/logo_brand.gif' alt='McAfee' width='102' height='28' border='0' />  Cybercrime Response Unit / "+pageTitle+".</h3>";
			htmlForPrint += document.getElementById(divID).innerHTML;
			document.getElementById("printOnlyDiv").innerHTML = htmlForPrint;
			window.print();
			return true;
		}
	}
	else {
		alert("Sorry, this print button is only available in modern browsers.\nPlease use the print button on your browser's title bar .");
		return false;
	}
}
function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=435,height=354,left = 625,top = 350');");
}
