// JavaScript Document

// function to write flash obj passing  vars
function writeFlash(theyear) {
	
	// appearance vars, these can be customized to your liking
	var width = '191'
	var height = '310'
	var src = 'posters.swf'
	
	// queries -- type in the variables you want to send to flash here
	var queries = '?year=' + theyear
	queries = queries + ''
	
	

	// write all lines
	document.write('<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+width+'" height="'+height+'">');
  document.write('<param name="movie" value="'+src+queries+'" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="wmode" value="opaque" />');
  document.write('<param name="expressinstall" value="Scripts/expressInstall.swf" />');
  document.write('<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->');
  document.write('<!--[if !IE]>-->');
  document.write('<object type="application/x-shockwave-flash" data="'+src+queries+'" width="'+width+'" height="'+height+'">');
    document.write('<!--<![endif]-->');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="wmode" value="opaque" />');
    document.write('<param name="expressinstall" value="Scripts/expressInstall.swf" />');
    document.write('<!--[if !IE]>-->');
  document.write('</object>');
  document.write('<!--<![endif]-->');
document.write('</object>');

}

// function to write flash obj passing  vars
function writeFlashScroll(scrolltype,page) {
	
	// appearance vars, these can be customized to your liking
	var width = '191'
	var height = '310'
	var swfname = scrolltype + '.swf';
	var src = swfname;
	
	// queries -- type in the variables you want to send to flash here
	var queries = '?page=' + page
	queries = queries + ''
	//alert(src+queries);
	

	// write all lines
	document.write('<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+width+'" height="'+height+'">');
  document.write('<param name="movie" value="'+src+queries+'" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="wmode" value="opaque" />');
  document.write('<param name="expressinstall" value="Scripts/expressInstall.swf" />');
  document.write('<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->');
  document.write('<!--[if !IE]>-->');
  document.write('<object type="application/x-shockwave-flash" data="'+src+queries+'" width="'+width+'" height="'+height+'">');
    document.write('<!--<![endif]-->');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="wmode" value="opaque" />');
    document.write('<param name="expressinstall" value="Scripts/expressInstall.swf" />');
    document.write('<!--[if !IE]>-->');
  document.write('</object>');
  document.write('<!--<![endif]-->');
document.write('</object>');

}
