function disp(obj)
{
 if (obj.style.display == "none")
     obj.style.display = "block";
 else
     obj.style.display = "none";
}

//myghty optical illusion --- webmono article
function randomPost() {
  var script = document.createElement("script");
  script.setAttribute("type", "text/javascript");
  var theUrl = "http://www.moillusions.com/feeds/posts/summary?alt=json-in-script&callback=getTotalPostsCallback&start-index=1&max-results=1";
  script.setAttribute("src", theUrl);
  document.documentElement.firstChild.appendChild(script);
}
function getTotalPostsCallback(json) {
  var totalResults = json.feed.openSearch$totalResults.$t;
  if (totalResults > 0) {
  getRandomPostNumber(totalResults);
  }
}
function getRandomPostNumber(totalResults) {
  var randomNumber = Math.floor((Math.random() * totalResults) + 1);
  getRandomUrl(randomNumber);
}
function getRandomUrl(randomNumber) {
  var script = document.createElement("script");
  script.setAttribute("type", "text/javascript");
  var theUrl = "http://www.moillusions.com/feeds/posts/summary?alt=json-in-script&callback=getTheUrlCallback&start-index=" + randomNumber + "&max-results=1";
  script.setAttribute("src", theUrl);
  document.documentElement.firstChild.appendChild(script);
}
function getTheUrlCallback(json) {
  var theUrl = json.feed.entry[0].link[0].href;
   window.location.href = theUrl;
}

//swf
function www(swf,w,h,t) {
  var newWin = window.open('');
  if (newWin) {
    newWin.document.write("<html><head><title>" + t + "</title></head><body><embed src='" + swf + "' width='" + w + "' height='" + h +"'></embed></body></html>");
    newWin.document.close();
  }
}