container = $('#drop-panel-container'),
contents = $(container).html();
if (isIE8) {
$(container).replaceWith(f+contents+b)
}
}
function dropPanelSetUp(data) {
/* buttons should be a dataobject of strings representing IDs
the hide and show functions are expecting IDs so passing a class will result in a
failure.
click as the action is assumed for now
the data object should look like this:
{ masterlistener:(string[dom id]),
panel:(string[dom id]),
eventgroup1:{ button:(string[dom id]),
content:(string[dom id]),
offset:{x:(int),y:(int)},
on_state_class: ''(string)
},
eventgroup2:{ button:(string[dom id]),
content:(string[dom id]),
offset:{x:(int),y:(int)},
on_state_class: ''(string)
} ... etc
}
The drop panel nodes should be placed so they share the same offset parent as the buttons that activate it.
NOTE: IE8 Got-chya: the ID for the panel is hard coded into the IE8 rouned corners code.
If you have changed the ID for the drop panel and are having trouble with IE8
change the ID in the template string in this function: ie8DropPanel()
*/
var speed = 300,
panel = $('#'+data.panel),
buttons = [];
for (var i=1,eg; eg=data[('eventgroup'+i)]; i++) {
var bp = $('#'+eg.button).position(), //button position
ph = $('#'+eg.button).height(), //button height
panelPos = [bp.top+ph, bp.left, eg.offset];
on_state_class = eg.on_state_class;
buttons.push([$('#'+eg.button),$('#'+eg.content),panelPos,eg.button,on_state_class]);
}
$('#'+data.masterlistener).bind('click',{speed:speed,panel:panel,buttons:buttons},function(event){
var org = event.target,
speed = event.data.speed,
panel = event.data.panel,
buttons = event.data.buttons,
panel_open = isPanelOpen(panel);
for (var i=buttons.length-1, b; b=buttons[i]; i--) {
/*
* b[0] = button DOM object
* b[1] = content DOM object
* b[2] = the display co-ord object:
* [0] = top (int)
* [1] = left (int)
* [2] = offset object
* {x,y}(int,int)
* b[3] = button ID (string)
* b[4] = button 'on' class
*/
var button_id = b[3],
same_content = isSameContent(panel,b[1]);
if ( $(org).attr('id') === button_id || $(org).parents('#'+button_id).attr('id')){
if(!same_content) {
hideAllContent(buttons);
movePanel(panel,b[2]);
if (panel_open) {
showContent(b[1],b[0],b[4]);
} else {
showContent(b[1],b[0],b[4]);
showPanel(panel,speed);
}
} else {
hidePanel(panel,speed,b[4]);
}
}
}
function isPanelOpen(panel) {
return ($(panel).css('display').toLowerCase() === 'block');
}
function isSameContent (panel,content) {
return ($(content, panel).css('display').toLowerCase() === 'block');
}
function movePanel(panel,b) {
// b[0] top, b[1] left, b[2] {x,y}
$(panel).css({
'top': (b[0] + b[2].x)
});
$(panel).css({
'left': (b[1] + b[2].y)
});
}
function showPanel(panel,speed) {
$(panel).slideDown(speed);
}
function hidePanel(panel,speed) {
$(panel).slideUp(speed, function() {hideAllContent(buttons);});
}
function showContent(content, button, btn_class) {
$(content).show();
$(button).addClass(btn_class);
}
function hideContent(content) {
$(content).hide();
}
function hideAllContent(buttons) {
for (var i = buttons.length-1, b; b=buttons[i]; i--) {
$(b[1]).hide();
$(b[0]).removeClass(b[4]);
}
}
})
}
return {
ieRoundedCorners:ieRoundedCorners,
ie8DropPanel:ie8DropPanel,
dropPanelSetUp:dropPanelSetUp
}
})();
var headerNavication = (function($,cw) {
var nav_item_list = $('.cw-header .main-nav ul.main > li'),
channel_id_list = '',
channel,
sub_channel;
var findChannel = function () {
var winloc = isIE ? document.URL.split('/') : document.documentURI.split('/') ,
channel_id = winloc[3],
sub_chanel_id = winloc.length > 5 ? '/'+winloc[4]+'/' : '',
reg_sub_find_id = new RegExp(sub_chanel_id,'ig'),
reg_removed_id = /^nav-/i;
for (var i=nav_item_list.length-1,n; n=nav_item_list[i]; i--) {
if ( channel_id === $(n).children('a').attr('id').replace(reg_removed_id,'') ) {
var list = $(n).children('ul').children('li');
if (sub_chanel_id.length > 0) {
for (var j=list.length-1,l; l=list[j]; j--) {
if (reg_sub_find_id.test($(l).children('a').attr('href'))) {
break;
} else {
l = false;
}
}
}
break;
}
}
findChannel = function () {
return [n,l];
}
return [n,l];
}
var init = (function() {
channel = findChannel()[0] || nav_item_list[0];
sub_channel = findChannel()[1];
if (sub_channel) {
highlightSubChannel();
}
clearNav();
if(isIE) {
cw.ieRoundedCorners();
if(isIE8) {
cw.ie8DropPanel();
}
}
if ($('#handle-header').attr('id')) {
cw.dropPanelSetUp({
masterlistener: 'handle-header',
panel: ('drop-panel-container'),
eventgroup1: {
button: 'btn-newspapers',
content: 'panel-newspapers',
offset: {
x: 5,
y: 0
},
on_state_class: 'newspapers-dropdown-on'
},
eventgroup2: {
button: 'btn-networks',
content: 'panel-networks',
offset: {
x: 5,
y: 0
},
on_state_class: 'networks-dropdown-on'
}
});
}
//need to check state of search radio buttons since firefox doesn't reset to the default checked radio button
if($('.cw-header #radio-btn-yp:checked').attr('id') != null){
$('.cw-header #header-search-form').attr('action','http://canadacom.yellowpages.ca/search/');
$('.cw-header #header-search-string').attr('name','what');
$('.cw-header #radio-btn-yp').siblings('label').removeClass('selected');
$('.cw-header #radio-btn-yp').next().addClass('selected');
}
eventSetUp();
}())
function highlightSubChannel() {
if((document.location+"").indexOf("/sports/football/cfl/") > -1) $(".mainnav-item .cfl").addClass('sub-nav-highlight');
else if((document.location+"").indexOf("/sports/football/grey-cup-2011/") > -1) $(".mainnav-item .cfl").addClass('sub-nav-highlight');
else if((document.location+"").indexOf("/sports/football/nfl/") > -1) $(".mainnav-item .nfl").addClass('sub-nav-highlight');
else $(sub_channel).addClass('sub-nav-highlight');
}
function clearNav() {
clearTabs();
$(channel).children('ul').show();
$(channel).css('background-position', 'bottom right');
}
function eventSetUp() {
$('.cw-header .main-nav ').bind('mouseleave', function(event){
if (isIE) {
if ($(event.relatedTarget).parents('.main-nav').length 0)?"" + value.substring(0,pos) + "" + value.substring(pos, term.length) + "" + value.substring(pos + term.length) + "":value.substring(0, term.length) + "" + value.substring(pos + term.length) + ""; }, scroll: false, selectFirst: false }); });
?
?
?
?
?
Wikipedia Commons image shows models of woolly mammoth (left) and mastodon facing each other. These "megafauna" species are among those that vanished following a "mini-Ice Age" about 13,000 years ago that has been controversially linked to a theory that a massive meteorite struck somewhere around the ice-covered Hudson Bay and triggered global climate cooling, a wave of mega-mammal extinctions and the disruption of early human settlement in the Americas.
A controversial theory that a massive meteorite struck Canada about 13,000 years ago ? then wreaked havoc on global climate, Ice Age mega-mammals and early human occupants of North America ? has taken yet another scientific hit, perhaps dooming the impact hypothesis to the same fate as the woolly mammoths whose extinction it purportedly helped explain.
At a time when the world is witnessing the startling effects of a fireball that slammed into Russia on Friday ? the same day a giant asteroid was to make an unusually close pass to Earth ? the new study by a 16-member team of researchers from the U.S., Britain and Belgium concludes that there?s no reliable evidence of a catastrophic extraterrestrial impact in or around Ice Age Canada, despite several other high-profile studies in recent years suggesting a glacier-covered Hudson Bay was once slammed by a colossal space rock or streams of cometary debris.
In a monograph published by the American Geophysical Union, the research team argues that the odds of a four-kilometre-wide comet exploding across the Laurentide Ice Sheet that covered ancient Canada ? one of the scenarios suggested by proponents of the impact theory ? ?are infinitesimal? given the lack of clear evidence, such as layers of so-called ?shocked? rocks and minerals transformed by an Earth-shaking mega-blast.
?No impact craters of the appropriate size and age are known, and no unambiguously shocked material or other features diagnostic of impact have been found? to prove the theory, the authors insist. ?The climatological, paleontological, and archeological events that the (proponents) are attempting to explain are not unique, are arguably misinterpreted? and ?do not require an impact.?
?There?s no plausible mechanism to get airbursts over an entire continent,? the study?s lead author, Sandia National Laboratories physicist Mark Boslough, added in a summary of the research. ?For this and other reasons, we conclude that the impact hypothesis is, unfortunately, bogus.?
Similar studies casting doubt on the impact theory have been published in recent years. In 2010, a team of U.S. and British researchers led by U.S. physicist Tyrone Daulton ? who?s also a co-author of the new Boslough-led study ? sparked a debate by declaring the impact theory invalid.
That study took particular aim at several supposed discoveries of ?nanodiamonds? at sites around North America that had been hailed by advocates of the impact theory as proof that a cosmic blast sent showers of super-heated, shocked rock particles across the continent 13,000 years ago.
?The usefulness of cubic nanodiamonds as impact markers in sediments remains unclear because processes other than impact might account for them,? the 2010 study stated.
But one of the scientists whose findings were challenged by the Daulton-led research ? University of Oregon geologist Douglas Kennett ? said at the time that critics were using ?fundamentally flawed science? to undermine the impact hypothesis.
?The claim we misidentified diamonds is false, misleading and incorrect,? Kennett told the science publication Nature at the time.
The controversy involves a thin rock layer seen around the world today that represents the boundary of the Younger Dryas ? a well-documented, 1,000-year period Earth history that?s characterized by a sudden plunge in global temperatures beginning about 13,000 years ago.
The Younger Dryas cold spell roughly coincides with the arrival of humans in North America and with the precipitous decline and eventual disappearance of populations of mammoths, mastodons, sabre-tooth tigers, Ice Age horses and other creatures that once roamed the continent.
Some scientists have attributed the Younger Dyras deep-freeze and the subsequent string of megafauna extinctions to climate change caused by a massive melt-water outburst into the Atlantic or Arctic oceans ? somewhere near present-day Hudson Bay ? as Ice Age glaciers retreated north.
And about seven years ago, studies began proposing the idea that a comet or asteroid might have struck a glacial ice dam near Hudson Bay, causing an initial catastrophe for North American ecosystems and then kick-starting long-term, global climate changes that wiped out the mammoths and their contemporaries.
In 2009, a Kennett-led team of researchers unearthed a layer of microscopic diamonds that they described as ?smoking-gun? proof that a massive comet had triggered the Younger Dryas, killed off the mammoths and threatened the fragile foothold of North America?s earliest human inhabitants, the Clovis people.
Kennett had previously published a study in the journal Science that identified traces of a different kind of microdiamond, along with other signs of a 13,000-year-old cosmic impact, at six sites in North America, including Lake Hind, Man., and Chobot, Alta.
But those studies and others suggesting an extraterrestrial trigger for the changes 13,000 years ago ? including the apparent disappearance of the Clovis culture ? have repeatedly come under attack from rival researchers.
?Just because a culture changed from Clovis to Folsom spear points didn?t mean their civilization collapsed,? Boslough stated in an overview of the newly published monograph. ?They probably just used another technology. It?s like saying the phonograph culture collapsed and was replaced by the iPod culture.?
rboswell@gmail.com
twitter.com/randyboswell
? Copyright (c) Postmedia News
?
?
?
?
?
?
?
?
Story Tools
?
?
Font:
?
Image:
?
?
?
?
?
?
?
?
?
?
?
?
?
More News Stories
?
Violence against women
?
?
?
Also on Driving.ca
?
?
?
?
?
'); document.write('?
'); var i; // Display each ad in turn for(i = 0; i '); document.write(''); document.write('Source: http://feeds.canada.com/~r/canwest/F56/~3/vGZO5sJMf7Y/story.html
aj jenkins shea mcclellin nfl draft 2012 whitney mercilus 2012 nfl draft picks andrew luck andrew luck
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.