/**
* JavaScript
*
* @author	Sebastian Müller <sebastian produktivbuero de>
* @date		03/02/2007
*/

$(document).ready(function(){
  // standard tooltip entfernen
  $("*[title], *[alt]").removeAttr("title");
  $("*[alt]").removeAttr("alt");
  
  var $ie = false;
  jQuery.each(jQuery.browser, function(i, val) {
    if (i=="msie")
      $ie = val;
  });
  
  if ($ie)
    $(document).ready(function() {
      var windowWidth = $(document).width();
      var positionWidth = $("#position").width();
      $("#header").css("left", (windowWidth-positionWidth)/2);
    });
});


/** ************************************************************************
* Öffnet ein Popupfenster
*
* @param	$url  Zieladresse
* @param	$width  Fensterbreite
* @param	$height  Fensterhöhe
* @return	-
* @author	Sebastian Müller
* @date		12/04/2007
***************************************************************************/

function popup(url, width, height) {
	myWindow = window.open(url,'popup','width=' + width + ', height=' + height + ', toolbar=no,location=no,status=no,menubar=no,resizable=yes,top=0,left=0');
};


/** ************************************************************************
* Positioniert das aktuelle Fenster
*
* @return	-
* @author	Sebastian Müller
* @date		07/02/2008
***************************************************************************/

function positionWindow() {
  self.resizeTo(screen.availWidth, screen.availHeight);
  self.moveTo(0,0);
  self.focus();
};
