/* Global Variables */
/* Absolute Reference for URL's and Images */
/* Needed so 3rd parties that host templated content can reference functionality on main server */
/* Without replicating files */
var domain = "http://www.ascential.com/"; // Referenced by menu_data.js And flash.js

/* Global Utility functions */

// Open popup window
function OpenWindow(url,name,w,h,scroll,resize,status,title,tool,menu,location)
{
	var sFeatures;
	if (typeof(h) == "undefined") h = 300;
	if (typeof(w) == "undefined") w = 400;
	
	var screenW = screen.width;
	var screenH = screen.height;
	var posX = (screenW/2)-(w/2);
	var posY = (screenH/2)-(h/2);
	
	sFeatures = "top="+posY+",left="+posX+",height="+h+",width="+w;
	
	if (typeof(scroll) != "undefined"){ sFeatures += ",scrollbars=" + scroll; }
	if (typeof(resize) != "undefined"){ sFeatures += ",resizable=" + resize; }
	if (typeof(status) != "undefined"){ sFeatures += ",status=" + status; }
	if (typeof(title) != "undefined"){ sFeatures += ",titlebar=" + title; }
	if (typeof(tool) != "undefined"){ sFeatures += ",toolbar=" + tool; }
	if (typeof(menu) !="undefined"){ sFeatures += ",menubar=" + menu;}
	if (typeof(location) != "undefined"){ sFeatures += ",location=" + location;}
	
	var win = window.open(url,name,sFeatures);
	win.focus();
}

/* Legacy popup function from contact page */
function popUp(URL) {
	day = new Date();
	id = day.getTime();
	name = "page" + id;
	
	OpenWindow(URL, name, 600, 450, 1, 0, 0, 1, 0, 0, 0)
}
