var scripts = document.getElementsByTagName('SCRIPT');
var theHTML2 = '
The last comments for
The only zebra in the Gaza Strip...
Well this indicates how bad the situation is IN Gaza strip!
These pics made me freeze for a while,...
Jump to
The last comments for
Shocking pictures: Environmental pollution
The last comments for
The only zebra in the Gaza Strip...
';
for(var i=0; i0)
{
if(scripts[i].defer)
{
if (window.addEventListener)
{
window.addEventListener("load", initIDWidget2, false);
}
else if (window.attachEvent)
{
window.attachEvent('onload', initIDWidget2);
}
}
else
{
document.write(''+theHTML2+'
');
}
break;
}
}
if(!IDWUserWidget)
{
function userWidgetObj()
{
this.times=Array();
return this;
}
var IDWUserWidget = userWidgetObj();
IDWUserWidget.IDWUserWidgetUpdateTimeStamps = function()
{
var spans=document.getElementsByTagName("span");
var d = new Date();
var now=d.getTime();
for(var i=0; i0)
{
this.times[id] = time;
var diff=now-time;
this.replaceHTML(spans[i], "» " + this.TimeToStr(diff) + " ago", 0);
}
if(spans[i].innerHTML.indexOf("second")<0 && spans[i].innerHTML.indexOf("minute")<0)
spans[i].className = "";
else
spans[i].className = "IDWCommentTimeRead";
}
else if(spans[i].className == "IDWCommentTimeRead")
{
var id=parseInt(spans[i].id.substr(7));
var time=this.times[id];
var diff=now-time;
replaceHTML(spans[i], "» " + this.TimeToStr(diff) + " ago", 0);
if(spans[i].innerHTML.indexOf("second")<0 && spans[i].innerHTML.indexOf("minute")<0)
spans[i].className = "";
}
}
setTimeout("IDWUserWidget.IDWUserWidgetUpdateTimeStamps()", 1000);
};
IDWUserWidget.replaceHTML = function(obj, html, type)
{
var parent = obj.parentNode;
document.body.appendChild(obj);
obj.innerHTML = html;
if(type==0)
parent.appendChild(obj);
else
parent.insertBefore(obj, parent.firstChild);
};
IDWUserWidget.TimeToStr = function(time)
{
var weeksConv = 60*60*24*7*1000;
var daysConv = 60*60*24*1000;
var hoursConv = 60*60*1000;
var minutesConv = 60*1000;
var secondsConv = 1000;
var weeks = Math.floor(time/weeksConv);
var days = Math.floor(time/daysConv);
var hours = Math.floor(time/hoursConv);
var minutes = Math.floor(time/minutesConv);
var seconds = Math.floor(time/secondsConv);
if(weeks>1)
return weeks.toString() + " weeks";
else if(weeks==1)
return weeks.toString() + " week";
else if(days>1)
return days.toString() + " days";
else if(days==1)
return days.toString() + " day";
else if(hours>1)
return hours.toString() + " hours";
else if(hours==1)
return hours.toString() + " hour";
else if(minutes>1)
return minutes.toString() + " minutes";
else if(minutes==1)
return minutes.toString() + " minute";
else
return "less than 1 minute";
};
IDWUserWidget.IDWUserWidgetUpdateTimeStamps();
}
function initIDWidget2()
{
var IDWidgetCSSLoaded42 = document.createElement('link');
IDWidgetCSSLoaded42.rel = 'stylesheet';
IDWidgetCSSLoaded42.href = 'http://www.intensedebate.com/wCSS.php?widget=1';
IDWidgetCSSLoaded42.type = 'text/css';
document.getElementsByTagName("HEAD")[0].appendChild(IDWidgetCSSLoaded42);
theDiv = document.createElement("DIV");
theDiv.className = "idw-container";
theDiv.id = "IDWidget2";
var scripts = document.getElementsByTagName("script");
var parentObj;
var theObj;
for(var i=0; i0)
{
parentObj = scripts[i].parentNode;
theObj = scripts[i];
break;
}
}
theDiv.innerHTML = theHTML2;
if(parentObj)
parentObj.insertBefore(theDiv,theObj);
};if(typeof(IDCounted)=="undefined")
{
var IDCounted;
if (window.addEventListener)
{
window.addEventListener("load", IDcountIT, false);
}
else if (window.attachEvent)
{
window.attachEvent('onload', IDcountIT);
}
}
function IDcountIT() {}