function togglehide(targetId){
	if ( document.getElementById ){
		target = document.getElementById(targetId);
		target.style.display = "none";
		}
}

function toggledisplay(targetId){
	if ( document.getElementById ){
		target = document.getElementById(targetId);
		target.style.display = "block";
		/* switch ( target.style.display ) {
			case "none":
				target.style.display = "block";
				break;
			case "block":
				target.style.display = "none";
				break;
			default:
				target.style.display = "none";
				break; 
		}*/
	}
}	



massid = new Array("baza","services","studio","advert","pedi","ultra","rentgen","mani","func","fizio","graz");

lbaza=0;
lservices=0;
lstudio=0;
ladvert=0;
lpedi=0;
lultra=0;
lrentgen=0;
lmani=0;
lfunc=0;
lfizio=0;
lgraz=0;

function hideall()
{	
	for(n in massid)
	{
		togglehide(massid[n]);
	}
}
	

function switchgraz(){
	if (lgraz%2 != 0)
			 {
	 		 lgraz++;
  			 togglehide ('graz');
			}

	else 
			{
			lgraz++;
			toggledisplay('graz');
			}
	}


function switchfunc(){
	if (lfunc%2 != 0)
			 {
	 		 lfunc++;
  			 togglehide ('func');
			}

	else 
			{
			lfunc++;
			toggledisplay('func');
			}
	}


function switchfizio(){
	if (lfizio%2 != 0)
			 {
	 		 lfizio++;
  			 togglehide ('fizio');
			}

	else 
			{
			lfizio++;
			toggledisplay('fizio');
			}
	}


function switchmani(){
	if (lmani%2 != 0)
			 {
	 		 lmani++;
  			 togglehide ('mani');
			}

	else 
			{
			lmani++;
			toggledisplay('mani');
			}
	}

function switchrentgen(){
	if (lrentgen%2 != 0)
			 {
	 		 lrentgen++;
  			 togglehide ('rentgen');
			}

	else 
			{
			lrentgen++;
			toggledisplay('rentgen');
			}
	}

	
function switchultra(){
	if (lultra%2 != 0)
			 {
	 		 lultra++;
  			 togglehide ('ultra');
			}

	else 
			{
			lultra++;
			toggledisplay('ultra');
			}
	}


function switchstudio(){
	if (lstudio%2 != 0)
			 {
	 		 lstudio++;
  			 togglehide ('studio');
			}

	else 
			{
			lstudio++;
			toggledisplay('studio');
			}
	}


	
function switchbaza(){
	if (lbaza%2 != 0)
			 {
	 		 lbaza++;
  			 togglehide ('baza');
			}

	else 
			{
			lbaza++;
			toggledisplay('baza');
			}
	}
	
function switchservices(){
	if (lservices%2 != 0)
			 {
	 		 lservices++;
  			 togglehide ('services');
			}

	else 
			{
			lservices++;
			toggledisplay('services');
			}
	}

function switchadvert(){
	if (ladvert%2 != 0)
			 {
	 		 ladvert++;
  			 togglehide ('advert');
			}

	else 
			{
			ladvert++;
			toggledisplay('advert');
			}
	}

		
function switchpedi(){
	if (lpedi%2 != 0)
			 {
	 		 lpedi++;
  			 togglehide ('pedi');
			}

	else 
			{
			lpedi++;
			toggledisplay('pedi');
			}
	}
