; (function (window, $) { function init() { bindevt(); } init(); function bindevt() { $("#friendlink").bind("change",function() { var selectedhref = $("#friendlink :selected").val(); if (selectedhref != "") { window.open(selectedhref); } }); $(".nav li").hover(navlimouseover, navlimouseout); } function navlimouseover() { $(this).parent().parent().find("li").removeclass("hov"); $(this).addclass("hov"); } function navlimouseout() { $(".nav li").removeclass("hov"); } //set searchinput $("#searchform").children(':text').focus(function () { if (!this.initvalue) { this.initvalue = this.value; } if (this.value === this.initvalue) { this.value = ''; } }).blur(function () { if (this.value === '' || this.value === null) { this.value = this.initvalue; } }); })(window, jquery);