			var updateLayout = true;
			$(document).ready(function() {
				setSearchForm();
				$('#accordion').accordion( { autoheight: false });
				var link = document.createElement('link');
				link.type = "text/css";
				link.href = "/css/connect/teacher/jquery.checkbox.css";
				link.rel = "stylesheet";
				document.getElementsByTagName('head')[0].appendChild(link);

				$('#search-clause').bind('focus', function() {
					if ($(this).hasClass('empty'))
					{
						this.value = '';
					}
				});
				$('#search-clause').bind('keypress', function() {
					if ($(this).hasClass('empty'))
					{
						$(this).removeClass('empty');
						$(this).addClass('filled');
					}
				});
				$('#search-clause').bind('blur', function() {
					if ($(this).hasClass('empty'))
					{
						this.value = 'new search...';
					}
				});

				$('#bptools ul li').bind('mouseover', function() {
					jQuery.each($('#bptools ul li.active'), function() {
						$(this).removeClass('active')
					});
					$(this).addClass('active');
				});

				$('span.jquery-checkbox-checked').each(function() {
					$(this).removeClass('jquery-checkbox-checked');
				});

				$('input:radio').checkbox();
			//	$('#search-clause').dropShadow();
				//$(':checked + * + label').click();
				$('#search-form input:radio').focus(function(e) {
					var el = e.target;
					$(el.previousSibling).click();
				});

				$('span.jquery-checkbox, span.jquery-checkbox img, label').bind('click', function() {
					$('#search-form label').each(function() {
						if ($(this).hasClass('on'))
						{
							$(this).removeClass('on');
							$(this).className='off'
						}
					});
					if (this.tagName == 'LABEL') {
						$('#search-form label').each(
							function() {
								$(this).css('background','none');
								$(this).css(
										'padding',
										'0px 0px 0px 0px'
									);
							}
						);
						$(this).css(
							'background',
							'url(/images/template/connect/teacher/search-b-left.gif) no-repeat 0 0'
						);
						$(this).css(
								'padding',
								'0px 5px 0px 12px'
							);
					}
					if (this.tagName == 'IMG')
					{
						$('#search-form label').each(
							function() {
								$(this).css('background','none');
							}
						);
						$(this.parentNode.parentNode.previousSibling.previousSibling).css(
							'background',
							'url(/images/template/connect/teacher/search-b-left.gif) no-repeat 0 0'
						);
					}
				});

				if ($.browser.safari)
				{
					var link2 = document.createElement('link');
					link2.type = "text/css";
					link2.href = "/css/connect/teacher/safari.css";
					link2.rel = "stylesheet";
					document.getElementsByTagName('head')[0].appendChild(link2);
				}

			});
			setSearchForm =function(){
				document.getElementById('start-label').className="on";
					$('#search-form span.separator').each(function() {
						$(this).css('margin','0px 10px 0px 10px');
						});
				}
			setBodyHeight = function() {
				/*	alert("right: "+$('#page-body-content-right').height());
					alert("left: "+$('#page-body-content-left').height());
					alert("body: "+$('#page-body-content').height());*/

					if($.browser.msie && parseInt($.browser.version)<7) {
						document.getElementById('bottom-corner').parentNode.removeChild(document.getElementById('bottom-corner'));
						var d = parseInt($.browser.version);
						if($('#page-body-content-right').height()>= $('#page-body-content-left').height())
						{
							//alert("right >= left");
							var h = $("#pbcr-tags").height() + $("#pbcr-accordion").height() + 29;
							$('#page-body-content').css('height',
									$('#page-body-content-right').height()+"px"
							);
						}
						else
						{
							$('#page-body-content-right').css('height',
								$('#page-body-content-left').height() + "px"
							);
	/*						var h = $('#page-body-content-left').height() - $("#pbcr-accordion").height();
							$("#pbcr-tags").css('height', h + 'px'); */
						}

					}
				}