function onloadSmallPic(a){

	if(a.height>a.width){
		a.width=(110/a.height)*110;
		a.height=110;
	}
	else{
		if(a.width>a.height){
			a.height=(110/a.width)*110;
			a.width=110;
		}
	}
	
}

// GetElementById
function GE(a){return document.getElementById(a);}
function zoomimg(img){ 
//img.style.zoom获取img对象的缩放比例，并转为十进制整数 
var zoom = parseInt(img.style.zoom,10); 
if (isNaN(zoom)){ //当zoom非数字时zoom默认为100％ 
zoom = 100; 
} 
//event.wheelDelta滚轮移动量上移＋120，下移－120；显示比例每次增减10％ 
zoom += event.wheelDelta / 12; 
//当zoom大于10％时重新设置显示比例 
if (zoom>10) img.style.zoom = zoom + "%"; 
} 

var oTime;
function chgSize(args) {
    var oImg = GE("planePic1");
    oImg.style.zoom = parseInt(oImg.style.zoom) + (args ? +1 : -1)  + '%';
    oTime = window.setTimeout('chgSize(' + args + ')', 1);
}   
function defaultSize() {
    var oImg = GE("planePic1");
    oImg.style.zoom = '100%';
}   


