eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('9 t(a,b){g(3=0;3<a.h;3++){k c=[],d=[],n=[],e=[],4=[],l=[];8(a[3].5(\'.\')!=-1||a[3].5(\'#\')==-1){8(a[3].5(\'>\')!=-1){c[3]=a[3].f(a[3].5(\'>\')+2);a[3]=a[3].f(0,a[3].5(\'>\')-1)}8(a[3].5(\'.\')!=-1){d[3]=a[3].f(a[3].5(\'.\')+1);a[3]=a[3].f(0,a[3].5(\'.\'))}n[3]=a[3];8(!d[3])d[3]=\'\';8(c[3]){l[3]=r.o(n[3]);g(k j=0;j<l[3].h;j++){8(l[3][j].6.5(d[3])!=-1){4[3]=l[3][j].o(c[3]);g(k i=0;i<4[3].h;i++){4[3][i].p=9(){7.6+=\' \'+b};4[3][i].q=9(){7.6=7.6.m(b,\'\')}}}}}s{4[3]=r.o(n[3]);g(k i=0;i<4[3].h;i++){8(4[3][i].6.5(d[3])!=-1){4[3][i].p=9(){7.6+=\' \'+b};4[3][i].q=9(){7.6=7.6.m(b,\'\')}}}}}s 8(a[3].5(\'#\')!=-1){8(a[3].5(\'>\')!=-1){c[3]=a[3].f(a[3].5(\'>\')+2);a[3]=a[3].f(0,a[3].5(\'>\')-1)}a[3]=a[3].m(\'#\',\'\');e[3]=r.u(a[3]);8(e[3]){8(c[3]){4[3]=e[3].o(c[3]);g(k i=0;i<4[3].h;i++){4[3][i].p=9(){7.6+=\' \'+b};4[3][i].q=9(){7.6=7.6.m(b,\'\')}}}s{e[3].p=9(){7.6+=\' \'+b};e[3].q=9(){7.6=7.6.m(b,\'\')}}}}}}',31,31,'|||_hoverItem|_hoverElement|indexOf|className|this|if|function||||_class|_id|substr|for|length|||var|_parent|replace|_tag|getElementsByTagName|onmouseover|onmouseout|document|else|hoverForIE6|getElementById'.split('|'),0,{}));
/* insert your class and id ***********************
_hoverClassName = 'hover';
_hoverEl = ['ul.ul-class > li',	'div.div-class', 'span', '#box', '#nav > li'];
/**************************************************/
function ieHover() {
	hoverForIE6(['#nav > li'], 'hover');
}
if (window.attachEvent && !window.opera){
	window.attachEvent("onload", ieHover);
}

if (!Array.prototype.forEach)
{
  Array.prototype.forEach = function(fun /*, thisp*/)
  {
    var len = this.length >>> 0;
    if (typeof fun != "function")
      throw new TypeError();

    var thisp = arguments[1];
    for (var i = 0; i < len; i++)
    {
      if (i in this)
        fun.call(thisp, this[i], i, this);
    }
  };
}
if (!Array.prototype.indexOf)
{
  Array.prototype.indexOf = function(elt /*, from*/)
  {
    var len = this.length >>> 0;

    var from = Number(arguments[1]) || 0;
    from = (from < 0)
         ? Math.ceil(from)
         : Math.floor(from);
    if (from < 0)
      from += len;

    for (; from < len; from++)
    {
      if (from in this &&
          this[from] === elt)
        return from;
    }
    return -1;
  };
}

//Array Remove - By John Resig (MIT Licensed)
Array.prototype.remove = function(from, to) {
  var rest = this.slice((to || from) + 1 || this.length);
  this.length = from < 0 ? this.length + from : from;
  return this.push.apply(this, rest);
};



// create default namespace
YAHOO.namespace("burris");

// bind animations for newsletter signup
YAHOO.util.Event.onDOMReady(function(){
	var Selector = YAHOO.util.Selector;
	var holder = Selector.query('.popup')[0];
	var holder = Selector.query('.popup div.links')[0];
	var open = Selector.query('.click-here', holder)[0];
	var close = Selector.query('.close', holder)[0];
    var openAnimation = new YAHOO.util.Motion('pop-up', { points: { to: [0, 0]} },.5, YAHOO.util.Easing.easeOutStrong);
	var closeAnimation = new YAHOO.util.Motion('pop-up', { points: { to: [0, -204]} },.5, YAHOO.util.Easing.easeInStrong);
	
	YAHOO.util.Event.on(open,'click',function(){
		close.style.visibility = 'visible';
	    openAnimation.animate();
	});
	
	YAHOO.util.Event.on(close,'click',function(){
		close.style.visibility = 'hidden';
		closeAnimation.animate();
	});
});

// submit check for newsletter signup
YAHOO.util.Event.onDOMReady(function(){
	var Selector = YAHOO.util.Selector;
	
	YAHOO.util.Event.on('frmSignup','submit',function(e){
		var fields = "";
		var checkFound = false;
		var re = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
		
		for (i=0;i<this.newsletters.length;i++) {if (this.newsletters[i].checked) checkFound = true;}
		if (!checkFound) fields += '\nTopics';
		if ((this.email.value.replace(/ /g,"") == "") || (this.email.value.search(re) == -1)){
			fields += "\nE-Mail Address";
		};
		if (this.firstname.value.replace(/ /g,"") == "") {
			fields += "\nFirst Name";
		};
		if (this.lastname.value.replace(/ /g,"") == "") {
			fields += "\nLast Name";
		};
		if (this.zip.value.replace(/ /g,"") == "") {
			fields += "\nZip Code";
		};
		if (fields != "") {
		    YAHOO.util.Event.preventDefault(e);
			alert('The following fields are required to subscribe to the newletters:\n' + fields);
		}
	});
	
});