function swapImg(id,pic){
	var obj = document.getElementById(id);
	obj.src=pic;
}

function openWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}


/*
function initImageOver()
{
	//alert("initImageOver");
	if (!document.getElementsByTagName){ return; }
	var image = document.getElementsByTagName("a");

	// loop through all image tags
	for (var i=0; i<image.length; i++){
		var anchor = image[i];
		
		if ( anchor.getAttribute("src")  ){
			alert(anchor.getAttribute("src"));
			//anchor.onclick = function () {showLightbox(this); return false;}
			anchor.onmouseover = function() { alert('test in'); }
			anchor.onmouseout = function() { alert('test out'); }
		}
	}
}

//
// addLoadEvent()
// Adds event to window.onload without overwriting currently assigned onload functions.
//
function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
		oldonload();
		func();
		}
	}

}


//addLoadEvent(initImageOver);	// run initLightbox onLoad

initImageOver();
*/