document.write('<script src="/assets/scripts/sitesync/sitesync.js" type="text/javascript"><\/script>');


/**
* Global function for doing all manner of things when the body has loaded
*/
var THEME_TABS;
function onLoad()
{
	try{buildAnnotations();}catch(e){}
	try{buildTargetAudiences();}catch(e){}
	try{timelineInit();}catch(e){}
	try{places_mapInit();}catch(e){}
	try{THEME_TABS = new tabs();}catch(e){}
	try{
		var divs = document.getElementsByTagName('DIV');
		for(var i=0;i<divs.length;i++)
		{
			if(divs[i].id.indexOf('componentTree_')!=-1)
			{
				window.TV = new MOB.treeview(divs[i].id);
				if(divs[i].id=='componentTree_open')
				{
					window.TV.toggleAll();
				}
				break;
			}
		}
	}catch(e){

	}//for SCHOL primarily
}



if(window.attachEvent)
{
	window.attachEvent('onload',onLoad);
}
else if(window.addEventListener)
{
	window.addEventListener('load',onLoad,false);
}






/* General functions */
function toggleGetRecordTable(caption)
{
	var t = caption.parentNode.getElementsByTagName('TBODY')[0];
	if(t.style.display!='none')
	{
		caption.style.borderWidth='0px';
		t.style.display='none';
	}
	else
	{
		caption.style.borderWidth='1px';
		t.style.display='';
	}
	//Hack for IE
	caption.parentNode.style.borderWidth=caption.style.borderWidth;
		
	
	try{
		var li = caption.parentNode.parentNode;

		if(li.START_CLASS==null)
		{
			li.START_CLASS = li.className;
		}
		switch(t.style.display)
		{
			case 'none':
			li.className = li.START_CLASS;
			try{li.NODE.UL.style.display = 'none';li.NODE.IMG.src = li.NODE.PATH+'plus.gif';}catch(e){}
			break;

			default:
			li.className = li.START_CLASS+'_open';
			try{li.NODE.UL.style.display = li.NODE.UL.START_DISPLAY;li.NODE.IMG.src = li.NODE.PATH+'minus.gif';}catch(e){}
			break;
		}
	}catch(e){
		alert(e);
	}
}