//Showbar

        var gh_showbar = 1;

        // Language array

        
			var gheaderarray = new Array(
			"Project Ethno&reg; &mdash;",
			"<b>EthnoStyling &mdash; Fast web-site design</b><br>Creating design of site using templates in short time, Flash, design of logotypes and corporate identity. Support and promotion services.",
			"<b>EthnoHosting &mdash; European cheap web hosting</b><br>Web hosting with PHP/CGI and MySQL technologies support. Domain name registration, control panel and web mail.",
			"<b>EthnoSafe &mdash; Information security</b><br>Ensuring safe access to confidential information inside your company. The protection of data from interception by undesirable persons.",
			"<b>EthnoSat &mdash; Internet access via SAT</b><br>Duplex satellite Internet access across the whole Ukraine territory. Speed of data transfer up to 2 MBits/second.");
            

        // 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/' onmouseover='ghPopUp(event, 1);'");
			document.writeln("onmouseout='ghPopDown();'>EthnoStyling</a>&nbsp;&#149;&nbsp;<a");
			document.writeln("class='gheaderlink' href='http://www.ethnohosting.com/' onmouseover='ghPopUp(event, 2);'");
			document.writeln("onmouseout='ghPopDown();'>EthnoHosting</a>&nbsp;&#149;&nbsp;<a");
			document.writeln("class='gheaderlink' href='http://www.ethnosafe.com/' onmouseover='ghPopUp(event, 3);'");
			document.writeln("onmouseout='ghPopDown();'>EthnoSafe</a>&nbsp;&#149;&nbsp;<a");
			document.writeln("class='gheaderlink' href='http://www.ethnosat.com/' 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
		
