// In this section we set up the content to be placed dynamically on the page.
// Customize movie tags and alternate html content below.
var strURL = document.URL;
var urlArray = strURL.split("/");
var posLoc = urlArray.length - 2;
var thisLocale =  urlArray[posLoc];
var navigator_src = "https://www.ocad.ch/swf/navigator_" + thisLocale + "_" + sendPos + ".swf";
//alert(navigator_src);
var pos = "_n";
if (!useRedirect) {    // if dynamic embedding is turned on
  if(hasRightVersion) {  // if we've detected an acceptable version
    var oeTags = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'WIDTH="260" HEIGHT="210" id="myFlash"'
    + 'CODEBASE="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<PARAM NAME="MOVIE" VALUE=' + navigator_src + '?pos=' + sendPos + '">'
    + '<PARAM NAME="PLAY" VALUE="true">'
    + '<PARAM NAME="LOOP" VALUE="false">'
    + '<PARAM NAME="QUALITY" VALUE="high">'
    + '<PARAM NAME="MENU" VALUE="false">'
	+ '<param name="BGCOLOR" value="#99CCCC">'
    + '<EMBED SRC="https://www.ocad.ch/swf/navigator_'+ thisLocale + '_'+sendPos+'.swf"'
    + 'WIDTH="260" HEIGHT="210" '
    + 'PLAY="true"'
    + 'LOOP="false"'
    + 'QUALITY="high"'
    + 'MENU="false"'
	+ 'bgcolor="#99cccc"'
	+ 'name="myFlash"'
	+ 'scale="noborder"'
	+ 'swLiveConnect="true"'
	+ 'TYPE="application/x-shockwave-flash"'
    + 'PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash">'
    + '</EMBED>'
    + '</OBJECT>';

    document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
    // NOTE: height, width are required!
    var alternateContent = '<img src="https://www.ocad.ch/pix/kompass.gif" width="234" height="185" border="0" usemap="#Map"> '
     	// + '<BR>this is the non-flash navigation compass'
	  +	'<map name="Map">'
	  +	'<area shape="rect" coords="180,80,235,105"  href="orderinfos.htm">'
	  + '<area shape="rect" coords="75,0,160,27" href="ocadfeatures.htm">'
 	  +	'<area shape="rect" coords="0,80,48,104" href="infos.htm">'
      +	'<area shape="rect" coords="75,160,160,185" href="support.htm">'
	  + '</map>';

    document.write(alternateContent);  // insert non-flash content
  }
}

/* original flash tag
 				<area shape="rect" coords="180,80,235,105" href="orderinfos.htm">
                <area shape="rect" coords="75,0,160,27" href="ocadfeatures.htm">
                <area shape="rect" coords="0,80,48,104" href="infos.htm">
                <area shape="rect" coords="75,160,160,185" href="support.htm">

 <object 	classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			   			codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"
						width="260"
						height="210"
						id="myFlash">

                <param name="movie" value="../swf/navigator.swf?pos=products">

                <param name="quality" value="high">
                <param name="BGCOLOR" value="#99CCCC">
                <param name="SCALE" value="noborder">
                <embed src="../swf/navigator.swf"
						width="260"
						height="210"
						quality="high"
						pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"
						bgcolor="#99CCCC" scale="noborder"
						name="myFlash" swLiveConnect="true"></embed>
</object>
*/
