///<summary>
/// Function to load the slideshow on the front end.
///</summary>
///<param name="sDN">The DN of the page we are opening as a slide show</param>
function openSlide(sDN, sLanguage)
{
	var sScript = "/SlideShow.aspx"
	if (sLanguage != null && sLanguage != "")
	{
		window.open(sScript+"?DN="+sDN + "&l=" + sLanguage,"_blank","menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,width=583px,height=383px,center=1")
	}
	else 
	{
		window.open(sScript+"?DN="+sDN,"_blank","menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,width=583px,height=383px,center=1")
	}
} //openSlide	

///<summary>
/// Function to set the class on a tr based on even or odd
///</summary>
///<param name="trId">The id of the tr we are setting the class on</param>
var iCounter = 0;
function trClassSet(trId)
{
    iCounter++;
    document.getElementById(trId).className += iCounter % 2 == 0 ? "even" : "odd";
} //trClassSet


function openWindow(url,name,style)
{
	if(name == null || name == '')
	{
		name = 'popwinwindow'
	}
	
	window.open(url,name,style);
}