window.onload = init;

function init() {
	bigIMG(525,348);
	smallIMG(260,172);
}

function bigIMG(width,height) {
          var movie = "/gfx/big-img.swf";
          if (a = document.getElementById('flash')) {
          var b = a.getElementsByTagName('img');
          var img = b[0].src;
          var text = '<!--[if !IE]> -->' +
          '<object type="application/x-shockwave-flash" data="'+ movie +'?pict=' + img + '" width="'+ width +'" height="'+ height +'">' +
          '<!-- <![endif]-->' +
          '' +
          '<!--[if IE]>' +
          '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' +
          '  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ width +'" height="'+ height +'">' +
          ' <param name="movie" value="'+ movie +'?pict=' + img + '" />' +
          '<!--><!--dgx-->' +
          '  <param name="loop" value="true" />' +
          '  <param name="menu" value="false" />' +
          '  <param name="wmode" value="transparent" />' +
          '<param name ="FlashVars" value="pict='+ img +'" />';
          '</object>' +
          '<!-- <![endif]-->';
          a.innerHTML = text;
          }
}
function smallIMG(width,height) {
          var movie = "/gfx/small-img.swf";
          var ods = document.getElementsByTagName('p');
          
          for (var i = 0;i<ods.length;i++) {
              if (ods[i].className == "smallimg") {
                    var b = ods[i].getElementsByTagName('img');
                    var img = b[0].src;
                    var text = '<!--[if !IE]> -->' +
                    '<object type="application/x-shockwave-flash" data="'+ movie +'?pict=' + img + '" width="'+ width +'" height="'+ height +'">' +
                    '<!-- <![endif]-->' +
                    '' +
                    '<!--[if IE]>' +
                    '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' +
                    '  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ width +'" height="'+ height +'">' +
                    ' <param name="movie" value="'+ movie +'?pict=' + img + '" />' +
                    '<!--><!--dgx-->' +
                    '  <param name="loop" value="true" />' +
                    '  <param name="menu" value="false" />' +
                    '  <param name="wmode" value="transparent" />' +
                    '<param name ="FlashVars" value="pict='+ img +'" />';
                    '</object>' +
                    '<!-- <![endif]-->';
                    ods[i].innerHTML = text;
            }
          }
}
