$(document).ready(function(){
	
    $('a[href^=http]:not("[href^=' + document.domain + ']")').click(function() {
        if (this.getAttribute('rel') == "window") {
            window.open(this.href);
            return false;
        }
    });

});
