function show_content_screen(url, window_el)
{
  var IE6 = browser_is_IE6(); // needs browser_detect.js included.
  var window_width_height = windowSize(window_el);
  
  var doc_el = window_el.document;
  var content_screen_opaque = doc_el.createElement("div");
  setOpacity(content_screen_opaque, 7);
  content_screen_opaque.style.backgroundColor = "#aacc22";
  content_screen_opaque.style.height = "100%";
  content_screen_opaque.style.width = "100%";
  content_screen_opaque.style.zIndex = "99998";
  content_screen_opaque.id = "content_screen_opaque";
  if(IE6)
  {
    scrollY = doc_el.documentElement.scrollTop;
    content_screen_opaque.style.position = "absolute";
    content_screen_opaque.style.top = scrollY + "px";
    content_screen_opaque.style.left = "0px";
    content_screen_opaque.style.height = window_width_height[1] + "px";
  }
  else
  {
    content_screen_opaque.style.position = "fixed";
    content_screen_opaque.style.top = "0px";
    content_screen_opaque.style.left = "0px";
  }
  doc_el.body.appendChild(content_screen_opaque);

  var content_screen = doc_el.createElement("div");
  if(IE6)
  {
    content_screen.style.position = "absolute";
    content_screen.style.top = scrollY + "px";
    content_screen.style.left = "0px";
    content_screen_opaque.style.height = window_width_height[1] + "px";
  }
  else
  {
    content_screen.style.position = "fixed";
    content_screen.style.top = "0px";
    content_screen.style.left = "0px";
  }
  content_screen.style.height = "100%";
  content_screen.style.width = "100%";
  content_screen.style.zIndex = "99999";
  content_screen.id = "content_screen";
  
  
  var popup_width = 300;
  
  
  var cancel = "<a style=\"cursor: pointer; BORDER: #FF0000 2px solid; PADDING: 2px; FONT-SIZE: 12px; BACKGROUND: #00aabb; MARGIN: 0px; COLOR: #ffffff; LINE-HEIGHT: 32px; TEXT-DECORATION: none\" onclick=\"document.body.removeChild(document.getElementById('" + content_screen_opaque.id + "')); document.body.removeChild(document.getElementById('" + content_screen.id + "'));\">CANCEL</a>";
  var proceed = "<a href=\""+url+"\" target=\"_blank\" style=\"BORDER: #00FF00 2px solid; PADDING: 2px; FONT-SIZE: 12px; BACKGROUND: #00aabb; MARGIN: 0px; COLOR: #ffffff; LINE-HEIGHT: 32px; TEXT-DECORATION: none\" onclick=\"document.body.removeChild(document.getElementById('" + content_screen_opaque.id + "')); document.body.removeChild(document.getElementById('" + content_screen.id + "'));\">CONTINUE TO EXTERNAL WEBSITE</a>";
  var popup_html = "<div id=\"disclaimer\" style=\"padding:10px; color:white; position:relative; margin:auto; width:"+popup_width+"px; background-color:#000000;\">";
  popup_html += "<p><span style=\"color:red; font-size:1.6em;\"><b>DISCLAIMER:</b></span> The link that you clicked on takes you to a site that is not affiliated with TysonandJulia.com and over which we have no control. This link has been supplied by someone who left a comment on our website and we are not always able to check each link for content or appropriateness.  We do not endorse the content of the website to which this link leads.</p>";
  popup_html += "<p>Press &quot;CANCEL&quot; if you do not wish to go to the external website.</p>";
  popup_html += cancel + " " + proceed; 
  popup_html += "</div>";
  content_screen.innerHTML = popup_html;
  
  doc_el.body.appendChild(content_screen);
  
  var popup_height = doc_el.getElementById("disclaimer").offsetHeight;
  var popup_top = window_width_height[1]/2 - popup_height/2;
  if(popup_top < 0) popup_top = 0;
  
  doc_el.getElementById("disclaimer").style.top = popup_top + "px";
}

function setOpacity(obj, value) {
	obj.style.opacity = value/10;
	obj.style.filter = 'alpha(opacity=' + value*10 + ')';
}

function windowSize(windowElement) {
  if(windowElement == undefined) windowElement = window;
  var myWidth = 0, myHeight = 0;
  if( typeof( windowElement.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = windowElement.innerWidth;
    myHeight = windowElement.innerHeight;
  } else if( windowElement.document.documentElement && ( windowElement.document.documentElement.clientWidth || windowElement.document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = windowElement.document.documentElement.clientWidth;
    myHeight = windowElement.document.documentElement.clientHeight;
  } else if( windowElement.document.body && ( windowElement.document.body.clientWidth || windowElement.document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = windowElement.document.body.clientWidth;
    myHeight = windowElement.document.body.clientHeight;
  }
  return [myWidth, myHeight];
}
