var PMNS5=(navigator.userAgent.indexOf("Gecko")>=0);
var PMfActive;
var PMpref='http://www.pmlsvc.com/puzzles/PuzzlesSupply';
function PMSetPuzzles() {
var t,aTags,e;
    if((e=document.getElementById('plist'))) aTags=e.getElementsByTagName('A');
    else aTags=document.getElementsByTagName('A');
    for(t=0; t<aTags.length; ++t) {
        if(!isNaN(parseInt(aTags[t].id,10))) {
            aTags[t].onclick=ShowPuzzles;
            if(!t) {
                PMfActive=aTags[t]; PMfActive.className='active'; 
                pzlwindow.location.replace(PMpref+PMfActive.getAttribute("id")+'.htm');
                }
            }
        }            
    }
function ShowPuzzles(e) {
var s;
    if(PMNS5) {e.preventDefault(); s=e.target;} else {event.returnValue=false; s=event.srcElement;}
    while(s.tagName!='A') s=s.parentNode;
    s.blur();
    if(s!=PMfActive) {
        if(PMNS5 && document.domain=='www.pmlsvc.com') 
            if(pzlwindow.NSWindow && !pzlwindow.NSWindow.closed) return false;
        PMfActive.className='';
        (PMfActive=s).className='active';
        pzlwindow.location.replace(PMpref+s.getAttribute("id")+'.htm');
        }
    return false;
    }
