function not_autoriz(goods){
goods.innerHTML='Вы не авторизованы. Пройдите авторизацию.';
}
function Submit_Click(search_form){
getElementById(search_form).submit();
}
    var audio_player;
    function loadPlayer(container, playerTemplate, element){
container = $(container);
	if(container.readAttribute('added')) return;
	container.writeAttribute('added', 1);
	if(audio_player != undefined) {
	    audio_player.container = $(container);
	    var prevFile = audio_player.previousFile;
	    var prevContainer = audio_player.previousContainer;
	    audio_player.init();
	    audio_player.inAction = 0;
	    audio_player.status = true;
	    audio_player.previousFile = prevFile;
	    audio_player.previousContainer = prevContainer;
	} else {
	    audio_player = new AudioPlayer({

		template		: playerTemplate || 'iplayer.swf?file=#{URL}&time=#{Time}&mid=0&vol=#{Vol}&linkshow=1&linkurl=http://my.mail.ru/cgi-bin/my/audiotrack?file=#{file}%26uid=#{uid}&title=#{title}',
		activeFlashClass	: 'div_dashed_act ml3',
		container		: $(container),
		inActiveFlashClass	: 'div_dashed',
		playImgClass		: 'icoAudioPlay',
		pauseImgClass		: 'icoAudioPause',
		noRepeat		: 1
	    });
	    audio_player.toggle({}, $(element));
	}
    }
	// Flash Player Callbacks
	function unPause(){alert("ok");audio_player.onUnPause() }
	function setvolume(v){ audio_player.onSetVolume(v) }
	function endMusic(){ audio_player.onEndMusic() }
	
	var serch_cleared	=	0;
function clear_serch()
{
	pol	=	document.getElementById('serch_pole');
	if(serch_cleared==0)
	{
		pol.value	=	"";
		serch_cleared++;
		return;
	}

	if((serch_cleared!=0)&&(pol.value.length<1))
	{
		pol.value	=	"поиск по сайту"; 
		serch_cleared=0;
		return;	
	}
}


function bookmark2 (a) {
 if (window.opera && window.print) {
  var mbm = a;
  mbm.setAttribute("rel", "sidebar");
  mbm.setAttribute("title", document.title);
  mbm.setAttribute("href", window.location.href);
  mbm.click();
 }
 else if (window.sidebar) {
  window.sidebar.addPanel(document.title, window.location.href, "");
 }
 else if (window.external) {
  window.external.AddFavorite(window.location.href, document.title);
 }
}
