function Is() {
	var agent = navigator.userAgent.toLowerCase();
	this.major = parseInt(navigator.appVersion);
	this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
	this.ns4 = (this.ns && (this.major >= 4) && (this.major < 5));
	this.ns6 = (this.ns && (this.major >= 5));
	this.ie = (agent.indexOf("msie") != -1);
	this.ie6 = (this.ie && (navigator.appVersion.indexOf('MSIE 6.0') != -1));
	this.ie4 = (this.ie && (this.major >= 4) && !this.ie6);
}

  //////////////////////////
 // The global variables //
//////////////////////////
var is = new Is();
var langs = [ 'hu', 'en' ];

function iefix() {
/*	if(!is.ie6) return;

	objects = document.getElementsByTagName("object");
	for(var i = 0; i < objects.length; i++) {
		objects[i].outerHTML = objects[i].outerHTML;
	} */
}

function langswitch() {
	var href = document.location.href;
	var p = href.match(new RegExp("/[^/]+.html$"));
	for(var i in langs) {
		var l = langs[i];
		var a = document.getElementById("langlnk_" + l);
		a.href = "../" + l + p[0];
	}
}

function loaded() {
	iefix();
	langswitch();
}