//\//////////////////////////////////////////////////////////////////////////////////
//\  overLIB 3.50  --  This notice must remain untouched at all times.
//\  Copyright Erik Bosrup 1998-2001. All rights reserved.
//\  THIS IS A VERY MODIFIED VERSION. DO NOT EDIT OR PUBLISH. GET THE ORIGINAL!

/* THIS IS THE VARIABLE CONFIGURATION FILE FOR THE DIV CONTAINING THE CALENDAR */
var STICKY=1;
var CAPTION=2;
var OFFSETX=3;
var OFFSETY=4;
var AUTOSTATUSCAP=5;
var FIXX=6;
var FIXY=7;
var CLOSECLICK=8;
var CSSSTYLE=9;
if(typeof ol_width=='undefined'){var ol_width="200";}
if(typeof ol_offsetx=='undefined'){var ol_offsetx=10;}
if(typeof ol_offsety=='undefined'){var ol_offsety=10;}
if(typeof ol_text=='undefined'){var ol_text="Default Text";}
if(typeof ol_cap=='undefined'){var ol_cap="";}
if(typeof ol_sticky=='undefined'){var ol_sticky=0;}
if(typeof ol_background=='undefined'){var ol_background="";}
if(typeof ol_close=='undefined'){var ol_close="&nbsp;";}
if(typeof ol_hpos=='undefined'){var ol_hpos=8;}
if(typeof ol_status=='undefined'){var ol_status="";}
if(typeof ol_autostatus=='undefined'){var ol_autostatus=0;}
if(typeof ol_height=='undefined'){var ol_height=-1;}
if(typeof ol_snapx=='undefined'){var ol_snapx=0;}
if(typeof ol_snapy=='undefined'){var ol_snapy=0;}
if(typeof ol_fixx=='undefined'){var ol_fixx=-1;}
if(typeof ol_fixy=='undefined'){var ol_fixy=-1;}
if(typeof ol_fgbackground=='undefined'){var ol_fgbackground="";}
if(typeof ol_bgbackground=='undefined'){var ol_bgbackground="";}
if(typeof ol_padxl=='undefined'){var ol_padxl=1;}
if(typeof ol_padxr=='undefined'){var ol_padxr=1;}
if(typeof ol_padyt=='undefined'){var ol_padyt=1;}
if(typeof ol_padyb=='undefined'){var ol_padyb=1;}
if(typeof ol_fullhtml=='undefined'){var ol_fullhtml=0;}
if(typeof ol_vpos=='undefined'){var ol_vpos=36;}
if(typeof ol_aboveheight=='undefined'){var ol_aboveheight=0;}
if(typeof ol_caption=='undefined'){var ol_capicon="";}
if(typeof ol_frame=='undefined'){var ol_frame=self;}
if(typeof ol_timeout=='undefined'){var ol_timeout=0;}
if(typeof ol_function=='undefined'){var ol_function=Function();}
if(typeof ol_delay=='undefined'){var ol_delay=0;}
if(typeof ol_hauto=='undefined'){var ol_hauto=0;}
if(typeof ol_vauto=='undefined'){var ol_vauto=0;}
if(typeof ol_closeclick=='undefined'){var ol_closeclick=0;}
if(typeof ol_css=='undefined'){var ol_css=51;}
if(typeof ol_fgclass=='undefined'){var ol_fgclass="";}
if(typeof ol_bgclass=='undefined'){var ol_bgclass="";}
if(typeof ol_textfontclass=='undefined'){var ol_textfontclass="";}
if(typeof ol_captionfontclass=='undefined'){var ol_captionfontclass="";}
if(typeof ol_closefontclass=='undefined'){var ol_closefontclass="";}
if(typeof ol_padunit=='undefined'){var ol_padunit="px";}
if(typeof ol_heightunit=='undefined'){var ol_heightunit="px";}
if(typeof ol_widthunit=='undefined'){var ol_widthunit="px";}
if(typeof ol_textsizeunit=='undefined'){var ol_textsizeunit="px";}
if(typeof ol_textdecoration=='undefined'){var ol_textdecoration="none";}
if(typeof ol_textstyle=='undefined'){var ol_textstyle="normal";}
if(typeof ol_textweight=='undefined'){var ol_textweight="normal";}
if(typeof ol_captionsizeunit=='undefined'){var ol_captionsizeunit="px";}
if(typeof ol_captiondecoration=='undefined'){var ol_captiondecoration="none";}
if(typeof ol_captionstyle=='undefined'){var ol_captionstyle="normal";}
if(typeof ol_captionweight=='undefined'){var ol_captionweight="bold";}
if(typeof ol_closesizeunit=='undefined'){var ol_closesizeunit="px";}
if(typeof ol_closedecoration=='undefined'){var ol_closedecoration="none";}
if(typeof ol_closestyle=='undefined'){var ol_closestyle="normal";}
if(typeof ol_closeweight=='undefined'){var ol_closeweight="normal";}
if(typeof ol_texts=='undefined'){var ol_texts=new Array("Text 0", "Text 1");}
if(typeof ol_caps=='undefined'){var ol_caps=new Array("Caption 0", "Caption 1");}
var otext="";
var ocap="";
var osticky=0;
var obackground="";
var oclose="Close";
var ohpos=8;
var ooffsetx=2;
var ooffsety=2;
var ofgcolor="";
var obgcolor="";
var otextcolor="";
var ocapcolor="";
var oclosecolor="";
var owidth=100;
var ostatus="";
var oautostatus=0;
var oheight=-1;
var osnapx=0;
var osnapy=0;
var ofixx=-1;
var ofixy=-1;
var ofgbackground="";
var obgbackground="";
var opadxl=0;
var opadxr=0;
var opadyt=0;
var opadyb=0;
var ofullhtml=0;
var ovpos=36;
var oaboveheight=0;
var ocapicon="";
var oframe=self;
var otimeout=0;
var otimerid=0;
var oallowmove=0;
var ofunction=Function();
var odelay=0;
var odelayid=0;
var ohauto=0;
var ovauto=0;
var ocloseclick=0;
var ocss=51;
var ox=0;
var oy=0;
var oallow=0;
var oshowingsticky=0;
var oremovecounter=0;
var over=null;
var ns4=(document.layers)? true:false;
var ns6=(document.getElementById)? true:false;
var ie4=(document.all)? true:false;
var ie5=false;
if(ie4){
if((navigator.userAgent.indexOf('MSIE 5')> 0)||(navigator.userAgent.indexOf('MSIE 6')> 0)){
ie5=true;
}
if(ns6){
ns6=false;
}
}
if((ns4)||(ie4)||(ns6)){
document.onmousemove=mouseMove
if(ns4)document.captureEvents(Event.MOUSEMOVE)
}else{
overlib=no_overlib;
nd=no_overlib;
ver3fix=true;
}
function no_overlib(){
	return ver3fix;
}
function overlib(){
	otext=ol_text;
	ocap=ol_cap;
	osticky=ol_sticky;	
	oclose=ol_close;
	ohpos=ol_hpos;
	ooffsetx=ol_offsetx;
	ooffsety=ol_offsety;
	owidth=ol_width;
	ostatus=ol_status;
	oautostatus=ol_autostatus;
	oheight=ol_height;
	osnapx=ol_snapx;
	osnapy=ol_snapy;
	ofixx=ol_fixx;
	ofixy=ol_fixy;
	opadxl=ol_padxl;
	opadxr=ol_padxr;
	opadyt=ol_padyt;
	opadyb=ol_padyb;
	ofullhtml=ol_fullhtml;
	ovpos=ol_vpos;
	oaboveheight=ol_aboveheight;
	ocapicon=ol_capicon;
	otimeout=ol_timeout;
	ofunction=ol_function;
	odelay=ol_delay;
	ohauto=ol_hauto;
	ovauto=ol_vauto;
	ocloseclick=ol_closeclick;
	ocss=ol_css;
	ofgclass=ol_fgclass;
	obgclass=ol_bgclass;
	opadunit=ol_padunit;
	oheightunit=ol_heightunit;
	owidthunit=ol_widthunit;
	oclosesizeunit=ol_closesizeunit;
	oclosedecoration=ol_closedecoration;
	oclosestyle=ol_closestyle;
	ocloseweight=ol_closeweight;
	if((ns4)||(ie4)||(ns6)){
		oframe=ol_frame;
		if(ns4)over=oframe.document.jsCal
		if(ie4)over=oframe.jsCal.style
		if(ns6)over=oframe.document.getElementById("jsCal");
	}
	var c=-1;
	var ar=arguments;
	for(i=0;i < ar.length;i++){
		if(c < 0){
			if(ar[i]==1){				
				otext=ol_texts[ar[++i]];
			}else{
				otext=ar[i];				
			}
			c=0;
		}else{
			if(ar[i]==STICKY){osticky=1;continue;}
			if(ar[i]==CAPTION){ocap=ar[++i];continue;}			
			if(ar[i]==OFFSETX){ooffsetx=ar[++i];continue;}
			if(ar[i]==OFFSETY){ooffsety=ar[++i];continue;}
			if(ar[i]==AUTOSTATUSCAP){oautostatus=2;continue;}
			if(ar[i]==FIXX){ofixx=ar[++i];continue;}
			if(ar[i]==FIXY){ofixy=ar[++i];continue;}
			if(ar[i]==CLOSECLICK){ocloseclick=(ocloseclick==0)? 1 : 0;continue;}
			if(ar[i]==CSSSTYLE){ocss=ar[i];continue;}
		}
	}	
	if(odelay==0){		
		return overlib350();
	}else{
		odelayid=setTimeout("overlib350()", odelay);
		if(osticky){
			return false;			
		}else{
			return true;
		}
	}
}

function overlib350(){
	var layerhtml;			
	if(ocap!=""){			
		if(osticky){
			layerhtml=ol_content_caption(otext, ocap, oclose);
		}else{
			layerhtml=ol_content_caption(otext, ocap, "");
		}
	}
	if(osticky){
		oshowingsticky=1;
		oremovecounter=0;
	}
	layerWrite(layerhtml);
	if(oautostatus > 0){
		ostatus=otext;
		if(oautostatus > 1){
			ostatus=ocap;
		}
	}
	oallowmove=0;
	if(otimeout > 0){
		if(otimerid > 0)clearTimeout(otimerid);
		otimerid=setTimeout("cClick()", otimeout);
	}
	disp(ostatus);
	if(osticky){
		oallowmove=0;
		return false;
	}else{
		return true;
	}
}

function ol_content_caption(text, title, close){
	closing="";
	if(ocloseclick==1)closeevent="onclick";
	if(close !=""){		
		closing="<div class=\"jsCalClose\" "+closeevent+"=\"return cClick();\">"+close+"</div>";
	}
	txt="<div id=\"jsCalHeader\"> <div id=\"jsCalCaption\">"+ocapicon+title+"</div> "+closing+"<div class=\"clearer\">&nbsp;</div></div>";
	txt+=text;
	set_background("");
	return txt;
}

function set_background(pic){
	if(pic==""){
		if(ie4)over.backgroundImage="none";
		if(ns6)over.style.backgroundImage="none";
	}else{
		if(ns4){
			over.background.src=pic;
		}else if(ie4){
			over.backgroundImage="url("+pic+")";
		}else if(ns6){
			over.style.backgroundImage="url("+pic+")";
		}
	}
}
function disp(statustext){
if((ns4)||(ie4)||(ns6)){
if(oallowmove==0){
placeLayer();
showObject(over);
oallowmove=1;
}
}
if(statustext !=""){
self.status=statustext;
}
}
function placeLayer(){
var placeX, placeY;
if(ofixx > -1){
placeX=ofixx;
}else{
winoffset=(ie4)? oframe.document.body.scrollLeft : oframe.pageXOffset;
if(ie4)iwidth=oframe.document.body.clientWidth;
if(ns4)iwidth=oframe.innerWidth;// was screwed in mozilla, fixed now?
if(ns6)iwidth=oframe.outerWidth;
if(ohauto==1){
if((ox - winoffset)>((eval(iwidth))/ 2)){
ohpos=7;
}else{
ohpos=8;
}
}
if(ohpos==9){// Center
placeX=ox+ooffsetx-(owidth/2);
}
if(ohpos==8){// Right
placeX=ox+ooffsetx;
if((eval(placeX)+ eval(owidth))>(winoffset + iwidth)){
placeX=iwidth + winoffset - owidth;
if(placeX < 0)placeX=0;
}
}
if(ohpos==7){// Left
placeX=ox-ooffsetx-owidth;
if(placeX < winoffset)placeX=winoffset;
}
if(osnapx > 1){
var snapping=placeX % osnapx;
if(ohpos==7){
placeX=placeX -(osnapx + snapping);
}else{
placeX=placeX +(osnapx - snapping);
}
if(placeX < winoffset)placeX=winoffset;
}
}
if(ofixy > -1){
placeY=ofixy;
}else{
scrolloffset=(ie4)? oframe.document.body.scrollTop : oframe.pageYOffset;
if(ovauto==1){
if(ie4)iheight=oframe.document.body.clientHeight;
if(ns4)iheight=oframe.innerHeight;
if(ns6)iheight=oframe.outerHeight;
iheight=(eval(iheight))/ 2;
if((oy - scrolloffset)> iheight){
ovpos=35;
}else{
ovpos=36;
}
}
if(ovpos==35){
if(oaboveheight==0){
var divref=(ie4)? oframe.document.all['jsCal'] : over;
oaboveheight=(ns4)? divref.clip.height : divref.offsetHeight;
}
placeY=oy -(oaboveheight + ooffsety);
if(placeY < scrolloffset)placeY=scrolloffset;
}else{
placeY=oy + ooffsety;
}
if(osnapy > 1){
var snapping=placeY % osnapy;
if(oaboveheight > 0 && ovpos==35){
placeY=placeY -(osnapy + snapping);
}else{
placeY=placeY +(osnapy - snapping);
}
if(placeY < scrolloffset)placeY=scrolloffset;
}
}
repositionTo(over, placeX, placeY);
}
function mouseMove(e){
if((ns4)||(ns6)){ox=e.pageX;oy=e.pageY;}
if(ie4){ox=event.x;oy=event.y;}
if(ie5){ox=event.x+oframe.document.body.scrollLeft;oy=event.y+oframe.document.body.scrollTop;}
if(oallowmove==1){
placeLayer();
}
}
function cClick(){
hideObject(over);
oshowingsticky=0;
return false;
}
function compatibleframe(frameid){
if(ns4){
if(typeof frameid.document.jsCal=='undefined')return false;
}else if(ie4){
if(typeof frameid.document.all["jsCal"]=='undefined')return false;
}else if(ns6){
if(frameid.document.getElementById('jsCal')==null)return false;
}
return true;
}
function layerWrite(txt){
txt +="\n";
if(ns4){
var lyr=oframe.document.jsCal.document
lyr.write(txt)
lyr.close()
}else if(ie4){
oframe.document.all["jsCal"].innerHTML=txt
}else if(ns6){
range=oframe.document.createRange();
range.setStartBefore(over);
domfrag=range.createContextualFragment(txt);
while(over.hasChildNodes()){
over.removeChild(over.lastChild);
}
over.appendChild(domfrag);
}
}
function showObject(obj){
if(ns4)obj.visibility="show";
else if(ie4)obj.visibility="visible";
else if(ns6)obj.style.visibility="visible";
}
function hideObject(obj){
if(ns4)obj.visibility="hide";
else if(ie4)obj.visibility="hidden";
else if(ns6)obj.style.visibility="hidden";
if(otimerid > 0)clearTimeout(otimerid);
if(odelayid > 0)clearTimeout(odelayid);
otimerid=0;
odelayid=0;
self.status="";
}
function repositionTo(obj,xL,yL){
if((ns4)||(ie4)){
obj.left=xL;
obj.top=yL;
}else if(ns6){
obj.style.left=xL + "px";
obj.style.top=yL+ "px";
}
}
function opt_FRAME(frm){
oframe=compatibleframe(frm)? frm : ol_frame;
if((ns4)||(ie4 ||(ns6))){
if(ns4)over=oframe.document.jsCal;
if(ie4)over=oframe.jsCal.style;
if(ns6)over=oframe.document.getElementById("jsCal");
}
return 0;
}
function opt_FUNCTION(callme){
otext=callme()
return 0;
}

