// <![CDATA[
// Begin Ad Muncher helper script
// Do not remove without removing all references to this in the below page (eg: everything containing "XzW" or "Xzb")
// Retrieved from: 72.14.219.191:80
function XzWn(){return false;};function XzWbHelp(a,b){XzWZgp(a);XzWZbn();return;};function XzWb(a,b,c,d){XzWZgp(a);XzWZbn();return XzWZfw(b);};function XzWZpp(a){XzWZppa=a;if(a)XzWZorgsti("XzWZppa=0;",500);};function XzWbtePopup(a,b,c,d,e,f){XzWZgp();XzWZbn();return XzWZfw();};function XzWbModalDialog(a,b,c){XzWZgp(a);XzWZbn();return XzWZfw();};function XzWZj(m,u,l){if(XzWZolp){XzWZqn=XzWZqnbu;XzWZolp=0;};return true;};function XzWbModelessDialog(a,b,c){XzWZgp(a);XzWZbn();return XzWZfw();};function XzWZpl(a,b,c){while(a.indexOf(b)!=-1)a=a.replace(b,c);return a;};function XzWZtry(a,z){if(XzWZtryk())eval("try{"+a+"}catch(e){};");else eval(a);};function XzWc(){XzWZqn=XzWZqnbu=10;XzWZorgsti("XzWZqn=XzWZqnbu=0;",500);return;};function XzWZ__amscript_addonload(a){XzWZ_ams_onload[XzWZ_ams_onload_i++]=(typeof(a)=="function")?a:new Function(a);};function XzWZ__amscript_addonunload(a){XzWZ_ams_onunload[XzWZ_ams_onunload_i++]=(typeof(a)=="function")?a:new Function(a);};function XzWZfcs(z){XzWZfcsr=0;if(z){XzWZfcsrz=z;XzWZtry("XzWZfcsr=XzWZfcsd();");};return XzWZfcsr;};function XzWZfc(a,z){for(var i=0;i<a.length;i++)if(a[i].name==z||XzWZfc(a[i].frames,z))return 1;return 0;};function Xzb(z){if(typeof(z.location)!="undefined"||typeof(z.blur)=="undefined")return false;return z.blur();};function XzWf(z){if(typeof(z.location)!="undefined"||typeof(z.focus)=="undefined")return false;return z.focus();};function XzWZHelp(a,b){if(XzWZck(a))return;if(XzWZqn)XzWZqn-=1;if(b)return showHelp(a,b);else return showHelp(a);};function XzWTimeout(a,b){if(((!XzWZqn&&!XzWZa)||XzWZppa||XzWZul)&&typeof(a)=="string")return XzWZorgsti("XzWZpp(1);"+a+";XzWZpp(0);",b);return XzWZorgsti(a,b);};function XzWInterval(a,b){if(((!XzWZqn&&!XzWZa)||XzWZppa||XzWZul)&&typeof(a)=="string")return XzWZorgsin("XzWZpp(1);"+a+";XzWZpp(0);",b);return XzWZorgsin(a,b);};function XzWZbn(){if(XzWZd&&XzWZm){if(XzWZb){XzWZc="s";XzWZb+=", "+XzWZm;}else{XzWZc="";XzWZb=XzWZm;};XzWZi="Popup"+XzWZc+" on page blocked by Ad Muncher: "+XzWZb;XzWZu();};};function XzWZox(){var x;for(var i=0;i<XzWZ_ams_onunload.length;i++){if(typeof(XzWZ_ams_onunload[i])=="function")XzWZ_ams_onunload[i]();};if(typeof(XzWZffad)!="undefined"&&!XzWZffadd){if(XzWZkou)XzWZul=1;XzWZffadd=1;if(typeof(XzWZffad)=="function")x=XzWZffad();else eval(XzWZffad);XzWZul=0;};return x;};function XzWZModalDialog(a,b,c){if(XzWZck(a,b))return XzWZfw();if(XzWZqn)XzWZqn-=1;if(c)return showModalDialog(a,b,c);else if(b)return showModalDialog(a,b);else return showModalDialog(a);};function XzWZs(a){if((typeof(a.target)!="undefined"&&typeof(a.action)!="undefined"&&a.target&&XzWZnw(a.target)&&XzWZck(a.action))||typeof(a.submit)=="undefined")return false;return a.submit();};function XzWZt(a){if((XzWZqn||XzWZa)&&!XzWZppa&&!XzWZul){if(XzWZqn)XzWZqn-=1;return alert(a);};if(a&&XzWZd){XzWZi="Alert message blocked by Ad Muncher: "+XzWZpl(a,"\n"," ");XzWZu();};return false;};function XzWZModelessDialog(a,b,c){if(XzWZck(a,b))return XzWZfw();if(XzWZqn)XzWZqn-=1;if(c)return showModelessDialog(a,b,c);else if(b)return showModelessDialog(a,b);else return showModelessDialog(a);};function XzWZsp(a,z){if(a.split)return a.split(z);var j,c,s,n,b,e;j=b=0;c=on.length;s=new Array();a+=z;n=a.length;while(b<n){e=z?a.indexOf(z,b):b+1;s[j++]=a.substring(b,e);b=e+c;};return s.length=j,s;};function XzWZu(a){XzWZi=XzWZpl(XzWZpl(XzWZi.substring(0,1024),'"',"<~am~`"),"<~am~`",'\\"');XzWZir='defaultStatus="'+XzWZi+'";';if(!XzWZss){XzWZss=1;XzWZorgsin("eval(XzWZir);",3000);};XzWZorgsti("eval(XzWZir);",1000);};function XzWZe(){XzWZa=0;XzWZqnbu=XzWZqn;XzWZqn=0;XzWZolp=1;XzWZorgsti("XzWZa=1;",1000);if(!XzWZffd){XzWZffd=1;for(var i=0;i<XzWZ_ams_onload.length;i++){if(typeof(XzWZ_ams_onload[i])=="function")XzWZ_ams_onload[i]();};if(typeof(XzWZff)!="undefined"){if(typeof(XzWZff)=="function")XzWZff();else eval(XzWZff);};};XzWZqn=XzWZqnbu;XzWZolp=0;XzWZx();};function XzWZnw(a){XzWZagt=navigator.userAgent.toLowerCase();if(a!="_self"&&a!="_top"&&a!="_main"&&a!="_parent"&&!XzWZfcs(a)&&((XzWZagt.indexOf("msie")==-1||XzWZagt.indexOf("opera")!=-1)||(a!="_search"&&a!="_media")))return 1;return 0;};function XzWZobx(){var x;if(typeof(XzWZffreunload)!="undefined"&&!XzWZffreunloadd){if(XzWZkou)XzWZul=1;XzWZffreunloadd=1;if(typeof(XzWZffreunload)=="function")x=XzWZffreunload();else eval(XzWZffreunload);XzWZffreunloadd=0;XzWZul=0;};return x;};function XzWZtryk(){var b=navigator.userAgent.toLowerCase();var c=parseInt(navigator.appVersion);if((b.indexOf("mozilla")!=-1&&b.indexOf("compatible")== -1&&c>=5)||(b.indexOf("opera")!=-1&&c>=6)||(b.indexOf("msie")!=-1&&c>=4))return 1;return 0;};function XzWZfcsd(){var v=self;if(XzWZfc(v.frames,XzWZfcsrz)||(typeof(v.name)!="undefined"&&v.name==XzWZfcsrz))return 1;while(v!=v.parent){v=v.parent;if(XzWZfc(v.frames,XzWZfcsrz)||(typeof(v.name)!="undefined"&&v.name==XzWZfcsrz))return 1;};return 0;};function XzWZtePopup(a,b,c,d,e,f){if(XzWZck())return XzWZfw();if(XzWZqn)XzWZqn-=1;if(f)return createPopup(a,b,c,d,e,f);else if(e)return createPopup(a,b,c,d,e);else if(d)return createPopup(a,b,c,d);else if(c)return createPopup(a,b,c);else if(b)return createPopup(a,b);else return createPopup(a);};function XzWZmc(){if(typeof(document.layers)!="undefined")document.captureEvents(Event.KeyDown|Event.MouseUp|Event.Blur|Event.KeyPress|Event.Move|Event.Click|Event.KeyUp|Event.Reset|Event.Change|Event.Load|Event.Resize|Event.DblClick|Event.MouseDown|Event.Select|Event.DragDrop|Event.MouseMove|Event.Submit|Event.Error|Event.MouseOut|Event.Unload|Event.Focus|Event.MouseOver);document.onmousedown=XzWZr;return 0;};function XzWZck(a,b){if(!XzWZul&&!XzWZppa&&(XzWZro||XzWZqn||XzWZa||(b&&!XzWZnw(b)))){return 0;};XzWZgp(a);var l,s,c;for(var i=0;i<XzWZpmx.length;i++){l=0;s=XzWZsp(XzWZpmx[i],"*");for(var z=0;z<s.length;z++){c=XzWZn.indexOf(s[z],l);if(c==-1){l=0;break;};l=c;};if(l)return 0;};XzWZbn();if(XzWZrp){XzWZrpi5=XzWZrpi4;XzWZrpi4=XzWZrpi3;XzWZrpi3=XzWZrpi2;XzWZrpi2=XzWZrpi1;XzWZrpi1=new Image();var XzWZzn;XzWZtry("XzWZzn=document.referrer");XzWZrpi1.src="http://www.admuncher.com/cgi-bin/pr.pl?p="+escape(XzWZm)+"&s="+escape(document.location.href)+"&r="+escape(XzWZzn)+"&v=4.71.28140&l=1725";};return 1;};function XzWZr(e){if((e&&e.which==1)||(typeof(window.event)!="undefined"&&window.event.button==1)){XzWZqn=XzWZqnbu=10;XzWZorgsti("XzWZqn=XzWZqnbu=0;",500);if(typeof(document.XzWZusedown)!="undefined"){if(typeof(document.XzWZusedown)=="function")return document.XzWZusedown(e);else return eval(document.XzWZusedown);};};if(typeof(document.XzWZusedown)!="undefined"){if(e||typeof(window.event)!="undefined"){if(typeof(document.XzWZusedown)=="function"){XzWZpp(0);var XzWZtn=document.XzWZusedown(e);XzWZpp(1);return XzWZtn;}else return eval("XzWZpp(1);"+document.XzWZusedown+";XzWZpp(0);");};if(typeof(document.XzWZusedown)=="function")return document.XzWZusedown(e);else return eval(document.XzWZusedown);};return true;};function XzWZx(){XzWZtry('if(typeof(window.onload)=="undefined")window.onload=XzWZe;else{XzWZq=""+window.onload;if(!window.onload||!XzWZq||XzWZq.indexOf("XzWZe")!=-1)window.onload=XzWZe;};if(typeof(window.onunload)=="undefined")window.onunload=XzWZox;else{XzWZq=""+window.onunload;if(!window.onunload||!XzWZq||XzWZq.indexOf("XzWZox")!=-1)window.onunload=XzWZox;};if(typeof(window.onbeforeunload)=="undefined")window.onbeforeunload=XzWZobx;else{XzWZq=""+window.onbeforeunload;if(!window.onbeforeunload||!XzWZq||XzWZq.indexOf("XzWZobx")!=-1)window.onbeforeunload=XzWZobx;};if(typeof(window.onmousedown)=="undefined")XzWZmc();else{XzWZq=""+document.onmousedown;if(!window.onmousedown||!XzWZq||XzWZq.indexOf("XzWZr")!=-1){XzWZmc();};};');};function XzWZgp(a){if(a){var XzWZckjs=/[A-Za-z]+:/;if(a.search(XzWZckjs)!=-1){if(a.substring(0,5).toLowerCase()!="http:"){XzWZm="(No URL)";XzWZn=a.toLowerCase()+" "+document.URL.toLowerCase();return;};};XzWZp="/admuncherpopcheck&"+Math.random()+"&"+document.URL;XzWZmi3=XzWZmi2;XzWZmi2=XzWZmi1;XzWZmi1=new Image();XzWZn=a;XzWZnn=XzWZn.indexOf("#");if(XzWZnn!=-1)XzWZn=XzWZn.substring(0,XzWZnn);XzWZmi1.src=XzWZn+XzWZp;XzWZnn=XzWZmi1.src.indexOf(XzWZp);if(XzWZnn!=-1)XzWZm=XzWZmi1.src.substring(0,XzWZnn);XzWZn=XzWZm.toLowerCase()+" "+document.URL.toLowerCase();}else{XzWZm="(No URL)";XzWZn=document.URL.toLowerCase();XzWZp="/admuncherpopchecknourl&"+Math.random();XzWZmi3=XzWZmi2;XzWZmi2=XzWZmi1;XzWZmi1=new Image();XzWZmi1.src=document.URL+XzWZp;};};function XzWZ(a,b,c,d){if(XzWZck(a,b))return XzWZfw(b);if(XzWZqn)XzWZqn-=1;if(!a)a="";if(typeof(c)=="string"){c=XzWZpl(c.toLowerCase()," ","");if(XzWZw){c=XzWZpl(c,"height=","xxx=");c=XzWZpl(c,"width=","xxx=");c=XzWZpl(c,"top=","xxx=");c=XzWZpl(c,"left=","xxx=");c=XzWZpl(c,"screenx=","xxx=");c=XzWZpl(c,"screeny=","xxx=");};if(XzWZy){c=XzWZpl(c,"location=","xxx=");c=XzWZpl(c,"toolbar=","xxx=");c=XzWZpl(c,"menubar=","xxx=");c=XzWZpl(c,"resizable=","xxx=");c=XzWZpl(c,"scrollbars=","xxx=");c=XzWZpl(c,"status=","xxx=");c=XzWZpl(c,"titlebar=","xxx=");c=XzWZpl(c,"fullscreen=","xxx=");c=XzWZpl(c,"directories=","xxx=");};};if(XzWZy){if(typeof(c)=="string")c+=",";else c="";c+="location,toolbar,menubar,resizable,scrollbars,status,titlebar,directories";};if(d)return XzWZorgo(a,b,c,d);else if(c)return XzWZorgo(a,b,c);else if(b)return XzWZorgo(a,b);else return XzWZorgo(a);};function XzWZso(c,a){if(typeof(a)=="string"&&a.substring(0,11)=="javascript:"){a=a.substring(11,a.length);};if(typeof(XzWZsod[c])=="undefined"||!XzWZsod[c]){XzWZsod[c]=1;var x=new Array('quot22','amp26','lt3C','gt3E','nbspA0','iexclA1','centA2','poundA3','yenA5','brvbarA6','sectA7','umlA8','copyA9','ordfAA','laquoAB','notAC','shyAD','regAE','macrAF','degB0','plusmnB1','sup2B2','sup3B3','acuteB4','microB5','paraB6','middotB7','cedilB8','sup1B9','ordmBA','raquoBB','frac14BC','frac12BD','frac34BE','iquestBF','AgraveC0','AacuteC1','AcircC2','AtildeC3','AumlC4','AringC5','AEligC6','CcedilC7','EgraveC8','EacuteC9','EcircCA','EumlCB','IgraveCC','IacuteCD','IcircCE','IumlCF','ETHD0','NtildeD1','OgraveD2','OacuteD3','OcircD4','OtildeD5','OumlD6','timesD7','OslashD8','UgraveD9','UacuteDA','UcircDB','UumlDC','YacuteDD','THORNDE','szligDF','agraveE0','aacuteE1','acircE2','atildeE3','aumlE4','aringE5','aeligE6','ccedilE7','egraveE8','eacuteE9','ecircEA','eumlEB','igraveEC','iacuteED','icircEE','iumlEF','ethF0','ntildeF1','ograveF2','oacuteF3','ocircF4','otildeF5','oumlF6','divideF7','oslashF8','ugraveF9','uacuteFA','ucircFB','uumlFC','yacuteFD','thornFE','yumlFF');var l,m;for(var i=0;i<x.length;i++){if (typeof(x[i])=="string"){l=x[i].length;m="&"+x[i].substring(0,(l-2))+";";a=XzWZpl(a,m,unescape("%"+x[i].substring((l-2),l)));};};if(c==1)XzWZff=new Function(a);if(c==2)XzWZffad=new Function(a);if(c==3)XzWZffreunload=new Function(a);};};function XzWZfw(b){var r=new Object();for(i in window)r[i]=window[i];var v=new Array("scrollBy","getSelection","scrollByLines","scrollByPages","sizeToContent","dump","setTimeout","setInterval","clearTimeout","clearInterval","setResizable","captureEvents","releaseEvents","routeEvent","enableExternalCapture","disableExternalCapture","prompt","open","openDialog","find","alert","confirm","focus","blur","back","forward","home","stop","print","moveTo","moveBy","resizeTo","resizeBy","scroll","close","show","updateCommands","escape","unescape","atob","btoa","addEventListener","removeEventListener","dispatchEvent","getComputedStyle");for(var i=0;i<v.length;i++)r[v[i]]=XzWn;v=new Array("captureEvents","close","open","releaseEvents","clear","writeln","getElementById","getElementsByName","elementFromPoint","createEvent","getSelection","write","createElement","createElementNS","createDocumentFragment","createTextNode","createComment","createAttribute","getElementsByTagName","importNode","attachEvent","detachEvent","hasAttributes","addEventListener","removeEventListener","dispatchEvent","contains","insertBefore","replaceChild","removeChild","appendChild","hasChildNodes","isSupported","normalize","cloneNode");r.document=new Object();for(var i=0;i<v.length;i++)r.document[v[i]]=XzWn;r.document.body=new Object();r.document.body.style=new Object();r.name=b;r.amwin="a";r.location=new Object(XzWZm);r.location.href=XzWZm;r.location.hash=window.location.hash;r.location.host=window.location.host;r.location.hostname=window.location.hostname;r.location.pathname=window.location.pathname;r.location.port=window.location.port;r.location.protocol=window.location.protocol;r.location.search=window.location.search;XzWZclct+=1;eval("XzWZpc["+XzWZclct+"]=r;XzWZorgsti(\"XzWZpc["+XzWZclct+"].closed=true;\",1500);");return r;};if(typeof(self.XzWZinited)=="undefined"){var XzWZinited=1;var XzWZa,XzWZb,XzWZc,XzWZd,XzWZi,XzWZir,XzWZk,XzWZm,XzWZmi1,XzWZmi2,XzWZmi3,XzWZn,XzWZnn,XzWZp,XzWZq,XzWZss,XzWZv,XzWZw,XzWZy,XzWZro,XzWZolp,XzWZqn,XzWZqnbu,XzWZplt,XzWZagt,XzWZtz,XzWZti,XzWZsa,XzWZeb,XzWZrp,XzWZrpi1,XzWZrpi2,XzWZrpi3,XzWZrpi4,XzWZrpi5,XzWZppa,XzWZffd,XzWZorgo,XzWZorgsin,XzWZorgsti,XzWZul,XzWZkou,XzWZffreunloadd,XzWZffadd,XzWZfcsr,XzWZfcsrz;var XzWZ_ams_onload_i=0;var XzWZ_ams_onload=new Array();var XzWZ_ams_onunload_i=0;var XzWZ_ams_onunload=new Array();var XzWZsod=new Array();for(var XzWZvin="";XzWZvin!="aaaaaaaaaaaaaaaaaaaa";XzWZvin+="a")eval("var AdMch"+XzWZvin+";");var XzWZclct=0;var XzWZpc=new Array();XzWZk=1;XzWZd=1;XzWZw=0;XzWZy=0;XzWZro=0;XzWZi="";XzWZtz=0;XzWZti=0;XzWZrp=0;XzWZkou=1;var XzWZpmx=new Array('.gov/funzone/','/apps/mediaplayer/','/home/loaded.php?room=','/online/popup.html?','/playradionow.jsp?','/portalcookiecheck.aspx?site=','/private.php?','/privmsg.php?','/public/logon.do','/radio/launchradio.','/reviews_viewer.php?object=','/site/olspage.jsp?id=','/spurl.php?v=','/video/partners/','/vspot/player.','/watch_fullscreen?','isapi.dll?picture','launch.yahoo.*/play/','music.yahoo.','skinbase.org/files/','webmessenger.msn.com');XzWZorgo=open;XzWZorgsti=setTimeout;XzWZorgsin=setInterval;XzWZx();if(XzWZk)XzWZtry("window.onerror=XzWZj;");var XzWZz;XzWZtry("XzWZz=document.referrer");if(!XzWZz){if(XzWZti){if(XzWZtz)XzWZz=location.protocol+"//"+location.host+"/";else XzWZz="http://www.admuncher.com/";};}else if(XzWZz.substring(0,7)=="http://"){XzWZsa=XzWZz;XzWZsa=XzWZsa.substring(7,1024);if(XzWZsa.indexOf("/")!=-1)XzWZsa=XzWZsa.substring(0,XzWZsa.indexOf("/"));if(XzWZsa!=location.host){if(XzWZtz)XzWZz=location.protocol+"//"+location.host+"/";else XzWZz="http://www.admuncher.com/";};};};
// End Ad Muncher helper script
// ]]>


// Commonly-used functions, reduced.

function d(s) {return document.getElementById(s);}
function dE(o,s) {return o.getElementsByTagName(s);}

/**
 * toggleDisplay()
 *
 * Will toggle the display property of the style object for any
 * DOM element or object that supports style as a property.
 *
 * Warning: This'll wreak havoc if applied to <TR> elements. Those
 * babies got different types "table-row" | "block" dependant on 
 * what browser's being used.
 *
 * Warning: Written in Texas.  Yeehaw.
 *
 * Typical usage:
 * toggleDisplay(document.getElementById("foo"));
 */
function toggleDisplay(o)
{  
  var display = getStyle(o, "display"); 
  
  if (o.style)
    o.style.display =
      (display != "none") ? "none" : getDisplayStyleByTagName(o);
}


function getDisplayStyleByTagName(o)
{
  n = o.nodeName.toLowerCase(); 
  return (
          n == "span"
          || n == "img"
          || n == "a"
          ) ? "inline" : "block";
}


/**
 * hideElement()
 *
 * Hides an element from view.
 *
 * Typical usage:
 * hideElement(getElement("the-id-of-the-element"));
 */
function hideElement(o)
{
  if (o && o.style) o.style.display = "none";
}



/**
 * showElement()
 *
 * Shows an element that was hidden from view.
 *
 * Typical usage:
 * showElement(getElement("the-id-of-the-element"));
 */
function showElement(o)
{
  
  if (o && o.style) o.style.display = getDisplayStyleByTagName(o);
}


/**
 * getElement()
 *
 * Returns an element by its ID or shows an alert if it can't be found.
 *
 * Typical usage:
 * getElement("the-id-of-the-element");
 */
function getElement(id) {
  var e = d(id);
  if (!e) {
    alert("Cannot get element: " + id);
  }
  return e;
}

/**
 * setInnerHTML()
 *
 * Sets the innerHTML of an element or shows an alert if can't be set.
 *
 * Typical usage:
 * setInnerHTML("the-id-of-the-element");
 */
function setInnerHTML(id, html) {
  try {
    getElement(id).innerHTML = html;
  } catch (ex) {
    alert("Cannot set inner HTML: " + id);
  }
}


/**
 * setCssStyle()
 *
 * Sets the style of an element by its id or shows an alert if can't be set.
 *
 * Typical usage:
 * setCssStyle("the-id-of-the-element", "display", "block");
 */
function setCssStyle(id, name, value) {
  try {
    getElement(id).style[name] = value;
  } catch (ex) {
    alert("Cannot set style: " + id);
  }
}


/**
 * getStyle()
 *
 * Gets the computed style of any object.
 *
 * WARNING: Produces unexpected results in Safari.  To achieve best 
 * results, explicitly set the style property for that browser when the 
 * element is rendered.
 *
 * Typical usage:
 * getStyle(object, "display");
 */
function getStyle(el, style) {
  if (!document.getElementById || !el) return;
  
  if (document.defaultView
      && document.defaultView.getComputedStyle) {
      return document.defaultView.
        getComputedStyle(el, "").getPropertyValue(style);
  }  
  else if (el.currentStyle) {
    return el.currentStyle[style];
  }  
  else { 
    return el.style.display;
  }
}

/**
 * getStyleAttribute()
 *
 * Returns the style attribute of the specified node.
 */
function getStyleAttribute(node) {
  if (Detect.IE()) {
    return node.getAttribute('style').value;
  }else {
    return node.getAttribute('style');
  }
}


/*
 * showProps()
 *
 * Displays all the properties for a given element
 */
function showProps(o) {
	s=""; for (p in o) {
		s+=p+": "+o[p]+"\n<br />";
	}
	document.write(s);
}



function setIFrameEvent(iframe, eventName, func)
{
  if (document.all) {
    eval('getIFrameDocument(iframe).on' + eventName + ' = func;');
  } else {
    iframe.contentWindow.addEventListener(eventName, func, true);
  }
}

function setIFrameBody(iframe, strStyle, innerHtml) 
{
  if (!innerHtml) innerHtml = '';
  if (innerHtml == '' && Detect.IE()) {
    innerHtml = '<div></div>';
  }
  var doc = getIFrameDocument(iframe);
  doc.open();
  doc.write('<head></head><body style="' + strStyle + '">'
    + innerHtml + '</body>');
  doc.close();
}


function getIFrameDocument(iframe)
{
  if (Detect.IE()) {
    return iframe.document;
  } else {
    return iframe.contentDocument;
  }
}

function getIFrame(strId)
{
  if (Detect.IE()) {
    return document.frames[strId];
  } else {
    return document.getElementById(strId);
  }
}


function createElementandAppend(nodeName, strId, appendTo) {
  var el = document.createElement(nodeName);
  el.setAttribute("id", strId);
  if (appendTo) {
    appendTo.appendChild(el); 
  } else {
    document.body.appendChild(el); 
  }
  return el; 
}

function createElementandInsertBefore(nodeName, strId, appendTo, sibling) {
  var el = document.createElement(nodeName);
  el.setAttribute("id", strId);
  if (appendTo) {
    appendTo.insertBefore(el, sibling); 
  } else {
    document.body.insertBefore(el, sibling); 
  }
  return el; 
}


/**
* getXY()
 *
 * Returns the position of any element as an object.
 *
 * Typical usage:
 * var pos = getXY(object);
 * alert(pos.x + " " +pos.y);
 */
function getXY(el) {
  var x = el.offsetLeft;
  var y = el.offsetTop;
  if (el.offsetParent != null) {
    var pos = getXY(el.offsetParent);
    x += pos.x;
    y += pos.y;
  }
  return {x: x, y: y}
}

// The following 3 functions are taken from common.js
function hasClass(el, cl) {
  if (el == null || el.className == null) return false;
  var classes = el.className.split(" ");
  for (var i = 0; i < classes.length; i++) {
    if (classes[i] == cl) {
      return true;
    }
  }
  return false;
}

// Add a class to element
function addClass(el, cl) {
  if (hasClass(el, cl)) return;
  el.className += " " + cl;
} 

// Remove a class from an element
function removeClass(el, cl) {
  if (el.className == null) return;
  var classes = el.className.split(" ");
  var result = [];
  var changed = false;
  for (var i = 0; i < classes.length; i++) {
    if (classes[i] != cl) {
      if (classes[i]) { result.push(classes[i]); }
    } else {
      changed = true;
    } 
  } 
  if (changed) { el.className = result.join(" "); }
} 

function toggleClass(el, cl) {
  if (hasClass(el, cl)) {
    removeClass(el, cl);
  } else {
    addClass(el, cl);
  }
}


/* Constants for node types, since IE doesn't support Node.TEXT_NODE */
var TEXT_NODE = 3;
var ELEMENT_NODE = 1;


                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
