 /* displays a thumbnail for navigation and launches the page in _self */
function writeThumbnail(thumbImage, URL, intro)
{
	var flashObject = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="178" height="104">'
	+ '    <param name="movie" value="/Portals/_default/skins/DRCCBlue/flash/curtian.swf?thumbImage=' + thumbImage + '&myurl=' + URL + '&intro=' + intro + '" />'
	+ '    <param name="quality" value="high" />'
	+ '    <param name="wmode" value="transparent" />'
	+ '    <embed src="/Portals/_default/skins/DRCCBlue/flash/curtian.swf?thumbImage=' + thumbImage + '&myurl=' + URL + '&intro=' + intro + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="178" height="104" wmode="transparent"></embed>'
	+ '    </object>'
	//If this browser understands the mimetypes property and recognizes the MIME Type //"application/x-shockwave-flash"...
	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]){
			//write out the flash variable into the document
			document.write(flashObject);
		}
		//otherwise...
	else {
		//write out the following <IMG> tag into the document.  The image need
		//not be the same size as the flash player movie, but it may help you lay out the 
		//page if you can predict the size of the object reliably.
		document.write('<a href='+URL+'><img src='+thumbImage+' WIDTH="178" HEIGHT="104" ALT="Picture"></a>');
	}
}

/* displays thumbnail for navigation and launches link into new window */
function writeThumbnail_newwindow(thumbImage, URL, intro)
{
	var flashObject = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="178" height="104">'
	+ '    <param name="movie" value="/Portals/_default/skins/DRCCBlue/flash/curtian_newwindow.swf?thumbImage=' + thumbImage + '&myurl=' + URL + '&intro=' + intro + '" />'
	+ '    <param name="quality" value="high" />'
	+ '    <param name="wmode" value="transparent" />'
	+ '    <embed src="/Portals/_default/skins/DRCCBlue/flash/curtian_newwindow.swf?thumbImage=' + thumbImage + '&myurl=' + URL + '&intro=' + intro + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="178" height="104" wmode="transparent"></embed>'
	+ '    </object>'
	//If this browser understands the mimetypes property and recognizes the MIME Type //"application/x-shockwave-flash"...
	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]){
			//write out the flash variable into the document
			document.write(flashObject);
		}
		//otherwise...
	else {
		//write out the following <IMG> tag into the document.  The image need
		//not be the same size as the flash player movie, but it may help you lay out the 
		//page if you can predict the size of the object reliably.
		document.write('<a href='+URL+'><img src='+thumbImage+' WIDTH="178" HEIGHT="104" ALT="Picture"></a>');
	}
}

/* Creates a media player based on the file type passed in */
function createPlayer(theFile, theLink, theDiv) {
	var s1 = new SWFObject("/Portals/_default/skins/DRCCBlue/JWPlayer/player.swf","playerID","320","20","7");
	s1.addVariable("file", theFile);
	s1.addVariable("link", theLink);
	s1.addVariable("showdownload", "true");
	s1.addVariable("width", "320");
	s1.addVariable("height", "20");
	s1.addVariable("displayheight", "0");
	s1.addVariable("autostart", "true");
	s1.write(theDiv);
}

/* Creates a media player based on the file type passed in */
function createvideoPlayer(theFile, theLink, theDiv) {
	var s1 = new SWFObject("/Portals/_default/skins/DRCCBlue/JWPlayer/player.swf","playerID","320","180","7");
	s1.addVariable("file", theFile);
	s1.addVariable("link", theLink);
	s1.addVariable("showdownload", "true");
	s1.addVariable("width", "320");
	s1.addVariable("height", "180");
	s1.addVariable("displayheight", "0");
	s1.addVariable("autostart", "true");
	s1.write(theDiv);
}

	/* carousel script */
	stepcarousel.setup({
		galleryid: 'mygallery', //id of carousel DIV
		beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
		panelclass: 'panel', //class of panel DIVs each holding content
		autostep: {enable:false, moveby:1, pause:3000},
		panelbehavior: {speed:500, wraparound:false, persist:false},
		defaultbuttons: {enable: true, moveby: 1, leftnav: ['/Portals/_default/skins/DRCCBlue/styles/images/Slider_arrowLeft.png', -5, 80], rightnav: ['/Portals/_default/skins/DRCCBlue/styles/images/Slider_arrowRight.png', -20, 80]},
		statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
		contenttype: ['inline'] //content setting ['inline'] or ['ajax', 'path_to_external_file']
	})

	stepcarousel2.setup({
		galleryid: 'mygallery2', //id of carousel DIV
		beltclass: 'belt2', //class of inner "belt" DIV containing all the panel DIVs
		panelclass: 'panel2', //class of panel DIVs each holding content
		autostep: {enable:false, moveby:1, pause:3000},
		panelbehavior: {speed:500, wraparound:false, persist:false},
		defaultbuttons: {enable: true, moveby: 1, leftnav: ['/Portals/_default/skins/DRCCBlue/styles/images/Slider_arrowLeft.png', -5, 80], rightnav: ['/Portals/_default/skins/DRCCBlue/styles/images/Slider_arrowRight.png', -20, 80]},
		statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
		contenttype: ['inline'] //content setting ['inline'] or ['ajax', 'path_to_external_file']
	})

 var strid = '';

function displaydiv(strid){

	$('.documentclass').hide();

	$('#doc'+strid).fadeIn('slow');

}; 
