this.changeimage = function(){
	$("a.changeimage").click(function(event){
		event.preventDefault();
		
		var path = $("span",this).text();
		
		$("#product_image").attr("href", "../images/products/"+ path +"_big.jpg");
		$("#product_image img").attr("src", "../images/products/"+ path +".png");
		
		/*
		dddd = $("#product_image img:first");
		alert(dddd.attr("src"));
		*/

		 $(document).ready(function() {
		   var badBrowser = (/MSIE ((5\.5)|6)/.test(navigator.userAgent) && navigator.platform == "Win32");
		   if (badBrowser) {
			 // get all pngs on page
			 $('#product_image img[src$=.png]').each(function() {
			   if (!this.complete) {
				 this.onload = function() { fixPng(this) };
			   } else {
				 fixPng(this);
			   }
			 });
		   }
		 });
		
	});
};



// starting the script on page load
$(document).ready(function(){
	changeimage();
});