﻿var agt=navigator.userAgent.toLowerCase();
var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));

document.write("<!--[if gt IE 6]>");
document.write("<style>.transfade{width:100%;height:261px;background: url(\"http://www.videowired.com/com/css/app/transparent-top.png\") top left repeat-x;}</style>");
document.write("<![endif]-->");

function captureEvent() {var elem = document.getElementById("Header_sBox");if(event.keyCode==13) {if(elem.focused) {document.getElementById('Header_sbtn').click();return false;}else{return false;}}}
function FSearch() {var s = document.getElementById("Header_sBox").value; if(s != "") {return true;}else{return false;}}
function doBookmark() {var u = document.location;var t = document.title;window.open("http://www.videowired.com/tools/bookmark/?u="+escape(u)+"&t="+escape(t), "Bookmark", "scrollbars=0,location=0,menubar=0,toolbar=0,width=280,height=220,status=0");return false;}
function doHomepage() {if (window.sidebar){alert("To Set Home Page Goto:\nMenu > Tools > Options > Main\nType \"http://www.videowired.com\" in the Home Page Field.");return false;}else{return false;}}

function nover(id) {document.getElementById(id).style.display='block'};
function nout(id) {document.getElementById(id).style.display='none'};

addLoadEvent(function() {
   var elem = document.getElementById("Header_sBox")
   elem.focused = false;
   elem.hasFocus = function() {
      return this.focused;
   };
   elem.onfocus=function() {
      this.focused=true;
   };
   elem.onblur=function() {
      this.focused=false;
   }
});