function getScrollXY() {
	var scrOfX = 0, scrOfY = 0;
	if( typeof( window.pageYOffset ) == 'number' ) {
		//Netscape compliant
		scrOfY = window.pageYOffset;
		scrOfX = window.pageXOffset;
	} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
		//DOM compliant
		scrOfY = document.body.scrollTop;
		scrOfX = document.body.scrollLeft;
	} else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
		//IE6 standards compliant mode
		scrOfY = document.documentElement.scrollTop;
		scrOfX = document.documentElement.scrollLeft;
	}
	return [ scrOfX, scrOfY ];
}
function scrollMe(s) {
	window.scroll(getScrollXY()[0], getScrollXY()[1] + s);
}
function newHeight(h) {
		var div = document.getElementById("flashcontent");
		div.style.height = h+"px";
		var f = document.getElementById("sotester");
		f.height = h+"px";	
}
window.onresize = cFix;
var timer;
var doonce = 0;
var lastH;
function cFix() {
	if (doonce == 0) {
		doonce = 1;
		timer = setTimeout("ffFix()", 500);
	}
}
function ffFix() {
	doonce = 0;
	clearTimeout(timer);
	var div = document.getElementById("flashcontent");
	if (self.innerHeight) {
		var sh = self.innerHeight;
		if (sh < 630) {
			div.style.height = 630+"px";
		} else {
			if (div.offsetHeight < sh) {
				div.style.height = sh+"px";
			}
		}
	} else if (document.documentElement) {
		var sh = document.documentElement.clientHeight;
		if (sh < 630) {
			div.style.height = 630+"px";
		} else {
			if (div.offsetHeight < sh) {
				div.style.height = sh+"px";
			}
		}
	}
	if (self.innerWidth) {
		var sw = self.innerWidth;
		if (sw < 955) {
			div.style.width = 955+"px";
		} else {
			div.style.width = "100%";
		}
	} else if (document.documentElement) {
		var sw = document.documentElement.clientWidth;
		if (sw < 955) {
			div.style.width = 955+"px";
		} else {
			div.style.width = "100%";
		}
	}
}
function setHash(h) {
	window.scrollTo(0,0);
	var hashish = (window.XMLHttpRequest) ? true : false;
	if (hashish) {
		location.hash = h;
	}
}
function termPop() {
	var winy = window.open("html/termspop.aspx","TERMSANDCONDITIONS","width=600,height=500,top=50,left=50,resizable=yes,scrollbars=yes,status=no,toolbar=no,location=no,menu=no,");
}
function privacyPop() {
    var winy = window.open("html/privacypop.aspx","PRIVACYPOLICY","width=600,height=500,top=50,left=50,resizable=yes,scrollbars=yes,status=no,toolbar=no,location=no,menu=no,");
}