/*
	utils.js - AMBase v1.26
	built by AntalMedia (www.antalmedia.com)
	built on JQuery v1.3.2 (http://www.mootools.net)
	
	Copyright 2008. All Rights Reserved.
		
*/
$(document).ready(function(){ 
	var UtilPack =  {
	  init: function() {
			UtilPack.pageSelect();
			$('input').focus(function() {
				if ( this.value == 'REQUIRED FIELD' ) { 
					this.value = '';
				}
			});
			//navHover();
		},
		pageSelect: function() {
			$('#navigation li a.'+_params.page['base_name']).addClass('active');
		},
		getUrl:function(url) {
			window.location.href = url;
		},
		makeBookmark:function(title,url){
			if (window.sidebar) { // firefox
				window.sidebar.addPanel(title, url, _params.self['base_url']);
			} else if(window.opera && window.print) { // opera
				var elem = document.createElement('a');
				elem.setAttribute('href',url);
				elem.setAttribute('title',title);
				elem.setAttribute('rel','sidebar');
				elem.click();
			} else if(document.all) { // ie
				window.external.AddFavorite(url, title);
			}
		},
		gopher: function(param) {
			alert(param);
		}
	}					   
	UtilPack.init();
});
function loadFlash(swf_path, target, width, height, version, vars, params, atts) {
	var playerVersion  = swfobject.getFlashPlayerVersion();
	if (document.getElementById && playerVersion["major"] >= 9) {
		swfobject.embedSWF(swf_path, target, width, height, version, false, vars, params, atts);
	} else {
		return false;	
	}
	$(target).css('visibility', 'visible');
}
function navHover() {
	$(".dropdown").mouseover(function(){
		$(this).find('.subnav').css('left', 'auto'); 
	}).mouseout(function(){
		$(this).find('.subnav').css('left', '-999em'); 
	});
}
function emptyField(variable, obj) {
	if ( obj.value == variable || obj.value == 'Required' ) { 
		obj.value = '';
	}
}
function fillField(variable,obj) {
	var input = obj.value;
	if ( obj.value == variable || input.length < 2) { 
		obj.value = variable;
	}
}
function goTo(url) {
	location.href = url; 	
}
var proxima = { src: '/lib/swf/proxima.swf' };
sIFR.activate(proxima);
sIFR.replace(proxima, {
  selector: '.pagetitle',
  wmode: 'transparent',
  css: ['.sIFR-root{color: #000000; font-size: 34px;}','.pre{color:#999999;font-weight: bold;}','small{font-size:24px;color:#999999;font-weight:bold;}']
});
