

function createCookie(){
	var date = new Date();//	date.setTime(date.getTime()+(1*24*60*60*1000));
	date.setTime(date.getTime()+(12*60*60*1000));
	var expires = ";expires="+date.toGMTString();
	document.cookie = 'bbgn=true'+expires;
//	document.cookie = 'bbgn0=online;expires=15/04/2008 00:00:00';//	document.cookie = 'bbgn1=visited;expires=15/04/2008 00:00:00';
}

function get_cookie ( cookie_name ){  var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );  if ( results )    return ( unescape ( results[2] ) );  else    return null;}


function RunIntro(){	if (navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)/i)) 
	{

	document.write('<img src="images/home.jpg" width="760" height="516" hspace="0" vspace="0" border="0" align="right" usemap="#menumap"> ');
	document.write('<map name="menumap">');
    document.write('  <area shape="rect" coords="0,53,121,85" href="demos.htm" alt="demos" />');
    document.write('  <area shape="rect" coords="0,89,121,121" href="bio.htm" alt="bio" />');
    document.write('  <area shape="rect" coords="0,125,121,156" href="appearances.htm" alt="appearances" />');
    document.write('  <area shape="rect" coords="0,160,121,192" href="vox.htm" alt="vox" />');
    document.write('  <area shape="rect" coords="0,193,121,220" href="clips.htm" alt="clips" />');
    document.write('  <area shape="rect" coords="0,225,121,255" href="links.htm" alt="links" />');
    document.write('  <area shape="rect" coords="0,259,121,290" href="voclass.htm" alt="voclass" />');
    document.write('  <area shape="rect" coords="0,294,121,324" href="resume.htm" alt="resume" />');
    document.write('  <area shape="rect" coords="0,328,121,361" href="faq.htm" alt="faq" />');
    document.write('  <area shape="rect" coords="0,363,121,396" target="_blank" href="http://bobbergen.com/onemanshow/index.htm" alt="one man show" />');
    document.write('  <area shape="rect" coords="0,399,121,430" href="contacts.htm" alt="contacts" />');



    document.write('  <area shape="rect" coords="126,35,249,78" href="demos-commercial.htm" alt="demo" />');
    document.write('  <area shape="rect" coords="126,78,249,128" href="demos-commercial2.htm" alt="demo" />');
     document.write('  <area shape="rect" coords="249,36,374,78" href="demos-promo.htm" alt="demo" />');
     document.write('  <area shape="rect" coords="249,78,374,128" href="demos-animation.htm" alt="demo" />');
     document.write('  <area shape="rect" coords="374,36,498,78" href="demos-narration.htm" alt="demo" />');
     document.write('  <area shape="rect" coords="374,78,498,128" href="demos-interactive.htm" alt="demo" />');
     document.write('  <area shape="rect" coords="498,36,625,78" href="demos-trailer.htm" alt="demo" />');
     document.write('  <area shape="rect" coords="498,78,625,128" href="demos-gameshow.htm" alt="demo" />');
     document.write('  <area shape="rect" coords="625,36,749,78" href="demos-imaging.htm" alt="demo" />');
     document.write('  <area shape="rect" coords="625,78,749,128" href="demos-awardshow.htm" alt="demo" />');
     
      
     
     
      
    document.write('</map>');  

    
	}
else
	{
	
	
	var x = get_cookie ( "bbgn" );
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="773" height="510" id="menu" align="middle">\n');
    document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
    document.write('<param name="movie" value="flash/intro.swf?visited=true" />\n');
    document.write('<PARAM NAME="LOOP" VALUE="false" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="bgcolor" value="#000000" />\n');
    document.write('<embed src="flash/intro.swf?visited='+ x +'" quality="high" bgcolor="#000000" width="773" height="510" name="menu" align="middle" allowScriptAccess="sameDomain" loop="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
    document.write('</object>\n');
	}
}

	
function oldRunIntro(){
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="773" height="510" id="menu" align="middle">\n');
    document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
    document.write('<param name="movie" value="flash/intro.swf?visited=true" />\n');
    document.write('<PARAM NAME="LOOP" VALUE="false" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="bgcolor" value="#000000" />\n');
    document.write('<embed src="flash/intro.swf?visited=xxx" quality="high" bgcolor="#000000" width="773" height="510" name="menu" align="middle" allowScriptAccess="sameDomain" loop="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
    document.write('</object>\n');
}

