(function (){
var cs = CrowdScience;
cs.state = 1; // cs.states.ping_loading;
cs.invitation_beforeShow = function() {};
cs.invitation_afterShow = function() {};
cs.imageUrls = [];
cs.params = (function () {
var self = {
style:"std",
injection_type:1,
injection_arg:null,
injection_arg_type:null,
cssText:'z-index:150000; position:fixed; right:50px; overflow:hidden; bottom:0px; visibility:hidden;',
invitation_content:'
| | |
| ITWire is conducting research to better understand and meet the needs of the users of their site. Would you like to participate? Yes, I\'ll help or No thanks Responses are anonymous, view our privacy policy. | |
',
offer_url: cs.p_srv + '/offer/?plan=20779&site=8299&req=20168&vguid=732f1903e5359bb3&guid=93e8bc3c00caa5768a08fd63000a118a&url=http://www.itwire.com/science-news/space/18261-galaxies-could-be-twice-as-bright-if-not-for-a-lot-of-dust',
guid:"93e8bc3c00caa5768a08fd63000a118a",
vguid:"732f1903e5359bb3",
match_script:true,
selectcheck_only:0,
reveal_delay:1000
};
self.target = (cs.is_secure?'https://app.crowdscience.com':'http://app.crowdscience.com') + '/redirect/?plan=20779&guid=93e8bc3c00caa5768a08fd63000a118a&vguid=732f1903e5359bb3&sc=eNotjUEKhDAMRe+SdSk/iWnS3kYKMrNS1GEW4t3tws3nwYP3L5r7To2LZedJwt6VREdfhshItP1f+H2+50FNzMI5u2qNqOahifq5UkMGFK6OIhYTqrByonU8yAg4TBgFHAir9wM0xRy9&m=0&&style=' + self.style;
return self;
})();
CrowdScience.imageUrls = [
'http://static.crowdscience.com/invlogo/dir02/logo_2_4050251d563a253da086dcf8743518fc.JPEG',
'http://static.crowdscience.com/inv/tl.png',
'http://static.crowdscience.com/inv/tr.png',
'http://static.crowdscience.com/inv/b.png'
];
CrowdScience.updateToastPosition = function()
{
// only for browsers/modes without fixed position support
CrowdScience.invitation.style.top = CrowdScience._getPageHeight() + CrowdScience._getPageTopOffset() - CrowdScience.invitation.offsetHeight + 'px';
};
CrowdScience.bounce = function() {
CrowdScience.invitation.velocity += 0.1;
CrowdScience.invitation.step += CrowdScience.invitation.velocity;
if (CrowdScience.invitation.step >= 1.0)
{
CrowdScience.invitation.step = 1.0;
if (Math.abs(CrowdScience.invitation.velocity) < 0.05)
{
clearInterval(CrowdScience.bounceInterval);
}
else
{
CrowdScience.invitation.velocity = CrowdScience.invitation.velocity * -0.7;
}
}
CrowdScience.invitation.style.height = CrowdScience.originalHeight + parseInt(-50 + 50 * CrowdScience.invitation.step) + 'px';
};
CrowdScience.invitation_afterShow = function()
{
if (CrowdScience.ie6) CrowdScience.invitation.style.position = 'absolute';
// later versions of Chrome don't allow for the image height!
// so manually set a min-height
var logo = document.getElementById('crowdscience_invitation_logo');
if (logo && CrowdScience.preloaded_images.length) logo.style.cssText = "min-height:" + CrowdScience.preloaded_images[0].height + "px;";
CrowdScience.originalHeight = parseInt(CrowdScience.invitation.offsetHeight);
CrowdScience.invitation.style.height = '0px';
// the border is added at runtime to keep IE happy
var inner = document.getElementById('crowdscience_invitation_inner');
inner.style.border = '1px solid #666';
inner.style.borderBottom = 'none';
CrowdScience.invitation.style.visibility = 'visible';
CrowdScience.invitation.step = 0;
CrowdScience.invitation.velocity = 0;
if (CrowdScience.ie6) CrowdScience.updateInterval = setInterval(CrowdScience.updateToastPosition, 10);
CrowdScience.bounceInterval = window.setInterval(CrowdScience.bounce, 50);
if (CrowdScience.auto_hide_timeout) window.clearTimeout(CrowdScience.auto_hide_timeout);
CrowdScience.auto_hide_timeout = window.setTimeout(CrowdScience.hide, 20000);
};
CrowdScience.onOffer = function(url)
{
var i = document.createElement('img');
i.style.width = i.style.height = 0;
i.style.display = 'none';
i.src = url;
CrowdScience.invitation.appendChild(i);
};
cs.load(cs.c_srv + '/ps.js');
cs.state = 2; //cs.states.ping_loaded;
})();
document.cookie = '__cst=70b59654e94b9343;path=/';
document.cookie = '__csv=732f1903e5359bb3|0;path=/;expires=' + new Date(new Date().getTime() + 7776000000).toGMTString();
if ('d5bd75ba236a4146'!='1') {
document.cookie = '__csnv=d5bd75ba236a4146;path=/;expires=' + new Date(new Date().getTime() + 172800000).toGMTString();
document.cookie = '__ctl=732f1903e5359bb31;path=/;expires=' + new Date(new Date().getTime() + 1800000).toGMTString();
}
else
document.cookie = '__ctl=732f1903e5359bb31;path=/;expires=' + new Date(new Date().getTime() + 1800000).toGMTString();
if (typeof(CrowdScience.post_ping)=='function') CrowdScience.post_ping();