		$(function(){
		  // Document is ready
		  dsScript.createtributevideo();
		  
		  
		});	
		
		function designservices()
			{
					//Hide other Flash players when loading the thickbox
					this.onthickboxopen = function(){
						$("div.flashplayer").hide();
					};
					//Show other Flash players when closing the thickbox
					this.onthickboxclose = function(){
						$("div.flashplayer").show();
					};
			
			
				//Show a link to more videos  after the video box
				this.morespeechvids = function(){
					$("#flashcontent embed").after('<a href="http://www.unc.edu/chan/speech_archive/stateofuniv.2007.html">Watch more videos of the speech</a>');
				};
				
				
				
				this.createtributevideo = function(){
					$("body").append('<div id="tributevideo">Your browser is not capable of viewing the video. <a href="http://www.adobe.com/products/flashplayer/">Please download the latest version of the Adobe Flash Player</a>.</div>');
					$("#tributevideo").hide();
					var so = new SWFObject('video/mediaplayer.swf','mpl','700','413','8');
						so.addVariable('config','video/mediaplayerconfig.xml');
						so.addVariable('height','413');
						so.addVariable('width','700');
						so.addVariable('file','http://www.unc.edu/advancement/multimedia/Moeser/moeser2.flv');
						so.addVariable('displayheight','393');
						so.addVariable('image','video/tributevideopreview.jpg');
					so.write("tributevideo");
					
					$("#videotributelink").attr("href","#TB_inline?height=433&width=720&inlineId=tributevideo");
					
					
				};
				
				this.destroytributevideo = function(){
					$("#tributevideo").remove();
				};
			
			}
		dsScript = new designservices(); //create object