/* *
 * showPopup
 * 
 */
function showPopup(url, width, height) {
	if (parseFloat(navigator.appVersion) >= 4.0) {
		pos_x = parseInt(screen.width / 2.0) - (width / 2.0);
		pos_y = parseInt(screen.height / 2.0) - (height / 2.0);
	}

	var win = window.open(url, "popup" + width + "x" + height, "width=" + width + ",height=" + height + ",left=" + pos_x + ",top=" + pos_y + ",resizable=no,scrollbars=yes");
	try {
		win.focus();
		win.moveTo(pos_x, pos_y);
	} catch (e) {
		// How unfortunate.
	}
}

// Popup result page
function showResult(url) {
    
	location.href= url;
	//showPopup(url, 618, 500);
}

function urchinTracker(txt)
{

}

function popEmail() {
	showPopup("/aspx/CaptchaForms/EmailFriendGAHC.aspx", 528, 640);
}

function showEmailResult(querystring) {
	showPopup("/gahc/flash_gahc/email.asp?"+ querystring, 528, 537);
}

function popFlash() { 
	var w = screen.width;

	if (w<=800) { 
		window.open('flash.html','flash','width=790,height=545, toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no'); 
	} else if (w>800) { 
		var winl = (screen.width-900)/2;
		var wint = (screen.height-640)/2;
		if (winl < 0) winl = 0;
		if (wint < 0) wint = 0;
		window.open('flash.html','flash','width=900,height=640, toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no'+',top=' + wint + ',left=' + winl); 
	}
}
function HideMovieLink() {
	var x = document.getElementById("MovieLink");
	x.style.display = 'none';
}
function redirect(url){
			window.location = url;
		}
		
	