// Pop Up Window scripts 	
var win;
function openWin(url, width, height) {
	var windowName;
	var params;
	windowName  = "buttons";
	params = "toolbar=0,";
	params += "location=0,";
	params += "directories=0,";
	params += "status=0,";
	params += "menubar=0,";
	params += "scrollbars=1,";
	params += "resizable=0,";
	params += "top=50,";
	params += "left=50,";
	params += "width="+width+",";
	params += "height="+height;
	win = window.open(url, windowName, params);
}

scrWidth = screen.width;
scrHeight = screen.Height;

var popwin;
function popRetailer(URLString) {
	if (scrHeight < 602) {
		popWidth = 736;
		popHeight = 450;
		scrollbars = ",scrollbars=1";
	} else if (scrHeight < 770) {
		popWidth = 730;
		popHeight = 670;
		scrollbars = ",scrollbars=1";
	 } else {
		popWidth = 730;
		popHeight = 773;
		scrollbars = "";
	}
	popwin = window.open(URLString, 'RetailerPop', 'width='+popWidth+',height='+popHeight+',status=1' + scrollbars);
	popwin.moveTo(10,10);
	popwin.focus();
}

var popenlg;
function popEnlarge(ImageID) {
	popenlg = window.open('/includes/phpbin/popEnlarge.php?ID=' + ImageID, 'popEnlarged','width=550,height=450,status=1,scrollbars=0,resizable=1');
}

var popvid;
function popVideo(vid) {
	popvid = window.open('../media/video/' + vid, 'popVid','width=320,height=280,status=0,scrollbars=0,resizable=0');
}