
	
		$(document).ready(function() {
		
		$("a.single_image").fancybox({
			
			 'zoomSpeedIn': 300, 'zoomSpeedOut': 300, 'overlayShow': false, 'zoomOpacity': true
		
		}); 
				
		});

		


function open_popup(path,id)
{


 Zweitbild = new Image();


	//document.getElementById(id).innerHTML = Zweitbild.width;
	//alert("asd");

  arsch =
  window.open("view.html","","width=" + Zweitbild.width + ",height=" + Zweitbild.height);


  $pic = path;

}

function open_pic()
{
  parent.arsch.my_view($pic);
}
function set_menge($id){
	document.getElementById("tf" + $id).value = "1";
}

function best_msg($id,$cnt)
{
//alert($id);
	//document.getElementById("td" + $id).className = "white_ru_wk";
	set_menge($id);
	//alert($id);
	document.getElementById("wk" + $id).innerHTML = $cnt + " x <a href=index.php?page=ShowWK#art" + $id + "><img style='border:0px;' alt='gehe zu Artikel im Warenkorb' title='gehe zu Artikel im Warenkorb' src='img/basketPic.gif'><\/a>";
	//alert("sdf");
}

function best_msgBig($id,$cnt)
{
//alert($id);
	document.getElementById("td" + $id).className = "white_ru_wk";
	set_menge($id);
	document.getElementById("wk" + $id).innerHTML = $cnt + " x&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=index.php?page=ShowWK#art" + $id + ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/a>";
	//alert("sdf");
}


function tcall()
{
	alert("hallo");
}
//best_msg();

