--- /dev/null
+(function () {
+
+ $(document).ready(function () {
+ $("input.searchField")
+ .val("Search")
+ .removeClass("activeField")
+ .addClass("inactiveField")
+ .focus(function () {
+ if ($(this).attr("class").indexOf("inactiveField")) {
+ $(this)
+ .val("")
+ .removeClass("inactiveField")
+ .addClass("activeField");
+ }
+ })
+ .keypress(function (e) {
+ if (e.which == 10 || e.which == 13) {
+ window.location = Rakka.baseURI + "search.html?q=" + encodeURI($(this).val());
+ }
+ });
+ });
+
+})();
\ No newline at end of file