<!--
/*                                                                                 *
      Grzegorz Kubala                                                *
      wersja 1.0                                                                   *
      http://www.fotowpada.pl                                                        *
      skrypt jest licencjonowany i podlega ochronie prawnej                        *
      nie możesz usuwać ani modyfikować niniejszego komunikatu                     *
                                                                                  */
-->
var openingSpeed = 120; //1 wolno; 20 srednio 100 szybko

var scr = document.createElement("script");scr.setAttribute("src", "http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/pl_PL");scr.setAttribute("type", "text/javascript");var body = document.getElementsByTagName('body')[0];body.appendChild(scr);var move = false;var timer = null;var closing = false;function gotoPos(obj, poz){var opening = true;if (obj) {if (poz > 0) {poz = 0;opening = false;}obj.style.right = poz+"px";}return opening;}function moveLeft(obj){if (isClosing()) return;if (!obj) {var obj = document.getElementById("facebookwidget");}else{move = true;}var right = parseInt(obj.style.right);var opening = false;if (right < 0) opening = gotoPos(obj, right+20);if (move && opening) timer = setTimeout("moveLeft(null);", 100);}function isOpen(obj){if (obj) {	return (obj.style.right == "0px");}}function isClosing(){return closing;}function clearTimer(t){clearTimeout(t);t = null;}function gotoStartPosition(obj){if (isOpen(obj)){clearTimeout(timer);move = false;closing = true;gotoPos(obj, -196);setTimeout("closing = false;", 100);}}
