// JavaScript Document
function showNewsStory() {	
document.write('<div class="slideshow">');
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="270" height="229" id="news_story" align="middle">');  
document.write('<param name="allowScriptAccess" value="sameDomain" />');  
document.write('<param name="movie" value="/bnincs/slideshow/news_story.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="/bnincs/slideshow/news_story.swf" quality="high" bgcolor="#ffffff" width="270" height="229" name="news_story" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  
document.write('</object>');  
document.write('</div>');
} 

 



function showContentImg(contentid) {
document.write('<div class="slideshow">');
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="300" height="240" id="content_img" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="FlashVars" value="xmlfile=http://www.historicdockyard.co.uk/bnincs/slideshow/xml_content_img.php?content=' + contentid + '">');
document.write('<param name="movie" value="http://www.historicdockyard.co.uk/bnincs/slideshow/content_img.swf" />');
document.write('<param name="quality" value="high" /><param name="bgcolor" value="#000000" />');
document.write('<embed src="http://www.historicdockyard.co.uk/bnincs/slideshow/content_img.swf" FlashVars="xmlfile=http://www.historicdockyard.co.uk/bnincs/slideshow/xml_content_img.php?content=' + contentid + '" quality="high" bgcolor="#000000" width="300" height="240" name="content_img" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
document.write('</div>');
} 

function showNewsImg(newsid) {
document.write('<div class="slideshow">');
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="300" height="240" id="content_img" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="FlashVars" value="xmlfile=/bnincs/slideshow/xml_news_img.php?story=' + newsid + '">');
document.write('<param name="movie" value="/bnincs/slideshow/content_img.swf" />');
document.write('<param name="quality" value="high" /><param name="bgcolor" value="#000000" />');
document.write('<embed src="/bnincs/slideshow/content_img.swf" FlashVars="xmlfile=/bnincs/slideshow/xml_news_img.php?story=' + newsid + '" quality="high" bgcolor="#000000" width="300" height="240" name="content_img" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
document.write('</div>');
} 



function showHomepage(newsid) {
document.write('<div class="slideshowHomepage">');
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="330" height="290" id="homepage" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="/bnincs/slideshow/homepage.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="/bnincs/slideshow/homepage.swf" quality="high" bgcolor="#ffffff" width="330" height="290" name="homepage" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
document.write('</div>');
} 

function showCorp() {
document.write('<div class="slideshowCorp">');
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="270" height="229" id="non_nav_small" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="FlashVars" value="xmlfile=/bnincs/slideshow/xml_content_img.php?content=124">');
document.write('<param name="movie" value="/bnincs/slideshow/non_nav_small.swf" />');
document.write('<param name="quality" value="high" /><param name="bgcolor" value="#000000" />');
document.write('<embed src="/bnincs/slideshow/non_nav_small.swf" FlashVars="xmlfile=/bnincs/slideshow/xml_content_img.php?content=124" quality="high" bgcolor="#000000" width="270" height="229" name="non_nav_small" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
document.write('</div>');
} 

function showContentImgMS(contentid) {
document.write('<div class="slideshow">');
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="300" height="240" id="content_img" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="FlashVars" value="xmlfile=http://www.historicdockyard.co.uk/bnincs/slideshow/xml_content_img.php?content=' + contentid + '">');
document.write('<param name="movie" value="http://www.historicdockyard.co.uk/bnincs/slideshow/non_nav_small.swf" />');
document.write('<param name="quality" value="high" /><param name="bgcolor" value="#000000" />');
document.write('<embed src="http://www.historicdockyard.co.uk/bnincs/slideshow/non_nav_small.swf" FlashVars="xmlfile=http://www.historicdockyard.co.uk/bnincs/slideshow/xml_content_img.php?content=' + contentid + '" quality="high" bgcolor="#000000" width="300" height="240" name="content_img" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
document.write('</div>');
} 