/*  domscript.js

  $LastChangedDate: 2010-09-23 20:56:46 +0200 (Do, 23. Sep 2010) $
  $Rev$
  
  Author: Bernhard Welzel, welzel@launchr.com
*/

$(document).ready(function() {
  /* enable js detection for css by body base class */
  $("body").removeClass("no-js");
  
  /* open links with rel="external" attribute in new windows */
  $('A[rel="external"]').click( function() {
        window.open( $(this).attr('href') );
        return false;
    });

  
});

if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0) {
$(window).load(function(){
    $('input:-webkit-autofill').each(function(){
        var text = $(this).val();
        var name = $(this).attr('name');
        $(this).after(this.outerHTML).remove();
        $('input[name=' + name + ']').val(text);
    });
});
}






