<!--
prel();

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='http://www.1md.ru/company/list/"+selObj.options[selObj.selectedIndex].value+"/'");
  if (restore) selObj.selectedIndex=0;
}
//-->

<!--

function MM_jumpMenu2(targ,selObj,restore){ //v3.0
  eval(targ+".location='http://www.1md.ru/company/spisok/"+selObj.options[selObj.selectedIndex].value+"/'");
  if (restore) selObj.selectedIndex=0;
}
//-->


function showComments(mix)
{	
	if (document.getElementById('x'+mix).style.display=='none')
	{
		document.getElementById('x'+mix).style.display='block';
		document.getElementById('y'+mix).className='contentBox2';
	}}


function Comments(mix)
{	
	if (document.getElementById('x'+mix).style.display=='none')
	{
		document.getElementById('x'+mix).style.display='block';
		document.getElementById('y'+mix).className='contentBox2';
		document.getElementById('xsr'+mix).src='/img/minus.gif';        
	}
else{
		document.getElementById('x'+mix).style.display='none';
		document.getElementById('y'+mix).className='brdR';
		document.getElementById('xsr'+mix).src='/img/plus.gif'; 
}
}

	
function noneComments(mix){	
	if (document.getElementById('x'+mix).style.display=='block')
	{
		document.getElementById('x'+mix).style.display='none';
		document.getElementById('y'+mix).className='brdR';
	}
} 


function jump(id){
window.open("http://www.1md.ru/r.php?idban="+id,"_blank") ;
}

function submitform(formid, param)
{
        document.getElementById(formid).setAttribute("action" , param);
        //alert (document.getElementById(formid).getAttribute("action"));
        document.getElementById(formid).submit();
//        document.getElementById(divname).style.visibility = "hidden";
//        document.getElementById(divname).style.innerHTML = "";
}



function xzoom(img){

document.getElementById('xzoom').style.visibility="visible";
document.getElementById('xzoom').style.left = 250;
document.getElementById('xzoom').style.top =document.body.scrollTop;
if(document.body.scrollTop<1100){
document.getElementById('xzoom').style.top=1100;
}
document.getElementById('loadimg').src=img;
document.getElementById('xzoom').style.display = 'block';
//alert(window.event.pageX);	
}

function closezoom(){
document.getElementById('xzoom').style.visibility="hidden";
document.getElementById('xzoom').style.display = 'none';
document.getElementById('loadimg').src="/img/ajaxloader.gif";
}

function dpl(id){
document.getElementById('dp').style.display = 'block';
dopinfo.location.replace('http://www.1md.ru/dopinfo.php?id='+id);
}

function dpc(id){
//document.getElementById('dp').style.display = 'none';
}




var num = 4;
var f = false;
var b = new Array;

function prel(){
	if(document.images) {
		for(i=1;i<=num;i++){
		  str = '/buttons/b' + i + '_o.gif';
		  b[i-1] = new Image();
		  b[i-1].src = str;
		  }
		f = true;
 	}
}

function on(im){
	if (document.images && (f == true)) {document.images[im].src="/buttons/"+im+"_o.gif";}
}

function off(im){
	if (document.images && (f == true)) {document.images[im].src = "/buttons/"+im+".gif";}
}







function jsrsBrowserSniff()
{
	if (document.layers) return "NS";
	if (document.all) return "IE";
	if (document.getElementById) return "MOZ";
	return "OTHER";
}

var jsrsBrowser = jsrsBrowserSniff();

function add_to_basket(id)
{
	amount = document.getElementById("amount_"+id);
	var URL = "http://www.1md.ru/basket.php?action=add&id="+id+"&amount="+amount.value;
	switch( jsrsBrowser )
	{
	case 'NS':
		document.basket.src = URL;
	break;
    case 'IE':
		basket.location.replace(URL);
	break;
    case 'MOZ':
		basket.location.replace(URL);
	break;
	};
};

function clear_basket()
{
	var URL = "http://www.1md.ru/basket.php?action=clear";
	switch( jsrsBrowser )
	{
	case 'NS':
		document.basket.src = URL;
	break;
    case 'IE':
		basket.location.replace(URL);
	break;
    case 'MOZ':
		basket.location.replace(URL);
	break;
	};
};





function moveall()
{
	
var Tip;
if(obj){
obj.top = document.body.scrollTop;
document.getElementById('ifrk').style.height = screen.height - 230;
Tip=window.setTimeout('moveall()', 1000);
}
}


function st() {

obj.visibility="visible";
obj.left = 0;
obj.top = document.body.scrollTop;
document.getElementById('ifrk').style.height = screen.height - 230;
stx2();
}

function stx() {
   Timer = window.setTimeout('cc()', 100);
}

function stx2() {
   Timer = window.setTimeout('reload()', 1500);
}

function reload(){
	var URL = "http://www.1md.ru/order1.inc.php";
	switch( jsrsBrowser )
	{
	case 'NS':
		document.order.src = URL;
	break;
    case 'IE':
		order.location.replace(URL);
	break;
    case 'MOZ':
		order.location.replace(URL);
	break;
	};
}

function cc()  {
obj.visibility = "hidden";
}

function sver()  {
document.getElementById('orderx').style.display = 'none';
}

function razv()  {
document.getElementById('orderx').style.display = 'block';	
}
