(function ($) {
    $(document).ready(function () {
    	
    	
    	
    		$("#agility").click(function(){
    	
    	
    	
    	
    			var b = $("#start1").find("option:selected").text();	
				var c = $("#end1").find("option:selected").text();
				var s = $("#rptLevelList_ctl10_lblPrice").text();
				var y = $("#rptLevelList_ctl10_lblTime").text();
				var g = $("#rptLevelList_ctl10_lblGold").text();
				var a = $("#skill").val();	
				var e="agility";	
				if($("#agility").attr("checked")==true){			
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
							
						$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
    						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
							
							
    						});
    						    		$("#attack").click(function(){
    		   var b = $("#start2").find("option:selected").text();	
				var c = $("#end2").find("option:selected").text();
				var s = $("#rptLevelList_ctl11_lblPrice").text();
				var y = $("#rptLevelList_ctl11_lblTime").text();
				var g = $("#rptLevelList_ctl11_lblGold").text();
				var a = $("#skill").val();
   var e="attack";				
    	if($("#attack").attr("checked")==true){
    		
    	
    		
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    						
							$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
							
							}
						else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});
    						$("#constitution").click(function(){
    	var b = $("#start3").find("option:selected").text();	
				var c = $("#end3").find("option:selected").text();
				var s = $("#rptLevelList_ctl21_lblPrice").text();
				var y = $("#rptLevelList_ctl21_lblTime").text();
				var g = $("#rptLevelList_ctl21_lblGold").text();
				var a = $("#skill").val();
 var e="constitution";	
    	if($("#constitution").attr("checked")==true){
    		
    	
    						
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					
						$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});
    						$("#construction").click(function(){
    			var b = $("#start4").find("option:selected").text();	
				var c = $("#end4").find("option:selected").text();
				var s = $("#rptLevelList_ctl12_lblPrice").text();
				var y = $("#rptLevelList_ctl12_lblTime").text();
				var g = $("#rptLevelList_ctl12_lblGold").text();
				var a = $("#skill").val();
    						var e="construction";
    	if($("#construction").attr("checked")==true){
    		
    	
    					
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    						
						$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);	
							
							}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});
    							$("#cooking").click(function(){
    			var b = $("#start5").find("option:selected").text();	
				var c = $("#end5").find("option:selected").text();
				var s = $("#rptLevelList_ctl13_lblPrice").text();
				var y = $("#rptLevelList_ctl13_lblTime").text();
				var g = $("#rptLevelList_ctl13_lblGold").text();
				var a = $("#skill").val();
    							var e="cooking";
    	if($("#cooking").attr("checked")==true){
    		
    	
    					
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);	
							
							}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
							
    						});
    							$("#crafting").click(function(){
    	
    			var b = $("#start6").find("option:selected").text();	
				var c = $("#end6").find("option:selected").text();
				var s = $("#rptLevelList_ctl14_lblPrice").text();
				var y = $("#rptLevelList_ctl14_lblTime").text();
				var g = $("#rptLevelList_ctl14_lblGold").text();
				var a = $("#skill").val();
    						var e="crafting";	
    	if($("#crafting").attr("checked")==true){
    		
    				
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					
						$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});
        							$("#defence").click(function(){
    			var b = $("#start7").find("option:selected").text();	
				var c = $("#end7").find("option:selected").text();
				var s = $("#rptLevelList_ctl15_lblPrice").text();
				var y = $("#rptLevelList_ctl15_lblTime").text();
				var g = $("#rptLevelList_ctl15_lblGold").text();
				var a = $("#skill").val();
    				var e="defence";	
    	if($("#defence").attr("checked")==true){
    		
    	
    				
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					
						$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});		
    	        							$("#dungeoneering").click(function(){
    		var b = $("#start8").find("option:selected").text();	
				var c = $("#end8").find("option:selected").text();
				var s = $("#rptLevelList_ctl46_lblPrice").text();
				var y = $("#rptLevelList_ctl46_lblTime").text();
				var g = $("#rptLevelList_ctl46_lblGold").text();
				var a = $("#skill").val();
    					var e="dungeoneering";
    	if($("#dungeoneering").attr("checked")==true){
    		
    	
    						
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					
						$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
    						});		
    	    	        							$("#farming").click(function(){
    			var b = $("#start9").find("option:selected").text();	
				var c = $("#end9").find("option:selected").text();
				var s = $("#rptLevelList_ctl16_lblPrice").text();
				var y = $("#rptLevelList_ctl16_lblTime").text();
				var g = $("#rptLevelList_ctl16_lblGold").text();
				var a = $("#skill").val();
    			var e="farming";	
    	if($("#farming").attr("checked")==true){
    		
    	
    				
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					
						$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
						else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
						
						
    						});			
    		    	    	        							$("#firemaking").click(function(){
    				var b = $("#start10").find("option:selected").text();	
				var c = $("#end10").find("option:selected").text();
				var s = $("#rptLevelList_ctl17_lblPrice").text();
				var y = $("#rptLevelList_ctl17_lblTime").text();
				var g = $("#rptLevelList_ctl17_lblGold").text();
				var a = $("#skill").val();
    		    			var e="firemaking";	
    	if($("#firemaking").attr("checked")==true){
    		
    	
    			
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					
						$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
    						});		
  $("#fishing").click(function(){
    			var b = $("#start11").find("option:selected").text();	
				var c = $("#end11").find("option:selected").text();
				var s = $("#rptLevelList_ctl18_lblPrice").text();
				var y = $("#rptLevelList_ctl18_lblTime").text();
				var g = $("#rptLevelList_ctl18_lblGold").text();
				var a = $("#skill").val();
    					var e="fishing";	
    	if($("#fishing").attr("checked")==true){
    		
    	
    				
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					
						$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});		
    	  $("#fletching").click(function(){
    			var b = $("#start12").find("option:selected").text();	
				var c = $("#end12").find("option:selected").text();
				var s = $("#rptLevelList_ctl19_lblPrice").text();
				var y = $("#rptLevelList_ctl19_lblTime").text();
				var g = $("#rptLevelList_ctl19_lblGold").text();
				var a = $("#skill").val();
    					var e="fletching";	
    	if($("#fletching").attr("checked")==true){
    		
    	
    				
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});																		
    	  $("#herblore").click(function(){
    			var b = $("#start13").find("option:selected").text();	
				var c = $("#end13").find("option:selected").text();
				var s = $("#rptLevelList_ctl20_lblPrice").text();
				var y = $("#rptLevelList_ctl20_lblTime").text();
				var g = $("#rptLevelList_ctl20_lblGold").text();
				var a = $("#skill").val();
    					var e="herblore";	
    	if($("#herblore").attr("checked")==true){
    		
    	
    				
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});					
     $("#hunter").click(function(){
    		var b = $("#start14").find("option:selected").text();	
				var c = $("#end14").find("option:selected").text();
				var s = $("#rptLevelList_ctl22_lblPrice").text();
				var y = $("#rptLevelList_ctl22_lblTime").text();
				var g = $("#rptLevelList_ctl22_lblGold").text();
				var a = $("#skill").val();
    					var e="hunter";	
    	if($("#hunter").attr("checked")==true){
    		
    	
    					
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);	
							
							}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});				
    		     $("#magic").click(function(){
    	
    			var b = $("#start15").find("option:selected").text();	
				var c = $("#end15").find("option:selected").text();
				var s = $("#rptLevelList_ctl23_lblPrice").text();
				var y = $("#rptLevelList_ctl23_lblTime").text();
				var g = $("#rptLevelList_ctl23_lblGold").text();
				var a = $("#skill").val();
    					var e="magic";	
    	if($("#magic").attr("checked")==true){
    		
    				
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    						$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
							
							}
							
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});				
    	 $("#mining").click(function(){
    		var b = $("#start16").find("option:selected").text();	
				var c = $("#end16").find("option:selected").text();
				var s = $("#rptLevelList_ctl24_lblPrice").text();
				var y = $("#rptLevelList_ctl24_lblTime").text();
				var g = $("#rptLevelList_ctl24_lblGold").text();
				var a = $("#skill").val();
    						var e="mining";	
    	if($("#mining").attr("checked")==true){
    		
    	
    					
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});				
     $("#prayer").click(function(){
    			var b = $("#start17").find("option:selected").text();	
				var c = $("#end17").find("option:selected").text();
				var s = $("#rptLevelList_ctl25_lblPrice").text();
				var y = $("#rptLevelList_ctl25_lblTime").text();
				var g = $("#rptLevelList_ctl25_lblGold").text();
				var a = $("#skill").val();
    					var e="prayer";		
    	if($("#prayer").attr("checked")==true){
    		
    	
    			
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});				
    	 $("#ranged").click(function(){
    			var b = $("#start18").find("option:selected").text();	
				var c = $("#end18").find("option:selected").text();
				var s = $("#rptLevelList_ctl26_lblPrice").text();
				var y = $("#rptLevelList_ctl26_lblTime").text();
				var g = $("#rptLevelList_ctl26_lblGold").text();
				var a = $("#skill").val();
    						var e="ranged";	
    	if($("#ranged").attr("checked")==true){
    		
    	
    				
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});			
        	 $("#runecrafting").click(function(){
    	 			var b = $("#start19").find("option:selected").text();	
				var c = $("#end19").find("option:selected").text();
				var s = $("#rptLevelList_ctl27_lblPrice").text();
				var y = $("#rptLevelList_ctl27_lblTime").text();
				var g = $("#rptLevelList_ctl27_lblGold").text();
				var a = $("#skill").val();
    						var e="runecrafting";	
    	if($("#runecrafting").attr("checked")==true){
    		
    	
   			
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					
						$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});				
    		 $("#slayer").click(function(){
    	  			var b = $("#start20").find("option:selected").text();	
				var c = $("#end20").find("option:selected").text();
				var s = $("#rptLevelList_ctl28_lblPrice").text();
				var y = $("#rptLevelList_ctl28_lblTime").text();
				var g = $("#rptLevelList_ctl28_lblGold").text();
				var a = $("#skill").val();
    						var e="slayer";	
    	if($("#slayer").attr("checked")==true){
    		
    	
  			
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});				
     $("#smithing").click(function(){
    				var b = $("#start21").find("option:selected").text();	
				var c = $("#end21").find("option:selected").text();
				var s = $("#rptLevelList_ctl29_lblPrice").text();
				var y = $("#rptLevelList_ctl29_lblTime").text();
				var g = $("#rptLevelList_ctl29_lblGold").text();
				var a = $("#skill").val();
    					var e="smithing";
    	if($("#smithing").attr("checked")==true){
    		
    	
    				
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});				
    	     $("#summoning").click(function(){
    			var b = $("#start22").find("option:selected").text();	
				var c = $("#end22").find("option:selected").text();
				var s = $("#rptLevelList_ctl30_lblPrice").text();
				var y = $("#rptLevelList_ctl30_lblTime").text();
				var g = $("#rptLevelList_ctl30_lblGold").text();
				var a = $("#skill").val();
    					var e="summoning";	
    	if($("#summoning").attr("checked")==true){
    		
    	
    				
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					
						$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});																																																																													
        	     $("#strength").click(function(){
    				var b = $("#start23").find("option:selected").text();	
				var c = $("#end23").find("option:selected").text();
				var s = $("#rptLevelList_ctl31_lblPrice").text();
				var y = $("#rptLevelList_ctl31_lblTime").text();
				var g = $("#rptLevelList_ctl31_lblGold").text();
				var a = $("#skill").val();
    					var e="strength";
    	if($("#strength").attr("checked")==true){
    		
    	
    				
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					
						$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});		
    	        	     $("#thieving").click(function(){
    			var b = $("#start24").find("option:selected").text();	
				var c = $("#end24").find("option:selected").text();
				var s = $("#rptLevelList_ctl32_lblPrice").text();
				var y = $("#rptLevelList_ctl32_lblTime").text();
				var g = $("#rptLevelList_ctl32_lblGold").text();
				var a = $("#skill").val();
    					var e="thieving";
    	if($("#thieving").attr("checked")==true){
    		
    	
    					
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					
						$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});	
    			    	        	     $("#woodcutting").click(function(){
    			var b = $("#start25").find("option:selected").text();	
				var c = $("#end25").find("option:selected").text();
				var s = $("#rptLevelList_ctl33_lblPrice").text();
				var y = $("#rptLevelList_ctl33_lblTime").text();
				var g = $("#rptLevelList_ctl33_lblGold").text();
				var a = $("#skill").val();
    					var e="woodcutting";
    	if($("#woodcutting").attr("checked")==true){
    		
    	
    					
    						$.post('configs/ajax/fit.checkbox.ajax.php',{'e':e,'a':a,'b':b,'c':c,'s':s,'y':y,'g':g},function(data){
						$("#skill").attr("value",data);	 
						});
    					
						$('#cartcontent').html($('#cartcontent').get(0).innerHTML+'<div id="'+e+'_n"><span style="width:100px; height:25px; float:left;background-image:url(\'images/gwc_x.png\');background-repeat:no-repeat;background-position:5px 4px;padding-left:25px; ">'+e+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+b+'</span><span id="asdasd" style="width:30px; height:25px; float:left; text-align:center; margin-left:60px;">'+c+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:47px;">'+s+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:28px;">'+y+'</span><span style="width:30px; height:25px; float:left; text-align:center; margin-left:20px;">'+g+'</span><span style="width:30px; height:25px; float:left; text-align:center;"><img  id="'+e+'_close"src="images/closedh_pl.png" style="margin-top:7px; float:right;cursor:pointer;" onclick ="delcontent(this);" /></span></div>');
						
						$('#tipcontent').html('1 product has been added into your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
						
						}
							else{
								
								var zcon=$('#cartcontent').get(0).innerHTML.toLowerCase();
								var con1='<div id="'+e+'_n">';
								
								
							if(zcon.indexOf(con1)>=0)	{
								
								
						var	content='<div id="'+e+'_n">'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
							}
							else{
								
								var	content='<div id='+e+'_n>'+$('#'+e+'_n').get(0).innerHTML.toLowerCase()+'</div>';
								
								}
						var recontent=$('#cartcontent').get(0).innerHTML.toLowerCase().replace(content,'');
						
						 
									$('#cartcontent').html(recontent);
								
						
						$('#tipcontent').html('1 product has been deleted from your shopping cart.');
						$("#carttip").slideDown("fast");
						
						setTimeout(function(){closeTopAD();},3000);
									
								
								}
							
    						});													
    		
    });
})(jQuery);

