ie = (document.all)? true:false  //(ie6 ie7)
ff2ns8=(document.getElementById)? true:false//(ie6 ie7 ff)

function popup(my_page) {
window.open(my_page,'prnew','width=420,height=300,resizable=yes,scrollbars=yes');
}
function my_move()
{
window.moveTo(Math.round(screen.width/2-200) , Math.round(screen.height/2-150))
window.focus();
}





check=false;
onNowAbout="none";
if (document.images)
{check = true;}
else
{check = false;}
//-------------------------------------
if (check == true)
{
//------------------------------------------
imagesearch= new Image();
imagesearch.src = "images/search-in.jpg";
imagesearchover = new Image();
imagesearchover.src = "images/search-in-h.jpg";
//------------------------------------------
}

function overAbout(name)  {
        if ((check == true)&&(name!=onNowAbout)){ 
        if (ie) {document.all[name].src = eval(name + "over.src");}   
        if (ff2ns8 && ie!=true) {document[name].src = eval(name + "over.src");}
        }};

function offAbout(name)  {
        if ((check == true)&&(name!=onNowAbout)){     
        if (ie) {document.all[name].src = eval(name + ".src");}   
        if (ff2ns8 && ie!=true) {document[name].src = eval(name + ".src");}
        }};
		
		
//function gosearch()
//{
//str=document.form1.mysearch.value
//newstr='search.asp?mysearch='+str
//document.location=newstr
//}


function startmenu(a,b,c)
{
			if (ie) 
			{ 
			for (var i=1; i<a+1; i++)
		    {
		    itemname="land"+i
		    document.all[itemname].style.display = 'none';
		    }
			for (var i=1; i<b+1; i++)
		    {
		    itemname="prod"+i
		    document.all[itemname].style.display = 'none';
		    }
			for (var i=1; i<c+1; i++)
		    {
		    itemname="art"+i
		    document.all[itemname].style.display = 'none';
		    }
			}
			if (ff2ns8 && ie!=true)
			{
			for (var i=1; i<a+1; i++)
		    {
		    itemname="land"+i
		    document.getElementById(itemname).style.display='none'
		    }
			for (var i=1; i<b+1; i++)
		    {
		    itemname="prod"+i
		    document.getElementById(itemname).style.display='none'
		    }
			for (var i=1; i<c+1; i++)
		    {
		    itemname="art"+i
		    document.getElementById(itemname).style.display='none'
		    }
			}
}







function openmenu(mywhere,liname,mycount_num) 
{

			if (ie) 
			{   
		    //land1.className=land1.className.replace(new RegExp(" sfhover\\b"), "");

             if (document.all[liname].style.display == 'none')
			    {
			for (var i=1; i<mycount_num+1; i++)
		    {
		    itemname=mywhere+i
		    document.all[itemname].style.display = 'none';
		    }
			    document.all[liname].style.display = 'inline';
			    }
				else
				{
				//document.all[liname].style.display = 'none';
				}
			}
			
			
			if (ff2ns8 && ie!=true) //firefox
			{
            //document.getElementById("land1").className="";
			
			if (document.getElementById(liname).style.display == 'none')
			   {
			for (var i=1; i<mycount_num+1; i++)
		    {
		    itemname=mywhere+i
		    document.getElementById(itemname).style.display='none';
		    }
			document.getElementById(liname).style.display= "inline";
			   }
			   else
			   {
			  // document.getElementById(liname).style.display= 'none';
			   }
			

            
			}
}
	
	


        
       













function show(imgsrc,picid,e) 
{
       if (ie)
          {
		  var numis = "0"
		  numis=window.event.clientY
		  var myscroll="0"
		  myscroll=document.documentElement.scrollTop
		  newpos=numis+myscroll

document.all.bigpic.style.top = newpos;
document.all.bigpic.style.left = Math.round(screen.width/2-260);

document.all.largepic.src=imgsrc;
document.all.bigpic.style.display = 'block';
		  }
	   if(ff2ns8 && ie!=true) 
          {



		  var numis = "0"
		  numis=e.pageY
          var myscroll="0"
          myscroll=window.pageYOffset
		  newpos=numis+myscroll  
 
document.getElementById("bigpic").style.top = numis+"px";
document.getElementById("bigpic").style.left = Math.round(screen.width/2-260)+"px";

document.getElementById("largepic").src=imgsrc;
document.getElementById("bigpic").style.display = 'block';
		  }
}


      function hide() 
{
       if (ie)
          {

          document.all.bigpic.style.display = 'none';

		  }
	   if (ff2ns8 && ie!=true)
          {

          document.getElementById("bigpic").style.display = 'none';

		  }
}

      function showjump() 
{
       if (ie)
          {
          document.all.jumpplace.style.marginTop = "0px";
		  }
	   if (ff2ns8 && ie!=true)
          {
          document.getElementById("jumpplace").style.marginTop="0px";
		  document.getElementById("header").style.top="0px";
          }
}




      function focusinput() 
{
       if (ie)
          {
          
		  }
	   if (ff2ns8 && ie!=true)
          {
		  //document.getElementById("mysearch").focus();
		  }
}











