eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}('f v(5,s,a,3,4,g){7 p=5+\'=\'+w(s)+((a)?\'; a=\'+a.u():\'\')+((3)?\'; 3=\'+3:\'\')+((4)?\'; 4=\'+4:\'\')+((g)?\'; g\':\'\');d.e=p}f o(5){7 9=d.e;7 b=5+\'=\';7 6=9.i(\'; \'+b);8(6==-1){6=9.i(b);8(6!=0)m t}y 6+=2;7 c=d.e.i(\';\',6);8(c==-1)c=9.n;m x(9.I(6+b.n,c))}f G(5,3,4){8(o(5)){d.e=5+\'=\'+((3)?\'; 3=\'+3:\'\')+((4)?\'; 4=\'+4:\'\')+\'; a=C, q-D-E r:r:q H\'}}f A(j){7 k=B F(0);7 h=k.l();8(h>0)j.z(j.l()-h)}',45,45,'|||path|domain|name|begin|var|if|dc|expires|prefix|end|document|cookie|function|secure|skew|indexOf|date|base|getTime|return|length|getCookie|curCookie|01|00|value|null|toGMTString|setCookie|escape|unescape|else|setTime|fixDate|new|Thu|Jan|70|Date|deleteCookie|GMT|substring'.split('|'),0,{}));
function linktome(url){ window.open(url, '_blank', 'width=900,height=700,toolbar=yes,menubar=yes,status=yes,resizable=yes,scrollbars=yes,location=yes'); };
function bookmark_digg(){ linktome('http://digg.com/submit?url='+document.location.href+'&title='+document.title); };
function bookmark_delicious(){ linktome('http://del.icio.us/post?url='+document.location.href+'&title='+document.title); };
function bookmark_reddit(){ linktome('http://reddit.com/submit?url='+document.location.href+'&title='+document.title); };
function bookmark_facebook(){ linktome('http://www.facebook.com/sharer.php?u='+document.location.href+'&title='+document.title); };
function bookmark_stumbleupon(){ linktome('http://www.stumbleupon.com/submit?url='+document.location.href+'&title='+document.title); };
function init_bookmarks(){
	$("#digg").click(function() { bookmark_digg(); });
	$("#delicious").click(function() { bookmark_delicious(); });
	$("#reddit").click(function() { bookmark_reddit(); });
	$("#facebook").click(function() { bookmark_facebook(); });
	$("#stumbleupon").click(function() { bookmark_stumbleupon(); });
};
function is_in(){
	var a=getCookie('un');
	var b=getCookie('up');
	var c=getCookie('nm');
	return (a && a.length && b && b.length && c && c.length);
};
function getQueryVariable(variable) { 
	var query = window.location.search.substring(1); 
	var vars = query.split("&"); 
	for (var i=0;i<vars.length;i++) { 
		var pair = vars[i].split("="); 
		if (pair[0] == variable) { 
			return pair[1]; 
		} 
	} 
} ;
function wm(split1,split2){ var s=split1+split2+'@mi'+'crowes'+'tsof'+'tware.'+'c'+'om'; document.write('<a href="'+'mai'+'lto:'+s+'" class="glink">'+s+'</'+'a>'); }
function wlt(split1,split2,showtext){ var s=split1+split2+'@mi'+'crowes'+'tsof'+'tware.'+'c'+'om'; document.write('<a href="'+'mai'+'lto:'+s+'" class="glink">'+showtext+'</'+'a>'); }
function wn(split1,split2){ document.write(split1+split2); }
function wmi(split1,split2,img,alt){ var s=split1+split2+'@mi'+'crowes'+'tsof'+'tware.'+'c'+'om'; document.write('<a href="'+'mai'+'lto:'+s+'" class="glink"><img src="../images/'+img+'.jpg" alt="'+alt+'" /></'+'a>'); }
function fg(name){ var val = getCookie(name); if (val!=null) document.getElementById(name).value = val; }
function lg(name){ var val = getCookie(name); if (val!=null) document.getElementById(name).value = val; }
function sc(name,val){ var thetime = new Date(); thetime.setTime(thetime.getTime() + 365 * 24 * 60 * 60 * 1000); setCookie(name,val,thetime); }
function uname(){ return getCookie('nm'); };
function dg(n){ return document.getElementById(n); };
function init_links(){
	var ffq='http://search.freefind.com/find.html?si=52380676&pid=r&n=0&_charset_=utf-8&bcd=%C3%B7&query=';
	
	$("#header-search").focus(function() { this.value=''; this.className='header-search search-active'; });
	$("#header-search").blur(function() { this.className='header-search'; if (!this.value.length) this.value='Search'; });
	$("#header-search").bind('keypress',function(e) { if((e.keyCode ? e.keyCode : e.which) == 13) { var t=(event.target||event.srcElement); document.location.href=ffq+t.value; } });
	
	$("#searchimg").mouseover(function() { this.style.cursor='hand'; });
	$("#searchimg").mouseout(function() { this.style.cursor='default'; });
	$("#searchimg").bind('click',function() { var val=$("#header-search").val(); if (val==undefined) val=''; document.location.href=ffq+val; });
	
	$("#howtobuy").mouseover(function() { this.src='../images/howtobuy_h.jpg'; });
	$("#howtobuy").mouseout(function() { this.src='../images/howtobuy.jpg'; });
	
	$("#evals").mouseover(function() { this.src='../images/evals_h.jpg'; });
	$("#evals").mouseout(function() { this.src='../images/evals.jpg'; });
	
	$("#paperless").mouseover(function() { this.src='../images/paperless_h.jpg'; });
	$("#paperless").mouseout(function() { this.src='../images/paperless.jpg'; });
	
	$("#callme").mouseover(function() { this.src='../images/callme_h.jpg'; });
	$("#callme").mouseout(function() { this.src='../images/callme.jpg'; });
	
	$("#webdemo").mouseover(function() { this.src='../images/webdemo_h.jpg'; });
	$("#webdemo").mouseout(function() { this.src='../images/webdemo.jpg'; });
};
function openPopupWindow(url, width, height, resize, scroll){
	var optstr = ''
	optstr += (resize==true) ? 'resizable=yes' : 'resizable=no'
	optstr += (scroll==true) ? ',scrollbars=yes' : ',scrollbars=no'
	if (width>=0){
		optstr += ',width='+width
		optstr += ',left='+(screen.width-width)/2
	}
	if (height>=0){
		optstr += ',height='+height
		optstr += ',top='+(screen.height-height)/2
	}		
	optstr += ',toolbar=no,status=no,menubar=no'	
	var winobj = window.open(url, '_blank', optstr)	
	winobj.focus()
}
function init_search() {
	var obj = document.getElementById('ff_text');
	if (!obj) return;

	var val = getQueryVariable('v');
	if (val==undefined || !val || !val.length) { obj.focus(); return; }
	obj.value = val;

	obj = document.getElementById('ff_search');
	if (obj) obj.click();
}