function slideShow(url,w,h){
	w = w | 400;
	h = h | 350;
	w = w + 15;
	h = h + 100;
	window.open(url,'screen','resizable=yes, scrollbars=no,location=no,width='+w+',height='+h); 				
	return false;
}

function openMedia(path, type) {
   if ((type == 'audio') || (type == 'video')) {
      w = 470
      h = 420
   }
   if (type == 'image') {
      w = 305
      h = 373
   }
   openMediaWin = window.open(path, "openMediaWindow", "width=" + w + ",height=" + h + ",resizable=1,menubar=0,toolbar=0,scrollbars=0,status=1");
   openMediaWin.focus()
}


var goodbrowser = 0;
if 
(navigator.appName == "Netscape" )
	if (navigator.appVersion.indexOf("2.") != -1 ) goodbrowser = 1;
	else goodbrowser = 3;
if ( (navigator.userAgent != '') && (navigator.userAgent.indexOf("MSIE 4.") != -1 )) goodbrowser =3;
if (navigator.userAgent.indexOf("MSIE 3.")!=-1) goodbrowser =2;
var news;
function winopen(source) {
 if (goodbrowser != 2)
 {
	if (goodbrowser == 3 && news != null && !news.closed )
		news.location.href = source; 
	else 
	news=window.open(source,'Code','status,scrollbars=1,resizable=1,height=500, width=700');
	if (news.focus != null) news.focus();
 };

};
