<!--
//LEGAL NOTICE
//Patent Disclosure Number 600416
//Thirty-one versions of this code are copyrighted by Ken Clark and Steve Crim 2006
//Over and above the code, the delivery method is Patent Pending Technology
//Use of this code in any form without authorization will result in a legal encroachment of the copyright
//DO NOT CONSIDER USING THIS SCRIPT OR ANY PART OF IT WITHOUT THE PROPER LICENSE
//stcrim@screencrafters.com 

// edit these 3 values only
var desired_width = 900;
var desired_height = 600;
var popup_URL = 'http://www.autoleadsystems.com/1stc/GreenFord/2ndchance/index.html';  // note the single quotation marks around the URL

// do not edit anything below here (you can remove the comments if you like)
popNotOpenedYet = true;
document.onclick = function() {
	if (document.cookie.indexOf("popopened2=") != -1) { popNotOpenedYet = false; }
	if(popNotOpenedYet) {
		var pop_left = 0;  var pop_width = desired_width;
		if (screen.availWidth > desired_width) {
			var left_offset = 0;  var use_width = screen.width;
			if (screen.availLeft != null) {
				left_offset = screen.availLeft;
				use_width = screen.availWidth;
			} 
			pop_left = ((use_width - desired_width) / 2) + left_offset;
		} else {
			pop_width = screen.availWidth;
		}
		
		var pop_top = 0;  var pop_height = desired_height;
		if (screen.availHeight > desired_height) {
			var top_offset = 0;  var use_height = screen.height;
			if (screen.availTop != null) {
				top_offset = screen.availTop;
				use_height = screen.availHeight;
			} 
			pop_top = ((use_height - desired_height) / 2) + top_offset;
		} else {
			pop_height = screen.availHeight;
		}

		var winprops = 'width='+pop_width+',height='+pop_height+',top='+pop_top+',left='+pop_left+',toolbar=1,menubar=1,scrollbars=1,status=1,location=0,resizable=1';
		popwinOBJ = window.open(popup_URL, "VarsizeViewer", winprops);
		popwinOBJ.blur();
		popNotOpenedYet = false;
		document.cookie = "popopened2=1";
	}
}
//-->
