function BrowserOs()
	{
	this.browser=navigator.appName;
	this.version=navigator.appVersion;
	this.pc=(this.version.indexOf('Win')>0);
	this.mac=(this.version.indexOf('Mac')>0);
	this.ns=(this.browser.indexOf('Netscape')>0);
	this.ie=(this.version.indexOf('MSIE')>0);
	if(this.ns){this.ver=parseFloat(this.version);}
	if(this.ie){var start=this.version.indexOf('MSIE')+5;this.ver=parseFloat(this.version.substring(start,start+3));}
	this.ok=((this.ie || this.ns) && (this.ver>=4));
	}
	
var sys=new BrowserOs();

/*function getObj(obj)
	{
	if(document.all) obj=document.all[obj];
	if(document.layers) { if(document.layers[obj]){obj=document.layers[obj]; obj.style=obj;} else {obj='';}}
	return obj;
	}

function show(obj)

	{
	obj=getObj(obj);
	obj.style.visibility=(document.all) ? 'visible' : 'show';
	}

function hide(obj)
	{
	obj=getObj(obj);
	obj.style.visibility=(document.all) ? 'hidden' : 'hide';
	}
	
function toggle(obj)
	{
	obj=getObj(obj);
	
	if(document.all)
		{
		obj.visibility=(obj.visibility=='visible') ? 'hidden' : 'visible';
		}
	else
		{
		obj.visibility=(obj.visibility=='show' || obj=='visible') ? 'hide' : 'show';
		}
	}
*/
function visible(obj)
	{
	obj=getObj(obj);
	if(obj.style.visibility=='visible' || obj.style.visibility=='show') return true;
	else return false;
	}
/*
function layerWrite(obj,str)
	{
	obj=getObj(obj);
	if(document.all)
		{
		obj.innerHTML=str;
		}
	else
		{
		obj.document.open();
		obj.document.write(str);
		obj.document.close();
		}
	}
*/
function moveTo(obj,x,y)
	{
	obj=getObj(obj);
	obj.style.left=x;
	obj.style.top=y;
	}
/*
function clipV(obj,h1,h2)
	{
	obj=getObj(obj);
	if(document.all) obj.style.clip='rect('+h1+',auto,'+h2+',0)';
	if(document.layers) { obj.clip.top=h1; obj.clip.bottom=h2; }
	}
*/
function clipVH(obj,h1,w1,h2,w2)
	{
	obj=getObj(obj);
	if(document.all) obj.style.clip='rect('+h1+','+w1+','+h2+','+w2+')';
	if(document.layers) { obj.clip.top=h1; obj.clip.bottom=h2; obj.clip.rightw1; obj.clip.left=w2; }
	}
/*
var scroller=new Array();
var scrollerTimeout;

function makeScrollable()
	{
	var name;
	for(i=0;i<(arguments.length/3);i++)
		{
		name=arguments[i*3];
		scroller[name]=name;
			
		scroller[name]=(document.all) ? document.all[name] : document.layers[name];
		if(document.layers) scroller[name].style=scroller[name];
		
		scroller[name].contentHeight=(document.all) ? scroller[name].offsetHeight : scroller[name].clip.height;
		scroller[name].clipHeight=arguments[i*3+1];
		scroller[name].clipTop=0;
		scroller[name].contentTop=parseInt(scroller[name].style.top);
		scroller[name].contentBottom=scroller[name].contentTop - scroller[name].contentHeight + scroller[name].clipHeight;
		
		clipV(name,0,scroller[name].clipHeight);
		
		if(arguments[i*3+2]){show(name);}
		}
	}
	
function scroll(name,dY)
	{
	var y = parseInt(scroller[name].style.top);
	
	if( (dY>0 && y<scroller[name].contentTop) || (dY<0 && y>scroller[name].contentBottom) )
		{
		scroller[name].style.top = y + dY;
		scroller[name].clipTop-=dY;
		
		clipV(name,scroller[name].clipTop,(scroller[name].clipTop+scroller[name].clipHeight));
		
		scrollerTimeout=setTimeout('scroll("'+name+'",'+dY+')',100);
		}
	}
	
function stopScroll() { clearTimeout(scrollerTimeout); }
*/
function followMouse(name,xOffset,yOffset)
	{
	if(name)
		{
		var mX,mY;
			
		if(document.all){document.onmousemove=function(){mX=event.clientX;mY=parseInt(event.clientY+document.body.scrollTop);moveTo(name,mX+xOffset,mY+yOffset);}}
		else{document.captureEvents(Event.MOUSEMOVE);document.onmousemove=function(e){mX=e.pageX;mY=e.pageY;moveTo(name,mX+xOffset,mY+yOffset);}}
		}
	else
		{
		if(document.all){document.onmousemove=function(){}}
		else{document.onmousemove=function(){}}
		}
	}
	
function resizeWin(w,h)
	{
	if(document.all){window.resizeTo(w,h)}
	if(document.layers){window.innerWidth=w;window.innerHeight=h;}
	}
	
function openSisters() {
	if (sys.pc || sys.ns) {

		openWin('http://194.68.70.221/../frameset.asp','sisters',698,488)
	} else if (sys.mac && sys.ver==4.5) {
		openWin('http://194.68.70.221/../frameset.asp','sisters',681,488)
	} else {
		openWin('http://194.68.70.221/../frameset.asp','sisters',681,472)
	}
	newWin.focus();
}

function openWin(url, name, width, height, scroll) {
	scroller= (typeof(scroll)!='undefined') ? "scrollbars=1," : ""
	newWin=window.open(url,name, 'menubar=no,resizable=no,width=' + width + ',height=' + height + ',titlebar=no,alwaysRaised=yes,status=yes,' + scroller + 'left='+(screen.width/2-width/2)+',top='+(screen.height/2-height/2-height/10)+',screenX=0,screenY=0');
	return newWin
}

function fixMac(s){return (!navigator.platform.charAt(0)=="M")?s:s.replace(/\xE5/,"\x8C").replace(/\xE4/,"\x8A").replace(/\xF6/,"\x9A").replace(/\xC5/,"\x81").replace(/\xC4/,"\x80").replace(/\xD6/,"\x85")}

















if(!window.__var)__var={};
function __tbl(){return {DOM:(document.getElementById&&navigator.platform.charAt(0)!='M'),NS4:document.layers,IE:document.all,MAC:navigator.platform.charAt(0)=='M',all:{}}}

function getObj(obj){/*works for NS4,NS5 & IE*/if(typeof(obj) != 'string'){return obj} var o={style:{}},d=arguments[1]||document;if(d.all){return d.all[obj]||null; }else if(__tbl().DOM){return d.getElementById(obj);} else if(__tbl().NS4){if((o = __tbl().all[obj]||d.layers[obj]||d.images[obj]||d.forms[obj])) return (__tbl().all[obj]=(o.style=o)); for(var i=0;i< d.layers.length;i++){if((o = getObj(obj,d.layers[i].document))) return (__tbl().all[obj]=(o.style=o))}}return null;}

/*function getObj(obj){
	if(typeof(obj) != 'string') { return obj; }
	var o = {style:{}}, d = arguments[1] || document;
	if(d.all) { return d.all[obj]; }*/
	

function compound(ar){var objs = [];for(var i=0;i<ar.length;i++) objs=objs.concat((ar[i]+'').indexOf(',') > 0 ? ar[i].split(',') : (typeof(ar[i])=='array'?ar[i]:[ar[i]]));return objs;}
function show(){var objs = compound(arguments);for(var j=0;j<objs.length;j++) getObj(objs[j]).style.visibility= (__tbl().NS4) ? 'show' : 'visible';}
function hide(){var objs = compound(arguments);for(var j=0;j<objs.length;j++) getObj(objs[j]).style.visibility= (__tbl().NS4) ? 'hide' : 'hidden';}
function toggle(obj){var obj=getObj(obj);return isVisible(obj)?hide(obj):show(obj)}
function isVisible(obj){return ((getObj(obj).style.visibility +'').indexOf('h') != 0)}
function layerWrite(obj,str){var obj=getObj(obj);if(obj.outerHTML){obj.innerHTML=str}else{with(obj.document){open();write(str);close()}}}
function LmoveTo(obj,x,y){var st=getObj(obj).style;st.left=x;st.top=y;}
function LmoveBy(obj,dX,dY){var st=getObj(obj).style;moveTo(obj,parseInt(st.left)+dX,parseInt(st.top)+dY)}

function clip(obj,t,b,l,r){st=getObj(obj).style;if(__tbl().NS4){if(t!='auto')st.clip.top=t; if(b!='auto')st.clip.bottom=b; if(l!='auto')st.clip.left=l; if(r!='auto')st.clip.right=r}else{st.clip='rect(' + t + ',' + r + ',' + b + ',' + l + ')'}}
function clipV(obj,h1,h2){clip(obj,h1,h2,'auto','auto')}
function clipH(obj,h1,h2){clip(obj,'auto','auto',h1,h2)}

function scroll(name,dX,dY){
	if(__tbl().NS4){window.captureEvents(Event.MOUSEUP)}
	window.onmouseup=document.onmouseup=function (){clearTimeout(__var.scrollTimeout);}
	var pC=function (s){return (s+''=='auto')?'auto':parseInt(s)};var o=getObj(name);var st=o.style;var w=o.offsetWidth||o.document.width;var h=o.offsetHeight||o.document.height;(st.clip+'').match(/rect\((-?\w*) (-?\w*) (-?\w*) (-?\w*)\)/);var cl={t:RegExp.$1||st.clip.top,l:RegExp.$4||st.clip.left,b:RegExp.$3||st.clip.bottom,r:RegExp.$2||st.clip.right};
	dY=(pC(cl.t)-dY<=0)?pC(cl.t):((pC(cl.t)-dY+(pC(cl.b)-pC(cl.t))>= h)?0:dY);
	dX=(pC(cl.l)-dX<=0)?pC(cl.l):((pC(cl.l)-dX+(pC(cl.r)-pC(cl.l))>= w)?0:dX);
	LmoveTo(name,pC(st.left)+dX,pC(st.top)+dY);
	clip(name,pC(cl.t)-dY,pC(cl.b)-dY,pC(cl.l)-dX,pC(cl.r)-dX);
	__var.scrollTimeout=setTimeout('scroll("'+name+'",'+dX+','+dY+')',20);
}
function scrollH(name,dX){scroll(name,dX,0)}
function scrollV(name,dY){scroll(name,0,dY)}
function scrollTo(name,pX,pY){
	var pC=function (s){return (s+''=='auto')?'auto':parseInt(s)};var o=getObj(name);var st=o.style;var w=o.offsetWidth||o.document.width;var h=o.offsetHeight||o.document.height;(st.clip+'').match(/rect\((-?\w*) (-?\w*) (-?\w*) (-?\w*)\)/);var cl={t:RegExp.$1||st.clip.top,l:RegExp.$4||st.clip.left,b:RegExp.$3||st.clip.bottom,r:RegExp.$2||st.clip.right};
	var cw=(pC(cl.l)-pC(cl.r));
	var ch=(pC(cl.b)-pC(cl.t));
	var sX=pX*w-cw;var sY=pY*h-ch;
	defaultStatus = parseInt(o.style.left) +':'+ parseInt(o.style.top);
	LmoveTo(name,parseInt(o.style.left)-sX,parseInt(o.style.top)-sY);
}
function stopScroll(){}

function drag(name,constraints){if(__tbl().NS4){window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP)};var o=getObj(name);o.constraints=constraints;var v=__var;v.dL=o;v.dT=0;v.dIx=o.style.left;v.dIy=o.style.top;if(o.constraints&&o.constraints.zpop)o.style.zIndex+=1000;o._onDrag = function(e){var p=parseInt;var v = __var;var c=this.constraints;var w=p(this.style.width||this.style.clip.width||this.style.document.width);var h=p(this.style.height||this.style.clip.height||this.style.document.height);var t=p(this.style.top);var l=p(this.style.left);v.Dx=(c.right&&(l + w + v.Dx)>c.right)?0:(c.left&&l+v.Dx<c.left)?0:v.Dx;v.Dy=(c.bottom&&(t+h+v.Dy)>c.bottom)?0:(c.top&&t+v.Dy<c.top)?0:v.Dy;return (v.Dy||v.Dx)};window.onmousemove=document.onmousemove=function (){if(__var.dT%2!=0)return false;var e=arguments[0]||event;e={x:(e.pageX||e.clientX),y:(e.pageY||e.clientY),e:e};var v=__var;v.Dx=v.dLx?e.x-v.dLx:0;v.Dy=v.dLy?e.y-v.dLy:0;if(v.dL&&o._onDrag(e)){if(!o.onDrag||o.onDrag(e))LmoveBy((o.id||o.name),v.Dx,v.Dy)};v.dLx=e.x;v.dLy=e.y;e.e.returnValue=false;return false};window.onmouseup=document.onmouseup=function (){stopDrag(arguments[0])}}
function stopDrag(){var v=__var;if(v.dL && v.dL.onDragEnd) v.dL.onDragEnd(arguments[0]||event); window.onmouseup=window.onmousemove=document.onmouseup=document.onmousemove=v.dL=v.dLx=v.dLy=null;}
