function ch_im(x){
	if(x.width>120||x.height>150){
		x.src='pic/p_pic_bad.gif';
	}
}
function ch_ime(x){
	x.src='pic/p_pic_error.gif';
}

function img_sea(x)
{
var w=100;
x.width=parseInt(x.width)+10;
	if(x.width<x.alt)
	{
		this.q=x;
		setTimeout('img_sea(this.q)',10);
	}else if(x.width>x.alt){
		x.width=x.alt;
	}
	
}
//---------------------
function img_sed(x)
{
var w=200;
x.width=parseInt(x.width)-10;
	if(x.width>w)
	{
		this.q=x;
		setTimeout('img_sed(this.q)',10);
	}
}
//---------------------
function img_op(x)
{
var w=200;

if(x.alt==''){x.alt=parseInt(x.width);}
if(x.alt<=w){return false;}
if(x.width<=w)
{img_sea(x);}
else if(x.width>w){
img_sed(x)}
}
function img_sp(x)
{
var w=200;
if(x.alt==''){x.alt=parseInt(x.width);}
if(x.alt<=w){return false;}
if(x.width>w){
x.width=w;}
}
var img_o1=new Image();
img_o1.src='pic/p_logo1.gif';
var img_o2=new Image();
img_o2.src='pic/p_logo2.gif';
function logo_h(x,t){
	if(x=='o'){
		t.src=img_o2.src;
	}else if(x=='u'){
		t.src=img_o1.src;
	}
}

