var LOVE=function(){var a=false;var e=false;function d(){ge("loveComments").style.backgroundPosition="-26px 0";if(YAHOO.env.ua.ie<=0){DOM.setStyle("loveComments","opacity",0.5)}}function c(){ge("loveComments").style.backgroundPosition="0 0";if(YAHOO.env.ua.ie<=0){DOM.setStyle("loveComments","opacity",1)}}var b={init:function(){var f=document.createElement("div");f.id="loveComments";document.getElementsByTagName("body")[0].appendChild(f);EV.on("loveComments","mouseover",LOVE.mouseIn);EV.on("loveComments","mouseout",LOVE.mouseOut);EV.on("loveComments","click",LOVE.showHideComments)},showLoveComments:function(){e=true;if(!a){var f=document.createElement("div");f.id="loveCommentsBox";document.getElementsByTagName("body")[0].appendChild(f);a=true;f.innerHTML='<div id="lcin"><img src="bbStatic/lc/lovefb.png"/><p>'+TX("Please send us your feedback using the box below.")+"<br/>"+TX("We love to receive suggestions, ideas or a simple 'hello'.")+"<br/>"+TX("Include your email if you'd like a response.")+'</p><form id="lcform" action="services.xml?name=loveComments" onSubmit="LOVE.submitComments(); return false;"><textarea id="lcfb" name="lcfb"></textarea><br/><div id="lcButtons">'+TX("Thank You!")+'<input id="lcsend" type="image" src="bbStatic/lc/fbsend.png"/></div></form></div>';EV.on("loveCommentsBox","keydown",function(g){if(g.keyCode==27){LOVE.showHideComments();return}else{EV.stopPropagation(g)}})}BLUE.run("animation",function(){var g=new YAHOO.util.Anim("loveCommentsBox",{right:{to:0}},1,YAHOO.util.Easing.easeBoth);var h=new YAHOO.util.Anim("loveComments",{right:{to:400}},1,YAHOO.util.Easing.easeBoth);g.animate();h.animate()})},hideLoveComments:function(){e=false;BLUE.run("animation",function(){var f=new YAHOO.util.Anim("loveCommentsBox",{right:{to:-400}},1,YAHOO.util.Easing.easeBoth);var g=new YAHOO.util.Anim("loveComments",{right:{to:0}},1,YAHOO.util.Easing.easeBoth);f.animate();g.animate()});d()},submitComments:function(){var f=ge("lcfb");if(f.value.length<5){return}BLUE.ajaxPost(ge("lcform"),function(g){ge("lcin").innerHTML='<div style="margin-top: 40px;">'+TX("Sent.")+'</div><div style="margin-top: 30px; font-size: 20px;">'+TX("Thank You!")+'</div><div style="margin-top: 30px;"><a href="close" onClick="LOVE.showHideComments(); return false;">'+TX("Close")+"</a></div>"});ge("lcin").innerHTML='<div style="margin-top: 60px;">'+TX("Sending...")+'<img src="bbStatic/lc/bball.gif"/></div>';return false},showHideComments:function(){if(e){LOVE.hideLoveComments()}else{LOVE.showLoveComments()}},mouseOut:function(){if(!e){d()}},mouseIn:function(){c()}};return b}();EV.onDOMReady(LOVE.init);

