
function closeWindow() {
	if (window.opener && !window.opener.closed) {
		window.close();
	}
	
	return false;
}


$(window).unload(function() {
	if(window.opener) {
		window.opener.location = window.opener.location.href;
	}
});


$(document).ready(function() {

	window.fbAsyncInit = function() {
    	FB.init({
    		appId: appId, 
    		status: true, 
    		cookie: true, 
    		xfbml: true
    	});
    	    
		FB.Canvas.setSize({ width: 520, height: 1450 });         
	};
   

	(function() {
        var e = document.createElement('script');
        e.type = 'text/javascript';
        e.src = document.location.protocol + '//connect.facebook.net/'+lang+'/all.js';
        e.async = true;
        document.getElementById('fb-root').appendChild(e);
    }());
    
    
    
    
	
	
});
