function gif_over(src) {
	src.children.tags('IMG')[0].src=src.children.tags('IMG')[0].src.replace('.gif','r.gif');
} 
function gif_out(src) {
	src.children.tags('IMG')[0].src=src.children.tags('IMG')[0].src.replace('r.gif','.gif');
}
function jpg_over(src) {
	src.children.tags('IMG')[0].src=src.children.tags('IMG')[0].src.replace('.jpg','r.jpg');
} 
function jpg_out(src) {
	src.children.tags('IMG')[0].src=src.children.tags('IMG')[0].src.replace('r.jpg','.jpg');
}

function map_over(id) {
	document.images["map"].src='../img/map/'+id+'.gif';	
}
 
function map_out(id) {
	document.images["map"].src='../img/map/all_city.gif';	
}


function h_main(){
    height = screen.height;
	width = screen.width;
	if(width<1024){
		document.all.main.height='0';
	}else if(width==1024){
/*800*/	document.all.main.height='155';
	}else{
		document.all.main.height='220';
	}
}

function bg_pic(){
	var i = Math.round(Math.random()*2);	
//	i=0;
	document.all.leftt.style.backgroundImage="url('../img/face/bg/leftt"+i+".jpg')";
	document.all.main.style.backgroundImage="url('../img/face/bg/top"+i+".jpg')";
	document.all.rightt.style.backgroundImage="url('../img/face/bg/rightt"+i+".jpg')";
	document.all.leftm.style.backgroundImage="url('../img/face/bg/leftm"+i+".jpg')";
	document.all.i.style.backgroundImage="url('../img/face/bg/"+i+".jpg')";
	document.all.rightm.style.backgroundImage="url('../img/face/bg/rightm"+i+".jpg')";
}


