﻿//打开首页Flash
function openDefaultFlash()
{
    var focus_width = 286
    var focus_height = 142
    var text_height = 0
    var swf_height = focus_height + text_height

    var pics = 'Flash/upimg/1-20100513.jpg?|Flash/upimg/2-20100601.jpg?|Flash/upimg/1-20100115.jpg?|Flash/upimg/1-20091103.jpg?'
    var links = 'http://www.thermo.com.cn/workshop|http://www.thermo.com.cn/Category254.html|http://www.thermo.com.cn/Activity50.html|http://www.thermo.com.cn/article.aspx?id=3711'
    var texts = ''

    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');
    document.write('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
    document.write('width="' + focus_width + '" ');
    document.write('height="' + swf_height + '">');
    document.write('<param name="allowScriptAccess" value="sameDomain">');
    document.write('<param name="movie" value="Flash/upswf/focus.swf">');
    document.write('<param name="quality" value="high">');
    document.write('<param name="bgcolor" value="#ffffff">');
    document.write('<param name="menu" value="false">');
    document.write('<param name=wmode value="opaque">');
    document.write('<param name="FlashVars" ');
    document.write('value="pics=' + pics);
    document.write('&links=' + links);
    document.write('&texts=' + texts);
    document.write('&borderwidth=' + focus_width);
    document.write('&borderheight=' + focus_height);
    document.write('&textheight=' + text_height + '">');
    document.write('<embed src="Flash/upswf/focus.swf" ');
    document.write('wmode="opaque" ');
    document.write('FlashVars="pics=' + pics);
    document.write('&links=' + links);
    document.write('&texts=' + texts);
    document.write('&borderwidth=' + focus_width);
    document.write('&borderheight=' + focus_height);
    document.write('&textheight=' + text_height + '" ');
    document.write('menu="false" ');
    document.write('bgcolor="#ffffff" ');
    document.write('quality="high" ');
    document.write('width="' + focus_width + '" ');
    document.write('height="' + focus_height + '" ');
    document.write('allowScriptAccess="sameDomain" ');
    document.write('type="application/x-shockwave-flash" ');
    document.write('pluginspage="http://www.macromedia.com/go/getflashplayer" />');
    document.write('</object>');
}

//打开应用资料Flash
function openArticle4171Flash()
{
    var focus_width = 250
    var focus_height = 250
    var text_height = 22
    var swf_height = focus_height + text_height

    var pics = 'Flash/Article/A.jpg?|Flash/Article/B.jpg?|Flash/Article/C.jpg?|Flash/Article/D.jpg?|Flash/Article/E.jpg?'
    var links = 'http://www.thermo.com.cn/News510.html|http://www.thermo.com.cn/News501.html|http://www.thermo.com.cn/News498.html|http://www.thermo.com.cn/News499.html|http://www.thermo.com.cn/News502.html'
    var texts = 'Analytica 2010推出新型单四极杆GC/MS|Pittcon 2010 发布全新四元泵|Pittcon 2010 展示色谱创新技术|新一代离子阱和轨道阱质谱仪亮相 Pittcon|Pittcon 2010 展示完整LC/MS解决方案'
    
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');
    document.write('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
    document.write('width="' + focus_width + '" ');
    document.write('height="' + swf_height + '">');
    document.write('<param name="allowScriptAccess" value="sameDomain">');
    document.write('<param name="movie" value="Flash/upswf/focus.swf">');
    document.write('<param name="quality" value="high">');
    document.write('<param name="bgcolor" value="#ffffff">');
    document.write('<param name="menu" value="false">');
    document.write('<param name=wmode value="opaque">');
    document.write('<param name="FlashVars" ');
    document.write('value="pics=' + pics);
    document.write('&links=' + links);
    document.write('&texts=' + texts);
    document.write('&borderwidth=' + focus_width);
    document.write('&borderheight=' + focus_height);
    document.write('&textheight=' + text_height + '">');
    document.write('<embed src="Flash/upswf/focus.swf" ');
    document.write('wmode="opaque" ');
    document.write('FlashVars="pics=' + pics);
    document.write('&links=' + links);
    document.write('&texts=' + texts);
    document.write('&borderwidth=' + focus_width);
    document.write('&borderheight=' + focus_height);
    document.write('&textheight=' + text_height + '" ');
    document.write('menu="false" ');
    document.write('bgcolor="#ffffff" ');
    document.write('quality="high" ');
    document.write('width="' + focus_width + '" ');
    document.write('height="' + focus_height + '" ');
    document.write('allowScriptAccess="sameDomain" ');
    document.write('type="application/x-shockwave-flash" ');
    document.write('pluginspage="http://www.macromedia.com/go/getflashplayer" />');
    document.write('</object>');
}