	//include /shared/flash/photo_gallery/y2006/gallery_version.js prior to the include for this file
	
	document.write("<style>");
	document.write("body{margin:0;padding:0;background-color:#000;}");
	document.write("#gallery_div{position:absolute;top:0px;left:0px;z-index:2;background-color:#000;}");
	document.write("#dclick_div{position:absolute;top:575px;left:5px;z-index:3;background-color:#000;}");
	document.write("</style>");
	
	document.write("<div id=\"gallery_div\"></div>");
	var gallery_o = new FlashObject("/shared/flash/photo_gallery/y2006/photogallery.swf?v="+version, "gallery", "738", "670", "7", "#FFFFFF");
	
	gallery_o.addVariable("xmlFilePath", xmlFilePath);
	gallery_o.addVariable("blurb_color","000000");
	gallery_o.addVariable("title_color","000000");
	gallery_o.addVariable("slideshow_time", 15);
	gallery_o.addVariable("ad_refresh_freq", 300); //how many images rotate before ad refreshes
	gallery_o.addVariable("skinBaseURL", "/flash/photo_gallery/skins/");
	gallery_o.addVariable("images_base_url", ""); 
	gallery_o.addVariable("tracking_account", "bobmarley");
	
	gallery_o.addParam("wmode", "transparent");
	gallery_o.addParam("menu", "false");
	gallery_o.write("gallery_div");
	/* no ad for bob marley - comment out
	document.write("<div id=\"dclick_bg\">&nbsp;</div>");
	document.write("<div id=\"dclick_div\">");
	document.write("<ilayer id=\"DClayer1\" visibility=\"hidden\" width=728 height=90></ilayer>");
	document.write("<nolayer><iframe id=\"dclick_iframe\" src=\""+get_ad_url()+"\" width=\"728\" height=\"90\" frameborder=\"no\" border=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"></iframe></nolayer>");
	document.write("</div>");
	*/
	function refresh_ad(){
		var myframe=document.getElementById('dclick_iframe');
		myframe.src = get_ad_url();
	}
	
	function get_ad_url(){
		//do nothing for now until ad hookups in place
		//team = ( typeof oid == "undefined" || oid == null || oid == "" ) ? "" : "/" + teams[oid];
		//return "http://ad.doubleclick.net/adi/sny.tv/photogallery" + team + ";page=index;pos=1;sz=728x90;tile=1;ord=";
	}
	
	function getRand(){
		var ran_unrounded = Math.random()*1000000000;
		return Math.round(ran_unrounded);
	}

