var isIE = (navigator.userAgent.indexOf("MSIE")!=-1);
function Roll(obj) {
  if (obj.src.indexOf("_Off") != -1) obj.src = obj.src.replace("_Off","_On");
  else obj.src = obj.src.replace("_On","_Off");
}
function ChangeImage(imageName) {
  if (isIE) document.getElementById("BigImage").filters.item(0).Apply();
  document.getElementById("BigImage").style.background="url("+escape(imageName)+")";
  document.getElementById("BigImage").style.backgroundRepeat="no-repeat";
  document.getElementById("BigImage").style.backgroundPosition="center center";
  if (isIE) document.getElementById("BigImage").filters.item(0).Play();
}

function CreateFlashObject(source,width,height) {
  document.writeln("<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='"+width+"' height='"+height+"' align='middle'>");
//  document.writeln("  <param name='allowScriptAccess' value='sameDomain' /><param NAME='wmode' VALUE='transparent' />");
  document.writeln("  <param name='allowScriptAccess' value='sameDomain' /><param name='scale' value='noscale' />");
  document.writeln("  <param name='movie' value='"+source+"' /><param name='quality' value='high' /><param name='bgcolor' value='#ffffff' />");
  document.writeln("  <embed src='"+source+"' scale='noscale' quality='high' bgcolor='#ffffff' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
  document.writeln("</object>");
}
