// portfolio icon rollover
var zList = new Object();
function iconOn(id) {
    zList['icon_'+id] = document.getElementById('icon_'+id).style.zIndex;
    document.getElementById('icon_'+id).style.zIndex = 999;
    document.getElementById('icon_'+id).style.width = "200px";
    document.getElementById('icon_'+id).style.margin = "0px -125px 0px 0px";
    document.getElementById('icon_'+id).style.background = "repeat url('./layout/bkgd_contentspec.gif')";
    document.getElementById('iconTitleTd_'+id).style.padding = "5px";
    document.getElementById('iconTitleTd_'+id).innerHTML = document.getElementById('iconTitleHD_'+id).innerHTML;
}
function iconOff(id) {
    document.getElementById('iconTitleTd_'+id).innerHTML = '';
    document.getElementById('iconTitleTd_'+id).style.padding = "0";
    document.getElementById('icon_'+id).style.background = "transparent";
    document.getElementById('icon_'+id).style.zIndex = zList['icon_'+id];
    document.getElementById('icon_'+id).style.width = "75px";
    document.getElementById('icon_'+id).style.margin = "0px";
}



// general popups
function poponclick(u,n,w,h,s) {
	window.open(u,n,"width="+w+",height="+h+",toolbar=no,menubar=no,directories=no,status=no,location=no,resize=yes,scrollbars="+s);
}



//general buttons rollovers
function rollon(o) {
    offPath=o.src;
    newPath=offPath.replace(/_off/, "_on");
    o.src=newPath;  
}
function rollonIEpng(o) {
    offPath=o.style.filter;
    newPath=offPath.replace(/_off/, "_on");
    o.style.filter=newPath;
}
function rolloff(o) {
    onPath=o.src;
    newPath=onPath.replace(/_on/, "_off");
    o.src=newPath;
}
function rolloffIEpng(o) {
    onPath=o.style.filter;
    newPath=onPath.replace(/_on/, "_off");
    o.style.filter=newPath;
}




// image replacing function
function imgShow(id,path) {
    document.getElementById(id).src = path;
}

