// (C) Netlogic, 2003
/*window.onload = function() {
	GeckoALTfixer();
	arrow();
}*/

function GeckoALTfixer() {
	if (navigator.product && navigator.product == 'Gecko') {
		var i, j, images = Array(document.getElementsByTagName('IMG'), document.getElementsByTagName('INPUT'), document.getElementsByTagName('AREA'));
		for (i = 0; i < images.length; i++) {
			for (j = 0; j < images[i].length; j++) {
				with (images[i][j]) {
					if (getAttribute('alt') && !getAttribute('title')) setAttribute('title', getAttribute('alt'));
				}
			}
		}
	}
}

// Flash detection
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if (plugin) {
	plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4;
} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
	document.write('</SCRIPT\> \n');
}
/*function arrow() {
var header = document.getElementById('head');

if(header === null) {
return;
}

var a = header.getElementsByTagName('li');
for(var i = 0; i < a.length; i++) {
if(a[i].className != 'name') {
a[i].onmouseover = function() {
this.style.background ='url(/i/li.gif) no-repeat';
}
a[i].onmouseout = function() {
this.style.background ='none';
}
}
}
}*/
// (C) NetLogic, 2005
if(typeof hitchs === 'object' && typeof hitchs.run === 'function') {
	hitchs.run();

} else {
	function HitchsClass() {
		this.list = [];

		this.add = function(fun) {
			this.list[this.list.length] = fun;
		}

		this.run = function() {
			for(i in this.list) {
				if(typeof this.list[i] === 'function') {
					this.list[i]();
				}
			}
		}
	}

	function ArrayFromCollection(c) {
		var a = new Array();

		for(i=0; i<c.length; i++) {
			if(typeof c[i] === 'object') {
				a[i] = c[i];
			}
		}

		return a;
	}

	var hitchs = new HitchsClass();
}
// п°п╣п╫я▌
hitchs.add(
	function() {
		var header = document.getElementById('header');

		if(header === null) {
			return;
		}

		var a = header.getElementsByTagName('li');
		for(var i = 0; i < a.length; i++) {
			if(a[i].className != 'active') {
				a[i].onmouseover = function() {
					this.className = 'arrow';
				}

				a[i].onmouseout = function() {
					this.className = '';
				}
			}
		}
	}
);