﻿// JScript 文件


function item(oImgUrl,oLink){
    this.imgUrl=oImgUrl;
    this.link=oLink;
}

/**********************首页图片***********************************/
function showTitle() {
    var focus_width = 720
    var focus_height = 232
    var text_height = 0
    var swf_height = focus_height + text_height
    var pics = "";
    var texts = "";
    var links = "";

    var imgArr = new Array();

    //第一张图片
    var img1 = new item();
    img1.imgUrl = "images/loop/_MG_8390.JPG"; //图片路径
    //img1.link = "http://www.jnmba.com/zs/sHtml/?L-4534762534.Html"; //链接
    img1.link = "#"; //链接
    imgArr.push(img1);

    //第二张图片
    var img2 = new item();
    img2.imgUrl = "images/loop/1R3U7416.JPG"; //图片路径
    img2.link = "#"; //链接
    imgArr.push(img2);

    //第三张图片
    var img3 = new item();
    img3.imgUrl = "images/loop/1R3U7675.JPG"; //图片路径
    img3.link = "#"; //链接
    imgArr.push(img3);

    //第四张图片
    var img4 = new item();
    img4.imgUrl = "images/loop/meiguo1.jpg"; //图片路径
    img4.link = "#"; //链接
    imgArr.push(img4);

//    //第五张图片
     var img5 = new item();
     img5.imgUrl = "images/loop/747.jpg"; //图片路径
     img5.link = "#"; //链接
     imgArr.push(img5);

  
    for (i = 0; i < imgArr.length; i++) {
        if (i == imgArr.length - 1) {
            pics += imgArr[i].imgUrl;
            links += imgArr[i].link;
        } else {
            pics += imgArr[i].imgUrl + "|";
            links += imgArr[i].link + "|";
        }
    }



    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + focus_width + '" height="' + swf_height + '">');
    document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/pv.swf"><param name="quality" value="high"><param name="bgcolor" value="#ffffee">');
    document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
    document.write('<param name="FlashVars" value="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '">');
    document.write('<embed src="../images/pv.swf" wmode="opaque" FlashVars="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '" menu="false" bgcolor="#ffffee" quality="high" width="' + focus_width + '" height="' + swf_height + '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
    document.write('</object>');
}
