
/**
	Function to set the HTML of a named element
*/
function setElementHtml(name, html) {
	//alert(html) ;
	_elem = document.getElementById(name);
	_elem.innerHTML = html ;
}

/** 
Script to show an image before the stream comes in.
This can also be used to show a flash movie for instance.	
setImage() ;
*/
var delay = 12000 ;
var astr_CamHtml = new Array(2) ;
astr_CamHtml[0] = "<APPLET ARCHIVE='LiveApplet.zip' CODEBASE='http://surfgurumobilecam.dyndns.org:81/-wvdoc-01-/LiveApplet/' CODE='LiveApplet.class' WIDTH='430' HEIGHT='350'>" +
	"<PARAM NAME='url'		VALUE='http://surfgurumobilecam.dyndns.org:81/'>" +
	"<PARAM NAME='cabbase'		VALUE='LiveApplet.cab'>" +
	"<PARAM NAME='show_logo'		VALUE='off'>" +
	"<PARAM NAME='connect_msg'	VALUE='Filthy McNastys Pubbery'>" +
	"<PARAM NAME='capture_size'	VALUE='320x240'>" +
	"<PARAM NAME='video_width'	VALUE='320'>" +
	"<PARAM NAME='bg_color'		VALUE='#3399cc'>"+
	"<PARAM NAME='show_panobutton'		VALUE='off'>" +
	"</APPLET>";

document.write("<div align='center' id='cam_div'>");

 /////////// Start of Code
// Begin -  Site: Surf Guru Zone: CamIntro -->
var browName = navigator.appName;
var browDateTime = (new Date()).getTime();
var browVersion = parseInt(navigator.appVersion);
var ua=navigator.userAgent.toLowerCase();
var adcode='';

if (browName=='Netscape'){
     if (browVersion>=5) { 
	document.write("<iframe src='http://www.surfguru.com/banmanpro/a.aspx?ZoneID=7&amp;Task=Get&amp;Browser=NETSCAPE6&amp;SiteID=1&amp;X=" + browDateTime + "' width=430 height=350 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No></iframe>"); 
	}
     else if ((browVersion>=4)&&(ua.indexOf("mac")==-1))
          { document.write("<script src='http://www.surfguru.com/banmanpro/a.aspx?ZoneID=7&amp;Task=Get&amp;Browser=NETSCAPE4&amp;SiteID=1'>");
          document.write("</script>");
          document.write(adcode); }
     else if (browVersion>=3)
          { document.write("<a href='http://www.surfguru.com/banmanpro/a.aspx?ZoneID=7&amp;Task=Click&amp;Mode=HTML&amp;SiteID=1&amp;PageID=" + browDateTime + "&RandomNumber=" + browDateTime + "' target='_blank'><img src='http://www.surfguru.com/banmanpro/a.aspx?ZoneID=7&amp;Task=Get&amp;Mode=HTML&amp;SiteID=1&PageID=" + browDateTime + "&RandomNumber=" + browDateTime + "' width='430' height='350' border='0' alt=''></a>"); } }
else
     { document.write("<iframe src='http://www.surfguru.com/banmanpro/a.aspx?ZoneID=7&amp;Task=Get&amp;SiteID=1&amp;X=" + browDateTime + "' width=430 height=350 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No></iframe>"); }
	document.write("<noscript><a href='http://www.surfguru.com/banmanpro/a.aspx?ZoneID=7&amp;Task=Click&amp;Mode=HTML&amp;SiteID=1&amp;PageID=90596' target='_blank'>") ;
    document.write("<img src='http://www.surfguru.com/banmanpro/a.aspx?ZoneID=7&amp;Task=Get&amp;Mode=HTML&amp;SiteID=1&amp;PageID=90596' width=430 height=350 border='0'  alt=''></a></noscript>") ;
// End -  Site: Surf Guru Zone: CamIntro -->
document.write("</div>") ;
setTimeout("setElementHtml('cam_div',astr_CamHtml[0])", 12000) ;
