﻿var FitWidth=500;var FitHeight=300;function RefreshImg(ImgTag){var image=new Image();image.src=ImgTag.src;if((image.width>FitWidth)||(image.height>FitHeight)){if((image.width/image.height)>(FitWidth/FitHeight)){ImgTag.width=FitWidth;ImgTag.height=(image.height*FitWidth)/image.width;}else{ImgTag.height=FitHeight;ImgTag.width=(image.width*FitHeight)/image.height;}}}var proWidth=150;var proHeight=120;function proImg(ImgTag){var image=new Image();image.src=ImgTag.src;if((image.width>proWidth)||(image.height>proHeight)){if((image.width/image.height)>(proWidth/proHeight)){ImgTag.width=proWidth;ImgTag.height=(image.height*proWidth)/image.width;}else{ImgTag.height=proHeight;ImgTag.width=(image.width*proHeight)/image.height;}}}function setImg(img,width,height){var scale_w=img.width/width;var scale_h=img.height/height;var scale=scale_w>scale_h?scale_w:scale_h;img.width=img.width/scale;return false;};var nprev,ntagprev;function nshow(obj){if(nprev==null){nprev=document.getElementById("ncon1");}nprev.style.display="none";document.getElementById("ncon"+obj).style.display="block";nprev=document.getElementById("ncon"+obj);if(ntagprev==null){ntagprev=document.getElementById("ntag1");}ntagprev.className="";document.getElementById("ntag"+obj).className="tagA";ntagprev=document.getElementById("ntag"+obj);};function getflashobject(flashsrc,objwidth,objheight,etcparam){var tag="";var baseflashdir="";flashsrc=baseflashdir+flashsrc;if(etcparam!=""||etcparam!=null){if(etcparam.substr(0,1)=="?")flashsrc+=etcparam;else flashsrc+="?"+etcparam;}tag+="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" ";tag+="codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" ";tag+="width=\""+objwidth+"\" height=\""+objheight+"\">";tag+="<param name=\"movie\" value=\""+flashsrc+"\" />";tag+="<param name=\"quality\" value=\"high\" />";tag+="<param name=\"wmode\" value=\"transparent\" />";tag+="<embed src=\""+flashsrc+"\" quality=\"high\" wmode=\"transparent\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\""+objwidth+"\" height=\""+objheight+"\"></embed>";tag+="</object>";document.write(tag);}
