function showBig(foto)
{
    if (foto != "")
    {
        wnd=window.open("/prog/pl_editor/img_popup.php?img_url="+encodeURIComponent(foto+"|"), "binn_popup_image", "width=200,height=200,scrollbars=no,toolbar=no,location=no,status=no,resizable=no,left=0,top=0");
        wnd.focus();
    }
    else
        void(0);
}


function thisHover(arg){
	var el = document.getElementById('pic_' + arg);
	el.src = '../images/pic_' + arg + '_akc.jpg';
	
	var el2 = document.getElementById('d' + arg);
	el2.className = 'mTitlehover';
}

function thisUnhover(arg){
	var el = document.getElementById('pic_' + arg);
	el.src = 'images/pic_' + arg + '.jpg';
	
	var el2 = document.getElementById('d' + arg);
	el2.className = 'mTitle';
}



function restore_srch(){
 if(document.getElementById('srch').value == ''){document.getElementById('srch').value = 'поиск';}
}
function restore_mail(){
 if(document.getElementById('mailInp').value == ''){document.getElementById('mailInp').value = 'Введите Ваш e-mail';}
}

function showOther(arg){
	if(arg == 4){
		if(document.getElementById('el_' + arg).checked == true)
		{
			document.getElementById('themOther').style.display = '';
		}
		if(document.getElementById('el_' + arg).checked != true)
		{
			document.getElementById('themOther').style.display = 'none';
			document.getElementById('themOtherInp').value = '';
		}
	}
}

function prepare(){
	if(document.getElementById('el_4'))
	{
		if(document.getElementById('el_4').checked == true)
		{
		document.getElementById('themOther').style.display = '';
		}
	}
	
	if(document.getElementById('sf_other')){
		document.getElementById('ch_8').onclick = function(){document.getElementById('sf_other').style.display = 'none'}
		document.getElementById('ch_9').onclick = function(){document.getElementById('sf_other').style.display = 'none'}
		document.getElementById('ch_10').onclick = function(){document.getElementById('sf_other').style.display = 'none'}
		document.getElementById('ch_11').onclick = function(){document.getElementById('sf_other').style.display = 'none'}
		document.getElementById('ch_12').onclick = function(){document.getElementById('sf_other').style.display = 'none'}
		
		document.getElementById('ch_13').onclick = function(){document.getElementById('sf_other').style.display = ''}
		
		document.getElementById('ch_42').onclick = function(){
			if(document.getElementById('ch_42').checked == true){
				document.getElementById('pro_other').style.display = '';
				return;
			}
			if(document.getElementById('ch_42').checked == false){
				document.getElementById('pro_other').style.display = 'none';
				return;
			}
		}
		}
							   
}
window.onload = prepare;
