$(document).ready(function(){ 
	    
    		var lblTagS = $( "span[id$='lblKWizComTag']" );
			if(lblTagS.html() != ""){
			lblTagS.parent().css("visibility","visible");
			}
			var lblTagS1 = $( "input[id$='txtKWizComTag']" );
			lblTagS1.parent().css("visibility","visible");
			
			var hyperlinkrss = $( "a[id$='RSSHyperlink']" );
			hyperlinkrss.parent().children().css("visibility","hidden");		
			
			$( "a[id$='GoBackHyperlink']").css("visibility","visible");
			
			 $( "A[href *= '/_layouts/KWizCom_TaggingFeature/TagPagesList.aspx' ]" ).each(function (i) {
			 
			 		var myref = $(this).attr("href");		   			
		   			$(this).attr("href",replaceTagWithSearchLink(myref));
		   			
			});		        
		 }); 
		   
 $(document).ready(function() {
		   		    		
		$(".amdcs-RegularTextLink * a").addClass("Dyamdcs-RegularTextLink");
					 		   
		    
		    var stringhieght = $( "img[alt='Enter the code shown above:']" );
			stringhieght.height('22px');
			
			var imageCapthcha = $( "img[id$='CaptchaImage']" );
			imageCapthcha.height('22px');

			var lblCapthcha = $( "label[id$='CaptchaTextBoxLabel']" );
			lblCapthcha.css("display","none");
			
			 $(".amdcs-promo-display").each(function (i) {
		   			var promoHtml = $(this).children(".amdcs-promo-content").html();
				    $(this).children(".amdcs-promo-content").html(unescape(promoHtml));
			});
				
			$(".srch-BB-SpecialTerm").each(function (i) {
		   			 $(this).children(".ms-WPBody").each(function (j) {
		   			 var promoHtmldiv = $(this).html();
		   			 $(this).html(unescape(promoHtmldiv));
				    	});
			});
			
			$(".srch-BB-Description").each(function (i) {
		   			 var HTMLBestBets = $(this).html();
		   			 $(this).html(unescape(HTMLBestBets));
				    
			});

			
			
});
		   
