/*CVS Add-ins*/ /* $Revision: 1.3 $ $RCSfile: behaviour.js,v $ author: JDE */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* behaviour.js 14.01.2009 JDE */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /*Copyright (c) A&B FACE2NET GmbH*/ function check(){ alert("JS eingebunden"); } var agt = navigator.userAgent.toLowerCase(); var mac_ff = ( (agt.indexOf("firefox") != -1) && (agt.indexOf("macintosh") != -1) ); /** * preloading background images */ var a = new Array("icons_list.gif","icons_links.gif","bg_greyshadows.gif","bg_redshadows.gif","bg_nav_icons.gif","bg_header.gif","bg_quote.gif","icons_contentService.gif" ); var b = new Array(); var i; for (i = 0; i < a.length; i++) { b[i] = new Image(); b[i].src = '../styleimages/' + a[i]; } /** * show or hide value in formelements */ function initiate_formbehaviour(){ if($("html").attr("lang")=="de") var inputtxt = ' Suchbegriff '; else var inputtxt = ' search term '; $("#header input.formElement") .attr("tabindex", "1") .focus(function(){ if(this.value == inputtxt)this.value = ''; }) .blur(function(){ if(this.value == '')this.value = inputtxt; }) } function create_printLink(){ var printtxt = "drucken"; $('').prependTo("#contentService #print_here"); } addLoadEvent(create_printLink); addLoadEvent(initiate_formbehaviour);