var documentNick=null, skinPath=null, lastLinkObj;

function showItems(docId)
	{
	var obj=document.getElementById("mediaGallery");
	
	if (!obj) return;
	obj.selectDocument(docId);
	
	if (lastLinkObj) lastLinkObj.style.color="#999999";
	obj=document.getElementById("menuOpt"+docId);
	obj.style.color="#FF9900";
	lastLinkObj=obj;
	}
	
	
function flashCode(path,vars)
	{
	var html;

	html='<object type="application/x-shockwave-flash" data="'+path+'mediaGallery.swf" id="mediaGallery" width="510" height="340">';
	html+='<param name="movie" value="'+path+'mediaGallery.swf">';
    html+='<param name="FlashVars" value="'+vars+'">';
    html+='<param name="quality" value="high">';
	html+='</object>';	
	
	document.writeln(html);
	}
	
	
function highlightMenu()
	{
	var obj;

	if (!documentNick || !skinPath) return;
	obj=document.getElementById("menu_"+documentNick);
	if (!obj) return;
	obj.style.backgroundImage='url("'+skinPath+'icnStar.gif")';
	}
	
	
function highlightLink(documentNick)
	{
	var obj;
	
	if (documentNick=="") return;
	obj=document.getElementById("doc_"+documentNick);
	if (!obj) return;
	obj.style.color="#FF9900";
	}
	

MM_preloadImages('Skins/pl/pictures/icnListPoint2_f2.gif');

initClassObj.registerFunction(highlightMenu);