function BulletList(pItem)
{
var strIDs = '';
{
for (var i = 1; i <= pItem.length; i++)
{
strIDs += '<div class="left-col-item"> :: <a href=' + pItem[i].sURL + ' >'+ pItem[i].sName + '</a></div>';
}
}
return strIDs
}

function popup(popuplink, windowname) {
if (! window.focus)return true;
var href;
if (typeof(popuplink) == 'string')
href=popuplink;
else
href=popuplink.href;
window.open(href, windowname, 'width=400,height=260,resizable=yes,menubar=no,scrollbars=yes');
return false;
}

function bookmark(){
var browser=navigator.appName;
if (browser=="Netscape") {
	alert("Press Ctrl+D to bookmark this page or click Bookmarks/Bookmark This Page... on the menubar.");
}
else {
	var title=document.title;
	var url=this.location;

	if (window.sidebar) window.sidebar.addPanel(title, url,"");

	else if( window.opera && window.print )
	{
	var mbm = document.createElement('a');
	mbm.setAttribute('rel','sidebar');
	mbm.setAttribute('href',url);
	mbm.setAttribute('title',title);
	mbm.click();
	}

	else if( document.all ) window.external.AddFavorite( url, title);
}
}
function setCookie(cookieName, cookieValue, cookiePath, cookieExpires) {
cookieValue = escape(cookieValue);
if (cookieExpires == "") {
	var nowDate = new Date();
	nowDate.setMonth(nowDate.getMonth() + 6);
	cookieExpires = nowDate.toGMTString();
}

if (cookiePath != "") {
	cookiePath = ";Path=" + cookiePath;
}
document.cookie = cookieName + "=" + cookieValue + ";expires=" + cookieExpires + cookiePath;
}

function getCookie(name) {
var cookieString = document.cookie;
var index = cookieString.indexOf(name + "=");
if (index == -1) {
	return null;
}
index = cookieString.indexOf("=", index) + 1;
var endstr = cookieString.indexOf(";", index);
if (endstr == -1) {
	endstr = cookieString.length;
}
return unescape(cookieString.substring(index, endstr));
}
function doPopup() {
//var visited = getCookie('popShown');
setCookie('popShown', 'true', '', '');
//if(visited == '') { // Show the popup window
	//window.open('survey.html', 'surveyWin', 'width=500,height=400');
//}
}
var ContentHeight = 00;
var TimeToSlide = 250.0;

var openAccordion = '';
var rtArrow=new Image(5,9);
rtArrow.src="rtarrow.gif";
var dnArrow=new Image(9,5);
dnArrow.src="dnarrow.gif";
var lastIndex = "";
var elmntId = "";
var oldElId = "";

function runAccordion(index)
{
var nID = "Accordion" + index + "Content";
elmntId = "Arrow" + index + "";
if(lastIndex != "") {
	oldElId =  "Arrow" + lastIndex + "";
}

if(openAccordion == nID)
nID = '';


setTimeout("animate("
  + new Date().getTime() + "," + TimeToSlide + ",'"
  + openAccordion + "','" + nID + "')", 33);

openAccordion = nID;
lastIndex  = index;
}
function animate(lastTick, timeLeft, closingId, openingId)
{
var curTick = new Date().getTime();
var elapsedTicks = curTick - lastTick;

var opening = (openingId == '') ? null : document.getElementById(openingId);
var closing = (closingId == '') ? null : document.getElementById(closingId);

if(timeLeft <= elapsedTicks)
{
if(opening != null)
{
  opening.style.height = 'auto';
//opening.style.height = ContentHeight + 'px';
ContentHeight = document.getElementById(openingId).offsetHeight;
}

if(closing != null)
{
  closing.style.display = 'none';
  closing.style.height = '0px';

}
return;
}

timeLeft -= elapsedTicks;
var newClosedHeight = Math.round((timeLeft/TimeToSlide) * ContentHeight);

if(opening != null)
{
if(opening.style.display != 'block')
  opening.style.display = 'block';
opening.style.height = (ContentHeight - newClosedHeight) + 'px';
document.getElementById(elmntId).src=dnArrow.src;
}

if(closing != null)
{
closing.style.height = newClosedHeight + 'px';
document.getElementById(oldElId).src=rtArrow.src;
}
setTimeout("animate(" + curTick + "," + timeLeft + ",'"
  + closingId + "','" + openingId + "')", 33);

}