$(document).ready(function(){
	
	$('body, img, div').pngFix();

	$('div.success,div.error').hide().fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500);
	
	var s = $("input#searchText");
	var stxt = 'Product Search...';
	s.val(stxt);
	s.focus(function() { if(s.val() == stxt) {s.val("");} });
	s.blur(function() { if(s.val() == "") {s.val(stxt);} });
	
	$("form#contactForm").validate({
		errorClass: "inputError", 
		errorElement: "div",
		highlight: function(element, errorClass) {
			$(element).addClass("inputErrorHighlight");
		},
		unhighlight: function(element, errorClass) {
			$(element).removeClass("inputErrorHighlight").removeClass("inputError");
		}
	});
	
	$('.JQueryPopupWindow').popupWindow({ 
		centerBrowser:1 ,
		width: 700,
		height: 400,
		scrollbars: 1,
		resizable: 1
	});
	
	$('.JQueryPopupWindowSmall').popupWindow({ 
		centerBrowser:1 ,
		width: 250,
		height: 200,
		scrollbars: 1,
		resizable: 1
	});
	
	$('a#zoom').fancybox();


});
