var difx = 35;
var dify = 55;
function openpic(url) {
	return(openwin(url,100,100)); 
}
function openwin(url,defx,defy) {
	var sizes = defy ? "width="+defx+",height="+defy+"," : "";
	var popwin = window.open(url,"popwin",sizes+"menubar=no,directories=no,location=no,toolbar=no,scrollbars=yes");
	if(popwin) {
		popwin.focus(); 
		if(defy) popwin.resizeTo(defx,defy);
		return(false);
	} else {
		return(true);
	}
}
function getpicture() {
	var query = document.location.search;
	return(unescape(query.substr(1,query.length-1)));
}
function resizeme(id,addx,addy) {
	if(!addx) {
		addx = difx;
		addy = dify;
	}
	var image = document.getElementById(id);
	var x = image.width + addx;
	var y = image.height + addy;
	top.window.resizeTo(x > screen.width ? screen.width - addx : x,y > screen.height ? screen.height - addy : y);
}
function setActiveStyle(title) {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

