/* -- http://www.eyefi.nl --// -- +31 (0)20 4 279 919 --// -- W.G.Plein 369, 1054 SG Amsterdam , The Netherlands --// -- thanks to T. Brattli -- */
function eyefi_obj(obj,nest){
	nest=(!nest) ? "":'document.'+nest+'.'
	this.evnt = document.getElementById?document.getElementById(obj):document.all?document.all[obj]:document.layers?eval(nest+'document.'+obj):0; this.css = this.evnt.style?this.evnt.style:this.evnt; 
	this.ref=document.layers?this.evnt.document:document; this.x=this.css.left||this.evnt.offsetLeft; this.y=this.css.top||this.evnt.offsetTop; this.hideIt=eyefi_hideIt; this.showIt=eyefi_showIt; 
	this.writeIt=eyefi_writeIt;	this.moveIt=eyefi_moveIt; this.moveBy=eyefi_moveBy; this.status=0; this.bg=eyefi_bg; this.obj=obj + "Object"; eval(this.obj + "=this"); this.clipTo=eyefi_clipTo;
	return this;
}
function eyefi_showIt(){this.css.visibility="visible"; this.status=1}
function eyefi_hideIt(){this.css.visibility="hidden"; this.status=0}
function eyefi_writeIt(text,startHTML,endHTML){	if(document.layers){ if(!startHTML){startHTML=""; endHTML=""} this.ref.open("text/html"); this.ref.write(startHTML+text+endHTML); this.ref.close();	} else { this.evnt.innerHTML=text; } }
function eyefi_bg(color){ if (document.layers) { this.css.bgColor=color; }	else { this.css.backgroundColor=color; } }
function eyefi_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x;this.css.top=this.y}
function eyefi_moveBy(x,y){this.x=this.x+x; this.y=this.y+y; this.css.left=this.x;this.css.top=this.y}
function eyefi_clipTo(t,r,b,l,w){if(document.layers){this.css.clip.top=t;this.css.clip.right=r; this.css.clip.bottom=b;this.css.clip.left=l;}else{this.css.clip="rect("+t+"px,"+r+"px,"+b+"px,"+l+"px)"; if(w){this.css.pixelWidth=this.css.width=r; this.css.pixelHeight=this.css.height=b}}}
function clearDots() { if (document.all) dots.focus(); }
function popup(pagename,winid,wwidth,wheight) {	window.open(pagename,winid,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrolling=0,scrollbars=0,resizable=no,width='+wwidth+',height='+wheight); }
function eyefi_doc_size(){ this.x=0;this.x2=document.all && document.body.offsetWidth-20||innerWidth||0; this.y=0;this.y2=document.all && document.body.offsetHeight-5||innerHeight||0; if(!this.x2||!this.y2) { return message('Document has no width or height') } this.x50=this.x2/2;this.y50=this.y2/2; return this; }
function eyefi_checkBrowser(){ this.ver=navigator.appVersion; this.dom=document.getElementById?1:0; this.mac=(this.ver.indexOf("PPC")!= -1)?1:0; return this; }
eyefi=new eyefi_checkBrowser();
/* ******* END OF STANDARD CODE ********* */
var mapname = 0; var level = 0; var timeIt = 0; var mclass='navoff';
var fbit1='<div style=width:'; var fbit2='; height:'+dop_h+';>'; var lbit='</div>';
function writeMaps() {
	var vis = maxDrop+1; // do not change
	if (firstItem==2) {	var topItem = 'eyefi_FirstmenuOut(aDiv0,\'<span class=txt'+firstItem+'>'; var topClr = color3;	} else if (firstItem==1) { var topItem = 'eyefi_menuOut(aDiv0,\'<span class=txt'+firstItem+'>'; var topClr = color2;	}
	if (eyefi.mac) {
		for (var i=0;i<=maxDrop;i++) { // writing out the image map for each dropdown
			document.write('<map name="drop'+i+'">');
			document.write('<area coords="0,0,'+dop_w+','+dop_h+'" href="javascript:showMe('+eyefi_menu[i][1]+')">');
			document.write('<area coords="0,'+(dop_h+1)+','+dop_w+','+(dop_h*2)+'" href="javascript:showMe('+eyefi_menu[i][3]+')">');
			for (var j=2;j<(eyefi_menu[i].length);j++) { document.write('<area coords="0,'+((dop_h-1)*j)+','+dop_w+','+((dop_h-1)*(j+1))+'" href="javascript:showMe('+eyefi_menu[i][((j*2)+1)]+')">'); }
			document.write('</map>');
		}
	} else {
		for (var i=0;i<=maxDrop;i++) { // writing out the image map for each dropdown
			document.write('<map name="drop'+i+'">');
			document.write('<area coords="0,0,'+dop_w+','+dop_h+'" href="javascript:showMe('+eyefi_menu[i][1]+')" onmouseover="eyefi_menuIn(aDiv0,\'<span class=txt2>&nbsp;\'+eyefi_menu['+i+'][0]+\'</span>\',dop_w);oOff.moveIt(0,0);" onmouseout="'+topItem+'&nbsp;\'+eyefi_menu['+i+'][0]+\'</span>\',dop_w);" onclick="clearDots();">');
			document.write('<area coords="0,'+(dop_h+1)+','+dop_w+','+(dop_h*2)+'" href="javascript:showMe('+eyefi_menu[i][3]+')" onmouseover="eyefi_menuIn(aDiv1,\'<span class=txt2>&nbsp;\'+eyefi_menu['+i+'][2]+\'</span>\',dop_w);oOff.moveIt(0,0);" onmouseout="eyefi_menuOut(aDiv1,\'<span class=txt1>&nbsp;\'+eyefi_menu['+i+'][2]+\'</span>\',dop_w);" onclick="clearDots();">');
			for (var j=2;j<(eyefi_menu[i].length);j++) { document.write('<area coords="0,'+((dop_h-1)*j)+','+dop_w+','+((dop_h-1)*(j+1))+'" href="javascript:showMe('+eyefi_menu[i][((j*2)+1)]+')" onmouseover="eyefi_menuIn(aDiv'+j+',\'<span class=txt2>&nbsp;\'+eyefi_menu['+i+']['+(j*2)+']+\'</span>\',dop_w);oOff.moveIt(0,0);" onmouseout="eyefi_menuOut(aDiv'+j+',\'<span class=txt1>&nbsp;\'+eyefi_menu['+i+']['+(j*2)+']+\'</span>\',dop_w);" onclick="clearDots();">'); }
			document.write('</map>');
		}
	}
	document.write('<style>'); // ********** style sheets **********
	document.write('.txt1{font-family:'+txtFam+';font-size:'+txtSize+'px;color:'+txtClr1+';}'); document.write('.txt2{font-family:'+txtFam+';font-size:'+txtSize+'px;color:'+txtClr2+';}'); // text spec for mouse over state 
	document.write('#divOff{position:absolute;left: 0;top: 0;visibility:hidden;z-index:99;}'); document.write('#diva{position:absolute; left:'+dop_x+'; top:'+dop0_y0+';z-index:104;visibility:hidden;}'); // this div holds the spacer gif with the image map 
	document.write('#divb{position:absolute;z-index:102;visibility:hidden;}'); // this div is a background div 
	document.write('#divc{position:absolute; left:'+250+'; top:'+50+'; z-index:106; background:'+color1+';z-index:106;}'); document.write('#divd{position:absolute; left:'+dop_xx+'; top:'+dop0_y0+';z-index:105;}'); // this div locks the navigation until loaded fully 
	document.write('#div0{position:absolute; left:'+(dop_x+1)+'; height:'+(dop_h)+'; background:'+topClr+';z-index:103;visibility:hidden;}');
	for (var i=1;i<=maxSub;i++)	{ document.write('#div'+i+'{position:absolute; left:'+(dop_x+1)+'; height:'+(dop_h-1)+'; background:'+color2+';z-index:103;visibility:hidden;}');	}
	document.write('</style>');	document.write('<div id="divc"><span class="txt1"><b>'+loadMsg+'</b></span></div>'); document.write('<div id="divd"><img src="img/spacer.gif" width="'+dop_x+'" height="'+(maxSub*dop_y)+'" alt="" border="0"></div>');
	document.write('<div id="divOff"></div><div id="diva"></div><div id="divb"></div>'); document.write('<div id="divIE" style="z-index:107;"><a href="javascript://;" id="dots" name="dots"></a></div>');
	for (var i=0;i<=maxSub;i++)	{ document.write('<div id="div'+i+'"></div>'); }	
}
function eyefi_menuIn(obj1,text,dop_w) { obj1.writeIt(fbit1+dop_w+fbit2+text+lbit); obj1.bg(color1); return false; }
function eyefi_menuOut(obj1,text,dop_w) { obj1.writeIt(fbit1+dop_w+fbit2+text+lbit); obj1.bg(color2); return false; }
function eyefi_FirstmenuOut(obj1,text,dop_w) { obj1.writeIt(fbit1+dop_w+fbit2+text+lbit); obj1.bg(color3); return false; }
function showMe(page,trgt) { if (trgt) { eval("parent"+trgt+".location='"+page+"'"); } else { window.open(page); } }
function hideeyefi_menus() { oOff.hideIt();	aDiva.hideIt();	aDivb.hideIt(); for (var i=0;i<=maxSub;i++)	{ eval("aDiv"+i+".hideIt()"); } }
function eyefi_menus(mapname,level,dop_x) {
	if (stopLoop==1) { return; } hideeyefi_menus();	vis = parseInt(mapname); var heightImg = ((eyefi_menu[mapname].length)*(dop_h-1));
	eval("aDiva.writeIt('<img src=img/spacer.gif width="+(dop_w-2)+" height="+(heightImg/2)+" border=0 usemap=#drop"+mapname+">')"); eval("aDiva.moveIt("+(dop_x+2)+",(dop0_y0+dop_h))");
	eval("aDiv0.writeIt(fbit1+"+dop_w+"+fbit2+'<span class=txt'+firstItem+'>&nbsp;"+ eyefi_menu[mapname][0] +"</span>'+lbit)");	eval("aDiv0.moveIt("+(dop_x+1)+",(dop0_y0+dop_h))"); eval("aDiv0.showIt()");
	for (var i=1;i<(eyefi_menu[mapname].length/2);i++)	{ eval("aDiv"+i+".writeIt(fbit1+"+dop_w+"+fbit2+'<span class=txt1>&nbsp;"+ eyefi_menu[mapname][(i*2)] +"</span>'+lbit)"); eval("aDiv"+i+".moveIt("+(dop_x+1)+",(aDiv"+(i-1)+".y+dop_h)-1)"); eval("aDiv"+i+".showIt()");	}	
	aDiv0.moveBy(0,-1);	eval("aDivb.moveIt("+dop_x+",(dop0_y0+dop_h)-2)"); eval("aDivb.writeIt('<div style=width:"+(dop_w+2)+";background:"+brdrClr+";><img src=img/spacer.gif width="+(dop_w+2)+" height="+((heightImg/2)+4)+" border=0></div>')");	eval("oOff.moveIt(0,(dop0_y0+dop_h))");
	eval("oOff.showIt()");	eval("aDivb.showIt()");	eval("aDiva.showIt()");
}
function showeyefi_menus(mapname,level,dop_x) { clearTimeout(timeIt); clearDots(); stopLoop=1; timeIt = setTimeout("stopLoop=0;eyefi_menus("+mapname+","+level+","+dop_x+")",100); }
/* end all standard code */
function allInit() {
	page=new eyefi_doc_size(); aDiva=new eyefi_obj('diva'); aDivb=new eyefi_obj('divb'); oOff=new eyefi_obj('divOff');
	for (var i=0;i<=maxSub;i++)	{ eval("aDiv"+i+"=new eyefi_obj('div"+i+"')");	}
	aDivd=new eyefi_obj('divd'); aDivc=new eyefi_obj('divc'); aDivc.hideIt(); aDivd.hideIt();
	eval("oOff.writeIt('<a href=\"javascript:clearDots();\" onmouseover=\"hideeyefi_menus();\"><img src=img/spacer.gif width="+(eval(page.x2)-17)+" height="+(eval(page.y2-(dop0_y0+dop_h))-17)+" border=0></a>')");
}