var MM_contentVersion = 5;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
//alert(plugin);
if ( plugin ) {
                var words = navigator.plugins["Shockwave Flash"].description.split(" ");
            for (var i = 0; i < words.length; ++i)
            {
                if (isNaN(parseInt(words[i])))
                continue;
                var MM_PluginVersion = words[i];
            }
        var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
    && (navigator.appVersion.indexOf("Win") != -1)) {
        document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
        document.write('on error resume next \n');
        document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
        document.write('</SCR' + 'IPT\> \n');
}
//MM_FlashCanPlay = false;
//new test
//<param name="wmode" value="transparent"> to the <object> tag and wmode="transparent" to the <embed>
if ( MM_FlashCanPlay ) {
        document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ID="header" WIDTH="973" HEIGHT="226" ALIGN="">');
        document.write('<PARAM NAME=movie VALUE="/assets/flash/header_' + hdlang + '.swf?hdlang=' + hdlang + '&hdsection=' + hdsection + '&hdimage=' + hdimage + '&tpage=' + tpage + '"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#ffffff><param name="wmode" value="transparent">');
        document.write(' <EMBED src="/assets/flash/header_' + hdlang + '.swf?hdlang=' + hdlang + '&hdsection=' + hdsection + '&hdimage=' + hdimage + '&tpage=' + tpage + '" quality=high bgcolor=#000000 swLiveConnect=FALSE WIDTH="973" HEIGHT="226" NAME="header" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" wmode="transparent">');
        document.write('</EMBED>');
        document.write('</OBJECT>');
} else{
        document.write('<form name="frmSearch" action="http://www.tourismpei.com/sitesearch.php" method="post"><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD VALIGN=TOP WIDTH=33><img src="/assets/images/topbar/topbar_spacer1.gif" width="33" height="27" alt="" border="0"></TD><TD NOWRAP VALIGN=MIDDLE WIDTH=162 BACKGROUND="/assets/images/topbar/topbar_searchbox.gif"><input TYPE="text" NAME="words" STYLE="width: 155px; border: 1px solid #BBB4A5; font-size: 10px;"></TD></form><TD VALIGN=TOP WIDTH=><input type="image" src="/assets/images/topbar/topbar_search.gif" width="51" height="27" alt="" border="0"><a href="javascript:void(printSpecial());"><img src="/assets/images/topbar/topbar_print.gif" width="49" height="27" alt="" border="0"></a><img src="/assets/images/topbar/topbar_spacer2.gif" width="361" height="27" alt="" border="0"><img src="/assets/images/topbar/topbar_textsize_text.gif" width="44" height="27" alt="" border="0"><a href="javascript:void(0);" onclick="dw_fontSizerDX.adjust(-2); return false"><img src="/assets/images/topbar/topbar_textsize_small.gif" width="14" height="27" alt="" border="0"></a><a href="javascript:void(0);" onclick="dw_fontSizerDX.reset(); return false"><img src="/assets/images/topbar/topbar_textsize_mid.gif" width="16" height="27" alt="" border="0"></a><a href="javascript:void(0);" onclick="dw_fontSizerDX.adjust(2); return false"><img src="/assets/images/topbar/topbar_textsize_large.gif" width="15" height="27" alt="" border="0"></a><img src="/assets/images/topbar/topbar_spacer3.gif" width="40" height="27" alt="" border="0"><A HREF="#french"><img src="/assets/images/topbar/topbar_francais.gif" width="60" height="27" alt="" border="0"></A><A HREF="#japanese"><img src="/assets/images/topbar/topbar_japan.gif" width="53" height="27" alt="" border="0"></A><A HREF="#german"><img src="/assets/images/topbar/topbar_german.gif" width="75" height="27" alt="" border="0"></A></TD></TR><TR><TD VALIGN=TOP WIDTH=973 COLSPAN=3><img src="/assets/images/home/header.jpg" width="973" height="199" alt="" border="0"></TD></TR></TABLE>');
}