

// Flash printing functions

function WriteImageGallery(listName, contentID) {
	var flashURL = "/Omaha/media/Flash/imageGallery.swf?xmlpath=/Constellation/xml_list.aspx%3Flistname="+listName+"%26ownertype=content%26ownerid="+contentID;
	var width = 476;
	var height = 230;
	
	printFlash(flashURL, width, height);
}

function WriteHomePageFlash() {
	var flashURL = "/Omaha/media/Flash/edc_homeflash.swf";
	var width = 897;
	var height = 295;
	
	printFlash(flashURL, width, height);
}

function WriteFlashMap() {
	var flashURL = "/Omaha/media/Flash/edc_maps.swf";
	var width = 650;
	var height = 575;
	
	printFlash(flashURL, width, height);
}

function WriteFlashTitle() {
    var flashURL = "/ProjectSnow/Yahoo.swf";
    var width = 528;
    var height = 71;
    
    printFlash(flashURL, width, height);
}
function WriteFlashTitleYodel() {
    var flashURL = "/ProjectSnow/YahooYodel.swf";
    var width = 528;
    var height = 71;
    
    printFlash(flashURL, width, height);
}
    
function printFlash(flashURL, width, height, autoplay) {

	var bgcolor = "#FFFFFF";
	var allowScriptAccess = "sameDomain";
	var quality = "high";
	var align = "middle";
	var name = "flash";
	var autoplay = true;
	var wmode = "transparent";

	document.writeln("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\""+width+"\" height=\""+height+"\" id=\""+name+"\" align=\""+align+"\">");
	document.writeln("<param name=\"allowScriptAccess\" value=\""+allowScriptAccess+"\" />");
	document.writeln("<param name=\"movie\" value=\""+flashURL+"\" />");
	document.writeln("<param name=\"quality\" value=\""+quality+"\" />");
	document.writeln("<param name=\"bgcolor\" value=\""+bgcolor+"\" />");
	document.writeln("<param name=\"play\" value=\""+autoplay+"\" />");
	document.writeln("<param name=\"wmode\" value=\""+wmode+"\" />");
	document.writeln("<embed src=\""+flashURL+"\" quality=\""+quality+"\" bgcolor=\""+bgcolor+"\" width=\""+width+"\" height=\""+height+"\" name=\""+name+"\" align=\""+align+"\" allowScriptAccess=\""+allowScriptAccess+"\" play=\""+autoplay+"\" wmode=\""+wmode+"\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	document.writeln("</object>");
}

function popupFlashVideo(video) {
    window.open("/ProjectSnow/videopopup.aspx?video="+video, "VideoPopUp", "menubar=no,scrollbar=no,resizable=no,width=600,height=580,toolbar=no");
}

function writeFlashVideo(video) {
    printFlashVideo("{ url: '" + video + "' }", 460, 275);
}

function printFlashVideo(video, width, height) {
	document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"" + width + "\" height=\"" + height + "\" id=\"FlowPlayer\">");
	document.writeln("<param name=\"movie\" value=\"/omaha/media/flash/FlowPlayer.swf\" />");
	document.writeln("<param name=\"salign\" value=\"lt\" />");
	document.writeln("<param name=\"quality\" value=\"high\" />");
	document.writeln("<param name=\"scale\" value=\"noscale\" />");
	document.writeln("<param name=\"allowFullScreen\" value=\"true\" />");
	document.writeln("<param name=\"FlashVars\" value=\"config={ playList: [ " + video + " ], initialScale: 'fit', menuItems: [ true, true, true, true, true, false ], useNativeFullScreen: true, loop: false }\" />");
	document.writeln("<embed src=\"/omaha/media/flash/FlowPlayer.swf\" flashvars=\"config={ playList: [ " + video + " ], initialScale: 'fit', menuItems: [ true, true, true, true, true, false ], useNativeFullScreen: true, loop: false }\" quality=\"high\" scale=\"noscale\" width=\"" + width + "\" height=\"" + height + "\" name=\"FlowPlayer\" salign=\"LT\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" allowFullScreen=\"true\" />");
	document.writeln("</object>");
	FlowPlayer = document.getElementById('FlowPlayer');	
}