var is = new Object();
{
	is.ie = true; is.win = true;
	is.ver = navigator.appVersion.substring(0,1);

	if (navigator.appName == "Netscape")
	{
		is.ns = true;
		eval("is.ns" + is.ver + " = true;")
		if (is.ver >= 3)
			is.ng3 = true;
	}
	else if (navigator.appName.toLowerCase().indexOf("microsoft") >= 0)
	{
		is.ver = navigator.appVersion.substr(navigator.appVersion.toLowerCase().indexOf("msie") + 5, 1)
		is.ie = true;
		eval("is.ie" + is.ver + " = true;")
		if (is.ver >= 3)
			is.ig3 = true;
	}
	else
		is.bu = true;

	if (navigator.appVersion.toLowerCase().indexOf("win") > 0)
		is.win = true;
	else if (navigator.appVersion.toLowerCase().indexOf("mac") > 0)
		is.mac = true;
	else if (navigator.appVersion.toLowerCase().indexOf("x11") > 0)
		is.x11 = true;
	else
		is.osu = true;
}

var widthCheck , heightCheck

if (is.ns)
{
	var widthCheck = window.innerWidth;
	var heightCheck = window.innerHeight;
}

this.onresize = resizeFix;

function resizeFix()
{
	if (is.ns && (widthCheck != window.innerWidth || heightCheck != window.innerHeight))
		document.location.href = document.location.href;
}

function nsMacResizeFix()
{
	if (is.ns && is.mac && document.layers.length == 0)
		this.document.location.href = this.document.location.href;
}

function changeStyleClass()
{
	args_CSC = changeStyleClass.arguments;

	document.getElementById(args_CSC[0]).className = args_CSC[1];
}

function initImages()
{
	args_II = initImages.arguments;

	for (var i = 0; i < args_II.length; i++)
	{
		eval (args_II[i][0] + '= new Image();')
		eval (args_II[i][0] + '.src = "' + args_II[i][1] + '";');
	}
}

function showImages()
{
	args_SI = showImages.arguments;

	if (is.ng3 && args_SI[2])
		eval('document.' + args_SI[2] + '.document.images["' + args_SI[0] + '"].src = ' + args_SI[1] + '.src;');
	else
		eval ('document.images["' + args_SI[0] + '"].src = ' + args_SI[1] + '.src;');
}

function openWindow()
{
	args_OW = openWindow.arguments;
	parameterString = 'scrollbars=no,menubar=yes,location=yes,toolbar=no,status=no,resizable=no,width=570,height=505';
	theOpeners = window.open('','info',parameterString);
	theOpeners.location.href = args_OW[0];
	theOpeners.focus();
}

if (is.win && is.ie)
	document.write('<link rel="stylesheet" href="css/ie_win.css" type="text/css">');
else if (is.win && is.ns)
	document.write('<link rel="stylesheet" href="css/ns_win.css" type="text/css">');
else
	document.write('<link rel="stylesheet" href="css/default.css" type="text/css">');

