/** Own funcs */
function simulateClick(el){
 var evt;
 if(document.createEvent){
  evt=document.createEvent("MouseEvents");
  if(evt.initMouseEvent){
   evt.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);
  }else{
   evt=false;
  }
 }
 (evt)?el.dispatchEvent(evt):(el.click && el.click());
}
function today(){
 var t=new Date();
 y=t.getFullYear();
 m=t.getMonth() + 1;
 d=t.getDate();
 if(m < 10)
  m='0' + m;
 if(d < 10)
  d='0' + d;
 return y + '-' + m + '-' + d;
}
jQuery( function(){
 if($.browser.msie && $.browser.version < 7){
  $('#flags').hover( function(){
   $('#flags-hover',this).show();
  }, function(){
   $('#flags-hover',this).hide();
  });
 }
});

/** Extracted .bind() from PrototypeJS */
Function.prototype.bind = function(){
 var _$A = function(a){return Array.prototype.slice.call(a);}
 if(arguments.length < 2 && (typeof arguments[0] == 'undefined')) return this;
 var __method = this, args = _$A(arguments), object = args.shift();
 return function() {
  return __method.apply(object, args.concat(_$A(arguments)));
 }
}

