<!--

if (navigator.appName == "Microsoft Internet Explorer"){
	document.write('<link rel=stylesheet href="inc/main_style_ie.css" type="text/css">');
}else{
	document.write('<link rel=stylesheet href="inc/main_style_nn.css" type="text/css">');
}

function openW(urlW, width_w, height_w, scroll_bar){
	center_x = Math.round((window.screen.availWidth - width_w) / 2);
	center_y = Math.round((window.screen.availHeight - height_w) / 2);
	
	window.open(urlW,'_blank','top=' + center_y + ',left=' + center_x + ',width=' + width_w + ',height=' + height_w + ',status=no,titlebar=no,toolbar=no,menubar=no,location=no,resizable=no,directories=no,scrollbars=' + scroll_bar);
}

		// all menu items
		var menum = new Array();
		var menumon = new Array();
								
		menum[0] = "images/hrman_himage_11.gif";
		menumon[0] = "images/hrman_himage_11_o.gif";
		
		menum[1] = "images/hrman_hmenu_03.gif";
		menumon[1] = "images/hrman_hmenu_03_o.gif";
		
		menum[2] = "images/hrman_hmenu_04.gif";
		menumon[2] = "images/hrman_hmenu_04_o.gif";
		
		menum[3] = "images/hrman_hmenu_05.gif";
		menumon[3] = "images/hrman_hmenu_05_o.gif";
		
		menum[4] = "images/hrman_hmenu_06.gif";
		menumon[4] = "images/hrman_hmenu_06_o.gif";
		
		menum[5] = "images/hrman_hmenu_07.gif";
		menumon[5] = "images/hrman_hmenu_07_o.gif";
		
		menum[6] = "images/hrman_hmenu_08.gif";
		menumon[6] = "images/hrman_hmenu_08_o.gif";
		
function HighLightMenuOn(menuid,num) {
	document.images["menu" + menuid + "_" + num].src = eval("menu" + menuid + "on[num]");
}
function HighLightMenuOff(menuid,num) {
	document.images["menu" + menuid + "_" + num].src = eval("menu" + menuid + "[num]");
}

////////////////////// MENU SCRIPTS

var loaded = 0;
var gotlayers = 0;
var menutimer = 0;
	
var a_menu = new Array();
	a_menu[0] = "products";
	a_menu[1] = "contact";
	a_menu[2] = "joboffer";

ns4 = (document.layers)? true:false;
ie4 = (document.all) ? 1 : 0;
ver4 = (ns4 || ie4) ? 1 : 0;

dom = (document.getElementById)? true:false;
ie5x = (document.all && dom)? true:false;

function setBGcolor(lineid,colorid){
	if (ie5x){
		window.document.all[lineid].bgColor = colorid;
	}else if (ns4){
								
	}else if (dom){
		document.getElementById(lineid).bgColor = colorid;
	}
}


function get_width(n) {
	if (ns4) {
		return screenWidth = window.innerWidth - n ;
	} else {
		return screenWidth = document.body.clientWidth - n;
	}
}

function movelayers() {
	if (gotlayers) {
		if (ns4) {
			leftoffset = Math.round(get_width(800) / 2);
			if (leftoffset < 0){
				leftoffset = 0;
			}
			mnn_top = 285;

			document.layers['products'].left = 229 + leftoffset;
			document.layers['products'].top = mnn_top;
			document.layers['contact'].Left = 359 + leftoffset;
			document.layers['contact'].Top = mnn_top;
			document.layers['joboffer'].Left = 624 + leftoffset;
			document.layers['joboffer'].Top = mnn_top;


	} else {
			leftoffset = Math.round(get_width(784) / 2);
			if (leftoffset < 0){
				leftoffset = 0;
			}
			mie_top = 285;

			document.all['products'].style.pixelLeft = 229 + leftoffset;
			document.all['products'].style.pixelTop = mie_top;
			document.all['contact'].style.pixelLeft = 359 + leftoffset;
			document.all['contact'].style.pixelTop = mie_top;
			document.all['joboffer'].style.pixelLeft = 624 + leftoffset;
			document.all['joboffer'].style.pixelTop = mie_top;


		}
	}
}

// show menu and all selected submenu
function menush(sm1,sm2,sm3) {

	clearTimeout(menutimer);
	if (gotlayers) {
		movelayers();
		if (ns4) {
			for (x=0; x<a_menu.length; x++) {
				if ((sm1 == a_menu[x]) || (sm2 == a_menu[x]) || (sm3 == a_menu[x]))  { 
					document.layers[a_menu[x]].visibility = "show";
				} else {
					document.layers[a_menu[x]].visibility = "hide"; 
				}
			}	
		} else {
			for (x=0; x<a_menu.length; x++) {
				if ((sm1 == a_menu[x]) || (sm2 == a_menu[x]) || (sm3 == a_menu[x]))  { 
					document.all[a_menu[x]].style.visibility = "visible";
				} else {
					document.all[a_menu[x]].style.visibility = "hidden";
				}
			}	

		}
	}

}

// close all submenu 
function menu_close(){
		for (x=0; x<a_menu.length; x++) {
			if (ns4)  { 
				document.layers[a_menu[x]].visibility = "hide"; 
			} else {
			document.all[a_menu[x]].style.visibility = "hidden";
			}	

		}
	
}

// timer
function menuoff() {

	
	menutimer = setTimeout("menu_close()",1000);

	
}

//scrolling news

function scrollPanelPos() {
	if (gotlayers) {
		if (ns4) {
			leftoffset = Math.round(get_width(800) / 2);
			if (leftoffset < 0){
				leftoffset = 0;
			}
			mnn_top = 285;

			document.layers['news'].Left = 624 + leftoffset;
			document.layers['news'].Top = mnn_top;
			
	} else {
			leftoffset = Math.round(get_width(784) / 2);
			if (leftoffset < 0){
				leftoffset = 0;
			}
			mie_top = 285;

			document.all['news'].style.pixelLeft = 778 + leftoffset;
			document.all['news'].style.pixelTop = mie_top;			

		}
	}
}




function getObject( obj ) {

var strObj

if ( document.all ) {

strObj = document.all.item( obj );

} else if ( document.getElementById ) {

strObj = document.getElementById( obj );

}

return strObj;

}

var theTop = 160;

var theHeight = 300;

var theWidth = 106;

var theLeft = 850;

var toClip = 300;


function scrollNews( newsDiv, toMove ) {

theDiv = getObject( newsDiv.toString() );

if ( theDiv == null ) { return; }

if ( document.layers ) {

theDiv.clip.top = toMove;

theDiv.clip.bottom = toMove + toClip;

theDiv.top = theTop - toMove;

} else {

theDiv = theDiv.style;

theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)";

theDiv.top = theTop - toMove + 'px';

}

if ( ( theTop + theHeight - toMove ) < ( theTop - theHeight - 20 ) ) {

toMove = 0;

if ( document.layers ) {

theDiv.clip.top = theTop;

theDiv.clip.bottom = toClip;

theDiv.top = theTop

} else {

theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)";

theDiv.top = theTop + 'px';

}

}

toMove = (toMove + 1);

setTimeout("scrollNews('" + newsDiv + "'," + toMove + ")", 50);

}


//-->

//-->