	// Slideshow Settings
		
	var hashTag = $.getQueryString({ ID:"hashtag", DefaultValue:"socialmedia" });
	var presenterTwitter = $.getQueryString({ ID:"twitter", DefaultValue:"davidcatalano" });

	//var slideTitle = 'sxsw09-the-future-of-social-networks';
	var slideTitle = '';
	var slideDoc = $.getQueryString({ ID:"doc", DefaultValue:"modea-present-090521143440-phpapp01" });


	function buildSlideshow(){
		var slideWidth = document.getElementById('maincontent').clientWidth;
		var slideHeight = document.getElementById('maincontent').clientHeight-50;
		var slideCode = '<object width=\"' + slideWidth + '" height=\"' + slideHeight + '\"><param name=\"movie\" value=\"http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=' + slideDoc + '&rel=0&stripped_title=' + slideTitle + '\" /><param name=\"allowFullScreen\" value=\"false\"/><param name=\"allowScriptAccess\" value=\"always\"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=' + slideDoc + '&rel=0&stripped_title=' + slideTitle + '\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"false\" width=\"' + slideWidth + '\" height=\"' + slideHeight + '\"></embed></object>';
		var twitterCode ="<a href=\"http://twitter.com/" + presenterTwitter + "\">@" + presenterTwitter + "<a/>";
		
		$("#slideshow").html(slideCode);
		$("#twitter").html(twitterCode);
		$("#hashtag").html("#" + hashTag);
	}



$(document).ready(function(){
	buildSlideshow();
});

// Rebuild the slideshow when the window is resized to maximize the size of the presentation
$(window).bind("resize", resizeWindow);
	function resizeWindow( e ) {
		buildSlideshow();
}



      $(
          function()
          {
              setInterval("getSearch()",10000);
          getSearch();
          }
      );

