function subscribeMail(){
var searchTextText = $("#searchText").val();
var newsText = $("#inputNewsl").val();

$("#searchText").focus(function(){ if( $(this).val()==searchTextText ) $(this).val('');    }).blur(function(){        if( $(this).val()=='' )            $(this).val(searchTextText);    });    $("#inputNewsl").focus(function(){        if( $(this).val()==newsText )            $(this).val('');    }).blur(function(){        if( $(this).val()=='' )            $(this).val(newsText);    });}

/** Usuniecie "mrówek" po kliknieciu w linka*/function removeBlur(){   $("a").bind("focus",function(){       if(this.blur)           this.blur();   });}function winLoc(id){    var url = id.attr("title");    window.location = url;}/* * Po zaladowaniu drzewa DOM wykonaj wszystkie zadnia */$(document).ready( function(){    subscribeMail();    if($.browser.opera){        $("head").append('<link rel="stylesheet" href="opera.css" type="text/css" />');    }    $('.boxDesc a').click(function(){        $(this).next("p").slideToggle("fast");        return false;    });    $('.boxExample a').click(function(){        $(this).parent('p').next("div").slideToggle("fast");        return false;    });    $('a#action').click(function(){        $(this).parent('p').next("table").slideToggle("fast");        return false;    });    
$('#aListFunction').click(function(){        $(this).parent('p').next('ul').slideToggle("fast");        return false;    });    
$('.listFunc li a').click(function(){        $(this).next('p').slideToggle("fast");        return false;    });    
$('a#resultsTable').click(function(){      $(this).next('div').slideToggle("fast");        return false;    });
$('#boxOpinie, .boxScreens').click(function(){        winLoc($(this));    });    
$("a[rel^='_blank']").click(function(e){       e.preventDefault();     var href = $(this).attr('href');        window.open(href, '','menubar=yes,toolbar=yes,location=yes,scrollbars=yes,resizable=yes,status=yes,width=1000,height=750');    });    
 
$('a#biznesAdder').click(function(){     $(this).next('ul').slideToggle("fast");        return false;    });    
$('#buttonDemo').click(function(){       $('#formDemo').submit();        return false;    });    
$('#buttonDemoB').click(function(){       $('#formDemo').submit();        return false;    });    
$("a[rel^='prettyPhoto']").prettyPhoto({        animationSpeed: 'normal', /* fast/slow/normal */        padding: 40, /* padding for each side of the picture */        opacity: 0.35, /* Value betwee 0 and 1 */        showTitle: true, /* true/false */        allowresize: true, /* true/false */        counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */        theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square */        callback: function(){}    });    removeBlur();})
