<!--

function listingVideoYouTube( element, tableID, listingID){
	var url = "http://services.worldweb.com:8001/record-json.html?mode=jsonListingAttachedVideo&tableID=" + tableID + "&listingID=" + listingID;	

	if ( ! $(element).attr('clicked') ){
	   $.getJSON( url, function(json){
             $.each( json.records, function( k, value ){

				var html = '<a rel="prettyPhoto" href="' + value.url +'"><img class="prettyPhoto" src="' + value.img + '" /></a> ';

				$(element).parent("td").find("br:eq(1)").after( html ); 
             });
		$(element).parent("td").find("a[rel^='prettyPhoto']:last").after( "<br />" ); 
		$("a[rel^='prettyPhoto']").prettyPhoto();

		$(element).attr('clicked','true');
	   }); 

	}
}
$("head").append("<link>");
css = $("head").children(":last");

var Host = (("https:" == document.location.protocol) ? "G3Javascript" : "http://www.worldweb.com/javascript/2009");

css.attr({
      rel:  "stylesheet",
      type: "text/css",
      href: Host + "/prettyphoto/css/prettyPhoto.css",
      media: "screen"
});

$.getScript(Host + "/prettyphoto/js/jquery.prettyPhoto.js");
//-->

