function x(a,b,c,d){var nd = '';for (var i = 0; i <= d.length; i++) {nd = d.charAt(i) + nd;}var s = nd+a+'@'+b.replace(/\b dot \b/g,'.');if (s != '@')document.write('<a href="mai'+'lto'+':'+s+'">'+s+'</a>');}function redictplan() { for (i = 0; i < document.getElementById('planchoose').plan.length; i++) { if (document.getElementById('planchoose').plan[i].checked) window.open(document.getElementById('planchoose').plan[i].value, 'shopywin', 'manubar=yes,status=yes,scrollbars=yes,resizable=yes,toolbar=yes,location=yes'); } }

function hideSelect(id, value) {
	document.getElementById(id).style.display = 'none';
	document.getElementById(id).value = value;
}
function showSelect(id) {
	document.getElementById(id).style.display = '';
}

function checkPageWidthForAd(adWidth) {
	if (document.getElementById('leftad').style.display!='none') {
		if ((((document.body.offsetWidth - 32) / 2) - (768 / 2)) <= adWidth) {
			document.getElementById('leftad').style.display='none';
		}
	} else {
		if ((((document.body.offsetWidth - 32) / 2) - (768 / 2)) > adWidth) {
			document.getElementById('leftad').style.display='block';
		}
	}
	window.setTimeout('checkPageWidthForAd(' + adWidth + ')', 100);
}

var LastPosY = 0;
var elements = [];

function moveElements() {
	var y = (ns_pos)? window.pageYOffset :
		(ie_std && ie_pos) ? Math.max(document.documentElement.scrollTop, document.body.scrollTop) :
		ie_std ? document.documentElement.scrollTop : document.body.scrollTop;
	for (var i = 0; i < elements.length; i++) {
		temp = y + elements[i][1];
		if (temp != LastPosY) {
			if (window.opera) {
				document.getElementById(elements[i][0]).style.pixelTop = temp;
			}
			else if (document.layers) {
				document.layers[elements[i][0]].top = temp;
			}
			else if (document.getElementById) {
				document.getElementById(elements[i][0]).style.top = temp + 'px';
			}
			else if (document.all) {
				document.all[elements[i][0]].style.pixelTop = temp;
			}
		}
	}
	LastPosY = y;
	if (TimeScroll)	window.setTimeout('moveElements()', 100);
}

var TimeScroll = true;

function positionFixed(id, top) {
	var x = elements.length;
	elements[x] = [];
	elements[x][0] = id;
	elements[x][1] = top;
}

function loadPositioning() {
	ns_pos = (typeof window.pageYOffset != 'undefined');
	ie_std = (document.documentElement && typeof document.documentElement.scrollTop != 'undefined');
	ie_pos = (document.body && typeof document.body.scrollTop != 'undefined');
	window.onscroll = function() {
		TimeScroll = false;
		window.onscroll = moveElements();
	};
	if (ns_pos || ie_std || ie_pos) moveElements();
}

window.onload = function () {
	if (elements.length != 0) loadPositioning();
}
