/*
// File written by Jochen "Khuri" Höhmann <khuri@khuris.com>
// For Werbeagentur Rechl <www.rechl.de>
// Copyright 2009
//
// File        : main.js
// Begin       : 2008.07.07 13:27:13
// Last Update : 2009.11.27 11:08:05
*/

var clientbrowser = navigator.userAgent.toLowerCase();
var is_ie = ((clientbrowser.indexOf("msie") != -1) && (clientbrowser.indexOf("opera") == -1));
var is_nav = ((clientbrowser.indexOf('mozilla')!=-1) && (clientbrowser.indexOf('compatible') == -1));
var ie_version = getInternetExplorerVersion();

function getInternetExplorerVersion() {
	// From MSDN
	// 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 convert_mail(mail) {
	window.location.href="mailto:"+decodeURIComponent(mail);
}

function goid(id) {
  window.location.href="index.php?id="+id;
}
function whereto(where) {
	window.location.href=where;
}
