$(document).ready( function() {
	$(".null").append("<div id='vk_api_transport'></div>");
	VK.init({ apiId: VK_APP_ID, nameTransportPath: '/inc/auth/vk/xd_receiver.html' } );
	$("#loginVK").live('click', function() { VK.Auth.login(function(response) { if (response.session) { 
		rePath = '/?';
		if ( $("input[name='rePath']").length ) { rePath = $("input[name='rePath']").attr("value"); }
		window.location = rePath;
		} } );
		return false;
	} );
} );
