Nuclear plant supplier GE Hitachi Nuclear Energy shielding finances from the risks of an accident at a Canadian nuclear station
Share with friends
Close
Email
Please enter a valid e-mail address
Please enter a comma delimited list of valid e-mail addresses
Other ways of sharing:
Tweet this on Twitter
Share on Facebook
Add to Delicious
Submit post to Digg.com
Seed this post at Newsvine
Print or License
Close
Print this page
License this story
Recommend | 11 Times
Article
Comments (29)
$(document).ready(function(){
art.dividers = $('#article-tabs li.divider');
art.allCommentsRetrieved = false;
art.type = "news";
art.tinyFlash = ""; if (location.hash) {
$('#article-tabs li a').each(function(i) {
if (this.href.split('#')[1] == location.hash.split('#')[1]) {
art.defaultSelected = i;
art.tabContext = this.href.split('#')[1];
art.intialTabContext = art.tabContext;
}
});
if (art.intialTabContext == "video") {
$('#article-rail .boxr').each(function(i,box) {
box.id == "coAd" ? $(box).show() : $(box).hide();
});
}
} else {
if (art.type == 'picturecollection') {
art.tabContext = 'photos';
} else if (art.type == 'flash') {
art.tabContext = 'interactive';
} else if (art.type == 'videotabbed') {
art.tabContext = 'video';
} else {
art.tabContext = 'article';
}
art.defaultSelected = 0;
}
art.isInitialWideStateRequest = function(content) {
return ((content == 'photos' || (content == 'interactive' && art.tinyFlash != "true")) && (art.intialTabContext != 'undefined' && art.intialTabContext != null));
}
art.initiateWideTabRequest = function(content, height) {
height = height + 35;
var wideName = content + '-ctr';
$('#'+wideName).addClass('selected').css({paddingTop: height+'px'});
$('#article-rail').css({paddingTop: height+20+'px'});
$('#article-relations').css({paddingTop: height+'px'});
art.intialTabContext = null;
}
art.controlComments = function(content) {
// This is needed so the comments do NOT display twice on the comments tab
if(content=='comments') {
globalPluckLocation = "comments";
if (!art.allCommentsRetrieved) {
globe.pluck.getComments(1,null, globalPluckOrder);
art.allCommentsRetrieved = true;
}
$('#latest-comments').hide();
} else {
globalPluckLocation = content;
$('#latest-comments').show();
}
}
art.tabbify = function() {
var selected = $('#article-tabs li.ui-tabs-selected')[0];
$(art.dividers).removeClass("right-selected").removeClass("left-selected");
$(selected).prev().addClass("left-selected");
$(selected).next().addClass("right-selected");
}
art.growTabs = function(content) {
$('.wide-container').removeClass('selected').css({paddingTop: 0});
var contentHeight = $('#'+content).height();
var padding = contentHeight+35;
var widePdgTop = padding + 'px';
var wideName = content + '-ctr';
if (content == "interactive" && art.tinyFlash == "true") {
return;
} else {
$('#'+wideName).addClass('selected').css({paddingTop: widePdgTop});
$('#article-relations').css({paddingTop: widePdgTop});
$('#article-rail').css({paddingTop: padding+20+'px'});
}
}
art.getGalleryImages = function(collectionId) {
if (!art.galleryImages) {
art.galleryImages = new Array();
var gimg = $("#gallery-Image");
var url = "http://www.theglobeandmail.com/template/ver1-0/ajax/pictureCollectionImages.jsp";
var params = {
articleId: collectionId,
start: 0,
version: 'gm-f'
//cacheTime: '15m'
};
$.ajax({
type: 'GET',
url: url,
data: params,
dataType: 'json',
success: function(json) {
$.each(json.Images, function(i, Image) {
art.galleryImages.push(Image);
art.galleryImages[i][0] = new Image();
art.galleryImages[i][0].src = Image.src;
}); // end each
setTimeout(function() {
$('#photo-meta p.caption', gimg).text(art.galleryImages[0].caption);
$('#photo-meta p.credit em', gimg).text(art.galleryImages[0].credit);
$('#photo-count', gimg).text('1 of '+art.galleryImages.length);
$('img', gimg).attr({
src: art.galleryImages[0][0].src,
alt: art.galleryImages[0].alt,
width: art.galleryImages[0].width,
height: art.galleryImages[0].height
});
$('#galleryLoading', gimg).fadeOut(200, function() {
$(this).remove();
$(gimg).removeClass('loading').addClass('gimg-0');
$('#gallery-controls').fadeIn(1000);
$('#photo-meta',gimg).fadeIn(1000);
$('img',gimg).fadeIn(1000);
});
}, 200);
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
$('#galleryLoading')
.css({'background-Image': 'none', 'width': '60%', 'text-align': 'left'})
.html("This gallery's Images aren't loading properly. We're looking into it.Sorry for the inconvenience.");
console.log('Gallery error status: '+textStatus+ ' Error thrown: '+errorThrown);
}
});
}
}
art.showTab = function(event, ui, content, wideTab) {
var content = ui.tab.hash.split('#')[1]; // ie. photos, article, comments, interactive
art.controlComments(content);
if (art.type == "flash" && art.tinyFlash == "true") {
return;
}
var contentHeight = $('#'+content).height();
if (art.type == 'picturecollection') { contentHeight+=45; } else { contentHeight+=35; }
if ($.browser.msie
&& $.browser.version=='6.0'
&& (art.type=='picturecollection' || art.type=='flash')) {
var fixIE6 = true;
}
if (content == wideTab) {
$('.wide-container').addClass('selected');
if (fixIE6) {
$('#article-content').css({overflow: 'visible'});
} else {
$('#article-rail').css({paddingTop: contentHeight+'px'});
}
$('#article-relations .relation:first').css({borderTopColor: '#fff'});
} else {
if (fixIE6) {
$('#article-content').css({overflow: 'hidden'});
}
$('.wide-container').removeClass('selected');
$('#article-relations .relation:first').css({borderTopColor: ''});
}
if (art.type == 'picturecollection') {
art.getGalleryImages(1381240);
}
}
art.resetWideTabs = function(removePadding) {
if (removePadding) {
$('#article-content .wide-container').removeClass('selected').css({paddingTop: 0});
$('#article-content #article-relations').css({paddingTop: 0});
} else {
$('#article-content .wide-container').removeClass('selected');
}
// since the container has had it's position reset to static (rather than absolute
// when related to a news article, there's no need to remove padding on #article-relations)
$('#article-rail').css({paddingTop: 0});
}
art.registerOmniTab = function(tab) {
// omniture
if (art.tabContext == tab) { return; }
art.tabContext = tab;
var hierarchy = s.hier1.split(':');
hierarchy.pop();
hierarchy.push(tab);
var newHierarchy = '';
$.each(hierarchy, function(i,val) {
if (i!=0) {
newHierarchy