var small=null;
var wloc=window.location;
var sold=null;


function smallwin(s) {
 closepopup();
small=window.open(s,"","toolbar=no,location=no,directories=no,status=no,scrollbars=0;menubar=no,resizable=1,width=360,height=540");
var sold=s;
small.focus();

}


function smallwin2(s) {
 closepopup();
small=window.open(s,"","toolbar=no,location=no,directories=no,status=no,scrollbars=0;menubar=no,resizable=1,width=520,height=680");
var sold=s;
small.focus();

}
function bothwins(s,t) {
closepopup();
changeloc(t);
smallwin(s);
}

function bothwins2(s,t) {
closepopup();
changeloc(t);
smallwin2(s);
}

function closepopup() {
 if (small != null)
   if (small.closed != true) small.close();  
}


function changeloc(t) {
closepopup();
if (wloc!=t) window.location=t;
window.focus();
}


function hover(a) {
document.images[8].src= a
}



