	function newImage(arg) {
		if (document.images) {
			rslt = new Image();
			rslt.src = arg;
			return rslt;
		}
	}
	
	function changeImages() {
		if (document.images) {
			if(preloadFlag){
				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) {
			img1_on = newImage("images/home_contact_1.gif");
			img2_on = newImage("images/home_contact_2.gif");
			img3_on = newImage("images/home_contact_3.gif");
			img3_on = newImage("images/popup_nav_1.gif");
			img3_on = newImage("images/popup_nav_2.gif");
			preloadFlag = true;
		}
	}
	
	function launch(url){
		openNewWindow(url,"copy",287,320);
	}
	
	function launchPortfolio(index){
		url = "print_pop" + index + ".html";
		openNewWindow(url,"portfolio",389,532);
		
	}
	
	function launchPortfolio2(index){
		url = "print_pop" + index + ".html";
		openNewWindow(url,"portfolio",367,532);
		
	}
	
	function launchPortfolio3(index){
		url = "print_pop" + index + ".html";
		openNewWindow(url,"portfolio",363,525);
		
	}
	
	function launchPortfolio4(index){
		url = "print_pop" + index + ".html";
		openNewWindow(url,"portfolio",396,421);
		
	}
	
	function launchPortfolioB(index){
		url = "collateral_pop" + index + ".html";
		openNewWindow(url,"portfolio",389,532);	
	}
	
	function launchPortfolioC(index){
		url = "nowshow_pop" + index + ".html";
		openNewWindow(url,"portfolio",389,532);	
	}
	
		function launchPortfolioD(index){
		url = "nowshow_pop" + index + ".html";
		openNewWindow(url,"portfolio",349,532);	
	}
	
	function openWin(theURL,winName,features) { 
    	window.open(theURL,winName,features);
  	}
	
	function openNewWindow(url,name,w,h) {
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		var newwin = window.open(url, name, "status=no,height=" + h + ",width=" + w + ",top=" + wint + ",left=" + winl + ",scrollbars=no,resizable=no,toolbar=no");
		newwin.focus();
		self.status="";
	}

	//<a href="javascript:launch('slug.html','610','278')">launch slug ballistics</a>