/* function displayGallery(idGallery)
	This function is called by the insert script when editors add a photo gallery to an article.
	This function assumes that :
		#1. the div tag <div id="photogallerydiv" style="display:none"></div> exists in the article content (part of the pasted script)
		#2. there are only one such div tag.
		*/
function displayGallery(idGallery) {
	var flashMsg = "This site requires <a href='http://www.adobe.com/products/flashplayer/' target='_blank'>flash player 8</a> or higher.";
	
	//if ($('photogallerydiv')) {
		var flashapp = new SWFObject("/aw/inc/gallery/photogallery_small.swf", "photogallery_small", "300", "307", "8", "#ffffff");
				flashapp.addParam("wmode", "opaque");
				flashapp.addVariable("brand", "aw"); 
				flashapp.addVariable("passedID", idGallery); 
				//$('photogallerydiv').innerHTML = flashMsg;
				flashapp.write("photogallerydiv");
				//Effect.Appear('photogallerydiv');
	//} else {
		// do nothing. if div tag does not exist, do not show the gallery
//	}
	
}
function displayGalleryLarge(idGallery) {
	var flashMsg = "This site requires <a href='http://www.adobe.com/products/flashplayer/' target='_blank'>flash player 8</a> or higher.";
	
	//if ($('photogallerydiv')) {
		var flashapp = new SWFObject("/aw/inc/gallery/photogallery_large.swf", "photogallery_large", "600", "600", "8", "#ffffff");
				flashapp.addParam("wmode", "opaque");
				flashapp.addVariable("brand", "aw"); 
				flashapp.addVariable("passedID", idGallery); 
				//$('photogallerydiv').innerHTML = flashMsg;
				flashapp.write("photogallerydiv");
				//Effect.Appear('photogallerydiv');
	//} else {
		// do nothing. if div tag does not exist, do not show the gallery
//	}
	
}	