$(document).ready(function(){

	if($.browser.msie && $.browser.version=="6.0") {
		var blnIE6 = true;
	}



	$('a[rel=lightbox]').lightBox();


	/*
	$("#all_def").hide();
	$("#showLink").show();

	$("#toggleDiv").click(function () {
		$(".showHideLink").toggle();
		if ($("#all_def").is(":hidden")) {
			$("#all_def").slideDown("normal");
		} else {
			$("#all_def").slideUp("normal");
		}
	});
	*/

//	$("ul.sf-menu").superfish({
//		pathClass:  'current'
//	});


	if($.browser.msie) {
		$(".tabsBox").tabs({fx: {}, selected: 0 });
	}else{
		$(".tabsBox").tabs({fx: { opacity: 'toggle', height: 'toggle'}, selected: 0});
	}


// 	handle searchfield (empty) on click
//	20101112 PL created
	var newValue = '';
	var fieldId = 'input#searchfield'
	var defaultValue = $(fieldId).val();
	// catch click on searchfield, if there is no new value, empty field
	$(fieldId).focus(function(){
		if (newValue==''){
			$(this).val("");
		}
	});
	// if focus out of searchfield, check if
	$(fieldId).blur(function(){
		newValue = $(this).val();
		if (newValue=='') {
			$(this).hide();
			$(this).val(defaultValue);
			$(this).show();
		}
	});
/*


*/



});
