var cookieQueryString = '';
document.write(' ');
setTimeout("if (document.getElementById('lijit_wijit_pvs_link')) document.getElementById('lijit_wijit_pvs_link').style.display = 'none'", 1);
document.write('
Close | | |
|
Looking for more about [term]? ');
if(typeof Lijit=="undefined"){var Lijit=new Object();}
Lijit.qs = "";
if (document.referrer) {
var queryPrefix = "?q=";
var startPos = document.referrer.toLowerCase().indexOf(queryPrefix);
if ((startPos < 0) || (startPos + queryPrefix.length == document.referrer.length)) {
queryPrefix = "&q=";
startPos = document.referrer.toLowerCase().indexOf(queryPrefix);
}
if (!((startPos < 0) || (startPos + queryPrefix.length == document.referrer.length))) {
var endPos = document.referrer.indexOf("&", startPos + 1);
if (endPos < 0) {
endPos = document.referrer.length;
}
Lijit.qs = document.referrer.substring(startPos + queryPrefix.length, endPos);
if(Lijit.qs.indexOf('/') >= 0)
Lijit.qs = '';
// fix the space characters
Lijit.qs = Lijit.qs.replace(/%20/gi, " ");
Lijit.qs = Lijit.qs.replace(/%2d/gi, "-");
Lijit.qs = Lijit.qs.replace(/%2b/gi, "+");
Lijit.qs = Lijit.qs.replace(/%27/gi, "'");
Lijit.qs = Lijit.qs.replace(/\+/gi, " ");
Lijit.qs = Lijit.qs.replace(/%22/gi, "\"");
Lijit.qs = Lijit.qs.replace(/site%3A.+\b/gi, '');
}
}
function lwp_research_toggle() {
var iframe=lwp_$('lwp_ri');
var i=lwp_$('lwp_research_closer');
if(iframe.style.display=='none') {
lwp_s(iframe);
i.src='http://www.lijit.com/res/images/up_button.png';
}
else {
lwp_h(iframe);
i.src='http://www.lijit.com/res/images/down_button.png';
}
}
function lwp_$(id) {
return document.getElementById(id);
}
function lwp_h(e) {
if(e)
e.style.display = 'none';
}
function lwp_s(e) {
if(e)
e.style.display = '';
}
function lwp_check_research(e) {
var targetNode = lwp_$('lwp_rw');
if(targetNode) {
var d = document.createElement('div');
var insert = lwp_$('lwp_research');
d.appendChild(insert);
if(targetNode.firstChild) {
targetNode.insertBefore(d, targetNode.firstChild);
}
else {
targetNode.appendChild(d);
}
lwp_script('http://www.lijit.com/research/js?username=The%20Bad%20Astronomer&referer=' + encodeURIComponent(document.referrer) + '&dom_id=lwp_ri&callback=lwp_cb&view_id=TVSdugpkPB0AAEbeAfYAAAAg');
}
}
function lwp_cb(q) {
var field = lwp_$('lwp_sfd');
if(field) {
field.value = q;
field.style.backgroundImage = 'none';
}
var greetingSpan = lwp_$('lwp_research_greeting');
if(greetingSpan){
greetingSpan.innerHTML = greetingSpan.innerHTML.replace(/\[term\]/g, q);
}
lwp_s(lwp_$('lwp_research'));
}
function lwp_dosearch(term) {
var form = lwp_$('lwp_sbf');
var input = lwp_$('lwp_sfd');
input.value = term;
lwp_form_submit();
return false;
}
function lwp_2_toggleMenu() {
var l = lwp_$('lwp_2_managementlink');
var m = lwp_$('lwp_2_mm');
document.body.appendChild(m);
var pos = lwp_2_p(l);
m.style.top = pos[1] + l.offsetHeight + "px";
m.style.display = (m.style.display ? "" : "none");
m.style.left = (pos[0] + (l.offsetWidth / 2) - (m.offsetWidth / 2)) + "px";
}
function lwp_2_p(e) {
var t = 0, l = 0;
do {
t+=e.offsetTop||0;
l+=e.offsetLeft||0;
if(e.offsetParent==document.body){if (e.style.position=='absolute'){break;}};
}while(e=e.offsetParent);
return [l,t];
}
function lwp_toggleBubbles() {
if(lwp_page_loaded && typeof deconcept!="undefined") {
lwp_$('lwp_explore').innerHTML = "Explore";
lwp_ss();
var b = lwp_$('lwp_b');
document.body.appendChild(b);
lwp_s(b);
if(typeof document.body.style.maxHeight == "undefined") {
if (self.innerHeight){
b.style.height = self.innerHeight+"px";
}
else if (document.documentElement && document.documentElement.clientHeight) {
b.style.height = document.documentElement.clientHeight+"px";
}
else if (document.body) {
b.style.height = document.body.clientHeight+"px";
}
y=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;
b.style.top=y+"px";
}
var so = new SWFObject("http://www.lijit.com/res/swf/relationbrowser.swf", "lijit_network_browser", "100%", "100%", "8", "#ffffff");
so.addParam("scale", "noscale");
so.addParam("salign", "TL");
so.addParam("wmode", "transparent");
so.addParam("AllowScriptAccess", "always");
so.addParam("AllowScriptAccess", "always");
so.useExpressInstall('http://www.lijit.com/res/swf/expressinstall.swf');
so.addVariable("launchURL", "http%3A%2F%2Fwww.lijit.com%2Fapi%2Fbubbles%3Finformer_uri%3Dhttp%253A%252F%252Fwww.badastronomy.com%252F");
so.addVariable("username", "The Bad Astronomer");
so.write("lwp_b");
}
else {
lwp_$('lwp_explore').innerHTML = "Loading...";
setTimeout("lwp_toggleBubbles()", 500);
}
}
function lwp_form_submit(e){
if(e){
if(e.preventDefault){
e.preventDefault();
e.stopPropagation();
}
else{
e.returnValue = false;
e.cancelBubble = true;
}
}
var f=lwp_$('lwp_sfd');
if(f.value.replace(/^\s*/, "").replace(/\s*$/, "") == '') {
return;
}
var sf=lwp_$('lwp_sbf');
lwp_ss();
var sb=lwp_$('lwp_sb');
document.body.appendChild(sb);
lwp_s(sb);
var ds = lwp_$('lwp_ds');
document.body.appendChild(ds);
lwp_s(ds);
if(typeof document.body.style.maxHeight=="undefined"){
y=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;
ds.style.top=(26+y)+"px";
sb.style.top=(15+y)+"px";
}
sf.target='lwp_sf';
sf.submit();
}
function lwp_ss() {
var s = lwp_$('lwp_shb');
document.body.appendChild(s);
lwp_s(s);
if(typeof document.body.style.maxHeight == "undefined") {
y=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;
s.style.top=y+"px";
}
var userAgent = navigator.userAgent.toLowerCase();
if(userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) {
s.style.background= "url(http://www.lijit.com/res/images/50percent.png) repeat";
s.style.MozOpacity = 1;
s.style.opacity = 1;
s.style.filter = "";
}
}
function lwp_close() {
if(lwp_$('lwp_sbf'))
lwp_$('lwp_sbf').target='';
if(lwp_$('lwp_sf'))
lwp_$('lwp_sf').src='';
lwp_h(lwp_$('lwp_shb'));
lwp_h(lwp_$('lwp_sb'));
lwp_h(lwp_$('lwp_ds'));
lwp_h(lwp_$('lwp_b'));
}
function lwp_init() {
if(!lwp_$('lwp_sbf'))
return;
lwp_close();
var f = lwp_$('lwp_sbf');
if (f.addEventListener) {
f.addEventListener('submit', lwp_form_submit, false);
window.addEventListener('load', lwp_check_research, false);
window.addEventListener('load', lwp_loaded, false);
} else if (f.attachEvent) {
f.attachEvent('onsubmit', lwp_form_submit);
window.attachEvent('onload', lwp_check_research);
window.attachEvent('onload', lwp_loaded);
}
if(Lijit.qs) {
var g = lwp_$('lwp_research_greeting');
if(g){
g.innerHTML = g.innerHTML.replace(/\[term\]/g, Lijit.qs);
}
var t = lwp_$('lwp_rw');
if(t) {
var d = document.createElement('div');
var i = lwp_$('lwp_research');
d.appendChild(i);
if(t.firstChild) {
t.insertBefore(d, t.firstChild);
}
else {
t.appendChild(d);
}
if(i)
lwp_s(i);
}
}
lwp_script('http://www.lijit.com/res/js/swfobject.js');
}
var lwp_page_loaded = false;
function lwp_loaded(e) {
lwp_page_loaded = true;
}
function lwp_script(url) {
try {
var s = document.createElement('script');
s.src = url;
s.type = 'text/javascript';
s.defer = true;
var h = document.getElementsByTagName('head').item(0);
h.appendChild(s);
}
catch(e) {}
}
lwp_init();
document.write('