/*
 Pleas leave this notice.
 DHTML tip message version 1.2 copyright Essam Gamal 2003 (http://migoicons.tripod.com, migoicons@hotmail.com)
*/ 

var dwz_ua = navigator.userAgent;
var dwz_ps = navigator.productSub ;
var dwz_dom = (document.getElementById)? 1:0;
var dwz_ie4 = (document.all&&!dwz_dom)? 1:0;
var dwz_ie5 = (document.all&&dwz_dom)? 1:0;
var dwz_nn4 =(navigator.appName.toLowerCase() == "netscape" && parseInt(navigator.appVersion) == 4);
var dwz_nn6 = (dwz_dom&&!dwz_ie5)? 1:0;
var dwz_sNav = (dwz_nn4||dwz_nn6||dwz_ie4||dwz_ie5)? 1:0;
var dwz_cssFilters = ((dwz_ua.indexOf("MSIE 5.5")>=0||dwz_ua.indexOf("MSIE 6")>=0)&&dwz_ua.indexOf("Opera")<0)? 1:0;
var dwz_Count=0,dwz_sbw=0,dwz_move=0,dwz_hs="",dwz_mx,dwz_my,dwz_scl,dwz_sct,dwz_ww,dwz_wh,dwz_obj,dwz_sl,dwz_st,dwz_ih,dwz_iw,dwz_vl,dwz_hl,dwz_sv,dwz_evlh,dwz_evlw,dwz_tbody;
var dwz_HideTip = "eval(dwz_obj+dwz_sv+dwz_hl+';'+dwz_obj+dwz_sl+'=0;'+dwz_obj+dwz_st+'=-800')";
var dwz_doc_root = ((dwz_ie5&&dwz_ua.indexOf("Opera")<0||dwz_ie4)&&document.compatMode=="CSS1Compat")? "document.documentElement":"document.body";
var dwz_PX = (dwz_nn6)? "px" :"" ;

if(dwz_sNav) {
	window.onresize = dwz_ReloadTip;
	document.onmousemove = dwz_MoveTip;
	if(dwz_nn4) document.captureEvents(Event.MOUSEMOVE) ;
}	;
if(dwz_nn4||dwz_nn6) {
	dwz_mx = "e.pageX";
	dwz_my = "e.pageY";
	dwz_scl = "window.pageXOffset";
	dwz_sct = "window.pageYOffset"	;
	if(dwz_nn4) {
		dwz_obj = "document.dwzTipLayer.";
		dwz_sl = "left";
		dwz_st = "top";
		dwz_ih = "clip.height";
		dwz_iw = "clip.width";
		dwz_vl = "'show'";
		dwz_hl = "'hide'";
		dwz_sv = "visibility=";
	}else{
		dwz_obj = "document.getElementById('dwzTipLayer').";
	};
} ;
if(dwz_ie4||dwz_ie5) {
	dwz_obj = "dwzTipLayer.";
	dwz_mx = "event.x";
	dwz_my = "event.y";
	dwz_scl = "eval(dwz_doc_root).scrollLeft";
	dwz_sct = "eval(dwz_doc_root).scrollTop";
	if(dwz_ie5) {
		dwz_mx = dwz_mx+"+"+dwz_scl ;
		dwz_my = dwz_my+"+"+dwz_sct;
	};
};
if(dwz_ie4||dwz_dom){
	dwz_sl = "style.left";
	dwz_st = "style.top";
	dwz_ih = "offsetHeight";
	dwz_iw = "offsetWidth";
	dwz_vl = "'visible'";
	dwz_hl = "'hidden'";
	dwz_sv = "style.visibility=";
};
if(dwz_ie4||dwz_ie5||dwz_ps>=20020823) {
	dwz_ww = "eval(dwz_doc_root).clientWidth";
	dwz_wh = "eval(dwz_doc_root).clientHeight";
}else { 
	dwz_ww = "window.innerWidth";
	dwz_wh = "window.innerHeight";
	dwz_evlh = eval(dwz_wh);
	dwz_evlw = eval(dwz_ww);
	dwz_sbw=15;
}	;

function dwz_applyCssFilter(){
	if(dwz_cssFilters&&dwzFiltersEnabled) { 
		var dx = " progid:DXImageTransform.Microsoft."
		dwzTipLayer.style.filter = "revealTrans()"+dx+"Fade(Overlap=1.00 enabled=0)"+dx+"Inset(enabled=0)"+dx+"Iris(irisstyle=PLUS,motion=in enabled=0)"+dx+"Iris(irisstyle=PLUS,motion=out enabled=0)"+dx+"Iris(irisstyle=DIAMOND,motion=in enabled=0)"+dx+"Iris(irisstyle=DIAMOND,motion=out enabled=0)"+dx+"Iris(irisstyle=CROSS,motion=in enabled=0)"+dx+"Iris(irisstyle=CROSS,motion=out enabled=0)"+dx+"Iris(irisstyle=STAR,motion=in enabled=0)"+dx+"Iris(irisstyle=STAR,motion=out enabled=0)"+dx+"RadialWipe(wipestyle=CLOCK enabled=0)"+dx+"RadialWipe(wipestyle=WEDGE enabled=0)"+dx+"RadialWipe(wipestyle=RADIAL enabled=0)"+dx+"Pixelate(MaxSquare=35,enabled=0)"+dx+"Slide(slidestyle=HIDE,Bands=25 enabled=0)"+dx+"Slide(slidestyle=PUSH,Bands=25 enabled=0)"+dx+"Slide(slidestyle=SWAP,Bands=25 enabled=0)"+dx+"Spiral(GridSizeX=16,GridSizeY=16 enabled=0)"+dx+"Stretch(stretchstyle=HIDE enabled=0)"+dx+"Stretch(stretchstyle=PUSH enabled=0)"+dx+"Stretch(stretchstyle=SPIN enabled=0)"+dx+"Wheel(spokes=16 enabled=0)"+dx+"GradientWipe(GradientSize=1.00,wipestyle=0,motion=forward enabled=0)"+dx+"GradientWipe(GradientSize=1.00,wipestyle=0,motion=reverse enabled=0)"+dx+"GradientWipe(GradientSize=1.00,wipestyle=1,motion=forward enabled=0)"+dx+"GradientWipe(GradientSize=1.00,wipestyle=1,motion=reverse enabled=0)"+dx+"Zigzag(GridSizeX=8,GridSizeY=8 enabled=0)"+dx+"Alpha(enabled=0)"+dx+"Dropshadow(OffX=3,OffY=3,Positive=true,enabled=0)"+dx+"Shadow(strength=3,direction=135,enabled=0)"
	}
}

function dwzStm(t,s) {
  if(dwz_sNav) {
  	if(t.length<2||s.length<25) {
		var ErrorNotice = "DHTML TIP MESSAGE VERSION 1.2 ERROR NOTICE.\n"
		if(t.length<2&&s.length<25){
			alert(ErrorNotice+"It looks like you removed an entry or more from the Style Array and Text Array of this tip.\nTheir should be 25 entries in every Style Array even though empty and 2 in every Text Array. You defined only "+s.length+" entries in the Style Array and "+t.length+" entry in the Text Array. This tip won't be viewed to avoid errors")
		}else if(t.length<2){
			alert(ErrorNotice+"It looks like you removed an entry or more from the Text Array of this tip.\nTheir should be 2 entries in every Text Array. You defined only "+t.length+" entry. This tip won't be viewed to avoid errors.")
		}else if(s.length<25){
			alert(ErrorNotice+"It looks like you removed an entry or more from the Style Array of this tip.\nTheir should be 25 entries in every Style Array even though empty. You defined only "+s.length+" entries. This tip won't be viewed to avoid errors.")
		}
 	}else {
		//t[1] = t[1].replace(/@@_@@_@@/g,'"')
		t[1] = t[1].replace(/mycrlf/gi,"\n")
		t[1] = t[1].replace(/mytab/gi,"\t")
		t[1] = t[1].replace(/myerre/gi,"\r")
		//t[1] = t[1].replace(/@_PERC_@/gi,"%")
		t[1] = t[1].replace(/\u0027/g,"'")
		
		var ab = "" ;var ap = ""
		var titCol = (s[0])? "COLOR='"+s[0]+"'" : ""
		var txtCol = (s[1])? "COLOR='"+s[1]+"'" : ""
		var titBgCol = (s[2])? "BGCOLOR='"+s[2]+"'" : ""
		var txtBgCol = (s[3])? "BGCOLOR='"+s[3]+"'" : ""
		var titBgImg = (s[4])? "BACKGROUND='"+s[4]+"'" : ""	
		var txtBgImg = (s[5])? "BACKGROUND='"+s[5]+"'" : ""
		var titTxtAli = (s[6] && s[6].toLowerCase()!="left")? "ALIGN='"+s[6]+"'" : ""
		var txtTxtAli = (s[7] && s[7].toLowerCase()!="left")? "ALIGN='"+s[7]+"'" : ""   
		var add_height = (s[15])? "HEIGHT='"+s[15]+"'" : ""
		if(!s[8])  s[8] = "Verdana,Arial,Helvetica"
		s[8] = s[8].replace(/;/g,",")
		if(!s[9])  s[9] = "Verdana,Arial,Helvetica"
		s[9] = s[9].replace(/;/g,",")
		if(!s[12]) s[12] = 1
		if(!s[13]) s[13] = 1
		if(!s[14]) s[14] = 200
		if(!s[16]) s[16] = 0
		if(!s[17]) s[17] = 0
		if(!s[18]) s[18] = 10
		if(!s[19]) s[19] = 10
		dwz_hs = s[11].toLowerCase() 
		
		if(dwz_ps==20001108){
			if(s[2]){
				ab="STYLE='border:"+s[16]+"px solid"+" "+s[2]+"'"
			}
			ap="STYLE='padding:"+s[17]+"px "+s[17]+"px "+s[17]+"px "+s[17]+"px'"
		}
		var closeLink=(dwz_hs=="sticky")? "<TD ALIGN='right'><FONT SIZE='"+s[12]+"' FACE='"+s[8]+"'><A HREF='javascript:void(0)' ONCLICK='dwz_stickyhide()' STYLE='text-decoration:none;color:"+s[0]+"'><B>Close</B></A></FONT></TD>":""
		var title=(t[0]||dwz_hs=="sticky")? "<TABLE WIDTH='100%' BORDER='0' CELLPADDING='0' CELLSPACING='0'><TR><TD "+titTxtAli+"><FONT SIZE='"+s[12]+"' FACE='"+s[8]+"' "+titCol+"><B>"+t[0]+"</B></FONT></TD>"+closeLink+"</TR></TABLE>" : ""
		var txt="<TABLE "+titBgImg+" "+ab+" WIDTH='"+s[14]+"' BORDER='0' CELLPADDING='"+s[16]+"' CELLSPACING='0' "+titBgCol+" ><TR><TD>"+title+"<TABLE WIDTH='100%' "+add_height+" BORDER='0' CELLPADDING='"+s[17]+"' CELLSPACING='0' "+txtBgCol+" "+txtBgImg+"><TR><TD "+txtTxtAli+" "+ap+" VALIGN='top'><FONT SIZE='"+s[13]+"' FACE='"+s[9]+"' "+txtCol +">"+t[1]+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"
		
		if(dwz_nn4) {
			with(eval(dwz_obj+"document")) {
				open()
				write(txt)
				close()
			}
		}else{
			eval(dwz_obj+"innerHTML=txt")
		}
		s[18] = parseInt(s[18])
		s[19] = parseInt(s[19])
		s[20] = parseInt(s[20])
		s[21] = parseFloat(s[21])
		s[22] = parseInt(s[22])
		
		dwz_tbody = {
			Pos:s[10].toLowerCase(), 
			Xpos:s[18],
			Ypos:s[19], 
			Transition:s[20],
			Duration:s[21], 
			Alpha:s[22],
			ShadowType:s[23].toLowerCase(),
			ShadowColor:s[24],
			Width:parseInt(eval(dwz_obj+dwz_iw)+3+dwz_sbw)
		}
		
		if(dwz_ie4) { 
			dwzTipLayer.style.width = s[14]
	 		dwz_tbody.Width = s[14]
		}
		dwz_Count=0	
		dwz_move=1
 	 }
  }
}

function dwz_MoveTip(e) {
	if(dwz_move) {
		var X,Y,MouseX = eval(dwz_mx),MouseY = eval(dwz_my); dwz_tbody.Height = parseInt(eval(dwz_obj+dwz_ih)+3)
		dwz_tbody.wiw = parseInt(eval(dwz_ww+"+"+dwz_scl)); dwz_tbody.wih = parseInt(eval(dwz_wh+"+"+dwz_sct))
		switch(dwz_tbody.Pos) {
			case "left" : 
				X=MouseX-dwz_tbody.Width-dwz_tbody.Xpos; 
				Y=MouseY+dwz_tbody.Ypos; 
				break
			case "center": 
				X=MouseX-(dwz_tbody.Width/2); 
				Y=MouseY+dwz_tbody.Ypos; 
				break
			case "float": 
				X=dwz_tbody.Xpos+eval(dwz_scl); 
				Y=dwz_tbody.Ypos+eval(dwz_sct); 
				break	
			case "fixed": 
				X=dwz_tbody.Xpos; 
				Y=dwz_tbody.Ypos; 
				break		
			default: 
				X=MouseX+dwz_tbody.Xpos; 
				Y=MouseY+dwz_tbody.Ypos
		}

		if(dwz_tbody.wiw<dwz_tbody.Width+X){
			X = dwz_tbody.wiw-dwz_tbody.Width
		}
		if(dwz_tbody.wih<dwz_tbody.Height+Y+dwz_sbw) {
			if(dwz_tbody.Pos=="float"||dwz_tbody.Pos=="fixed"){
				Y = dwz_tbody.wih-dwz_tbody.Height-dwz_sbw
			}else{
				Y = MouseY-dwz_tbody.Height
			}
		}
		if(X<0){
			X=0 
		}
		eval(dwz_obj+dwz_sl+"=X+dwz_PX;"+dwz_obj+dwz_st+"=Y+dwz_PX")
		dwz_ViewTip()
	}
}

function dwz_ViewTip() {
  	dwz_Count++
	if(dwz_Count == 1) {
		if(dwz_cssFilters&&dwzFiltersEnabled) {	
			for(Index=28; Index<31; Index++) {
				dwzTipLayer.filters[Index].enabled = 0 
			}
			for(s=0; s<28; s++) {
				if(dwzTipLayer.filters[s].status == 2){
					dwzTipLayer.filters[s].stop() 
				}
			}
			if(dwz_tbody.Transition == 51){
				dwz_tbody.Transition = parseInt(Math.random()*50)
			}
			
			var applyTrans = (dwz_tbody.Transition>-1&&dwz_tbody.Transition<24&&dwz_tbody.Duration>0)? 1:0
			var advFilters = (dwz_tbody.Transition>23&&dwz_tbody.Transition<51&&dwz_tbody.Duration>0)? 1:0
			var which = (applyTrans)?0:(advFilters)? dwz_tbody.Transition-23:0 
			if(dwz_tbody.Alpha>0&&dwz_tbody.Alpha<100) {
	  			dwzTipLayer.filters[28].enabled = 1
	  			dwzTipLayer.filters[28].opacity = dwz_tbody.Alpha
			}
			if(dwz_tbody.ShadowColor&&dwz_tbody.ShadowType == "simple") {
	  			dwzTipLayer.filters[29].enabled = 1
	  			dwzTipLayer.filters[29].color = dwz_tbody.ShadowColor
			}
			else if(dwz_tbody.ShadowColor&&dwz_tbody.ShadowType == "complex") {
	  			dwzTipLayer.filters[30].enabled = 1
	  			dwzTipLayer.filters[30].color = dwz_tbody.ShadowColor
			}
			if(applyTrans||advFilters) {
				eval(dwz_obj+dwz_sv+dwz_hl)
	  			if(applyTrans){
					dwzTipLayer.filters[0].transition = dwz_tbody.Transition
				}
	  			dwzTipLayer.filters[which].duration = dwz_tbody.Duration 
	  			dwzTipLayer.filters[which].apply()
			}
		}
 		eval(dwz_obj+dwz_sv+dwz_vl)
		if(dwz_cssFilters&&dwzFiltersEnabled&&(applyTrans||advFilters)){
			dwzTipLayer.filters[which].play()
		}		
		if(dwz_hs == "sticky"){dwz_move=0}
  	}
}

function dwz_stickyhide() {
	eval(dwz_HideTip)
}

function dwz_ReloadTip() {
	 if(dwz_nn4&&(dwz_evlw!=eval(dwz_ww)||dwz_evlh!=eval(dwz_wh))){
		 location.reload()
	 }else if(dwz_hs == "sticky"){
		 eval(dwz_HideTip)
	 }
}

function dwzHtm() {
	if(dwz_sNav) {
		if(dwz_hs!="keep") {
			dwz_move=0; 
			if(dwz_hs!="sticky"){
				eval(dwz_HideTip)
			}
		}	
	} 
}






