    var DataFiles = ["http://www.pokerstarsblog.net/tournaments/north-american-poker-tour/assets.js"]
    $(document).ready(function() {
        $(DataFiles).each(function() {				   
            var fileref = document.createElement('script');
            fileref.setAttribute("type", "text/javascript");
            fileref.setAttribute("src", this.toString());
            document.getElementsByTagName("head")[0].appendChild(fileref);
        })
    });
	
	
	
    
	function psRenderGallery(obj) {
        
		
		
		
		var container = $('#gallery');
		var descheck = / /i;
		var thumbcheck = /thumb/i;
		var intimg = '<div class="active">\
		<img src="http://www.napt.com/images/napt_big-image.jpg" alt="NAPT Photo Gallery" />\
		<p></p>\
		</div>'
		container.append(intimg);
        $(obj.assets).each(function(el) {
		
		if (thumbcheck.test(this.asset) == true || thumbcheck.test(this.description) == true) {
			return;
		} else if (!this.asset) {
			return;
		}  else //if (descheck.test(this.asset) == true || descheck.test(this.description) == true)
		{
				var img = this.asset;
				var cap = this.description;
                var str = '<div> \
				<img src="' + img + '" alt="' + cap + '" />\
				<p>' + cap + '</p>\
				</div>';
                container.append(str);
            }
        });
        //Uncomment the line below to use the jquery scroll bar, but you will need to add it's reference at the top.
        //container.jScrollPane({ showArrows: true, scrollbarWidth: 15 
        
    }
	
	/*function psRenderBlogs(obj) {
        
		var container = $('#latestPosts');
        container.html('');
        
		$(obj.blogs).each(function(el) {
            
			if (this.hasOwnProperty('post') && (el <= 3)) {
				if (el == 0) {
					var newsBox = ('<div id="newsFeature">');
				} else {
					var newsBox = ('<div class="newsItm">');
				}
				var post = this.post;
				var limit = 200;
				var limitedPost = (post.substr(0, limit-1) +'\
				...\
				<br /><a href="' + this.link + '" target="_blank">Read More</a>');
                var str = '	' + newsBox + '\
				<h2><a href="' + this.link + '" target="_blank">' + this.title + '</a></h2>\
		        <p>' + limitedPost + '</p>\
				</div>';
                container.append(str);
            }
		});
	}*/
