function initNewChat(id)
{
     var jsonpScript = document.createElement('script');
     jsonpScript.src ='http://aiboot.com/stats/add.php?id='+id+'&url='+document.location.href;

     document.body.appendChild(jsonpScript);
}

function addShow(id,uid)
{
     var jsonpScript2 = document.createElement('script');
     jsonpScript2.src ='http://aiboot.com/stats/addShow.php?id='+id+'&uid='+uid+'&url='+document.location.href;

     document.body.appendChild(jsonpScript2);
}
	

var allHTMLTags = new Array();

function hideElementByClass(theClass) 
{
	
	var allHTMLTags=document.getElementsByTagName('*');


	for (i=0; i<allHTMLTags.length; i++) {
		if (allHTMLTags[i].className==theClass) {
			allHTMLTags[i].style.display='none';
		}
	}
}


$(function run_slider(){
 
        //facebook widget
 
        $(".slider_aiboot").hover(function(){
 
            $(this).stop(true, false).animate({right:"0"},"medium");
 
        },function(){
 
            $(this).stop(true, false).animate({right:"-205"},"medium");
 
        },500);
 
        return false;
 
    });
    
function run_slider_by_id(slider,distance)    
{
	
    	if(slider == "slider_sopro_lazienka") addShow("ab_sopro_lazienka_mars",0);
    	if(slider == "slider_sopro_balkon") addShow("ab_sopro_balkon_mars",0); 
    	if(slider == "slider_sopro_taras") addShow("ab_sopro_taras_mars",0); 
        //facebook widget

        
        var name = document.getElementById(slider);
        
        $(name).hover(function(){
 
            $(this).stop(true, false).animate({right:"0"},"medium");
 
        },function(){
 
            $(this).stop(true, false).animate({right:+distance},"medium");
 
        },500);
 
        return false; 
   
}        


