//new ypSlideOutMenu("number menu", "slide position", left, top, width, height)
new ypSlideOutMenu("menu1", "down", 186, 25, 200, 200)
new ypSlideOutMenu("menu2", "down", 376, 25, 200, 200)
new ypSlideOutMenu("menu3", "down", 571, 25, 200, 200)

// var activeMenu = null;
// var defaultMenu = null;
// var tHome, tProducts, tServices, tSupport, tAboutPST;

function createEmail(caption, addr, domain)
	{
//  		var caption = "PST Sales"

//  		var addr = "sales"

//  		var domain = "pstinc.com"
	    //alert(caption + addr + domain);
  		document.write("<a href=" + "mail" + "to:" + addr + "@" + domain+ ">" + caption + "</a>");
	};

/*

function showMenu(item) {


	if(activeMenu) {
		activeMenu.className = defaultMenu;
	}

	if(item) {
		defaultMenu = item.getAttribute("class");//.className;
		tHome = document.getElementById("mHome").getAttribute("class");//.className;
		tProducts = document.getElementById("mProducts").getAttribute("class"); //.className;
		tServices = document.getElementById("mServices").getAttribute("class"); //.className;
		tSupport = document.getElementById("mSupport").getAttribute("class"); //.className;
		tAboutPST = document.getElementById("mAboutPST").getAttribute("class"); //.className;
		document.getElementById("mHome").className = ""; 
		document.getElementById("mProducts").className = ""; 
		document.getElementById("mServices").className = ""; 
		document.getElementById("mSupport").className = ""; 
		document.getElementById("mAboutPST").className = "";
		item.className = "chosen";
		activeMenu = item;
	} else {
		activeMenu = null;
		document.getElementById("mHome").className = tHome;
		document.getElementById("mProducts").className = tProducts;
		document.getElementById("mServices").className = tServices;
		document.getElementById("mSupport").className = tSupport;
		document.getElementById("mAboutPST").className = tAboutPST;
	}
}
*/

function expand(x) {
	var s;
	s = document.getElementById("img_" + x).src;
	s = s.substr(s.length - 5);
	if (s == "n.gif") {
		var i;
		for (i=1; i < 39; i++) {
			try {
				document.getElementById("detail_" + i).style.display = "none";
				document.getElementById("img_" + i).src = "/images/arrow_down.gif";
			}
			catch (exc) {}
		}
		document.getElementById("detail_" + x).style.display = "block";
		document.getElementById("img_" + x).src = "/images/arrow_up.gif";
	} else {
		document.getElementById("detail_" + x).style.display = "none";
		document.getElementById("img_" + x).src = "/images/arrow_down.gif";
	}
}

var popWin = '';
function popWindow(file, height, width){
	if(window.showModalDialog){
		popWin = window.showModalDialog(file, '', 'dialogHeight:'+height+'px; dialogWidth:'+width+'px; resizable:yes; scroll:yes');
	}
	else{
		if(popWin.closed != undefined){if(!popWin.closed){popWin.close();};}
		popWin = window.open(file, 'help', 'height=' + height + ', width=' + width + ', resizable, scrollbars=yes, modal=yes, dialog=yes, menubar=yes');
		popWin.moveTo(20,20);
		popWin.focus();	
	}
}

function popImage(img, height, width) {
	var src;
	src = img.src;
	src = src.replace("thumb-", "");
	popWindow(src, height, width);
}
