function newimg(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } }
function ci() { if (document.images && (plflag == true)) {	for (var i=0; i<ci.arguments.length; i+=2) { document[ci.arguments[i]].src = ci.arguments[i+1]; } } }
function owin(u,t,f) { window.open(u,t,f); }
function am_buy(i,curr) { var g='4t', r='4templates', w=800, h=500, l=Math.max((screen.availWidth - w) / 2,0), t=Math.max((screen.availHeight / 2) - (h / 2), 0); owin('https://secure.arixmedia.com/index.php?action=pi&cmd=sip&ruid=' + r + '&gid=' + g + '&id=' + i + '&curr=' + curr, 'ft_buy' + i, 'scrollbars=yes, status=yes, resizable=yes, width=' + w + ', height=' + h + ', left=' + l +', top=' + t); }
function am_cart(curr) { var r='4templates', w=800, h=500, l=Math.max((screen.availWidth - w) / 2,0), t=Math.max((screen.availHeight / 2) - (h / 2), 0); owin('https://secure.arixmedia.com/index.php?action=cart&ruid=' + r + '&curr=' + curr, 'cart' + r, 'scrollbars=yes, status=yes, resizable=yes, width=' + w + ', height=' + h + ', left=' + l +', top=' + t); }
function am_cart_add(i,curr) { var g='4t', r='4templates', w=800, h=500, l=Math.max((screen.availWidth - w) / 2,0), t=Math.max((screen.availHeight / 2) - (h / 2), 0); owin('https://secure.arixmedia.com/index.php?action=cart&cmd=add&ruid=' + r + '&gid=' + g + '&id=' + i + '&curr=' + curr, 'cart' + r, 'scrollbars=yes, status=yes, resizable=yes, width=' + w + ', height=' + h + ', left=' + l +', top=' + t); }
var w_w = 550, w_h = 600, w_l = 50, w_t = 50;
var w_features = 'scrollbars=yes, status=yes, resizable=yes, width=' + w_w + ', height=' + w_h + ', left=' + w_l +', top=' + w_t;
function wthemes(i) { owin('/help/w/themes/' + '#' + i, 'Help_Themes', w_features); }
function wstyles(i) { owin('/help/w/styles/' + '#' + i, 'Help_Styles', w_features); }
function wresolutions(i) { owin('/help/w/resolutions/' + '#' + i, 'Help_Resolutions', w_features); }
function wfeatures(t,i) { owin('/help/w/features_' + t + '/#' + i, 'Help_Features', w_features); }
function whelp(s,i) { owin('/help/w/' + s + '/' + '#' + i, 'Help', w_features); }
function uconf(u) { var c = confirm('Are you sure? Click OK to proceed.'); if (c) document.location = u; }
NS4 = (document.layers) ? true : false;
function ce(f,e) { var c=0; if (NS4) c = e.which; else c = e.keyCode; if (c == 13) f.submit(); }
var plflag = false;
function primg() {
	if (document.images) {
		i1 = newimg("i/rli-vat-1.gif");
		i2 = newimg("i/rli-sot-1.gif");
		i3 = newimg("i/rli-gh-1.gif");
		i4 = newimg("i/rli-ap-1.gif");
		i5 = newimg("i/rli-cu-1.gif");
		plflag = true;
	}
}
function ims(i,n,p,e)
{
	if (n == 1)
		document.images[i].src = p + i + e;
	else
		document.images[i].src = p + i + '_' + n + e;
}

