Common_class = function() { }

Common_class.prototype.videoConfig = {
	initialVolumePercentage:40
	,initialScale:'fit'
	,showMenu:false
	,controlBarBackgroundColor:"0xeb870e"
	,controlBarGloss:"high"
	,controlsOverVideo:"ease"
	,showFullScreenButton: false
	,XshowScrubber: false
	,timeDisplayFontColor:"0xffffff"	
}

Common_class.prototype.init = function() {

	$("#header").click(function() {
		location.href="?page=home";
	});

	this.navLinks = $("#header ul#navigation li");

	this.navLinks.mouseover(function() {
		$(this).addClass("highlight");
	});

	this.navLinks.mouseout(function() {
		$(this).removeClass("highlight");
	});



	//var border = RUZEE.ShadedBorder.create({ corner:15, border:3 });
	//border.render($("div.newsModule"));


	$(function() {	
		$("#playlist").playlist(
			{src:"scripts/FlowPlayerDark.swf",bgcolor:'#000',width:320,height:240}, 
			Common.videoConfig,
			{loop:false,player:"#videoPlayer"}
		);
	});

	$(function() {	
		$("#playlist2").playlist(
			{src:"scripts/FlowPlayerDark.swf",bgcolor:'#000',width:320,height:240}, 
			Common.videoConfig,
			{loop:false,player:"#videoPlayer"}
		);
	});

	var audioConfig = $.extend({},Common.videoConfig)
	audioConfig.controlsOverVideo = "locked";
	audioConfig.backgroundColor = "0xeeeeee";

	$(function() {	
		$("#audioPlaylist").playlist(
			{src:"scripts/FlowPlayerDark.swf",bgcolor:'#000',width:320,height:45}, 
			audioConfig,
			{loop:false,player:"#audioPlayer"}
		);
	});


}

Common = new Common_class();


$(document).ready(function() {
	Common.init();

});
