/*
Kompresja: YUI Compressor

Pełna Wersja: shop_devel.js

Projekt i wykonanie: DMTS 2010
Wszelkie prawa zastrzeżone.

www.dmts.pl poczta@dmts.pl +48 693 852 013
*/
var preh;function preloadBody(b,a){preh=document.getElementById("view").offsetHeight;var c=document.getElementById("view").offsetHeight;if(b==0){document.getElementById("right_div").style.height=c+"px";document.getElementById("left_div").style.height=c+"px"}if(b==1){document.getElementById("right_div").style.height=c+"px"}if(a==1){loginWindow(1)}if(document.getElementById("failed")){alert("Proszę poprawnie wypełnić zaznaczone pola!")}if(document.getElementById("pass_failed")){alert("Hasła nie są identyczne")}if(document.getElementById("msf")){document.getElementById("msf").setAttribute("autocomplete","off")}}function menu_over(a){document.getElementById("item"+a).style.background="top url(gfx/buttons/grp_button_over.png) no-repeat"}function menu_out(a){document.getElementById("item"+a).style.background="top url(gfx/buttons/grp_button.png) no-repeat"}function link_over(a){document.getElementById("link"+a).style.background="top url(gfx/buttons/link_button_over.png) no-repeat"}function link_out(a){document.getElementById("link"+a).style.background="top url(gfx/buttons/link_button.png) no-repeat"}function showopis(a){if(a==0){document.getElementById("grp_kontener").style.height="";document.getElementById("grp_window").style.height="";document.getElementById("show").style.display="none";document.getElementById("hide").style.display="";var b=document.getElementById("view").offsetHeight;document.getElementById("right_div").style.height=b+"px";document.getElementById("left_div").style.height=b+"px"}if(a==1){document.getElementById("grp_kontener").style.height="60px";document.getElementById("grp_window").style.height="24px";document.getElementById("show").style.display="";document.getElementById("hide").style.display="none";document.getElementById("right_div").style.height=preh+"px";document.getElementById("left_div").style.height=preh+"px"}}function openOpis(b){document.getElementById("input"+b).style.display="none";document.getElementById("opis"+b).style.display="";document.getElementById("opis_window").focus();document.getElementById("buttonopis"+b).style.display="";var a=document.getElementById("view").offsetHeight;document.getElementById("right_div").style.height=a+"px";document.getElementById("left_div").style.height=a+"px"}function closeOpis(a){document.getElementById("input"+a).style.display="";document.getElementById("opis"+a).style.display="none";document.getElementById("buttonopis"+a).style.display="none";document.getElementById("right_div").style.height=preh+"px";document.getElementById("left_div").style.height=preh+"px"}function openAluOpis(b){document.getElementById("input"+b).style.display="none";document.getElementById("opis"+b).style.display="";document.getElementById("opis_window").focus();document.getElementById("buttonopis"+b).style.display="";var a=document.getElementById("view").offsetHeight;document.getElementById("right_div").style.height=a+"px"}function closeAluOpis(a){document.getElementById("input"+a).style.display="";document.getElementById("opis"+a).style.display="none";document.getElementById("buttonopis"+a).style.display="none";document.getElementById("right_div").style.height=preh+"px"}function clearMasterSearchField(a){document.getElementById("field"+a).value=""}function clearField(a){document.getElementById("field"+a).value="";document.getElementById("field"+a).style.color="#444444"}function clearAndActivate(a){document.getElementById("field"+a).value="";document.getElementById("field"+a).style.color="#444444";document.getElementById("submit_button").disabled=false}function clearAndRecover(a){document.getElementById("field"+a).value="";document.getElementById("field"+a).style.color="#444444";document.getElementById("recovery_button").disabled=false}function clearAndSet(a){document.getElementById("field"+a).style.color="#444444"}function activateFv(){document.getElementById("dane_firmy").style.display="";document.getElementById("close_firma").style.display="";var a=document.getElementById("view").offsetHeight;document.getElementById("right_div").style.height=a+"px"}function closeFv(){document.getElementById("dane_firmy").style.display="none";document.getElementById("close_firma").style.display="none";document.getElementById("check").checked=false;var a=document.getElementById("view").offsetHeight;document.getElementById("right_div").style.height=a-185+"px"}function activateButton(a){document.getElementById("button"+a).disabled=false}function loginWindow(a){if(a==0){document.getElementById("passwd_div").style.display="none";document.getElementById("login_div").style.display="";document.getElementById("passwd_button").src="gfx/buttons/passwd_div.jpg";document.getElementById("login_button").src="gfx/buttons/zaloguj_div_over.jpg"}if(a==1){document.getElementById("passwd_div").style.display="";document.getElementById("login_div").style.display="none";document.getElementById("passwd_button").src="gfx/buttons/passwd_div_over.jpg";document.getElementById("login_button").src="gfx/buttons/zaloguj_div.jpg"}}function loginHint(a){document.getElementById("hint"+a).style.display=""}function loginHintout(a){document.getElementById("hint"+a).style.display="none"}function submitForm(a){document.getElementById("form"+a).submit()}function submitBasket(){document.getElementById("basket_form").submit()}function showDivMoreinfo(a){document.getElementById("prod_moreinfo"+a).style.display="";document.getElementById("prod_close_moreinfo"+a).style.display="none"}function closeDivMoreinfo(a){document.getElementById("prod_moreinfo"+a).style.display="none";document.getElementById("prod_close_moreinfo"+a).style.display=""}function backProdHint(a){if(a==1){document.getElementById("prod_hint").style.background="top url(gfx/prod/hint_close.png) no-repeat"}if(a==0){document.getElementById("prod_hint").style.background="top url(gfx/prod/hint.png) no-repeat"}}function closeProdHint(){opacityTween=new OpacityTween(document.getElementById("prod_hint"),Tween.regularEaseIn,100,0,0.3);opacityTween.start();setTimeout("document.getElementById('prod_hint').style.display = 'none'",400);document.cookie="prod_hint=off"}function closeAluHint(){opacityTween=new OpacityTween(document.getElementById("prod_hint"),Tween.regularEaseIn,100,0,0.3);opacityTween.start();setTimeout("document.getElementById('prod_hint').style.display = 'none'",400);document.cookie="alu_hint=off"}function deleteAccount(){var a=confirm("Czy jesteś pewien, że chcesz usunąć swoje konto?");if(a){document.getElementById("delete_account").submit()}}function openSearch(){document.getElementById("search").style.display="";document.getElementById("qs").style.background="top url(gfx/master_search_qs.png) no-repeat";document.getElementById("msf").submit()}function closeSearch(){document.getElementById("search").style.display="none";document.getElementById("qs").style.background="top url(gfx/master_search.png) no-repeat";document.getElementById("field1").value="Szybkie szukanie..."}function closeAluSearch(){document.getElementById("search").style.display="none";document.getElementById("qs").style.background="top url(gfx/master_search.png) no-repeat";document.getElementById("field1").value="Szukaj w ogłoszeniach..."}function aluRedir(){opacityTween=new OpacityTween(document.getElementById("aluRedir"),Tween.regularEaseIn,0,100,0.7);opacityTween.start();setTimeout("window.location.replace('alu.php')",1100)}function aluSent(){opacityTween=new OpacityTween(document.getElementById("sent_mail"),Tween.regularEaseIn,0,100,0.7);opacityTween.start()}function settingRedir(){setTimeout("window.location.replace('index.php?site=account')",1000)}function sendmailRedir(){setTimeout("window.location.replace('index.php?site=kontakt')",1000)}function checkoutRedir(){setTimeout("window.location.replace('basket.php?action=checkout_finish')",1000)};