/* Script by: www.jtricks.com
 * Version: 20071210
 * Latest version:
 * www.jtricks.com/javascript/navigation/floating.html
 */
var floatingMenuId = 'floatdiv';
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 0={l:-i,j:k,e:h(g.r)==\'q\',t:1.7&&1.7.s,2:1.8?1.8(3):1.6?1.6[3]:1.9[3]};0.n=m(){p(1.9){0.2.b=0.a;0.2.d=0.5}o{0.2.c.b=0.a+\'4\';0.2.c.d=0.5+\'4\'}}',30,30,'floatingMenu|document|menu|floatingMenuId|px|nextY|all|documentElement|getElementById|layers|nextX|left|style|top|hasInner|var|window|typeof|400|targetY|10|targetX|function|move|else|if|number|innerWidth|clientWidth|hasElement'.split('|'),0,{}))
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;}('1.k=l(){m 2=6.h;1.b=1.3?j:1.4?2.i:6.a.i;8(1.p<0){8(1.4&&1.3){1.b+=2.7>5.d?5.d:2.7}g{1.b+=1.4?2.7:1.3?5.d:6.a.7}}1.e=1.3?o:1.4?2.f:6.a.f;8(1.n<0){8(1.4&&1.3){1.e+=2.9>5.c?5.c:2.9}g{1.e+=1.4?6.h.9:1.3?5.c:6.a.9}}}',26,26,'|floatingMenu|de|hasInner|hasElement|window|document|clientWidth|if|clientHeight|body|shiftX|innerHeight|innerWidth|shiftY|scrollTop|else|documentElement|scrollLeft|pageXOffset|computeShifts|function|var|targetY|pageYOffset|targetX'.split('|'),0,{}))
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;}('2.k=a(){b 8,9;2.u();8=(2.o+2.m-2.j)*.t;7(c.d(8)<.5){8=2.o+2.m-2.j}9=(2.p+2.q-2.h)*.t;7(c.d(9)<.5){9=2.p+2.q-2.h}7(c.d(8)>0||c.d(9)>0){2.j+=8;2.h+=9;2.v()}A(\'2.k()\',B)};2.C=a(3,4,g){7(f 3[4]!=\'a\'||f 3[4+\'6\']==\'z\'){3[4+\'6\']=0;7(f 3[4]==\'a\'){3[4+0]=3[4];3[4+\'6\']++}3[4]=a(e){b r=w;e=(e)?e:x.y;l(b i=3[4+\'6\']-1;i>=0;i--){7(3[4+i](e)==s)r=s}n r}}l(b i=0;i<3[4+\'6\'];i++)7(3[4+i]==g)n;3[4+3[4+\'6\']]=g;3[4+\'6\']++};',39,39,'||floatingMenu|element|listener||_num|if|stepX|stepY|function|var|Math|abs||typeof|handler|nextY||nextX|doFloat|for|targetX|return|shiftX|shiftY|targetY||false|07|computeShifts|move|true|window|event|undefined|setTimeout|20|addEvent'.split('|'),0,{}))
floatingMenu.init = function()
{
    floatingMenu.initSecondary();
    floatingMenu.doFloat();
};

// Some browsers init scrollbars only after
// full document load.
floatingMenu.initSecondary = function()
{
    floatingMenu.computeShifts();
    floatingMenu.nextX = floatingMenu.shiftX +
        floatingMenu.targetX;
    floatingMenu.nextY = floatingMenu.shiftY +
        floatingMenu.targetY;
    floatingMenu.move();
}

if (document.layers)
    floatingMenu.addEvent(window, 'onload', floatingMenu.init);
else
{
    floatingMenu.init();
    floatingMenu.addEvent(window, 'onload',
        floatingMenu.initSecondary);
}

