
function openNow(file, name, ws, hs, sc) {
var popup;
var opt = ",scrollbars="+sc+",toolbar=no,location=no,directories=no,menubar=no";
var wx = screen.width;
var hy = screen.height;
if (wx > ws && hy > hs) {
var px = ((wx - ws) / 2);
var py = ((hy - hs) / 2.5 - 25);
popup = window.open(file,name,"top="+py+",left="+px+",width="+ws+",height="+hs+opt);
} else if (document.all) {
 var px = 0;
 var py = 0;
 var wx = (wx - 10);
 var hy = (hy - 54);
 popup = window.open(file,name,"top="+py+",left="+px+",width="+wx+",height="+hy+opt);
} else {
 var px = 0;
 var py = 0;
 popup = window.open(file,name,"top="+py+",left="+px+",width="+wx+",height="+hy+opt);
}
popup.focus();
}

var isactive, isactive_src;
function startFade(appear, img_appear, img_src, img_src_me) {
var new_appear = document.getElementById(appear);
new Effect.Fade(isvisible, {afterFinish: function (obj) {new Effect.Appear(new_appear)}});
isvisible = new_appear;
if (img_appear != "") {
var new_img_appear = document.getElementById(img_appear);
if (isactive && isactive_src != "") isactive.src = isactive_src;
new_img_appear.src = img_src_me;
isactive = new_img_appear;
isactive_src = img_src;
}
}

function picover(obj, pic){
obj.src = pic;
}

function picout(obj, pic){
obj.src = pic;
}

