// JavaScript Document
$(document).ready(function() {
	//banners
	$(function() {
		if($('#ad_top').length > 0 && $('#ad_right').length > 0) {
			flashembed("ad_top", "http://soundrezn.com/assets/swf/srheader.swf");
			flashembed("ad_right", "http://soundrezn.com/assets/swf/srsidebanner.swf");
		}
	});
	//videoplayer
	if($('#videoplayer').length > 0) {
		$f("videoplayer", "/assets/js/flowplayer-3.1.5/flowplayer-3.1.5.swf", { 
			clip: { 
				//url: 'live2', //movieclip title minus extensin (metacafe.flv)
				url: 'niuG9M6wfJzv3j4w58h5d1sLUJmcklcHoffair', //movieclip title minus extensin (metacafe.flv)
				live: true,
				//autoPlay: false,
				// configure clip to use influxis as our provider, it uses our rtmp plugin 
				provider: 'rtmp' 
			}, 
			
			// streaming plugins are configured under the plugins node 
			plugins: { 
				// here is our rtpm plugin configuration 
				rtmp: { 
					url: 'flowplayer.rtmp-3.1.3.swf', 
					// netConnectionUrl defines where the streams are found  - old feed is: netConnectionUrl: 'rtmp://66.210.221.99/talk' 
					netConnectionUrl: 'rtmp://mediaserver3.afa.net/VideoBlog'
				} 
			} 
		});
	}
	//audioplayer
	if($('#audioplayer').length > 0) {
		$f("audioplayer", "/assets/js/flowplayer-3.1.5/flowplayer-3.1.5.swf", { 
			clip: { 
				//url: 'live2', //movieclip title minus extensin (metacafe.flv)
				//url: 'niuG9M6wfJzv3j4w58h5d1sLUJmcklcHoffair', //movieclip title minus extensin (metacafe.flv)
				url: 'talk',
				live: true,
				//autoPlay: false,
				// configure clip to use influxis as our provider, it uses our rtmp plugin 
				provider: 'rtmp' 
			}, 
			
			// streaming plugins are configured under the plugins node 
			plugins: { 
				// here is our rtpm plugin configuration 
				rtmp: { 
					url: 'flowplayer.rtmp-3.1.3.swf', 
					// netConnectionUrl defines where the streams are found  - old feed is: netConnectionUrl: 'rtmp://66.210.221.99/talk' 
					//netConnectionUrl: 'rtmp://mediaserver3.afa.net/VideoBlog'
					 netConnectionUrl: 'rtmp://mediaserver3.afa.net/afr'
				} 
			} 
		});
	}
});//End document.ready

//	//$f("audioplayer", "/assets/js/flowplayer-3.1.5/flowplayer-3.1.5.swf", { 
////	
////			clip: { 
////				url: 'talk', //movieclip title minus extensin (metacafe.flv)
////				live: true,
////				// configure clip to use influxis as our provider, it uses our rtmp plugin 
////				provider: 'rtmp' 
////			}, 
////			
////			// streaming plugins are configured under the plugins node 
////			plugins: { 
////		 
////				// here is our rtpm plugin configuration 
////				rtmp: { 
////					url: 'flowplayer.rtmp-3.1.3.swf', 
////		 
////					// netConnectionUrl defines where the streams are found 
////					netConnectionUrl: 'rtmp://mediaserver3.afa.net/afr' 
////				},
////				controls: { 
////					fullscreen: false
////					//height: 25,
////					//width: 250
////				}
////				
////			} 
////		});