/* ---------------------------------------------------------------- *//* Agreenment/* ---------------------------------------------------------------- */function gfncWriteAgreement(strID, strBodyID) {	if (!gfncGetCookie("AdultCheck") && gfncCheckCookieEnabled()) {	if (document.all || (document.getElementById && bolIE)) {	gfncGetObject(strID).style.width = gfncGetScrollSize().width + "px";	gfncGetObject(strID).style.height = gfncGetScrollSize().height + "px";	} else if (document.layers || (document.getElementById && bolGecko)) {	gfncGetObject(strID).style.width = gfncGetScrollSize().width + "px";	gfncGetObject(strID).style.height = gfncGetScrollSize().height + "px";	}	intBodyLeft = Math.round(gfncGetInnerSize().width / 2) - Math.round(gfncGetLayerSize(gfncGetObject(strBodyID)).width / 2);	intBodyTop = Math.round(gfncGetInnerSize().height / 2) - Math.round(gfncGetLayerSize(gfncGetObject(strBodyID)).height / 2);	if (intBodyTop > 200) intBodyTop = 200;	gfncMoveLayer(gfncGetObject(strBodyID), intBodyLeft, intBodyTop);	gfncChangeVisibility(strID, "visible");	gfncChangeVisibility(strBodyID, "visible");	}}function gfncExecAgreement() {	gfncSetCookie("AdultCheck", 1);	gfncGetObject("idsOverLay").style.backgroundImage = "none";	gfncChangeVisibility("idsOverLayBody", "hidden");	gfncChangeVisibility("idsOverLay", "hidden");}function gfncMoveLayer(objLayer, intX, intY) {	if (document.getElementById) {	objLayer.style.left = intX + "px";	objLayer.style.top = intY + "px";	} else if (document.all) {	objLayer.style.pixelLeft = intX;	objLayer.style.pixelTop = intY;	} else if (document.layers) {	objLayer.moveTo(intX, intY);	}}function gfncGetLayerSize(objLayer) {	var objThis = new Object();	if (objLayer) {	if (document.all || document.getElementById) {		objThis.width = objLayer.offsetWidth;		objThis.height = objLayer.offsetHeight;	} else if (document.layers) {		objThis.width = objLayer.clip.width;		objThis.height = objLayer.clip.height;	}	}	return objThis;}function gfncChangeVisibility(strId, strValue) {	if (gfncGetObject(strId)) {		gfncGetObject(strId).style.visibility = strValue;	}}function gfncGetInnerSize() {	var objThis = new Object();	if (document.all || (document.getElementById && bolIE)) {		objThis.width = document.body.clientWidth;		objThis.height = document.body.clientHeight;	} else if (document.layers || (document.getElementById && bolGecko)) {		objThis.width = window.innerWidth;		objThis.height = window.innerHeight;	}	return objThis;}function gfncGetScrollSize() {	var objThis = new Object();	if (document.all || (document.getElementById && bolIE)) {		objThis.width = gfncGetInnerSize().width;	} else if (document.layers || (document.getElementById && bolGecko)) {		objThis.width = document.body.scrollWidth;	}	if (document.all || (document.getElementById && bolIE)) {		objThis.height = gfncGetInnerSize().height + document.body.scrollHeight;	} else if (document.layers || (document.getElementById && bolGecko)) {		objThis.height = document.body.scrollHeight;	}	return objThis;}function gfncGetCookie(strKey) {	strCookie = " " + document.cookie + ";";	intPos1 = intPos2 = 0;	while (intPos1 < strCookie.length) {		intPos2 = strCookie.indexOf(";", intPos1);		strCookie2 = strCookie.substring(intPos1 + 1, intPos2);		intPos3 = strCookie2.indexOf("=");		if (strCookie2.substring(0, intPos3) == strKey) {			return(unescape(strCookie2.substring(intPos3 + 1, intPos2 - intPos1 - 1)));		}		intPos1 = intPos2 + 1;	}	return("");}function gfncSetCookie(strKey, strValue) {	var dteExpires = new Date;	dteExpires.setDate(dteExpires.getDate() + 30);	dteExpires = dteExpires.toGMTString();	strCookie = strKey + "=" + escape(strValue) + "; ";	strCookie += "expires=" + dteExpires + "; ";	document.cookie = strCookie + "path=;";}function gfncClearCookie(strKey) {	document.cookie = strKey + "=" + "xx; expires=Tue, 1-Jan-1980 00:00:00;" + "path=;";}function gfncCheckCookieEnabled(){	if (navigator["cookieEnabled"]) {		return (navigator.cookieEnabled)	} else {		document.cookie = "co";		return (document.cookie.indexOf("co") != -1)	}}