logo

This gallery was launched early. It will be reinstated on its correct launch date

This gallery was launched early. It will be reinstated on its correct launch date.

', obPaidHtml = '', containerHtml = '

'+obInternalHtml+obPaidHtml+'

'; jQuery('.article #box > .share-links').after(containerHtml); // Load the widget and setup callbacks OBR.extern.reloadWidget(); if(typeof(OBR) !== 'undefined') { // OBR Object must be found in Dom OBR.extern.onOdbReturn("AR_1",function(){ var totalCountOfRecs = OBR.extern.getCountOfRecs("AR_1"); fixOBComponent("AR_1"); }); OBR.extern.onOdbReturn("AR_2",function(){ var totalCountOfRecs = OBR.extern.getCountOfRecs("AR_2"); fixOBComponent("AR_2"); }); } // Do the popup explainers - sorry this is done quite badly jQuery(document).delegate('.outbrain-container .explainer-link', 'click', function(e) { e.preventDefault(); var sponsoredText = "These are paid-for links provided by Outbrain, and may or may not be relevant to the other content on this page. To find out more information about driving traffic to your content or to place this widget on your site, visit outbrain.com. We welcome your feedback at This email address is being protected from spambots. You need JavaScript enabled to view it. or This email address is being protected from spambots. You need JavaScript enabled to view it.. You can read Outbrain's privacy and cookie policy here.", internalText = "These are links to Guardian pages suggested by Outbrain, which may or may not be relevant to the other content on this page. We welcome your feedback at This email address is being protected from spambots. You need JavaScript enabled to view it. or This email address is being protected from spambots. You need JavaScript enabled to view it.. You can read Outbrain's privacy and cookie policy here.", explainerText = jQuery(this).parent().parent().hasClass('AR_1') ? internalText : sponsoredText; var position = jQ(this).offset(), overlayNode = jQ(''); // Listen for events to close the overlay overlayNode.find('.close').click(function(e) { e.preventDefault(); overlayNode.remove(); }); if(jQ('.outbrain-explainer').is(":visible")) { jQ('.outbrain-explainer').remove(); } // Position the overlay overlayNode.css({'top': position.top+20, 'left': position.left-393}); // ....and showtime jQuery('.ob_box_cont').append(overlayNode); overlayNode.fadeIn(); // Close the overlay if there's clicks outside it jQ(document).click(function(e) { overlayNode.remove(); }); jQ('.outbrain-explainer, .outbrain-explainer *').click(function(e) { if (jQ(e.target)[0].tagName.toLowerCase() != 'a') { e.stopPropagation(); return false; } }); }); // This re-arranges the OB markup to match ours function fixOBComponent(id) { var node = jQuery('div[data-widget-id="'+id+'"]'); node.find('.ob_box_cont').addClass('component'); node.find('.ob_org_header').addClass('hd b1'); node.find('.ob_org_header div').wrap(''); node.find('.hd').prepend('What\'s this?'); var titleNode = node.find('.hd h2 div'), title = titleNode.text().replace('guardian', 'Guardian'); titleNode.text(title); } } });

Source: http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNHGMRXbAkDLMczxmWwITGikX_Ajjg&url=http://www.guardian.co.uk/info/2013/jan/07/taken-down-south-sudan-in-pictures