function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}

function redirectToOldSite()
{
	if(getInternetExplorerVersion() == 6)
	{
		alert("Our new site does not support internet explorer 6.\nAfter pressing 'OK' button, you will be redirected to the old version of our site.");
		window.location = 'http://www.old.estaparket.eu';
	}
}

// var anchorEventIsMouse = true;
// $('a').mousedown(function() {
  // anchorEventIsMouse = true;
  // this.hideFocus = true;  /* IE6-7 */
  // this.style.outlineStyle = 'none';  /* FF2+, IE8 */
  // this.addClass('NoOutline');  /* see click func */
  // this.setFocus();  /* Safari 3+ */
  // });
// $('a').keydown(function() {
  // anchorEventIsMouse = false;
  // });
// $('a').blur(function() {
  // this.style.outlineStyle = '';
  // this.hideFocus = false;
  // this.removeClass('NoOutline');
  // });
// $('a').click(function(e) {
  // /* Adding class NoOutline means we only allow keyboard
   // * clicks (enter/space) when there is an outline
   // */
  // if (!anchorEventIsMouse && this.hasClass('NoOutline')) {
    // e.stopEventPropagation();
    // }
  // });
