var ver;
var imgloc = '/sitetemplates/img/but_';
window.onerror = null;
browser_name = navigator.appName;
browser_version = parseInt(navigator.appVersion); 
if (browser_name == "Netscape" && browser_version >= 3) {ver = 1;}
else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 4) {ver = 1;}
else {ver = 0;}
if (ver == 1) 
{
a = new Image(); a.src= imgloc + 'home_on.gif';  
b = new Image(); b.src= imgloc + 'about_on.gif';      
c = new Image(); c.src= imgloc + 'workshops_on.gif';   
d = new Image(); d.src= imgloc + 'articles_on.gif';
e = new Image(); e.src= imgloc + 'contact_on.gif';   
}
function roll(imagename,changeimageto)
{
    if (ver == 1) 
    {
    document.images[imagename].src = imgloc + changeimageto;
    }
}
function openWindow(url,width,height)
{
    PopURL=url;
    if(!PopWin || PopWin.closed){
        PopWin=PopWinOpen(width,height);
    }
    else {
        PopWin.close();
        PopWin=null;
        PopWin=PopWinOpen(width,height);
    }
}
var PopURL="";
var PopWin=null;
var openpopwin=null;
function PopWinOpen(width,height){
    var x =(screen.availWidth-width)/2;
    var y =(screen.availHeight-height)/2;
	var winfeatures="width="+width+",height="+height+",top="+y+",left="+x+",resizable,scrollbars=1";
	openpopwin=null;
	openpopwin=window.open(PopURL,"wkwin",winfeatures);
	return openpopwin;
}