			$(document).ready(function() {
				var link = document.createElement('link');
				link.type = "text/css";
				link.href = "/css/connect/primary/jquery.checkbox.css";
				link.rel = "stylesheet";
				document.getElementsByTagName('head')[0].appendChild(link);
				
				var playerVersion = swfobject.getFlashPlayerVersion(); // returns a JavaScript object
				if (playerVersion.major > 8) {
					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	: "/primary/data.htm",
					movieURL: "/primary/swf/main.swf"
				};

				var attributes = {
					id: "aFeature"
				};

				swfobject.embedSWF("/primary/swf/shell.swf", "aFeature", "1091", "312", "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...';
					}
				});

				$('input:radio').checkbox();
				$(':checked + * + label').css('color','#ffffff');

				$('span.jquery-checkbox, span.jquery-checkbox img,label').bind('click', function() {
					$('#search-form label').css('color','#80bfc9');
					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 = '#80bfc9';
				});

				$('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/primary/safari.css";
					link2.rel = "stylesheet";
					document.getElementsByTagName('head')[0].appendChild(link2);
				}
			});
			 
			function Focal(id,flag) 
			{															
				document.getElementById(id).focus();
				if(flag=='true')
				document.getElementById('aFeature').blur();
				return id;
			}