function Home() {
  location.href="http://" + document.location.hostname + "/index.php";
}

function FreeTrial() {
  location.href="https://" + document.location.hostname + "/webconferencing/zeropanel.php?quick=signup";
}

function SiteMap() {
  location.href="http://" + document.location.hostname + "/webconferencing/zeropanel.php?quick=sitemap";
}

function LiveDemo() {
  location.href="http://" + document.location.hostname + "/webconferencing/onepanel.php?quick=livedemo";
}

function AboutUs() {
  location.href="http://" + document.location.hostname + "/webconferencing/threepanel.php?quick=aboutus";
}

function Pricing() {
  location.href="http://" + document.location.hostname + "/webconferencing/threepanel.php?quick=pricing";
}

function Features() {
  location.href="http://" + document.location.hostname + "/webconferencing/onepanel.php?quick=features";
}

function Support() {
  location.href="http://" + document.location.hostname + "/webconferencing/twopanel.php?quick=support";
}

function ContactUs() {
  location.href="http://" + document.location.hostname + "/webconferencing/threepanel.php?quick=contactus";
}

function WriteFlashBanner(file,color,title,picture,sound,message) {
  if( do_dw_var ) {
    document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="../webconferencepro/swflash.cab#version=6,0,0,0" width="766" height="157">');
    document.writeln('<param name="movie" value="flash/'+file+'"><param name="quality" value="high"><param name="flashvars" value="picture='+picture+'&title='+title+'&music='+sound+'&message='+message+'">');
    document.writeln('<embed flashvars="picture='+picture+'&title='+title+'&music='+sound+'&message='+message+'" src="flash/'+file+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="766" height="157">');
    document.writeln('</embed></object>');
  } else {
    document.writeln('<div style="width:766px; height:157px; position:relative;">');
    document.writeln('<table border=0 cellspacing=0 cellpadding=0 width=766 height=157><tr height=157>');
    document.writeln('<td width=10><img src="images/banner/'+color+'left.jpg" border=0 width=10 height=157 alt=""></td>');
    document.writeln('<td width=178><img src="images/banner/logo.jpg" border=0 width=178 height=157 alt="WebConference.com"></td>');
    document.writeln('<td width=499><img src="images/banner/'+color+'main.jpg" border=0 width=499 height=157 alt="About Us"></td>');
    document.writeln('<td width=69><table border=0 cellspacing=0 cellpadding=0 width=69 height=157>');
    document.writeln('  <tr height=23><td width=69><img src="images/banner/buttontop.jpg" border=0 width=69 height=23 alt=""></td></tr>');
    document.writeln('  <tr height=42><td width=69><img src="images/banner/buttonhome.jpg" border=0 width=69 height=42 alt="Home" onclick="Home();" onmouseover="this.style.cursor=\'hand\';"></td></tr>');
    document.writeln('  <tr height=42><td width=69><img src="images/banner/buttonfreetrial.jpg" border=0 width=69 height=42 alt="Free Trial" onclick="FreeTrial();" onmouseover="this.style.cursor=\'hand\';"></td></tr>');
    document.writeln('  <tr height=42><td width=69><img src="images/banner/buttonlivedemo.jpg" border=0 width=69 height=42 alt="Live Demo" onclick="LiveDemo();" onmouseover="this.style.cursor=\'hand\';"></td></tr>');
    document.writeln('  <tr height=8><td width=69><img src="images/banner/buttonbottom.jpg" border=0 width=69 height=8 alt=""></td></tr></table></td>');
    document.writeln('<td width=10><img src="images/banner/'+color+'right.jpg" border=0 width=10 height=157 alt=""></td></tr></table>');
    document.writeln('<div style="position:absolute; text-align:right; font:18px Tahoma; font-weight:bold; color:#C5C5C5; top:28px; right:195px; z-index:2;">'+title+'</div>');
    document.writeln('<div style="position:absolute; text-align:right; font:18px Tahoma; font-weight:bold; color:white; top:66px; right:105px; z-index:2;">'+message.replace('\n','<br>')+'</div>');
    document.writeln('<div style="position:absolute; text-align:right; font:12px Tahoma; font-weight:bold; color:white; top:130px; right:105px; z-index:2;">1-800-545-8623</div>');
    document.writeln('</div>');
  }
}

function WriteFlashMenu() {
  if( do_dw_var ) {
    document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="../webconferencepro/swflash.cab#version=6,0,0,0" width="559" height="36">');
    document.writeln('<param name="movie" value="flash/menu.swf"><param name="quality" value="high">');
    document.writeln('<embed src="flash/menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="559" height="36">');
    document.writeln('</embed></object>');
  } else {
    document.writeln('<table border=0 cellspacing=0 cellpadding=0 width=559 height=36>');
    document.writeln('<tr height=7><td colspan=7><img src="images/elements/greenstripe7.jpg" border=0 width=559 height=7 alt=""></td></tr>');
    document.writeln('<tr height=29>');
    document.writeln('  <td width=6><img src="images/elements/menuleft.jpg" border=0 width=6 height=29 alt=""></td>');
    document.writeln('  <td width=91><img src="images/elements/menuaboutus.jpg" border=0 width=91 height=29 alt="About Us" onclick="AboutUs();" onmouseover="this.style.cursor=\'hand\';"></td>');
    document.writeln('  <td width=91><img src="images/elements/menufeatures.jpg" border=0 width=91 height=29 alt="Features" onclick="Features();" onmouseover="this.style.cursor=\'hand\';"></td>');
    document.writeln('  <td width=91><img src="images/elements/menupricing.jpg" border=0 width=91 height=29 alt="Pricing" onclick="Pricing();" onmouseover="this.style.cursor=\'hand\';"></td>');
    document.writeln('  <td width=91><img src="images/elements/menusupport.jpg" border=0 width=91 height=29 alt="Support" onclick="Support();" onmouseover="this.style.cursor=\'hand\';"></td>');
    document.writeln('  <td width=91><img src="images/elements/menucontactus.jpg" border=0 width=91 height=29 alt="Contact Us" onclick="ContactUs();" onmouseover="this.style.cursor=\'hand\';"></td>');
    document.writeln('  <td width=98><img src="images/elements/menuright.jpg" border=0 width=98 height=29 alt=""></td>');
    document.writeln('</tr></table></embed></object>');
  }
}