function stats(id,w,h,url_swf,url,place,img) {
	place = "#" + place;
	place_lnk = place + "-link";
	if (!img) {
	jQuery(place).flash({
		src: url_swf,
		width: w,
		height: h,
		version: '8',
		wmode: 'opaque',
		expressInstall: true 
	}).ready( function () {
		jQuery.ajax({
			type: "POST",
			url: "stats/stats_count.php",
			data: "id="+id+"&view=true"
		});
	});
	} else {
	string = '<a href="' + url + '" target="_blank"><img src="' + url_swf + '" border="0" width="' + w + '" height="' + h + '"></a>';
	jQuery(place).html(string).ready( function () {
		jQuery.ajax({
			type: "POST",
			url: "stats/stats_count.php",
			data: "id="+id+"&view=true"
		});
	});
	}
	var offset = jQuery(place).offset();
	jQuery(place_lnk).click( function() {
		jQuery.ajax({
			type: "POST",
			url: "stats/stats_count.php",
			data: "id="+id+"&click=true"
		});
		window.open(url,"_blank");
	}).css({'width' : w, 'height': h, 'top': -h});
}
