﻿<!--
var preloadFlag = false;

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = _rootPath + arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		//Nav01 = newImage("/images/navigation/about-qgs-OVER.gif");
		//Nav02 = newImage("/images/navigation/contact-us-OVER.gif");
		//Nav03 = newImage("/images/navigation/default-OVER.gif");
		//Nav04 = newImage("/images/navigation/employment-opportunities-OVER.gif");
		//Nav05 = newImage("/images/navigation/icon-golf-OVER.gif");
		//Nav06 = newImage("/images/navigation/icon-site-OVER.gif");
		//Nav07 = newImage("/images/navigation/icon-turf-OVER.gif");
		//Nav08 = newImage("/images/navigation/projects-OVER.gif");
		//Nav09 = newImage("/images/navigation/services-OVER.gif");

		//Rdm01 = newImage("/images/random/int-header/site/header-1.jpg");
		//Rdm02 = newImage("/images/random/int-header/site/header-2.jpg");
		//Rdm03 = newImage("/images/random/int-header/site/header-3.jpg");
		//Rdm04 = newImage("/images/random/int-header/site/header-4.jpg");


		preloadFlag = true;
	}
}

var winLegal = null;
function goPrivacy() {
	var windowWidth = 500;
	var windowHeight = 500;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=1';
	
	if ((winLegal != null) && !winLegal.closed) {
		winLegal.close();
	};
	
	winLegal = open('privacy.aspx', 'winLegal', windowFeatures);
	winLegal.focus();
}

function goNotices() {
	var windowWidth = 500;
	var windowHeight = 500;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=1';
	
	if ((winLegal != null) && !winLegal.closed) {
		winLegal.close();
	};
	
	winLegal = open('notices.aspx', 'winLegal', windowFeatures);
	winLegal.focus();
}

var winSlideShow = null;
function goSlideShowPopUp(img, type, id) {
	var windowWidth = 686;
	var windowHeight = 650;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=0';
	if ((winSlideShow != null) && !winSlideShow.closed) {
		winSlideShow.close();
	};
		
	winSlideShow = open('winSlideshow.aspx?img=' + img + '&type=' + type + '&id=' + id, 'winSlideShow', windowFeatures);
	winSlideShow.focus();
}

function showFullsize(src, id) {
	window.parent.document['fullsize'].src = src;
	window.parent.showSlideShowCaption(id);
}

function showSlideShowCaption(which){
	if (captionObj != null) {
		thecontent=(which==-1)? "" : caption[which]
		if (document.getElementById||document.all)
			captionObj.innerHTML=thecontent
		else if (document.layers){
			captionObj.document.write(thecontent)
			captionObj.document.close()
		}
	}
}

var winFileName = null;
function goFileName (filename) {
	var windowWidth = 600;
	var windowHeight = 75;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var content = '';
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=1';
	
	if ((winFileName != null) && !winFileName.closed) {
		winFileName.close();
	};
	content = '<html><title>Link for Document</title><body>' + htmlEncode('www.qgsdevelopment.com\/media.aspx?f=' + escape(filename)) + '</body></html>'
	
	winFileName = open('', 'winFileName', windowFeatures);
	winFileName.document.write(content);
	winFileName.focus();
}

function htmlEncode(s) {
	var str = new String(s);
	str = str.replace(/&/g, "&amp;");
	str = str.replace(/</g, "&lt;");
	str = str.replace(/>/g, "&gt;");
	str = str.replace(/"/g, "&quot;");

	return str;
}
// -->