// JavaScript Document

//flash object embed code- since IE/Active X is now retarded, time to move it to an external file to get rid of the active marquee
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {  // if we've detected an acceptable version
    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="900" height="600"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="flash.swf" /><param name="quality" value="best" /><param name="scale" value="exactfit" /><param name="bgcolor" value="#ffffff" />'
    + '<embed src="flash.swf" quality="best" scale="exactfit" bgcolor="#ffffff" '
    + 'width="900" height="600" name="flash" align="middle"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';
    document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = '<p align = "center"><img src="images/reactor.gif" alt="Reactor-88" width="125" height="125"></p>'
  	+ '<p align = "center"><span class="headline">::::&nbsp;&nbsp;&nbsp;&nbsp;REACTOR-88&nbsp;&nbsp;&nbsp;&nbsp;::::</span><br>'
	+ '<span class="bodycopyitalic">3D/Design/Illustration/Motion/Web/Interactivity/Toys</span></p>'
   	+ '<p align = "center" class="bodycopy">Entry to the reactor requires Flash Player 8. Trust me, it is worth it. '
	+ '<a class=link href="http://www.macromedia.com/go/getflash/" target="blank">Get Flash 8 Here</a>.<br>'
	+ 'If you are really against Flash 8 for some reason and do not want to download it, then<br>how about '
	+ '<a class=link href="http://www.lapr.org" target="blank">helping a pug in need</a>? Now that is definitely '
	+ 'worth it.</p>';
    document.write(alternateContent);  // insert non-flash content
  }

// functions to pop window for plain pics (old)
function newWindowLand(picWinLand) {
	  bigpicWindowLand = window.open('', 'picWinLand', 'height=375,width=500,scrollbars=no,status=yes,resizeable=no')
	  bigpicWindowLand.document.write("<html><head><title>//  Reactor-88  //</title><body bgcolor=#FFFFFF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><center><img src="+picWinLand+" height=600 width=800 border=0></html>")
	  bigpicWindowLand.document.close()
	  bigpicWindowLand.focus()
  }
	  
function newWindowPort(picWinPort) {
	bigpicWindowPort = window.open('', 'picWinPort', 'height=500,width=375,scrollbars=no,status=yes,resizeable=no')
	bigpicWindowPort.document.write("<html><head><title>//  Reactor-88  //</title><body bgcolor=#FFFFFF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><center><img src="+picWinPort+" height=800 width=600 border=0></html>")
	bigpicWindowPort.document.close()
	bigpicWindowPort.focus()
}

function newWindowSquare1(picWinSq1) {
	bigpicWindowSquare1 = window.open('', 'picWinSq1', 'height=80,width=80,scrollbars=no,status=yes,resizeable=no')
	bigpicWindowSquare1.document.write("<html><head><title>//  Reactor-88  //</title><body bgcolor=#FFFFFF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><center><img src="+picWinSq1+" height=80 width=80 border=0></html>")
	bigpicWindowSquare1.document.close()
	bigpicWindowSquare1.focus()
}

// plain vanilla window open functions (Dreamweaver)
function MM_openBrWindow(theURL) { //v2.0
  window.open(theURL,'banners','width=960,height=700');
}

function MM_openHmkWindow(theURL) { //v2.0
  window.open(theURL,'hmk','width=850,height=600');
}

function MM_openJamesWindow(theURL) { //v2.0
  window.open(theURL,'james','width=1100,height=600');
}