var j = jQuery.noConflict();
j(document).ready(function($) {

	j("#menu ul").lavaLamp({
		fx: "backout",
		speed: 700
    });

		//*************
		j(".lnk").each(function(){
			$(this).replaceWith("<a href='" + $(this).attr("title") + "' title='" + $(this).text() + "'>" + $(this).text() + "</a>");
		});
	
	//*************
	j.getScript("http://yandex.st/share/share.js", function(){
			var YaShareInstance = new Ya.share({
				'element': 'ya_share1',
				'elementStyle': {
					'type': 'button',
							'text': ' ',
					'linkIcon': true,
					'border': false,
					'quickServices': ['vkontakte', 'odnoklassniki', 'moimir', 'lj', 'twitter', 'yaru', 'facebook']
				},
				'popupStyle': {
					'copyPasteField': true
				}
			 });
			YaShareInstance.updateShareLink('http://api.yandex.ru', 'API');		
		});
		
	//*************
	j.getScript("http://cdn.connect.mail.ru/js/loader.js", function(){});	
	
	
	//*************
	if ( !$.browser.msie ) {
	j.getScript("http://userapi.com/js/api/openapi.js?33", function(){
			VK.init({apiId: 2414026, onlyWidgets: true});
			VK.Widgets.Like("vk_like", {type: "button"});
			if(j("div").is("#vk_comments")){
				VK.Widgets.Comments("vk_comments", {limit: 10, width: "460", attach:"graffiti,photo", norealtime: 1});
			}
		});
	}

});
