function online_notification()
{
	var d=new Date();
	$.get("/online.php?"+d.getTime());
	setTimeout('online_notification()',10000);
}

function ztmavit(){
		$('body').append('<div id="uiradr-overlay"><!--[if lte IE 6.5]><iframe></iframe><![endif]--></div>' +
	    '<div id="uiradr-main"><div id="cml-uiradr-navigator"></div></div>');

		if ($.browser.msie && parseInt($.browser.version) < 7) {
			$('#uiradr-overlay').css('position', 'absolute').css('height', '1200px');
			$('select').hide();
		}      
		
		$('#uiradr-overlay').show().fadeTo('slow', 0.7, function(){
			$('#uiradr-main').css('top', (100+getPageScroll())+'px').show().click(function(event){
				var e = event;
				var id = (e.target ? e.target.id : e.srcElement.id);
				if (id == 'uiradr-main') {
				 uiradr_close();
				}
			});
		
		});
	}
function zesvetlit() {
  $('#uiradr-main').remove();
  $('#uiradr-overlay').fadeTo('slow', 0, function(){
    $(this).remove();
  });
	if ($.browser.msie && parseInt($.browser.version) < 7) {
		$('select').show();
	}
      
}

function getPageScroll() {
  var yScroll;
  if (self.pageYOffset) {
    yScroll = self.pageYOffset;
  } else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict
    yScroll = document.documentElement.scrollTop;
  } else if (document.body) { // all other Explorers
    yScroll = document.body.scrollTop;
  }
  return yScroll;
} 

function myWindowSize() {
	  var myWidth = 0, myHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
	    //Non-IE
	    myWidth = window.innerWidth;
	    myHeight = window.innerHeight;
	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	    //IE 6+ in 'standards compliant mode'
	    myWidth = document.documentElement.clientWidth;
	    myHeight = document.documentElement.clientHeight;
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	    //IE 4 compatible
	    myWidth = document.body.clientWidth;
	    myHeight = document.body.clientHeight;
	  }
		var s = new Array();
	  return  s={'w':myWidth, 'h':myHeight};
	  
}

function rozbal(co){
	if($("." + co).css('display')=='none'){
		$("#" + co + "-arrow-right").hide();
		$("#" + co + "-arrow-down").show();
  		$("." + co).show("slow");
  		
  		//$("co").slideToggle("slow");
	  	$("." + co).highlightFade({
			speed:1000,
			start: [22,148,223]
		});
	}else{
		$("#" + co + "-arrow-right").show();
		$("#" + co + "-arrow-down").hide();
		$("." + co).hide("slow");
	}
	return false;
}