    function hide_shown_div(div_id) {
			document.getElementById(div_id).style.visibility = 'hidden';
	}

	function show_hidden_div(div_id,parent_id) {
		var div = document.getElementById(div_id);
		var parent = document.getElementById(parent_id);
		var delta = parent.offsetHeight - 1;
		// starting from 1.3 FreeBSD build has no -moz-opacity support :-(
		// this is workaround for the problem...
		if ( navigator.product == "Gecko" && navigator.oscpu.match('FreeBSD') )
			div.firstChild.setAttribute('style','');
			
		var ot = parent.offsetTop;
		var ol = parent.offsetLeft;
		while((parent = parent.offsetParent) != null) {
			ot += parent.offsetTop;
			ol += parent.offsetLeft;
		}
		if (div != null) {
			div.style.left = ol + "px";
			div.style.top = ot + delta + "px";
			div.style.visibility = 'visible';
		}
	}

	function _bm_cookie(name) {
		var s = document.cookie;
		var b = s.indexOf(name + '=');
		if (b==-1) return null; // no such name
		b = s.indexOf('=', b);
		s = s.substr(b+1);
		b = s.indexOf(';');
		if (b != -1) s = s.substr(0, b);
		return s;
	} // _bm_cookie
	
	function check_affiliate_code() {
	var myCookie = _bm_cookie('flightstore-univermag2-affiliatecode');
	if (myCookie != null) {
		if ( myCookie.length > 10 ){
			c = document.getElementById('page_affiliate_code');
			try {
				c.style.display = 'block';
				//c.style.marginBottom = '28px';
				//c.style.paddingBottom = '28px';
			} catch (e) {};
			a = document.getElementsByTagName('div');
			for ( i = 0; i<a.length; i++ )
				if ( a[i].className == 'affiliate_code' )
					a[i].style.display = 'block';
		}
	}
	}
