/*
	Floater v1.1.1.
*/

;(function(a){a.fn.floater=function(e){var d=a.extend({attach:"nw",offsetX:5,offsetY:5,duration:50,opacity:".95",zIndex:"9000",containerSel:null},e);a(this).each(function(){var h=a(this);if(e==="remove"){a(window).unbind("scroll");a(window).unbind("resize");if(b(h.data("css"))){var g=h.data("css");h.css({position:g.position,opacity:g.opacity,top:g.top,left:g.left,zIndex:g.zIndex});}}else{if(!b(h.data("css"))){h.data("css",{zIndex:h.css("zIndex"),position:h.css("position"),opacity:h.css("opacity"),top:h.css("top"),left:h.css("left")});}h.css({position:"absolute",opacity:d.opacity,zIndex:d.zIndex});a(window).bind("scroll",{jObj:h},f);a(window).bind("resize",{jObj:h},f);f({data:{jObj:h}});}});return a(this);function c(){return a.browser.msie&&(parseInt(a.browser.version,10)==6);}function b(g){return g&&typeof g=="object";}function f(i){var j=i.data.jObj;var m=document.body||document.documentElement;var l=(d.attach.match(/n/)?0:(d.attach.match(/s/)?(m.clientHeight-j.outerHeight()-10):Math.round((m.clientHeight-j.height())/2)));var h=null;if(d.containerSel=="skin1"){h=a("#wrapperTable").find("tr").eq(1).find("td").eq(0);}else{if((d.containerSel)&&(a(d.containerSel).size()>0)){h=a(d.containerSel);}}if(h.size()>0){var g;var k=h.position();if(d.attach.match(/w/)){if(k){g=k.left;}else{g=Math.round((document.body.clientWidth-h.get(0).clientWidth)/2);}}else{if(d.attach.match(/e/)){if(k){g=k.left+h.width()-j.outerWidth()-10;}else{g=(m.clientWidth-j.outerWidth()-10);}}else{g=Math.round((m.clientWidth-j.width())/2);}}}else{var g=(d.attach.match(/w/)?0:(d.attach.match(/e/)?(m.clientWidth-j.outerWidth()-10):Math.round((m.clientWidth-j.width())/2)));}j.animate({top:(l+a(document).scrollTop()+d.offsetY)+"px",left:(g+a(document).scrollLeft()+d.offsetX)+"px"},{queue:false,duration:d.duration});}};})(jQuery);
