var jQ=false;function initJQ(){if(typeof(jQuery)=='undefined'){if(!jQ){jQ=true;document.write('<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></scr'+'ipt>')}setTimeout('initJQ()',50)}else{(function($){$(function(){bdsoft_history_record(location.hash);setInterval("bdsoft_history_ajax ();",100);if($('#bsonnik-foter').html()=='<a href="http://sonnik20.com">Ñîííèê îò sonnik20.com</a>'){var sonnikcharset="windows-1251"}else if($('#bsonnik-foter').html()=='<a href="http://sonnik20.com">Ð¡Ð¾Ð½Ð½Ð¸Ðº Ð¾Ñ‚ sonnik20.com</a>'){var sonnikcharset="UTF-8"}else if($('#bsonnik-foter').html()=='<A href="http://sonnik20.com">Ñîííèê îò sonnik20.com</A>'){var sonnikcharset="windows-1251"}else if($('#bsonnik-foter').html()=='<A href="http://sonnik20.com">Ð¡Ð¾Ð½Ð½Ð¸Ðº Ð¾Ñ‚ sonnik20.com</A>'){var sonnikcharset="UTF-8"}else{var errormsg='Please, reinstall sonnik code from http://sonnik20.com';$('#bsonnik').text(errormsg);alert(errormsg);mega_error()}if(sonnikcharset=='UTF-8'){var command=location.hash.split("#")[1];if(command!==undefined){$('#bsonnik-foter').append('<script type="text/javascript" src="http://sonnik20.com/index.php/sonnikjs/'+command+'"></script>')}$('.sonnikapiurl').live('click',function(){var url=$(this).attr('href');var command=url.split("#")[1];$('#bsonnik-foter').append('<script type="text/javascript" src="http://sonnik20.com/index.php/sonnikjs/'+command+'"></script>');bdsoft_history_record(url)})}else{var command=location.hash.split("#")[1];if(command!==undefined){$('#bsonnik-foter').append('<script type="text/javascript" src="http://sonnik20.com/index.php/sonnikjs_win1251/'+command+'"></script>')}$('.sonnikapiurl').live('click',function(){var url=$(this).attr('href');var command=url.split("#")[1];$('#bsonnik-foter').append('<script type="text/javascript" src="http://sonnik20.com/index.php/sonnikjs_win1251/'+command+'"></script>');bdsoft_history_record(url)})}})})(jQuery)}}initJQ();var lastpage='';var thisurl='';function bdsoft_history_ajax(){thisurl=location.hash;if(lastpage!=''&&thisurl!=lastpage){location.reload(true);lastpage=location.hash}}function bdsoft_history_record(url){lastpage=url}
