// Copyright 2010 Olshan Grundman Frome Rosenzweig & Wolosky LLP
// Design and code by Pinpoint Design, NYC

function newPrintPg() 
{
	var str = location.href;
	var myChar = ''
	if (str.indexOf('?') != -1) 
	{
		myChar = '&';
	}
	else
	{
		myChar = '?';
	}	
	var mywindow = window.open(str + myChar + 'print=true', 'printwindow', 'menubar=yes,location=no,scrollbars=yes,width=840,height=550,left=20,top=20');	
//	mywindow.print();	
}

leftPos = 0

if (screen) {
	leftPos = screen.width-700
}

	function newMemoranda(mem) {
		conWindow = window.open(mem, 'Memoranda', 'toolbar=0,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=720,height=600,left=180,top=20');
		conWindow.focus();
	}
	
	function newLegals(legals) {
		legalsWindow = window.open(legals, 'Legals', 'toolbar=0,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=450,height=475,left=220,top=0');
		legalsWindow.focus();
	}
	

var browser = navigator.appName;
var version = parseInt(navigator.appVersion);

function isWin() {
	if (navigator.appVersion.indexOf("Win")!= -1) return true;
	}
	
function isMac() {
	if (navigator.appVersion.indexOf("Macintosh")!= -1) return true;
	}
	
function isIE5Mac() {
	if (navigator.appVersion.indexOf("MSIE 5.0")!= -1) return true;
	}

function printOL() {
	if (isWin()) {
		if (version >= 4) {
		setTimeout('self.print()',1500);
		}
	else {
	window.alert("Press Crtl+P to print this page.")
		 }
	}
else if (isMac()) {
	if (isIE5Mac()) {
	window.alert("Press Command+P to print this page.") }
	else if ((browser == "Netscape") && (version <= 4.0)) {
	window.alert("Press Command+P to print this page.") }
	else if (version >= 4) {
	setTimeout('self.print()',1500); }
	}
}

