function ozTrack(title){
	//var ozlink = elm.href;
	//var ozlinktitle = title;
	//track click for global analytics
	pageTracker._trackPageview(title);
	
	//track click for RC analytics
	if(!(pageTrackerRC==undefined))
	{
		pageTrackerRC._trackPageview(title);
	}
		//alert ("pageTrackerRC._trackPageview('" + title + "')" );
}

function browserVersion()
{
	var browser = navigator.appName;
	var b_version = navigator.appVersion;
	var version = parseFloat(b_version);
	if (browser == "Microsoft Internet Explorer")
	{
		link = document.getElementsByTagName("link")[0];
  		link.href = "css/ie.css";
		if (version >= 7)
		{
			link = document.getElementsByTagName("link")[0];
  			link.href = "css/ie7.css";
		}
	}
}

function popUpWin(URL,pWidth,pHeight)
{
	window.open(URL, 'newWin', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+pWidth+',height='+pHeight);
}

function popUp2(URL,MovWidth,MovHeight)
{
	window.open(URL, 'Screencast2', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width='+MovWidth+',height='+MovHeight);
}

function popUp3(URL,MovWidth,MovHeight)
{
	window.open(URL, 'Screencast3', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width='+MovWidth+',height='+MovHeight);
}

function popUp(URL,MovWidth,MovHeight)
{
	window.open(URL, 'Screencast', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+MovWidth+',height='+MovHeight);
}
function toggle(targetId, whichArrow)
{
	if (document.getElementById)
	{
		target = document.getElementById(targetId);
		arrow = document.getElementById(whichArrow);

		// Visible
		if (target.style.display == "none")
		{
			target.style.display = "";
			arrow.src = "images/arrow_down.gif";
		}
		else
		{
			// Hide
			target.style.display = "none";
			arrow.src = "images/arrow_right.gif";
		}
	}
}

function unchk(collection)
{
	if (document.formDownloadScreencasts['all_' + collection].checked == false)
	{
		for (i=0; i<document.formDownloadScreencasts[collection].length; i++)
		{
			document.formDownloadScreencasts[collection][i].checked = false
		}
	}

	if (document.formDownloadScreencasts['all_' + collection].checked == true)
	{
		for (i=0;i<document.formDownloadScreencasts[collection].length; i++)
		{
			document.formDownloadScreencasts[collection][i].checked = true
		}
	}

	// If the sub-table is collapsed, expand it.
	var b = collection;
	var temp = new Array();
	temp = b.split('[');
	//alert(temp[0]);
	if (document.getElementById(temp[0]).style.display == 'none')
	{
		document.getElementById(temp[0]).style.display = '';
	}
}

function chk(collection, collection2)
{
	if (document.formDownloadScreencasts[collection].checked == false)
	{
		document.getElementById(collection).checked = true;
		for (i=0;i<document.formDownloadScreencasts[collection2].length; i++)
		{
			document.formDownloadScreencasts[collection2][i].checked = true;
		}
	}
	else
	{
		document.getElementById(collection).checked = false;
		for (i=0;i<document.formDownloadScreencasts[collection2].length; i++)
		{
			document.formDownloadScreencasts[collection2][i].checked = false;
		}
	}


	// If the sub-table is collapsed, expand it.
	var b = collection2;
	var temp = new Array();
	temp = b.split('[');
	//alert(temp[0]);
	if (document.getElementById(temp[0]).style.display == 'none')
	{
		document.getElementById(temp[0]).style.display = '';
	}

}