
function socialswitch(meh,moo) {

		// jQuery('#socialresults').css('padding','2px 8px'); 
		if (meh == 'sm-facebook') { jQuery('#socialresults').css('padding','2px'); } else { jQuery('#socialresults').css('padding','2px 8px'); }

		jQuery('#socialswitchy li').removeClass('currentsel');
		jQuery('#' + meh).parent().addClass('currentsel');
		jQuery('#indicator').addClass('waiting');

		jQuery('#socialresults').load('inc/' + meh + '.asp', function() { 

			jQuery('#indicator').removeClass('waiting'); jQuery('#searchresultset').pagination(); 
			jQuery('#socialresults').append('<div class="smmore"><a href="' + moo + '">more...</a></div><br class="cb" />'); 
			scanvidthumbs();
		});
	}

	function scanvidthumbs() {
		jQuery('.ytdescr div:first-child').css('width','auto');
		jQuery('.ytdescr table tr td:first-child').empty().remove();
		jQuery('.ytdescr table tr td:first-child').attr('width','360');

		jQuery('.gtvthumb a').each(function() { jQuery(this).attr('href',"javascript:gtvthumb('" + jQuery(this).attr('id') + "');"); } );
	}

	function delaysifr() {
		var moo = '#' + jQuery(this).attr('id') + ' h1.sifr';
		sIFR.replaceElement(named({sSelector:moo, sFlashSrc:"/Images/dinn_medium_tcm76-20616.swf", sColor:"#ffffff", sLinkColor:"#ffffff", sBgColor:"#004959", sHoverColor:"#ffffff", sCase:"upper", sWmode:"transparent" }));
	}

	function ytthumb(ytid) { 
		jQuery('#ytt_' + ytid).hide(); 
		jQuery('#vid_' + ytid).show(); 

	}
	function gtvthumb(ytid) { 
		jQuery('#gtv_' + ytid).hide(); 
		jQuery('#largebluewrapper').detach().appendTo('#vid_' + ytid); 
		jQuery('#vid_' + ytid).show(); 
		var player = new largeblue.player.MultiFormatPlayer(ytid); 
	}

	function nlbp_showdesc(clkid){
		jQuery(clkid + ' span.carcaption').animate({top:0},'slow');
		jQuery(clkid + ' > div').fadeOut('slow',function() { 
			jQuery(clkid + '-details').fadeIn('slow', function() { 
				jQuery(clkid + ' span.carcaption').unbind().click(function(event){ 
					nlbp_hidedesc(clkid); 
					// event.stopPropagation;
				}); 
			});	
		});
	}
	
	function nlbp_hidedesc(clkid){
		jQuery(clkid + ' span.carcaption').animate({top:276},'slow');
		jQuery(clkid + '-details').fadeOut('slow',function() { 
			jQuery(clkid + ' > div').fadeIn('slow',function() {
				jQuery(clkid + ' span.carcaption').unbind().click(function(event){
					nlbp_showdesc(clkid);
					// event.stopPropagation;
				});
			}); 
		});
	}

	function nlbp_reset(oldItems) {
		oldItems.find('.carbg').show();
		oldItems.find('.cardetails').hide();
		oldItems.find('span.carcaption').css('top','276px');
	}
