$(function(){
		   function setCookie(c_name, value, expiredays)
			{
				var exdate = new Date();
				exdate.setDate(exdate.getDate() + expiredays);
				document.cookie = c_name + "=" + escape(value) + ((expiredays==null) ? "" : ";expires=" + exdate.toGMTString()) + "path = / ; domain = .cnpackingmachine.net";
			}
			
			function getCookie(name)
			{
			  var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
			  if(arr != null) return unescape(arr[2]); return null;
			}
			
			function delCookie(name)
			{
			  var exp = new Date();
			  exp.setTime(exp.getTime() - 1);
			  var cval=getCookie(name);
			  if(cval!=null) document.cookie=name +"="+cval+";expires="+exp.toGMTString();
			}
			
		   $("#view_gallery").click(function(){
											 $(".prodes").hide();
											 $(".protext").each(function(i){$(this).before($(".proimg").eq(i))});
											 $(".proboxlist").removeClass("proboxlist").addClass("probox");
											 this.src="/skin/images/viewgallery2.gif";
											 $("#view_list").attr("src","/skin/images/viewlist.gif")
											 })
		   
		   $("#view_list").click(function(){
											 $(".prodes").show();
											 $(".protext").each(function(i){$(this).after($(".proimg").eq(i))});
											 $(".probox").removeClass("probox").addClass("proboxlist");
											 this.src="/skin/images/viewlist2.gif";
											 $("#view_gallery").attr("src","/skin/images/viewgallery.gif")
											 })
		   if(getCookie("tradett")=="")
			setCookie("tradett",0,1);
			else if(getCookie("tradett")==1)
		    $("#view_gallery").click();
		    else if(getCookie("tradett")==0)
		    $("#view_list").click();
			
			var mystr = "{#ProductClassName#}";
			if(mystr == "L.V.L.P Spray Gun"){
				$(".cdes").hide();
				$(".cdes2").append("<p>L.V.L.P Series Spray Gun is the newest one researched and developed by our researching team with great concentration. It is low volume low pressure, and economizes more energy source at the same time with the advantage of H.V.L.P. spray gun: excellence on environmental and paint saving. The best distribution of the inner pressure makes it get the perfect pulverization function, and it satisfy the various high requirements of professional paint.</p><p>You can choose freely between 20-30 psi when painting and then you can get the perfect pulverization function. The gun body is adopted Ergonomics design so that you handle it comfortably and press the trigger softly, and it is not easy to be tired when operating.  When painting, the two air currents are distributed in reason, which can decrease paint splash and rebound, enhance paint adhesion, improve working environment greatiy and decrease the damage of people.</p>")};
			if(mystr == "H.V.L.P-II Spray Gun"){
				$(".cdes").hide();
				$(".cdes2").append("<p>H.V.L.P-II Spray Gun is the improved form of old-fashioned H.V.L.P Spray Gun Series.</p><p>It is a real style of environment-friendly, paint-saving spray gun, with various advantages: reduce splashing and bouncing through the application of high flow, low pressure technology; increase paint adhesion; save material for the transfering efficiency above 20-30% over traditional spray gun.<br />Air cap and air line construction are both improved too, to optimize the inner pressure distribution and for the first-class pulverization function.</p><p>Alternative digital to control pressure handily and accurately. Can freely pick pressure value between 20psi and 40psi to be at sufficient optimal performance.</p><p>Detect each piece of spray gun 100% manually to ensure a constant high quality of each piece of spray gun and replaceable nozzle kit.</p><p>It is of good cost performance, the best substitutes of the one in same industry for you.</p>")};
			if(mystr == "L.V.M.P(RP) Spray Gun"){
				$(".cdes").hide();	
				$(".cdes2").append("<p>L.V.M.P(RP) Series Spray Gun (also called RP series spray gun) adopts low volume middle pressure technology. The optimized pressure inner air cap can bring better economic value----painting with quick speed and over 65% transferring efficiency, saving 20-30% than traditional spray gun. You can choose it with built-in digital to control expediently painting pressure, and also can choose freely between 20psi and 40psi to exert the optimal performance. We inspect manually each spray gun one by one and ensure with the same high quality after replacing nozzle set of every one.The spray gun is the best chosse of professional sprayer.</p>")};
			if(mystr == "Automotive Coating Spray Gun"){
				$(".cdes").hide();	
				$(".cdes2").append($("#expensive"));
				$("#expensive").show()
				}
})
