﻿// JScript 文件
function show(){
    var focus_width=302
	var focus_height=141
	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/adv.jpg";//图片路径
	img1.link="http://www.jnmba.com/zs/sHtml/?L-4534762534.Html";//链接
	imgArr.push(img1);
	
	//第二张图片
	var img2=new item();
	img2.imgUrl="images/loop/adv2.jpg";//图片路径
	img2.link="http://www.jnmba.com/main/news/news.aspx?no=24989f81-5d11-437d-90ea-efc80f0ee8dd";//链接
	imgArr.push(img2);
	
	//第三张图片
	//var img3=new item();
	//img3.imgUrl="../images/loop/adv3.jpg";//图片路径
	//img3.link="http://www.mbahome.com/Special/2010/jnmba/";//链接
	//imgArr.push(img3);
	
	//第四张图片
	//var img4=new item();
	//img4.imgUrl="images/loop/xxxxx";//图片路径
	//img4.link="http://";//链接
	//imgArr.push(img4);
	
	//第五张图片
	//var img5=new item();
	//img5.imgUrl="images/loop/xxxxx";//图片路径
	//img5.link="http://";//链接
	//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"><param name="bgcolor" value="#FFFFFF">');
	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>');
}

function item(oImgUrl,oLink){
    this.imgUrl=oImgUrl;
    this.link=oLink;
}



/**********************首页图片***********************************/
function showTitle() {
    var focus_width = 647
    var focus_height = 268
    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/1.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/2.JPG"; //图片路径
    img2.link = "#"; //链接
    imgArr.push(img2);

    //第三张图片
    var img3 = new item();
    img3.imgUrl = "images/loop/3.JPG"; //图片路径
    img3.link = "#"; //链接
    imgArr.push(img3);

    //第四张图片
    var img4 = new item();
    img4.imgUrl = "images/loop/4.jpg"; //图片路径
    img4.link = "#"; //链接
    imgArr.push(img4);

//    //第五张图片
     var img5 = new item();
     img5.imgUrl = "images/loop/5.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>');
}
