var flashvars = {};var params = {};var _loginData = "";params.quality = "best";params.scale = "noscale";params.salign = "tl";params.allowfullscreen = "true";params.allowScriptAccess = "always";var attributes = {    id: "moustache",    name: "moustache"};swffit.showScrollV();swfobject.embedSWF("/swf/loader.swf", "swf", "100%", "100%", "10.0.0", "/swf/expressInstall.swf", flashvars, params, attributes);function init() {    $(window).scroll(zmienSkrol);    SWFAddress.addEventListener(SWFAddressEvent.CHANGE, resetuj);}function resetuj() {    window.scrollTo(0, 0);}function setHeight(value) {    $('#doskrola').css('height', value + "px");}function reset() {    var height = "100%";    $('#doskrola').css('height', height);}function zmienSkrol() {    thisMovie("moustache").setScroll($(window).scrollTop())}function subscribe(email){    var str="email="+email;        $.post("/php/subscribe.php", str, function (data, textStatus)    {        thisMovie("moustache").sendData(data);       });    }function ftpLogin(loginData){    _loginData = loginData;    loginData = "loginData="+loginData;        $.post("/php/login.php",loginData, function(data, textStatus)    {        thisMovie("moustache").sendFtpData(data);       });    }function doSearch(query){    var str="query="+query;        $.post("/php/search.php", str, function (data, textStatus)    {        thisMovie("moustache").sendResults(data);       });    }function showFbk(){    $("#fbk").fadeIn(500).delay(2000).fadeOut(400);}function getFile(path, file) {      method = "post";    var form = document.createElement("form");    form.setAttribute("method", method);    form.setAttribute("action", path);    form.setAttribute("target", "_blank");      var hiddenField = document.createElement("input");    hiddenField.setAttribute("type", "hidden");    hiddenField.setAttribute("name", "file");    hiddenField.setAttribute("value",file);    form.appendChild(hiddenField);    var loginField = document.createElement("input");    loginField.setAttribute("type", "hidden");    loginField.setAttribute("name", "loginData");    loginField.setAttribute("value",_loginData);    form.appendChild(loginField);    document.body.appendChild(form);        form.submit();    document.body.removeChild(form);  }function thisMovie(movieName) {    if (navigator.appName.indexOf("Microsoft") != -1) {        return window[movieName];    } else {        return document[movieName];    }}$(document).ready(init);
