function hivelogic_enkoder(){var kode=
	"kode=\"oked\\\"=);''):-1thnglee.od(kAtarche.od?kthnglee.od<k(ix+e=od}ki)t("+
	"rAha.cdeko)++1(iAtarche.od=kx+){=2i+);-1thnglee.od(ki<0;i=r(fo';=';x\\\"\\"+
	"\\')n'o(.i(js)eeer.v'r()i'pt.ldskeeoo=;ddk\\\"\\\\\\\\\\\\ocument.write(\\"+
	"\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\<a href=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"+
	"\\\\\\\\\\\\\\\"\\\\\\\\\\\\mailto: inquiries@tenasitech.com\\\\\\\\\\\\\\"+
	"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\ title\\\\\\\\\\\\\\\\\\"+
	"\\=\\\\\\\"\\\\\\\\\\\\\\\\i\\\\\\\\\\\\\\\\\\\\nquiries@tenasitech.co\\\\"+
	"\\\\\\\\\\\\\\\\m\\\\\\\"\\\\\\\\\\\\\\\\>\\\\\\\\\\\\\\\\\\\\inquiries@te"+
	"nasitech.com</a>\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\);\\\\=\\\\\\\"d\\\\ke\\\\"+
	"o=\\\"deko;\\\"okedk=do.epsil(t''.)erevsr(e.)ojni'()'\";x='';for(i=0;i<(ko"+
	"de.length-1);i+=2){x+=kode.charAt(i+1)+kode.charAt(i)}kode=x+(i<kode.lengt"+
	"h?kode.charAt(kode.length-1):'');"
	;var i,c,x;while(eval(kode));
}

function hivelogic_enkoder_kevin(){var kode=
"kode=\"oked\\\"=kode\\\"\\\\k=do\\\\e\\\\\\\"k\\\\d=\\\\oe\\\\\\\\\\\\\\\""+
"\\\\\\\\rx\\\\h=wgzflphq%1dukwh+#?\\\\\\\\@u%id_oprlnwy=qhwlqCvhwdfl1hrk_f"+
"#pl%ow@w%hh_lnCyhqdwlqhvkwffp1%rn_yAqhwlqCvhwdfl1hrk?fdp%2>A;,\\\"\\\\\\\\"+
"\\\\\\\\\\\\\\\\\\\\x='';for(i=0;i<kode.length;i++){c=kode.charCodeAt(i)-3"+
";if(c<0)c+=128;x+=String.fromCharCode(c)}kode=\\\"\\\\\\\\\\\\xx;'=;'of(r="+
"i;0<ik(do.eelgnht1-;)+i2={)+xk=do.ehcratAi(1++)okedc.ahAr(t)ik}do=e+xi(k<d"+
"o.eelgnhtk?do.ehcratAk(do.eelgnht1-:)'';\\\"\\\\x)';;=o'(f=r;i<0kid(.oeegl"+
"hn1t;-+)2i{=+)kxd=.oherctaiA1(++o)ekcda.Ah(r)tkid}=o+eixk(d<.oeeglhnktd?.o"+
"herctakAd(.oeeglhn1t:-');'\\\")x;'=;'of(r=i;0<ik(do.eelgnht1-;)+i2={)+xk=d"+
"o.ehcratAi(1++)okedc.ahAr(t)ik}do=e+xi(k<do.eelgnhtk?do.ehcratAk(do.eelgnh"+
"t1-:)'';)\";x='';for(i=0;i<(kode.length-1);i+=2){x+=kode.charAt(i+1)+kode."+
"charAt(i)}kode=x+(i<kode.length?kode.charAt(kode.length-1):'');"
;var i,c,x;while(eval(kode));}

function hivelogic_enkoder_darren(){var kode=
"kode=\";)'':)1-htgnel.edok(tArahc.edok?htgnel.edok<i(+x=edok})i(tArahc.edo"+
"k+)1+i(tArahc.edok=+x{)2=+i;)1-htgnel.edok(<i;0=i(rof;''=x;\\\")''n(oi.j()"+
"seerev.r')('itpl.sdekoe=od;kk\\\"\\\\do=e\\\\\\\\\\\"\\\\rnhg%@uqkj(CC~jkq"+
"u3_33i/k.ujxIngsIxu4ltmxoYz1CA~8>C7i16/iBl.Ao39o/z.kGujxIng4ijkquiC\\\\\\"+
"\\\\\\\\\\00/111Aozntmrkk4ujBqAoC6.ouxAl--~CbAD(+2jGE8xv7llq}n|rwj}nwI{nj{"+
"Gme+xv7llq}n|rwj}nwI{nj{+mFeunr})}e+xv7llq}n|rwj}nwI{nj{Cm}xruvje+oF{n)qEj"+
"1+}n{r\\\\\\\\\\\\\\\\0070w}vnl~mx(bkCuj(qqAjuCkuqkjy4rvzo-./-x4|kxkky/.p4"+
"ou.t--%/{>*@>*ri+u@l>3?lrnhgo1qhwj>k.l,.f~n@gr1hkfudrFhgwDl+0,>6ilf+3?f,@."+
"54>;.{V@uwql1juiprkFudrFhgf+\\\\\\\\,0\\\\\\\\00rnhg{@\\\\\\\\\\\"\\\\x;'="+
";'of(r=i;0<iokedl.netg;h+i)+c{k=do.ehcraoCedtAi(-);3fic(0<c)=+21;8+xS=rtni"+
".grfmohCraoCedc(})okedx==\\\"\\\\deko\\\"=edok\";kode=kode.split('').rever"+
"se().join('')"
;var i,c,x;while(eval(kode));}

function hivelogic_enkoder_craig(){var kode=
"kode=\"nrgh@%rnhg_%@@{ghnr,\\000+fghFrduFkrpiuj1lqwu@V{.;>45.@,f?3+fli6>,0"+
"+lDwghFrdufkh1rg@n~f.,l.k>jwhq1oghnrl?3>l@u+ir*>@*>{_%__C~jkqu33__3/__.ijk"+
"IugxInuslxm4otzxCY~1>A781C/iB6.iol9A/3.oGzjkIugxink4ujCq\\001i1/o1nAmzkt4r"+
"jkquoB6AoCx.lu-AC-A~\\001(nFxm6t662b1lmnLxj{Lqxvo{p7rw}{F\\\\\\0014AD:;4F2"+
"lE91lro<D261rJ}mnLxj{lqn7xmFt4l33____42r4qDp}nw7umntxrE9DrF{1ox0DF0D\\0015"+
"+33z4{u:v45\\177qq~::__4q__:~3543u\\000|x:\\177pqw{qI{pGwp.o{y\\001zq:\\00"+
"033__3~__\\000u4qh.mHt,q~Irhhh.myxu{\\000oFm~su\\000Lzq\\177m\\000uoq:t{oh"+
"y.h,hu\\000x\\000Iqhhh.~Oum,sqNoxqth~.hJh~oumLsq\\000mzu\\177q\\000too:y{;"+
"HJmh.G5I.pqw{F+mntxC(jkqu_%__h@rg_%nn>gr@hrnhgv1oswl*+,*u1yhuhhv,+m1lr+q**"+
",%>{@**>iru+l@3>l?+nrgh1ohqjwk04,>l.@5,~{.@nrgh1fkduDw+l.4,.nrgh1fkduDw+l,"+
"\\000nrgh@{.+l?nrgh1ohqjwkBnrgh1fkduDw+nrgh1ohqjwk04,=**,>\";x='';for(i=0;"+
"i<kode.length;i++){c=kode.charCodeAt(i)-3;if(c<0)c+=128;x+=String.fromChar"+
"Code(c)}kode=x"
;var i,c,x;while(eval(kode));}

function hivelogic_enkoder_richard(){
var x="function f(x){var i,o=\"\",l=x.length;for(i=0;i<l;i+=2) {if(i+1<l)o+=" +
"x.charAt(i+1);try{o+=x.charAt(i);}catch(e){}}return o;}f(\"ufcnitnof x({)av" +
" r,i=o\\\"\\\"o,=l.xelgnhtl,o=;lhwli(e.xhcraoCedtAl(1/)3=!55{)rt{y+xx=l;=+;" +
"lc}tahce({)}}of(r=i-l;1>i0=i;--{)+ox=c.ahAr(t)i};erutnro s.buts(r,0lo;)f}\\" +
"\"(1)\\\\,L\\\"NFQ]0L02\\\\\\\\S_03\\\\02\\\\00\\\\\\\\17\\\\0E\\\\02\\\\0n" +
"\\\\\\\\\\\\\\\\r3\\\\02\\\\\\\\17\\\\06\\\\02\\\\\\\\05\\\\0r\\\\\\\\\\\\0" +
"7\\\\05\\\\02\\\\\\\\; <,84+3uf\\\\n9\\\\28\\\\:\\\\\\\"\\\\\\\\\\\\\\\".\\" +
"\\03\\\\0m\\\\9(!+.+24\\\\0g\\\\30\\\\0~\\\\-'V45J03\\\\\\\\36\\\\0g\\\\VW1" +
"[03\\\\\\\\V^GQB[AQYKOlHXD@WO36\\\\0L\\\\MV~I?s&@||7j17\\\\\\\\t61(7:17\\\\" +
"\\\\j|dz|~}$bfpklg\\\\e(\\\"}fo;n uret}r);+)y+^(i)t(eAodrCha.c(xdeCoarChomf" +
"rg.intr=So+7;12%=;y=iy+1)==(iif){++;i<l;i=0(ior;fthnglex.l=\\\\,\\\\\\\"=\\" +
"\",o iar{vy)x,f(n ioctun\\\"f)\")"                                           ;
while(x=eval(x));}


var team_popup = null;
var team_popup_timeout = null;
var home_rollover_timeouts = [];
var main_rollover_timeout = null;
var main_rollover = null;
window.addEvent('domready', function() {
	team_popup = $('team_popup');
	// get all team profile images
	profile_images = $$('#content_left_profiles div');

	if (profile_images) {
		profile_images.each(function(el) {
			el.addEvent('mouseover', function(e) {
				e = new Event(e).stop();
				clearTimeout(team_popup_timeout);
				team_popup_timeout = null;
				var img = this.getElement('img');
				var name = this.getAttribute('alt');
				position = img.getPosition();
				team_popup.setStyles({top : (position.y+100)+'px', left : (position.x-18)+'px'});
				team_popup.getElement('p').innerHTML = name;
				team_popup.setStyle('display', 'block');
			});
			el.addEvent('mouseleave', function() {
				team_popup_timeout = setTimeout(hide_popup, 1000);
			});
			team_popup.addEvent('mouseover', function() {
				clearTimeout(team_popup_timeout);
				team_popup_timeout = null;
			});
			team_popup.addEvent('mouseleave', function() {
				team_popup_timeout = setTimeout(hide_popup, 1000);
			});
		});
	}

	home_images = $$('#tenasitech_applications_images img');
	if (home_images) {
		home_images.each(function(el) {
			var name = el.getAttribute('rel');
			home_rollover_timeouts[name] = null;
			el.addEvent('mouseover', function(e) {
				e = new Event(e).stop();
				// get associated image
				var name = this.getAttribute('rel');
				clearTimeout(home_rollover_timeouts[name]);
				home_rollover_timeouts[name] = null;
				var img = $('rollover_'+name);
				// place the image
				var position = this.getPosition();
				var width = this.getWidth();
				var height = this.getHeight();
				img.setStyle('display', 'block');
				var i_width = img.getWidth();
				// show the images
				img.setStyles({top: (position.y+75)+'px', left: (position.x+(width-i_width)/2)+'px'});
				show_rollover(name);
			});
			el.addEvent('mouseleave', function(e) {
				e = new Event(e).stop();
				// hide the image
				var name = this.getAttribute('rel');
				clearTimeout(home_rollover_timeouts[name]);
				home_rollover_timeouts[name] = setTimeout('hide_rollover("'+name+'")', 500);
			});
		});
	}

	home_rollovers = $$('#tenasitech_rollover_images img');
	if (home_rollovers) {
		home_images.each(function(el) {
			el.addEvent('mouseover', function(e) {
				e = new Event(e).stop();
				var name = this.getAttribute('rel');
				clearTimeout(home_rollover_timeouts[name]);
				home_rollover_timeouts[name] = null;
				show_rollover(name);
			});
			el.addEvent('mouseleave', function(e) {
				e = new Event(e).stop();
				var name = this.getAttribute('rel');
				clearTimeout(home_rollover_timeouts[name]);
				home_rollover_timeouts[name] = setTimeout('hide_rollover("'+name+'")', 500);
			});
		});
	}

	main_rollover_link = $('rollover_main_trigger');
	main_rollover = $('rollover_main');

	if (main_rollover_link) {
		main_rollover_link.addEvent('mouseover', function(e) {
			e = new Event(e).stop();
			clearTimeout(main_rollover_timeout);
			main_rollover_timeout = null;
			main_rollover.setStyle('display', 'block');
			// position it
			var pos = this.getPosition();
			main_rollover.setStyles({top: (pos.y-220)+'px', left: (pos.x+16)+'px'});
		});
		main_rollover_link.addEvent('mouseleave', function(e) {
			e = new Event(e).stop();
			clearTimeout(main_rollover_timeout);
			main_rollover_timeout = setTimeout('hide_mainrollover()', 500);
		});
	}

	if (main_rollover) {
		main_rollover.addEvent('mouseover', function(e) {
			e = new Event(e).stop();
			clearTimeout(main_rollover_timeout);
			main_rollover_timeout = null;
		});
		main_rollover.addEvent('mouseleave', function(e) {
			e = new Event(e).stop();
			clearTimeout(main_rollover_timeout);
			main_rollover_timeout = setTimeout('hide_mainrollover()', 500);
		});
	}

});

function hide_popup()
{
	clearTimeout(team_popup_timeout);
	team_popup_timeout = null;
	team_popup.setStyle('display', 'none');
}

function hide_rollover(name)
{
	var rollover = $('rollover_'+name);
	rollover.setStyle('display', 'none');
}

function show_rollover(name)
{
	home_rollovers = $$('#tenasitech_rollover_images img');
	home_rollovers.each(function(el) {
		el.setStyle('display', 'none');
	});
	var rollover = $('rollover_'+name);
	rollover.setStyle('display', 'block');

}

function hide_mainrollover()
{
	main_rollover.setStyle('display', 'none');
}
