
/*{{{ Global Init... */

if ( document.layers ) { document.all = document.layers; }

var ns4 = document.layers;
var op5 = (navigator.userAgent.indexOf("Opera 5")!=-1) ||(navigator.userAgent.indexOf("Opera/5")!=-1);
var op6 = (navigator.userAgent.indexOf("Opera 6")!=-1) ||(navigator.userAgent.indexOf("Opera/6")!=-1);
var agt=navigator.userAgent.toLowerCase();
var mac = (agt.indexOf("mac")!=-1);
var ie = (agt.indexOf("msie") != -1); 
var mac_ie = mac && ie;

/*}}}*/

function getObject (objId)/*{{{*/
{
	var obj = 0;
	if ( document.getElementById ) {
		obj = document.getElementById(objId);
	}
	else {
		obj = document.all[objId];
	}
	return obj;
}/*}}}*/
function showObject (obj)/*{{{*/
{
	if ( obj && obj.style ) { obj.style.display = 'block'; }
}/*}}}*/
function hideObject (obj)/*{{{*/
{
	if ( obj && obj.style ) { obj.style.display = 'none'; }
}/*}}}*/
/*{{{*/function escJStr (s)
{
	s = String ( s );
	s = s.replace(/\&/g,'&amp;');
	s = s.replace(/\"/g,'&quot;');
	s = s.replace(/\</g,'&lt;');
	s = s.replace(/\>/g,'&gt;');
	return s;
}/*}}}*/
function escJSUnicode(s)/*{{{*/
{
	s = String(s);
	var res = '';
	for ( var i=0; i<s.length; i++ ) {
		var c = s.charCodeAt(i);
		if ( c>=192 ) {
			c += 1040-192;	// Cyr A++ (#192) U+0410 hex = U+1040 dec
		}
		var x = c.toString(16);
		while ( x.length<4 ) { x='0'+x; }
		res += '\\u'+x;
	}
	return res;
}/*}}}*/

function ProdIconSwap (o,st)/*{{{*/
{
	if ( Number(st) ) {
		o.src = String( o.src ).replace('\/Light','\/Bright');
	}
	else {
		o.src = String( o.src ).replace('\/Bright','\/Light');
	}
}/*}}}*/

