			$(document).ready(function() {
				var link = document.createElement('link');
				link.type = "text/css";
				link.href = "/css/connect/secondary/jquery.checkbox.css";
				link.rel = "stylesheet";
				document.getElementsByTagName('head')[0].appendChild(link);
				
				var playerVersion = swfobject.getFlashPlayerVersion(); // returns a JavaScript object
				if (playerVersion.major > 8) {
				 //$("#alternate").clone(true).insertAfter("#aFeature").addClass("hiddenAlternate"); 
					var fsr = document.getElementById("flashScreenReader");
					fsr.style.display = "";
					fsr.style.visibility = "";
					fsr.className = "flashScreenReader";
				}

				var params = {
					quality: "high",
					scale: "noscale",
					wmode: "transparent",
					allowscriptaccess: "always",
					allowFullScreen: "true",
					bgcolor: "#FFFFFF"
				};
				var flashvars = {
					xmlURL	: "/secondary/data.htm"
				};

				var attributes = {
					id: "aFeature"
				};

				swfobject.embedSWF(
					"/secondary/swf/main.swf",
					"aFeature", "958", "300", "9.0.45",
					"",
					flashvars, params, attributes);

				$('#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 a').focus( function() {
						jQuery.each($('#bptools ul li a.active'), function() {
						$(this).removeClass('active')
					});
				});
				$('#bptools ul li a').blur( function() {
						jQuery.each($('#bptools ul li a.active'), function() {
						$(this).removeClass('active')
					});
				});
				
				
				$("#bpfirst a").addClass('active');

				$('#bptools ul li a').bind('mouseover', function() {
					jQuery.each($('#bptools ul li a.active'), function() {
						$(this).removeClass('active')
					});
					$(this).addClass('active');
				});
				

				$('input:radio').checkbox();
				//$('#search-clause').dropShadow();
				$(':checked + * + label').css('color','#ffffff');
				$('span.jquery-checkbox, span.jquery-checkbox img,label').bind('click', function() {
					$('#search-form label').css('color','#757575');
					if (this.tagName == 'LABEL') $(this).css('color','#ffffff');
					else if (this.tagName == 'SPAN') this.nextSibling.style.color = '#ffffff';
					else  this.parentNode.parentNode.nextSibling.style.color = '#757575';
				});
				$('span.jquery-checkbox').focus(function() {
					$(this).className = 'jquery-checkbox-hover';
				});

				$('#search-form input:radio').focus(function(e) {
					var el = e.target;
					$(el.nextSibling.nextSibling).click();
				});
				if ($.browser.safari)
				{
					var link2 = document.createElement('link');
					link2.type = "text/css";
					link2.href = "/css/connect/secondary/safari.css";
					link2.rel = "stylesheet";
					document.getElementsByTagName('head')[0].appendChild(link2);
				}
			});