//Showbar

        var gh_showbar = 1;

        // Language array

        
			var gheaderarray = new Array(
			"Проект Ethno&reg; &mdash;",
			"<b>EthnoStyling &mdash; Создание сайтов</b><br>Создание сайтов различной сложности в сжатые сроки используя шаблоны. Разработка и внедрение Интернет-магазинов и Flash-сайтов. Раскрутка сайтов.",
			"<b>EthnoHosting &mdash; Европейский хостинг</b><br>Размещение веб-сайтов с поддержкой PHP/CGI и MySQL. Регистрация доменов, удобная панель управления и веб-почта.",
			"<b>EthnoSafe &mdash; Защита информации</b><br>Обеспечение безопасного доступа к конфиденциальной информации компании. Защита данных от вмешательства нежелательных лиц.",
			"<b>EthnoSat &mdash; Спутниковый Интернет</b><br>Двусторонний спутниковый доступ к сети Интернет по всей Украине. Скорость передачи данных &mdash; до 2 Мбит/с.");
            

        // Cookie functions

		function _ghSetCookie (name,value,expires,path,domain,secure) {
		      document.cookie = name + '=' + escape(value) +
		        ((expires) ? '; expires=' + expires : '') +
		        ((path) ? '; path=' + path : '') +
		        ((domain) ? '; domain=' + domain : '') +
		        ((secure) ? '; secure' : '');
		}

        function ghSetCookie(name,value,days)
        {
        	if (days)
            {
        		var date = new Date();
        		date.setTime(date.getTime()+(days*24*60*60*1000));
        		var expires = "; expires="+date.toGMTString();
        	}
        	else var expires = "";
        	document.cookie = name+"="+value+expires+"; path=/";
        }

		function ghGetCookie(name) {
			var cookie = ' ' + document.cookie;
			var search = ' ' + name + '=';
			var setStr = null;
			var offset = 0;
			var end = 0;
			if (cookie.length > 0) {
				offset = cookie.indexOf(search);
				if (offset != -1) {
					offset += search.length;
					end = cookie.indexOf(';', offset)
					if (end == -1) {
						end = cookie.length;
					}
					setStr = unescape(cookie.substring(offset, end));
				}
			}
			return(setStr);
		}

		// Check showbar status from cookies

        gh_showbar = (ghGetCookie('showbar') == '0') ? 0 : 1;

		// Header functions

		function ghPopDown(){
        	var dS;
	        dS = document.getElementById('gheaderhtpop').style;
	        dS.visibility = 'hidden';
		}

		function ghPopUp(evt,num){
	        var d;
	        var dS;
	        d = document.getElementById('gheaderhtpop');
	        dS = d.style;
	        d.innerHTML = gheaderarray[num];
			if (!evt) var evt = window.event;
			if (evt.pageX || evt.pageY) {
				offLeft = evt.pageX; offTop = evt.pageY;
			} else if (evt.clientX || evt.clientY) {
				offLeft = evt.clientX + document.body.scrollLeft;
				offTop = evt.clientY + document.body.scrollTop;
			}

			dS.top = offTop+12+'px';
			dS.left = offLeft+15+'px';
			dS.visibility = 'visible';
		}

		function ghClose(){
        	var dS;
	        dS = document.getElementById('ghtab').style;
	        dS.display = 'none';

			document.body.style.backgroundPosition = "center 0px";

            //ghSetCookie('showbar', '0', 'Mon, 01-Jan-2007 00:00:00 GMT', '/');
            ghSetCookie('showbar', '0');
            gh_showbar = 0;
		}

		// Image handlers

		var gh_imgclose_normal = new Image();
        var gh_imgclose_over = new Image();
        var gh_imgclose_down = new Image();

        gh_imgclose_normal.src = 'http://www.ethnoproject.com/header/closebut_normal.gif';
        gh_imgclose_over.src = 'http://www.ethnoproject.com/header/closebut_over.gif';
        gh_imgclose_down.src = 'http://www.ethnoproject.com/header/closebut_down.gif';

		function ghCloseOver(){
            if(document.images) { document.ghimgclose.src = gh_imgclose_over.src; }
		}

		function ghCloseOut(){
            if(document.images) { document.ghimgclose.src = gh_imgclose_normal.src; }
		}

		function ghCloseDown(){
            if(document.images) { document.ghimgclose.src = gh_imgclose_down.src; }
		}

		// Print styles and html

		if(gh_showbar == 1) {

        	document.body.style.backgroundPosition = "center 25px";

			document.writeln("<link rel='stylesheet' type='text/css' href='http://www.ethnoproject.com/header/style.css' media='screen' title='Header' />");

			document.writeln("<span id='gheaderhtpop' class='gheaderblocktext'>Ethno</span>");
			document.writeln("<table width='100%' border='0' cellpadding='0' cellspacing='0' id='ghtab' style='height:25px'>");
			document.writeln("<tr>");

			document.writeln("<td nowrap align='center' class='gheadertab' width='100%'>");
			document.writeln(gheaderarray[0]);
			document.writeln("<a class='gheaderlink' href='http://www.ethnostyling.com/?customer_id=80f636c11d1a08899bd8e7ad7545c45380f636c11d1a08899bd8e7ad7545c453' onmouseover='ghPopUp(event, 1);'");
			document.writeln("onmouseout='ghPopDown();'>EthnoStyling</a>&nbsp;&#149;&nbsp;<a");
			document.writeln("class='gheaderlink' href='http://www.ethnohosting.com/?customer_id=80f636c11d1a08899bd8e7ad7545c45380f636c11d1a08899bd8e7ad7545c453' onmouseover='ghPopUp(event, 2);'");
			document.writeln("onmouseout='ghPopDown();'>EthnoHosting</a>&nbsp;&#149;&nbsp;<a");
			document.writeln("class='gheaderlink' href='http://www.ethnosafe.com/?customer_id=80f636c11d1a08899bd8e7ad7545c45380f636c11d1a08899bd8e7ad7545c453' onmouseover='ghPopUp(event, 3);'");
			document.writeln("onmouseout='ghPopDown();'>EthnoSafe</a>&nbsp;&#149;&nbsp;<a");
			document.writeln("class='gheaderlink' href='http://www.ethnosat.com/?customer_id=80f636c11d1a08899bd8e7ad7545c45380f636c11d1a08899bd8e7ad7545c453' onmouseover='ghPopUp(event, 4);'");
			document.writeln("onmouseout='ghPopDown();'>EthnoSat</a></td>");

			document.writeln("<td nowrap class='gheadertab' width='22' style='padding-right: 8px'>");
			document.writeln("<a href='javascript:ghClose();' onfocus='blur();'><img src='http://www.ethnoproject.com/header/closebut_normal.gif' width='14' height='14'");
			document.writeln("border='0' name='ghimgclose' onmouseover='ghCloseOver();' onmouseout='ghCloseOut();' onmousedown='ghCloseDown();'></a></td>");

			document.writeln("</tr>");
			document.writeln("</table>");
		}
		// End
		
