areaArray=['北京','天津','龙江','吉林','辽宁','内蒙','河北','河南','山东','山西','江苏','浙江','上海','福建','安徽','江西','湖北','湖南','广东','广西','海南','贵州','云南','重庆','四川','西藏','陕西','甘肃','宁夏','青海','新疆','香港','澳门','台湾','海外'];

function showFlash(swf,id,w,h,n){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'" name="'+n+'" id="'+n+'">');
	document.write('<param name="quality" value="high"><param name="swLiveConnect" value="true"><param name="menu" value="false"><param name="wmode" value="transparent">');
	document.write('<param name="movie" value="Other/'+swf+'"><param name="FlashVars" value="id='+id+'"></object>');
}

function setEditorStr(formName,sContent){
	var oEditor = FCKeditorAPI.GetInstance(formName);
	oEditor.InsertHtml(sContent);
}

function imgzoom(o) {
	if(event.ctrlKey) {
		var zoom = parseInt(o.style.zoom, 10) || 100;
		zoom -= event.wheelDelta / 12;
		if(zoom > 0) {
			o.style.zoom = zoom + '%';
		}
		return false;
	} else {
		return true;
	}
}

function picFun(){
	try{
		var imgObjs=document.images;
		for (var i=0; imgObjs.length ; i++){
			var curObj=imgObjs[i];
			if (!curObj.complete) reloadPic(curObj);
		}
	} catch (e){}
}
	
function reloadPic(imgObj){
	try{
		var imgIndex=Math.floor(Math.random()*6);
		var sourceSrc=imgObj.src;
		var nod=document.createElement("SPAN");
		nod.innerHTML="<br>原图地址：<a target='_blank' href='"+sourceSrc+"'>"+sourceSrc+"</a>";
		if (imgObj.parentNode!=null && imgObj.parentNode.tagName=="A")
			imgObj.parentNode.insertAdjacentElement("afterEnd",nod);	
		else
			imgObj.insertAdjacentElement("afterEnd", nod);
    imgObj.src="Other/ErrPic/ErrPic00"+imgIndex+".gif";	
	} catch (e){}
}			
		
/*
<SCR IPT FOR='window' EVENT='onload' LANGUAGE='JavaScript'>
picFun();
</scr ipt>
*/