/*@cc_on @*/
/*@if (@_win32)
document.execCommand('BackgroundImageCache', false, true);
/*@end @*/
$(document).ready(function() {
	  $('a').click(function() {
        this.blur();
      });
});

$(document).ready(function() {
	  $("a[@rel='print']").click(function() {
			return !window.print();
	});
});	

$(document).ready(function(){


	$(".focusinput").blur(function(){
            if($(this).attr('value') == '' || $(this).attr('value') == null)
            {
                var dom = ($(this).get())[0];
                $(this).attr('value', dom.defaultValue);
		$(this).css("color","#b1b1b1");
            }
        });
        
        $(".focusinput").focus(function(){
            var dom = ($(this).get())[0];
            if($(this).attr('value') == dom.defaultValue)
            {
                $(this).attr('value',  "");
		$(this).css("color","#000000");
            }
        });
        
	$("#search-form").submit(function(){
            var dom = ($("#search-box").get())[0];
            if($("#search-box").attr('value') == '' || $("#search-box").attr('value') == dom.defaultValue)
            {
                dom.focus();
                return false;
            }
            return true;
        });

	$("#productsearch").submit(function(){
            var dom = ($("#psearch-box").get())[0];
            if($("#psearch-box").attr('value') == '' || $("#psearch-box").attr('value') == dom.defaultValue)
            {
                dom.focus();
                return false;
            }
            return true;
        });
        
        
$("#sf-3").focus(function() {
	if (this.value == "Enter keyword") {
		this.value = "";
	}
	});
$("#sf-3").blur(function() {
	if (this.value == "") {
		this.value = "Enter keyword";
	}
	});

$("a.new").each(function(){
		$(this).click(function(){
			window.open($(this).attr('href'));
			return false;
		});	
	});
	
});

