function load_data() {
		this.Class = Math.round(Math.random() * 10000000000000000);
		var ValUrl = "transport.php";
		var DesUrl = "http://38.101.42.52/get_videos_listing.php";
		var RedUrl = "http://community.finditquick.com/media/";
		
		$("#baner_frame").html("<img src='images/pb_gap.gif' border='0' style='margin-left: 9; margin-top: 20;'>");
		
		$.get(ValUrl,
		{
			RandomNumber: this.Class,
			dest_url: DesUrl, 
			o: 2
		},
		function (xml) {
			var i = 0;
			var p = 0;
			var ap = 0;
			var dw = 0;
			var shw = [];
			var img_bar = "";

			while(i < 5) {
				$("item",xml).each(function() {
					RandNum = Math.round(Math.random() * 10000000000000000);
					
					id  = $(this).children("file_id").text();
					img = $(this).children("thumb").text();  
					tit = $(this).children("title").text();
					pit = $(this).children("title").text().replace(/\s/g, "_");
					
					if(img != 'http://community.finditquick.com/thumbs/no_image.gif' && RandNum % 2 && i < 5 && !shw.in_array(id)){
						
						if(i < 2) { p = 7; ap = 0; dw = 133; }
						else if(i > 2) { p = 0; ap = 7;  dw = 133; }
						else { p = 4; ap = 4; dw = 135; }

						img_bar = img_bar + "<div style='float: left; width: " + dw + "px; height: 140px;'>" +
						"<div id='d_" + id + "' style='padding-left: " + p + "; padding-top: 2; width: 120px;'>" + 
						"<div style='padding: 1px; border-style: solid; border-width: 1px; border-color: #777777; width: 120px; height: 90px;'>" + 
						"<a href='" + RedUrl + id + "/" + pit + "/' >" + 						
						"<img src='" + img + "' border='0' " + 
						"onmouseover=\"ch_padding('#d_" + id + "', 17, " + ap + ", '#t_" + id + "', '" + tit + "');\" " +  
						"onmouseout=\"ch_padding('#d_" + id + "', 2, " + p + ", '#t_" + id + "', '&nbsp;');\" " + 
						" border='0'></a></div>" + 
						"<div id='t_" + id + "' style='font-family: verdana; font-style: italic; font-size: 10px; color: #777777;'>" + 
						"</div></div></div>";
						shw.push(id);
						i++;
						
					}
				}
				)
			}
			$("#baner_frame").html(img_bar);
		} 
		);
		return false;
}
	
function rotator() {
		var first = load_data();
		var myInterval = window.setInterval("load_data()",60000);
}
	
function ch_padding(_o, _t, _l, i, _tit) {
		$(_o).css( "padding-top", _t );
		$(_o).css( "padding-left",_l );
		$(i).html(_tit);
}
	
Array.prototype.in_array = function(search_term) {
		var i = this.length; 
		if (i > 0) { 
			do {
				if (this[i] === search_term) {
					return true;
				} 
			} while (i--);
		}
		return false;
} 