  $(document).ready(function(){
	  	$('div.menu_left:eq(0)> ul.slide').hide();  
  		$('div.menu_left:eq(0)> a.minus_aktual').click(function() {
			$(this).toggleClass("plus");
			$(this).next().slideToggle('slow');
		 });
  		$('div.menu_left:eq(0)> a.plus').click(function() {
			$(this).toggleClass("minus");
			$(this).next().slideToggle('slow');
		 });

   		/*$('a.new-window').click(function(id){
   		    window.open(this.href=('turbo_images.php?file_name=' + id + '_1.jpg&set_name=photo_kuchyne&zoom=1'));
	   	   return false;
 	   });*/

  });

function change_src(path, cislo, pocet_photo){
		document.getElementById("img_kuchyn").src="/temp/photo_kuchyne_tmb_" + path + "_1.jpg";
		document.getElementById("a_download").href="/kuchyne/download/" + path +".jpg";		
		document.getElementById("a_kuchyn").href="/temp/photo_kuchyne_zoom_" + path + "_1.jpg";
		
			for (i=1;i<pocet_photo;i++)
			{
			document.getElementById("cislo"+i).style.color = "#9b9b9b";
			}
		if(document.getElementById){
			document.getElementById(cislo).style.color = "#c80000";
		}
		return false;
}


function change_nabytek_src(path, cislo, pocet_photo){
		document.getElementById("img_kuchyn").src = "/temp/photo_nabytek_tmb_" + path + "_1.jpg";
		document.getElementById("a_download").href="/nabytek/download/" + path + ".jpg";		
		document.getElementById("a_kuchyn").href="/temp/photo_nabytek_zoom_" + path + "_1.jpg";
		
			for (i=1;i<pocet_photo;i++)
			{
			document.getElementById("cislo"+i).style.color = "#9b9b9b";
			}
		if(document.getElementById){

		document.getElementById(cislo).style.color = "#c80000";
		}		
		return false;
}

function ChangeColor(tableRow, highLight)
    {
    if (highLight)
    {
      tableRow.style.backgroundColor = "#fafafa";
    }
    else
    {
      tableRow.style.backgroundColor = "";
    }
  }


function DoNav(theUrl)
  {
  document.location.href = theUrl;
  } 
  
function DoTarget(theUrl)
  {
	window.open(theUrl,'','');
  }   
  
function NewWindow(mypage,myname,w,h,scroll){
  var win= null;
  var winl = (screen.width-w)/2-15;
  var wint = (screen.height-h-80)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=no';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
  
function clearText(field){ 

    if (field.defaultValue == field.value) field.value = '';
    else if (field.value == '') field.value = field.defaultValue;

}  
