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 show(name,name1) {
	document.images[name].src='/img/'+name+'r.gif';	
	if (name1!='0'){
			document.images[name1].src='/img/'+name1+'a.gif';
	}
} 
function hide(name,name1) {
	document.images[name].src='/img/'+name+'.gif';
	if (name1!='0'){
		document.images[name1].src='/img/'+name1+'.gif';
	}
}


function gif_over_dop(name,name1,name2,namet1,namet2) {
	document.images[name].src='/img/menu/'+name+'r.gif';	
	document.images[name1].src='/img/menu/leftr.gif';	
	document.images[name2].src='/img/menu/rightr.gif';
	document.getElementById(namet1).style.backgroundColor ='#FFFFFF';
	if(namet2!='0'){
		document.getElementById(namet2).style.backgroundColor ='#FFFFFF';
	}
	
	
} 
function gif_out_dop(name,name1,name2,namet1,namet2) {

	document.images[name].src='/img/menu/'+name+'.gif';	
	document.images[name1].src='/img/menu/left.gif';	
	document.images[name2].src='/img/menu/right.gif';	
	
	document.getElementById(namet1).style.backgroundColor = '#0060AE';
	document.getElementById(namet2).style.backgroundColor ='#0060AE';
}



function showLayer(layerName) {
	eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
}
function hideLayer(layerName) {
	eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
}
function activeLayer(layerName) {
	eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
	show('jobi','0');
}


ns=0;
layerRef="document.all";
styleSwitch=".style";
if (navigator.appName == "Netscape") {
	ns=1;
	layerRef="document.layers";
  	styleSwitch="";
}



function adj(){
	width = screen.width;
    height = screen.height;
	if(width<1024){
/*800*/				document.all.tmain.width='516';
	}else if(width<1152){
/*1024*/			document.all.tmain.width='570';
	}else if (width<1280){
/*1152*/			document.all.tmain.width='614';
	}else if (width<1600){
/*1280*/			document.all.tmain.width='620';

	}else{
/*1600 and more*/	document.all.tmain.width='705';
	}
}

function aj(){
	width = screen.width;
    height = screen.height;
	if(width<1024){
/*800*/				document.all.ttop.width='596';
	}else if(width<1152){
/*1024*/			document.all.ttop.width='625';
	}else if (width<1280){
/*1152*/			document.all.ttop.width='660';
	}else if (width<1600){
/*1280*/			document.all.ttop.width='665';

	}else{
/*1600 and more*/	document.all.ttop.width='750';
	}
}

function showBlock1(ids,noids,noids1) {
	document.getElementById(ids).style.display="block";
	document.getElementById(noids).style.display="none";
	document.getElementById(noids1).style.display="block";
	noids1+='_show';
	document.getElementById(noids1).style.display="none";
	
};
function hideBlock1(ids,noids) {
	document.getElementById(noids).style.display="block";
	document.getElementById(ids).style.display="none";
};
