/*===================================* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE* DISCLAIMED.  IN NO EVENT SHALL THE PRODUCER OR* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF* SUCH DAMAGE.THE PRODUCER:Andreas ImhofEDV-DienstleistungenCH-Guemligen, Switzerlandwww.aiedv.chVersion: 6.62Version date: 20091213===================================*/var initial_display_mode=0;	// 0=Text display mode							// 1=JPEGvar display_mode_icon_border_high="solid #ADBFFA 2px";var display_mode_icon_border_dehigh="solid #FFFFFF 2px";var display_mode_icon_height="20px";var display_mode_icon_width="20px";var max_floaterchars_ifnot_loggedin=50;	// num chars to show when not logged in/* language dependent strings array where languages are like this:lg[0][0]="english";lg[0][1]="deutsch";lg[0][2]="francais";lg[0][3]="dansk";lg[0][4]="polish";	lg[0][5]="";	//5-7 are free: not currently translatedlg[0][6]="";lg[0][7]=""; */var num_text_items=37;	//number of language dependent string array elementsvar lg=new Array(num_text_items);for (var i=0; i<num_text_items; i++) { lg[i]=new Array(5) }	//prepare sub-arrays for 8 languagesvar tag_s="<span style=\"color:#404080;font-size:10pt\"><b>";var tag_e="</b></span><br>";lg[0][0]=tag_s+"Display Mode:"+tag_e;			//the three items right of the page JPEG to set the display modelg[0][1]=tag_s+"Anzeige Modus:"+tag_e;lg[0][2]=tag_s+"Mode d'affichage:"+tag_e;lg[0][3]=tag_s+"Visningsform:"+tag_e;lg[0][4]=tag_s+"Tryb wy\u015Bwietlania:"+tag_e;tag_s="<span style=\"color:#333333; font-size: 8pt; font-family: 'Verdana','Arial',sans-serif; white-space:nowrap;\">";tag_e="</span>";lg[1][0]=tag_s+"Article Text"+tag_e;lg[1][1]=tag_s+"Artikel Text"+tag_e;lg[1][2]=tag_s+"L'article en texte"+tag_e;lg[1][3]=tag_s+"Artikel i tekstform"+tag_e;lg[1][4]=tag_s+"Tekst artyku\u0142u"+tag_e;tag_s="<span style=\"color:#333333; font-size: 8pt; font-family: 'Verdana','Arial',sans-serif; white-space:nowrap;\">";tag_e="</span>";lg[2][0]=tag_s+"Article JPEG"+tag_e;lg[2][1]=tag_s+"Artikel JPEG"+tag_e;lg[2][2]=tag_s+"L'article en JPEG"+tag_e;lg[2][3]=tag_s+"Artikel som jpg-billede"+tag_e;lg[2][4]=tag_s+"Artyku\u0142 w formacie JPEG"+tag_e;lg[3][0]=tag_s+"PDF"+tag_e;lg[3][1]=tag_s+"PDF"+tag_e;lg[3][2]=tag_s+"PDF"+tag_e;lg[3][3]=tag_s+"PDF"+tag_e;lg[3][4]=tag_s+"PDF"+tag_e;lg[4][0]=tag_s+"PDF"+tag_e;lg[4][1]=tag_s+"PDF"+tag_e;lg[4][2]=tag_s+"PDF"+tag_e;lg[4][3]=tag_s+"PDF"+tag_e;lg[4][4]=tag_s+"PDF"+tag_e;			//when article is displayed: the text in link anchor to the JPEG viewtag_s="<span style=\"font-family:'Verdana',sans-serif;font-size:8pt;font-weight:bold;color:#404080;background-color:#FFFFFF;text-decoration:none\">&#160;";tag_e="&#160;&#160;&raquo;</span>";lg[5][0]=tag_s+"Article JPEG"+tag_e;lg[5][1]=tag_s+"Artikel JPEG"+tag_e;lg[5][2]=tag_s+"Article JPEG"+tag_e;lg[5][3]=tag_s+"Artikel JPEG"+tag_e;lg[5][4]=tag_s+"Artyku\u0142 w formacie JPEG"+tag_e;			//when article is displayed: the text in link anchor to the PDF viewlg[6][0]=tag_s+"Article PDF"+tag_e;lg[6][1]=tag_s+"Artikel PDF"+tag_e;lg[6][2]=tag_s+"Article PDF"+tag_e;lg[6][3]=tag_s+"Artikel PDF"+tag_e;lg[6][4]=tag_s+"Artyku\u0142 w formacie PDF"+tag_e;lg[8][0]="You must login to read articles!\n";lg[8][1]="Bitte anmelden um Artikel zu lesen!\n";lg[8][2]="Veuillez-vous inscrire pour lire des articles!\n";lg[8][3]="Du skal v\u00e6re logget ind for at benytte friteksts\u00f8gningen!";lg[8][4]="Musisz zalogowa\u0107 si\u0119, aby przeczyta\u0107 artyku\u0142y\n";lg[9][0]="You must login to view PDFs!\n";lg[9][1]="Bitte anmelden um PDFs anzuzeigen!\n";lg[9][2]="Veuillez-vous inscrire pour afficher des PDF!\n";lg[9][3]="Du skal  v\u00e6re logget ind for at for at se PDF-filen!\n";lg[9][4]="Musisz zalogowa\u0107 si\u0119, aby ogl\u0105da\u0107 PDF-y\n";lg[11][0]="Article as text";lg[11][1]="Artikel in Textform";lg[11][2]="L'article en texte";lg[11][3]="Artikel i tekstform";lg[11][4]="Artyku\u0142 w formacie tekstowym";lg[12][0]="Article as JPEG";lg[12][1]="Artikel als JPEG";lg[12][2]="L'article en JPEG";lg[12][3]="Artikel som jpg-billede";lg[12][4]="Artyku\u0142 w formacie JPEG";lg[13][0]="Page PDF";lg[13][1]="Seiten-PDF";lg[13][2]="PDF de cette page";lg[13][3]="Side som PDF";lg[13][4]="Strona w formacie PDF";lg[14][0]="Click on a page area to display it larger.<br>Flip pages by clicking on the page corners.";lg[14][1]="Klicken Sie in einen Seitenbereich, um diesen gr\u00f6sser anzuzeigen.<br>Bl\u00e4ttern Sie, indem Sie mit der Maus auf die Seitenecken klicken.";lg[14][2]="Cliquez sur une zone de la page pour l'afficher plus grande.<br>Feuilletez page \u00e0 page avec votre souris en cliquant sur le bord des pages.";lg[14][3]="Click on a page area to display it larger.<br>Flip pages by clicking on the page corners.";lg[14][4]="Kliknij na wybrany obszar strony, aby go powi\u0119kszy\u0107.<br>Przegl\u0105daj strony poprzez klikni\u0119cie na naro\u017Cniki stron.";lg[15][0]="<span style=\"font-family:'Verdana',sans-serif;font-size:12pt;font-weight:bold;color:red;\">You must enable Cookies and Session Cookies to use the Shop!</span>";lg[15][1]="<span style=\"font-family:'Verdana',sans-serif;font-size:12pt;font-weight:bold;color:red;\">Sie m\u00fcssen Cookies und Session-Cookies erlauben um den Shop zu benutzen!</span>";lg[15][2]="<span style=\"font-family:'Verdana',sans-serif;font-size:12pt;font-weight:bold;color:red;\">You must enable Cookies and Session Cookies to use the Shop!</span>";lg[15][3]="<span style=\"font-family:'Verdana',sans-serif;font-size:12pt;font-weight:bold;color:red;\">You must enable Cookies and Session Cookies to use the Shop!</span>";lg[15][4]="<span style=\"font-family:'Verdana',sans-serif;font-size:12pt;font-weight:bold;color:red;\">Musisz w\u0142\u0105czy\u0107 Cookies and Session Cookies w przegladarce, aby u\u017Cywa\u0107 sklepu!</span>";// fill the logo_td with this content like://   <a href=\"http://www.mydomain.com\" alt=\"To mydomain.com Web Site\"><img id=\"logoIcon_img\" class=\"logoIcon_img\" src=\"**xslcss_path**mydomainLogo_103x40.gif\" title=\"To mydomain web site\"></a>lg[16][0]="";lg[16][1]="";lg[16][2]="";lg[16][3]="";lg[16][4]="";lg[20][0] = "Add this product to the cart";lg[20][1] = "Dieses Produkt in den Warenkorb legen";lg[20][2] = "Ajouter ce produit au panier";lg[20][3] = "Add this product to the cart";lg[20][4] = "Dodaj ten produkt do koszyka";lg[21][0] = "This product has been added to the cart.";	//\n\nReturn to this catalogue to select more articles";lg[21][1] = "Das Produkt wurde in den Warenkorb gelegt.";	//\n\nKehren Sie zu diesem Katalog zur\u00fcck um weiter einzukaufen.";lg[21][2] = "Ce produit est maintenant dans le panier.";	//\n\nRetournez au catalogue pour continuer vos achats.";lg[21][3] = "This product has been added to the cart.";	//\n\nReturn to this catalogue to select more articles";lg[21][4] = "Wybrany produkt zosta\u0142 dodany do koszyka.";	//\n\nPowr\u0119\u0107 do wybranego katalogu, aby doda\u0107 wi\u0119cej artyku\u0142\u0119w";lg[26][0]="Click to open full-text search window";lg[26][1]="Klicken um die Volltext-Suche zu \u00f6ffnen";lg[26][2]="Cliquer pour la recherche en text int&#xe9;gral";lg[26][3]="Benytte friteksts&#x0f8;gningen";lg[26][4]="Kliknij, aby otworzy\u0107 okno wyszukiwarki tekstowej";lg[27][0]="Page Inspector (magnifying glass) is on. Click to turn off.";lg[27][1]="Seiten Inpektor (Lupe) ist eingeschaltet. Klicken um auszuschalten.";lg[27][2]="Inspecteur Page (loupe) est activ\u00e9. Clicker pour desactiver.";lg[27][3]="Page Inspector (magnifying glass) is on. Click to turn off.";lg[27][4]="Inspekcja strony (lupa) jest w\u0142\u0105czona. Kliknij, aby j\u0105 wy\u0142\u0105czy\u0107.";lg[28][0]="Page Inspector (magnifying glass) is off. Click to turn on.";lg[28][1]="Seiten Inpektor (Lupe) ist ausgeschaltet. Klicken um einzuschalten.";lg[28][2]="Inspecteur Page (loupe) est desactiv\u00e9. Clicker pour activer.";lg[28][3]="Page Inspector (magnifying glass) is off. Click to turn on.";lg[28][4]="Inspekcja strony (lupa) jest wy\u0142\u0105czona. Kliknij, aby j\u0105 w\u0142\u0105czy\u0107.";lg[29][0]="Click to download the document as PDF";lg[29][1]="Klicken um das Dokument-PDF zu downloaden";lg[29][2]="Cliquer pour t&#xe9;l&#xe9;charger le PDF du document";lg[29][3]="Click to download the document as PDF";lg[29][4]="Pobierz dokument w formacie PDF";lg[30][0]="Page Inspector HELP (magnifying glass)";lg[30][1]="Seiten Inpektor HILFE (Lupe)";lg[30][2]="Inspecteur Page AIDE (loupe)";lg[30][3]="Page Inspector HELP (magnifying glass)";lg[30][4]="Inspekcja strony POMOC (lupa)";lg[31][0]="Activate the magnifying glass<br>and point the mouse<br>on the page.<br><div style=\"font-size:12pt;font-weight:bold;\">Press and hold the mouse!</div>";lg[31][1]="Lupe aktivieren<br>und mit der Maus<br>auf die Seite zeigen.<br><div style=\"font-size:12pt;font-weight:bold;\">Maustaste klicken<br>und halten!</div>";lg[31][2]="Activer la loupe et placer<br>la pointe de la souris<br>sur la page.<br><div style=\"font-size:12pt;font-weight:bold;\">Cliquer et maintenir<br>la touche appuy\u00e9e!</div>";lg[31][3]="Activate the magnifying glass<br>and point the mouse<br>on the page.<br><div style=\"font-size:12pt;font-weight:bold;\">Press and hold the mouse!</div>";lg[31][4]="W\u0142\u0105cz lup\u0119<br>i wska\u017C myszk\u0105<br>wybrany obszar<br>na stronie.<br><div style=\"font-size:12pt;font-weight:bold;\">Wci\u015Bnij i przytrzymaj myszk\u0119!</div>";lg[32][0]="<span style=\"font-size:32pt;font-weight:bold;\">&#8593;</span><br>move up<br>to enlarge";lg[32][1]="<span style=\"font-size:32pt;font-weight:bold;\">&#8593;</span><br>nach oben<br>bewegen um zu<br>vergr\u00f6ssern";lg[32][2]="<span style=\"font-size:32pt;font-weight:bold;\">&#8593;</span><br>bouger vers<br>le haut<br>pour agrandir";lg[32][3]="<span style=\"font-size:32pt;font-weight:bold;\">&#8593;</span><br>move up<br>to enlarge";lg[32][4]="<span style=\"font-size:32pt;font-weight:bold;\">&#8593;</span><br>przesu\u0144 w g\u00F3r\u0119,<br>aby powi\u0119kszy\u0107";lg[33][0]="<span style=\"font-size:32pt;font-weight:bold;\">&#8595;</span><br>move down<br>to shrink";lg[33][1]="<span style=\"font-size:32pt;font-weight:bold;\">&#8595;</span><br>nach unten<br>bewegen um zu <br>verkleinern";lg[33][2]="<span style=\"font-size:32pt;font-weight:bold;\">&#8595;</span><br>bouger vers<br>le bas<br>pour diminuer";lg[33][3]="<span style=\"font-size:32pt;font-weight:bold;\">&#8595;</span><br>move down<br>to shrink";lg[33][4]="<span style=\"font-size:32pt;font-weight:bold;\">&#8595;</span><br>przesu\u0144 na d\u00F3\u0142,<br>aby zmniejszy\u0107";lg[34][0]="<span style=\"font-size:32pt;font-weight:bold;\">&#8594;</span><br>move right to<br>enlarge magnifying glass";lg[34][1]="<span style=\"font-size:32pt;font-weight:bold;\">&#8594;</span><br>nach rechts<br>bewegen um die<br>Lupe zu vergr\u00f6ssern";lg[34][2]="<span style=\"font-size:32pt;font-weight:bold;\">&#8594;</span><br>bouger vers<br>la droite pour<br>agrandir la loupe";lg[34][3]="<span style=\"font-size:32pt;font-weight:bold;\">&#8594;</span><br>move right to<br>enlarge magnifying glass";lg[34][4]="<span style=\"font-size:32pt;font-weight:bold;\">&#8594;</span><br>przesu\u0144 w prawo, aby<br>powi\u0119kszy\u0107 lup\u0119";lg[35][0]="<span style=\"font-size:32pt;font-weight:bold;\">&#8592;</span><br>move left to<br>shrink magnifying glass";lg[35][1]="<span style=\"font-size:32pt;font-weight:bold;\">&#8592;</span><br>nach links<br>bewegen um die<br>Lupe zu verkleinern";lg[35][2]="<span style=\"font-size:32pt;font-weight:bold;\">&#8592;</span><br>bouger vers<br>la gauche pour<br>r\u00e9tr\u00e9cir la loupe";lg[35][3]="<span style=\"font-size:32pt;font-weight:bold;\">&#8592;</span><br>move left to<br>shrink magnifying glass";lg[35][4]="<span style=\"font-size:32pt;font-weight:bold;\">&#8592;</span><br>przesu\u0144 w lewo, aby<br>zmniejszy\u0107 lup\u0119";lg[36][0]="<table><tr><td><img id=\"inspectorPageIcon\" src=\"\"></td><td>Hello! It's me!<br>&laquo;Inspector Page&raquo;</td></tr></table>";lg[36][1]="<table><tr><td><img id=\"inspectorPageIcon\" src=\"\"></td><td>Hello! It's me!<br>&laquo;Inspector Page&raquo;</td></tr></table>";lg[36][2]="<table><tr><td><img id=\"inspectorPageIcon\" src=\"\"></td><td>Hello! It's me!<br>&laquo;Inspector Page&raquo;</td></tr></table>";lg[36][3]="<table><tr><td><img id=\"inspectorPageIcon\" src=\"\"></td><td>Hello! It's me!<br>&laquo;Inspector Page&raquo;</td></tr></table>";lg[36][4]="<table><tr><td><img id=\"inspectorPageIcon\" src=\"\"></td><td>Witaj! To ja!<br>&laquo;Twoja lupa&raquo;</td></tr></table>";//****** detect browser languagevar isIE = false;var isIE6 = false;var isIE7 = false;var isIE8 = false;var versionIE = 8;	// preset to 8var cur_lang=null;	//	language as short text like de fr en - set default to englishvar cur_lang_ID=0;	//	language IDs:						//	0=en, 1=de, 2=fr, 3=da, 4=pl ....try { if ((parent.global.override_language!=null) && (parent.global.override_language!="")) cur_lang=parent.global.override_language; }catch(e){	try { if ((opener.parent.global.override_language!=null) && (opener.parent.global.override_language!="")) cur_lang=opener.parent.global.override_language; } catch(e){}}if (cur_lang==null) {	if (navigator.appName.toUpperCase().indexOf("EXPLORER")>-1) {		cur_lang=navigator.userLanguage;	//for Internet Explorer		cur_lang=cur_lang.substr(0,2);		isIE = true;		do {			if (navigator.userAgent.indexOf("MSIE 6") >= 0) { isIE6 = true; break; }			if (navigator.userAgent.indexOf("MSIE 7") >= 0) { isIE7 = true; break; }			if (navigator.userAgent.indexOf("MSIE 8") >= 0) { isIE8 = true; break; }		} while(false);		if (isIE7) versionIE = 7;		else if (isIE6) versionIE = 6;	}	else {//like: " Mozilla/5.0 (Macintosh, U; PPC Mac OS X Mach-O; de-DE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6		//lets filter the 4th part - semicolon separated - within the ()		var start=navigator.userAgent.indexOf("(");		var end=navigator.userAgent.indexOf(")");		var verstr=navigator.userAgent.substring(start+1,end);		var parts=verstr.split("; ");		try {			if (parts.length > 3) cur_lang=parts[3].substr(0,2);	// opera WIN has 3 parts only			else cur_lang=parts[parts.length-1].substr(0,2);		} catch(e) { cur_lang="en"; }	}}var lang_override = null;try { lang_override = get_site_param("lang"); }catch(e) {	try { lang_override = opener.parent.get_site_param("lang"); }catch(e) {}}if (lang_override != null) cur_lang = lang_override;switch (cur_lang) {	//make sure the translated texts are available, otherwise set english	case "de": cur_lang_ID=1; break;	case "fr": cur_lang_ID=2; break;	case "da": cur_lang_ID=3; break;	case "pl": cur_lang_ID=4; break;	case "en": default:		cur_lang="en"; cur_lang_ID=0; break;}//****** write a language dependant image tagfunction img(id, src, the_class, style, lang, altID, titleID, onClick, onMouseOver, onMouseOut) {document.write('<img src="' + src + '"' +	((id!=null) ? (' id="'+id+'"') : ('')) +	((the_class!=null) ? (' class="'+the_class+'"') : ('')) +	((style!=null) ? (' style="'+style+'"') : ('')) +	((altID!=null) ? ((lang!=null) ? (' alt='+lg[altID][lang]) : (' alt='+lg[altID][lang])) : ' alt=""') +	((titleID!=null) ? ((lang!=null) ? (' title="'+lg[titleID][lang]+'"') : (' title="'+lg[titleID][cur_lang_ID]+'"')) : '') +	((onClick!=null) ? (' onClick="'+onClick+'"') : ('')) +	((onMouseOver!=null) ? (' onMouseOver="'+onMouseOver+'"') : ('')) +	((onMouseOut!=null) ? (' onMouseOut="'+onMouseOut+'"') : ('')) +	'>');return(null);}//****** set an attribute of an elementfunction sattr(elem_id, lang, attrname, attrcont) {if (lang) document.getElementById(elem_id).setAttribute(attrname,lg[attrcont][lang]);else document.getElementById(elem_id).setAttribute(attrname,lg[attrcont][cur_lang_ID]);return(null);}//****** get language dependant textfunction glt(item, lang, id) {if (id) {	if (lang) document.getElementById(id).innerHTML=lg[item][lang];	else document.getElementById(id).innerHTML=lg[item][cur_lang_ID];}else {	if (lang) document.write(lg[item][lang]);	else document.write(lg[item][cur_lang_ID]);}return(null);}//****** set the display mode icon style and textfunction set_initial_display_mode_icons(page,id_txt,id_jpg,id_pdf,id_info_txt,h,w) {var id_keystate='view_state_' + page;var key_state=parseInt(document.getElementById(id_keystate).innerHTML);if (id_txt) {	try {		if ((h==null) | (h>=0)) document.getElementById(id_txt).style.height=((h>0) ? h : display_mode_icon_height);		if ((w==null) | (w>=0)) document.getElementById(id_txt).style.width =((h>0) ? h : display_mode_icon_width);	} catch(e){}}if (id_jpg) {	try {		if (( h==null) | (h>=0)) document.getElementById(id_jpg).style.height=((h>0) ? h : display_mode_icon_height);		if (( w==null) | (w>=0)) document.getElementById(id_jpg).style.width =((h>0) ? h : display_mode_icon_width);	} catch(e){}}if (id_pdf) {	try {		if (( h==null) | (h>=0)) document.getElementById(id_pdf).style.height=((h>0) ? h : display_mode_icon_height);		if (( w==null) | (w>=0)) document.getElementById(id_pdf).style.width =((h>0) ? h : display_mode_icon_width);	} catch(e){}}if (initial_display_mode==0) {	//text display mode	if (id_txt) try { document.getElementById(id_txt).style.border=display_mode_icon_border_high; } catch(e){}	if (id_jpg) try { document.getElementById(id_jpg).style.border=display_mode_icon_border_dehigh; } catch(e){}	try { document.getElementById(id_info_txt).innerHTML=lg[1][cur_lang_ID]; } catch(e){}	document.getElementById(id_keystate).innerHTML="0";} else {	//JPEG display mode	if (id_txt) try { document.getElementById(id_txt).style.border=display_mode_icon_border_dehigh; } catch(e){}	if (id_jpg) try { document.getElementById(id_jpg).style.border=display_mode_icon_border_high; } catch(e){}	try { document.getElementById(id_info_txt).innerHTML=lg[2][cur_lang_ID]; } catch(e){}	document.getElementById(id_keystate).innerHTML="1";}return(null);}//*********************************//Change here to suit floater stuffvar use_custom_floater=0;	//set this to 1 to use floater look below, 0 = use from style class							//set to 0 to use default gray boxvar floater_width=200;		//set to width in pixels like 200var floater_height=0;		//set to 0var floater_bott=50;		//minimal offset from bottom window//the title partvar floater_TIT_border="4px solid #eeeeee";	//set to "" to use default "1px solid #222222"var floater_TIT_backgroundColor="#eeeeee";	//set to "" to use default "#DDDDDD"var floater_TIT_font="Verdana, Arial, sans-serif";	//set to "" to use default "sans-serif"var floater_TIT_fontsize="8pt";				//set font size like "11pt"var floater_TIT_fontweight="bold";			//set font weight like "normal" or "bold"//the text partvar floater_border="4px solid #eeefff";	//set to "" to use default "1px solid #222222"var floater_backgroundColor="#eeefff";	//set to "" to use default "#DDDDDD"var floater_font="Verdana, Arial, sans-serif";	//set to "" to use default "sans-serif"var floater_fontsize="8pt";				//set font size like "11pt"var floater_fontweight="normal";		//set font weight like "normal" or "bold"var mf_thick=2;				//the thickness of hor/vert coloured lines marking an articlevar mf_color="#0073BC";		//color main article framingvar mf_color2="#8DAE6A";	//color continued article framingvar floater_offset=10;var view_X=10;var view_Y=10;//****** var cur_tit="";var cur_txt="";var tmr=null;		//our floater update intervall timervar layerstyle=null;	//the floating shurtcut layer's stylevar frameHstyle;	//horizontal article framing layer's stylevar frameVstyle;	//verticalvar frameHoffset=0;var frameVoffset=0;var scrollbars=2;var my=0, mx=0;		//current mouse positionvar floater_is_visible=false;var floater_is_inited=false;var floater_is_floating = false;var in_floater=false;var current_coords=null;	//coords as string "x1,y1,x2,y2"var co=null;				//coords as array x1,y1,x2,y2var current_obj=null;var current_obj_id=null;var current_page;var current_page_number;var current_pageside;var have_to_hide=false;var browser_name;var operating_system="WIN";var F=null;var floater_current_objID="";var off='hidden';var on='visible';var t_obj; var t_id; var t_page; var t_scale; var t_jpg; var t_xml; var t_func; var t_tit; var t_txt; var t_areas; var t_hasWWWlink; var t_hasExtPDF; var t_the_pagenumber;var theimage_recall=0;var callerbox=1;//=========function nMouse(event){	if (event == null) return;	try {		my=event.pageY; mx=event.pageX;		//document.getElementById('info').innerHTML = "event:" + event + "\nN mouse x/y: " + mx + "/" + my + " .....in_floater: " + in_floater;	} catch(e){};	if (floater_is_floating) draw_floater(callerbox);}function iMouse() {	if (event == null) return;	try {		my=event.y; mx=event.x;		//document.getElementById('info').innerHTML = "event:" + event + "\nI mouse x/y: " + mx + "/" + my + " .....in_floater: " + in_floater;	} catch(e){};	if (floater_is_floating) draw_floater(callerbox);}function nKey(event){ return; }function iKey(){ return; }//****** detect browservar browser_version=navigator.appVersion;var userAgent=navigator.userAgent;do { //detect browser	if (navigator.appName.toUpperCase().indexOf("MSIE")>-1) { browser_name='EXPLORER'; break; }	if (navigator.appName.toUpperCase().indexOf("EXPLORER")>-1) { browser_name='EXPLORER'; break; }	if (userAgent.toUpperCase().indexOf("SAFARI")>-1) { browser_name='NETSCAPE'; break; }	if (userAgent.toUpperCase().indexOf("FIREFOX")>-1) { browser_name='FIREFOX'; break; }	browser_name='NETSCAPE'; break; //assume Mozilla Gecko} while(false);do { //detect operating system	if (userAgent.toUpperCase().indexOf("WINDOWS")>-1) { operating_system="WIN"; break; }	if (userAgent.toUpperCase().indexOf(" OS X")>-1) { operating_system="OSX"; break; }	else operating_system="MAC";} while(false);do {	// set event handlers	if (browser_name=='NETSCAPE' || browser_name=='FIREFOX') {		document.onmousemove=nMouse;		document.onkeydown=document.onkeyup=nKey;		scrollbars=20;		break;	}	//all others	document.onmousemove=iMouse;	document.onkeydown=document.onkeyup=iKey;} while(false);function btn(idtxt) { //get page# from idtxtvar id, id_keystate="";current_page=idtxt.substr(idtxt.lastIndexOf('_')+1);id_keystate="view_state_" + current_page;do {	if (idtxt.indexOf("btn_1_")>-1) {		try { document.getElementById(id_keystate).innerHTML="0"; } catch(e){}		try { id='info_text_1_' + current_page; document.getElementById(id).innerHTML=lg[1][cur_lang_ID]; } catch(e){}		try { id='icn_1_' + current_page; document.getElementById(id).style.border=display_mode_icon_border_high; } catch(e){}		try { id='icn_2_' + current_page; document.getElementById(id).style.border=display_mode_icon_border_dehigh; } catch(e){}		break;	}	if (idtxt.indexOf("btn_2_")>-1) {		try { document.getElementById(id_keystate).innerHTML="1"; } catch(e){}		try { id='info_text_1_' + current_page; document.getElementById(id).innerHTML=lg[2][cur_lang_ID]; } catch(e){}		try { id='icn_2_' + current_page; document.getElementById(id).style.border=display_mode_icon_border_high; } catch(e){}		try { id='icn_1_' + current_page; document.getElementById(id).style.border=display_mode_icon_border_dehigh; } catch(e){}		break;	}} while(false);}//=========function show_article_xml(obj,id,scale,jpg,xml,hasWWWlink,hasExtPDF,the_pagenumber,theArticleWindowName,theArticleWindowDim,theWindowTitle) {var wid=400, hig=500;var articleID = "Art" + id + "_" + the_pagenumber;var artobj=document.getElementById(articleID);if (!artobj) {	//is not available: do nothing	//alert("article not found: "+articleID);	return;}var content = artobj.innerHTML;// replace commented image links <!--image src="image.jpg" alt="iamge.eps"/image-->// either quirked by flipbook.xsl in browser or by transformervar re = /\<!--image/gi;content = content.replace(re,"<img");re = /\/image--\>/gi;content = content.replace(re,">");// add click for PDF,JPEG,GIF,PNG to img tags for above image links: original images are availablecontent = add_image_pdf_click(content);// replace commented image links <!--nimage src="image.jpg" alt="iamge.eps"/image-->// original images are NOT availablevar re = /\<!--nimage/gi;content = content.replace(re,"<img");re = /\/image--\>/gi;content = content.replace(re,">");// replace link data and other stufftry { content = redirect_oscommerce_links(content); } catch(e) {}	// defined in custom.js// open external links in top windowtry {	if (open_url_in_new_window != "") {	// defined in custom.js		content = retarget_links(content,open_url_in_new_window);	}} catch(e) {}// suppress unwanted character attributes set manuallytry { content = suppress_character_attribs(content); } catch(e) {}	// defined in custom.js// clean other stufftry { content = clean_content(content); } catch(e) {}	// defined in custom.js// check if we can display the article content right of flipping pagesvar show_article_in_new_window = 0;try {	var newwin = get_css_value("display_article_window","zIndex");	// try to get flag from css	if ((typeof newwin != "undefined") && (newwin != "")) show_article_in_new_window = parseInt(newwin);} catch (e) {}var articleDisplayTD = document.getElementById("articleDisplayTD");if ( (show_article_in_new_window == 0) && ((articleDisplayTD != null) && (typeof(theArticleWindowName) == 'undefined')) ) {	var windowWidth = 1024;	do {		if (!isNaN(window.innerWidth) && (window.innerWidth > 0)) { windowWidth = parseInt(window.innerWidth); break; }	// IE does not know this...		if (!isNaN(document.documentElement.clientWidth) && (document.documentElement.clientWidth >0 )) { windowWidth = parseInt(document.documentElement.clientWidth); break; }	// but this!		if (!isNaN(top.document.body.offsetWidth) && (top.document.body.offsetWidth > 0)) { windowWidth = parseInt(top.document.body.offsetWidth); break; }		if (!isNaN(top.document.body.clientWidth) && (top.document.body.clientWidth > 0)) { windowWidth = parseInt(top.document.body.clientWidth); break; }		// sh.....		windowWidth = parseInt(document.body.offsetWidth);	} while(false);	// max window height	var max_text_height = 768;	do {		if (!isNaN(window.innerHeight) && (window.innerHeight > 0)) { max_text_height = parseInt(window.innerHeight); break; }	// IE does not know this...		if (!isNaN(document.documentElement.clientHeight) && (document.documentElement.clientHeight>0)) { max_text_height = parseInt(document.documentElement.clientHeight); break; }	// but this!		if (!isNaN(top.document.body.offsetHeight) && (top.document.body.offsetHeight > 0)) { max_text_height = parseInt(top.document.body.offsetHeight); break; }		if (!isNaN(top.document.body.clientHeight) && (top.document.body.clientHeight > 0)) { max_text_height = parseInt(top.document.body.clientHeight); break; }		// sh.....		max_text_height = parseInt(document.body.offsetHeight);	} while(false);	// get the book top position	var topmostbook = 0;	if (document.getElementById('pages_cont_table_container')) {		topmostbook = getTopPos(document.getElementById('pages_cont_table_container'),false);	}	max_text_height -= topmostbook;	max_text_height -= 80;	var winheightcss = get_css_value("display_article_window","height");	// try to get max height value from css	if ((typeof winheightcss != "undefined") && (winheightcss != "")) try {		var maxheight = parseInt(winheightcss);		if ((maxheight > 0) && (max_text_height > maxheight)) max_text_height = maxheight;	} catch(e){}	/*	alert("navigator.userAgent: " + navigator.userAgent + 		"\nnavigator.appName: " + navigator.appName + 		"\n\nwindow.innerHeight: " + window.innerHeight +		"\ndocument.documentElement.clientHeight: " + document.documentElement.clientHeight +		"\ntop.document.body.offsetHeight: " + top.document.body.offsetHeight +		"\ntop.document.body.clientHeight: " + top.document.body.clientHeight +		"\npagesetTD_0: " + document.getElementById('pagesetTD_0').style.height +		"\n\ntopmostbook: " + topmostbook +		"\n\nmax_text_height: " + max_text_height		);	*/	articleDisplayTD.style.height = max_text_height + "px";	var bodyLeft = parseInt((windowWidth - document.body.offsetWidth) / 2);	if (bodyLeft < 0) bodyLeft = 0;	var articleDisplayTDwidth = getWidth(articleDisplayTD,false);	var articleDisplayTDright = getRightPos(articleDisplayTD,false);	var articleDisplayTDleft = getLeftPos(articleDisplayTD,false);	var articleDisplayTDtop = parseInt(articleDisplayTD.style.marginTop);	var minTextWidth = 250;	var articleDisplayWidth = minTextWidth;	var leftBarWidth = 0;	// left navigation bar	var rigthBarWidth = 0;	// right navigation bar	var winwidthcss = get_css_value("display_article_window","width");	// try to get width value from css	if ((typeof winwidthcss != "undefined") && (winwidthcss != "")) try { minTextWidth = parseInt(winwidthcss); } catch(e){}	var leftBarWidthcss = get_css_value("left_nav_td","width");	// try to get width value from css	if ((typeof leftBarWidthcss != "undefined") && (leftBarWidthcss != "")) try { leftBarWidth = parseInt(leftBarWidthcss); } catch(e){}	var rightBarWidthcss = get_css_value("right_nav_td","width");	// try to get width value from css	if ((typeof rightBarWidthcss != "undefined") && (rightBarWidthcss != "")) try { rightBarWidth = parseInt(rightBarWidthcss); } catch(e){}	if (typeof(dhtmlwindow) != "undefined") {		var marg = 7;	// some margin on right side		if (isIE6) {	// add scrollbar right			marg += 16;		}		var winwidth = Math.max(articleDisplayTDwidth - marg,minTextWidth);		//alert("articleDisplayTDwidth: " + articleDisplayTDwidth +		//		"\nminTextWidth: " + minTextWidth +		//		"\n-> winwidth: " + winwidth);		var winheight = max_text_height;		var winleft = articleDisplayTDright - winwidth - bodyLeft;		if ((winleft + winwidth) > windowWidth) winleft = windowWidth - winwidth;		var wintop = articleDisplayTDtop;		var winwidthstr = 'width=' + winwidth + ",";		var winheightstr = 'height=' + winheight + ",";		var winleftstr = "";		var wintopstr = "";		if (winleft < articleDisplayTDleft) {			winleftstr = "left=" + (winleft-marg) +",";			wintopstr = "top=" + wintop +",";		}		try {			if (document.getElementById("drag-contentarea") != null) wintopstr = winleftstr = winheightstr = winwidthstr = '';	// set width/height first call only		} catch(e) {}		var params = winwidthstr + winheightstr + wintopstr + winleftstr + 'resize=1,scrolling=1';		var divwin=dhtmlwindow.open('divbox', 'div', null, content, '', params,false,true);		articleDisplayWidth = divwin.offsetWidth;		/*		alert("windowWidth:"+windowWidth			+ "\nbodyLeft:"+bodyLeft			+ "\ndocument.body.offsetWidth:"+document.body.offsetWidth			+ "\narticleDisplayTDwidth:"+articleDisplayTDwidth			+ "\narticleDisplayTDleft:"+articleDisplayTDleft			+ "\narticleDisplayTDright:"+articleDisplayTDright			+ "\narticleDisplayTDtop:"+articleDisplayTDtop			+ "\nleftBarWidth:"+leftBarWidth			+ "\nrigthBarWidth:"+rigthBarWidth			+ "\n--------"			+ "\nminTextWidth:"+minTextWidth			+ "\nwintop:"+wintop + " => " + wintopstr			+ "\nwinleft:"+winleft + " => " + winleftstr			+ "\nwinwidth:"+winwidth + " => " + winwidthstr			+ "\nwinheight:"+winheight + " => " + winheightstr			+ "\nparams:"+params			);		*/	}	else {		var spacer = "<div style=\"line-height:2px; width:" + minTextWidth + "px; background-color:transparent\">&nbsp;</div>";		articleDisplayTD.innerHTML = spacer + content;		articleDisplayWidth = articleDisplayTD.offsetWidth;	}	var needWidth = parseInt(document.getElementById('pagesetTD_0').width) + parseInt(document.getElementById('pagesetTD_1').width) + minTextWidth;	var resizewidth = needWidth - parseInt(document.body.offsetWidth);	if (false && resizewidth > 0) {		/*alert("articleDisplayWidth:"+articleDisplayWidth			+ "\nminTextWidth:"+minTextWidth			+ "\nneedWidth:"+needWidth			+ "\nresizewidth:"+resizewidth			+ "\ndocument.body.offsetWidth:"+document.body.offsetWidth			);*/		top.moveTo(10, 10);		top.resizeBy(resizewidth + 50, 0);	}}else {	//this is used for direct epaper/article display within a new window	var xslcssPath = null;	var articleWinName = "myArticleWindow";	if ((typeof(theArticleWindowName) != 'undefined') && (theArticleWindowName != "")) articleWinName = theArticleWindowName;	//alert("articleWinName: '" + articleWinName + "'" + "\ntheArticleWindowName: '" + theArticleWindowName + "'");	var articleWindowDimensions = null;	// array: x,y,w,h	if ((typeof(theArticleWindowDim) != 'undefined') && (theArticleWindowDim != "")) articleWindowDimensions = theArticleWindowDim.split(",");	var articleWinTitle = "&nbsp;";	if ((typeof(theWindowTitle) != 'undefined') && (theWindowTitle != "")) articleWinTitle = unescape(theWindowTitle);	try { xslcssPath = get_moreDocumentInfo("XSLCSSPath"); } catch(e){}	try { if (F && !F.closed)  { F.close(); F=null; }//browser compatibility	} catch (e) {}	if (articleWindowDimensions != null) F=window.open("",articleWinName,"screenX=" + articleWindowDimensions[0] + ", screenY=" + articleWindowDimensions[1] + ", left=" + articleWindowDimensions[0] + ", top=" + articleWindowDimensions[1] + ", width=" + articleWindowDimensions[2] + ",height=" + articleWindowDimensions[3] + ",resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no,dependent=yes");	else F=window.open("",articleWinName,"screenX=" + view_X + ", screenY=" + view_Y + ", left=" + view_X + ", top=" + view_Y + ", width=" + wid + ",height=" + hig + ",resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no,dependent=yes");	F.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\r');	F.document.write('<html><head>\r');	F.document.write('<title>' + articleWinTitle + '</title>\r');	F.document.write('<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\r');	F.document.write('<link rel="StyleSheet" href="' + document.getElementById("doctypeinfos").innerHTML + '" type="text/css" media="all">\r');	F.document.write('<link rel="StyleSheet" href="' + get_moreDocumentInfo("XSLCSSPath") + 'flipbook.css" type="text/css" media="all">\r');	if (xslcssPath) {		F.document.write('<script language="javascript" type="text/javascript" src="' + xslcssPath + 'INXepaperF.js"></script>\r');		F.document.write('<script language="javascript" type="text/javascript" src="' + xslcssPath + 'XTXPepaper.js"></script>\r');	}	F.document.write('</head>\r<body onMouseUp="click_func(0)" onKeyUp="click_func(0)">\r');	if (xslcssPath) { //the div to display the www and mail icons		F.document.write('<div id="qm_func" style="visibility:hidden; position: fixed; top: 0px; right: 0px; cursor: pointer; border: 0px solid #000000; height: 0px; vertical-align: middle; font-family: Verdana; font-size: 9pt; text-align: left;">');		F.document.write('<img border="0" id="qm_func1" align="top" src="' + xslcssPath + 'earth.gif" vspace="1" hspace="1" style="cursor: pointer; height: 22px; background-color: transparent; vertical-align: middle" alt=""    title="web"    onMouseOver="sub_f(1,1)" onMouseOut="sub_f(1,0)" onClick="sub_do(1)">');		F.document.write('<img border="0" id="qm_func2" src="' + xslcssPath + 'email.gif" vspace="1" hspace="1" style="cursor: pointer; height: 22px; background-color: transparent; vertical-align: middle" alt="" title="e-mail" onMouseOver="sub_f(2,1)" onMouseOut="sub_f(2,0)" onClick="sub_do(2)">');		F.document.write('</div>');	}		//the article's text	F.document.write('<div style="float:left;border: 0px solid #0000FF; ">');	F.document.write(content);	F.document.write('</div>');	// we open additional article in new window: add function wrapper to opener window	if ((show_article_in_new_window != 0) || (typeof(theArticleWindowName) != 'undefined') && (theArticleWindowName != "")) {		F.document.write('\n<script language="javascript" type="text/javascript">\r');		F.document.write('this.name = "' + theArticleWindowName + '";\r');		F.document.write('function goto_page(the_page,is_real_page) { opener.goto_page(the_page,is_real_page) }\r');		F.document.write('function goto_continued_article(target_article_id,target_article_page) {\r');		F.document.write('opener.show_article_xml(null,target_article_id,1.0,null,"",false,false,target_article_page,this.name);\r');		F.document.write('}\r');		F.document.write('</script>\r');	}	F.document.writeln("\r</body></html>");	F.document.close();	F.focus();}return;}function recallshow_article_xml() {show_article_xml(t_obj,t_id,t_scale,t_jpg,t_xml,t_hasWWWlink,t_hasExtPDF,t_the_pagenumber);return;}function show_clicked_article() {	// get article idx	var id_split = current_obj_id.split("_");	var art_idx = id_split[1].substr(1);/*alert("current_obj: " + current_obj	+ "\ncurrent_page: " + current_page	+ "\ncurrent_obj_id: " + current_obj_id	+ "\nart_idx: " + art_idx	);*/	show_article_xml(current_obj,art_idx,'','','','','',current_page);}//=========function show_article_jpg(obj,id,page,scale,jpg,xml,hasWWWlink,hasExtPDF,the_pagenumber) {var id_keystate='view_state_' + page;var key_state=0;try { key_state=parseInt(document.getElementById(id_keystate).innerHTML);}catch(e){}if (key_state==0) {	show_article_xml(obj,id,scale,jpg,xml,hasWWWlink,hasExtPDF,the_pagenumber)	return;}if (!jpg || jpg=="") return;t_obj=obj; t_id=id; t_page=page; t_scale=scale; t_jpg=jpg; t_xml=xml; t_hasWWWlink=hasWWWlink; t_hasExtPDF=hasExtPDF; t_the_pagenumber=the_pagenumber;try {	if (F && !F.closed)  {	//browser compatibility		F.close(); F=null;		setTimeout('recallshow_article_jpg()',100);		return;	}}catch (e) {		F=null;		setTimeout('recallshow_article_jpg()',100);		return;}var wid=100, hig=100;F=window.open("","jpg"," screenX=" + view_X + ", screenY=" + view_Y + ", left=" + view_X + ", top=" + view_Y + ", width=" + wid + ", height=" + hig + ", resizable=Yes,scrollbars=Yes");F.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');F.document.write('<html><head><title>Article JPEG </title></head><body>');if (hasWWWlink) {	F.document.writeln("<a style=\"text-decoration:none;\" target=\"_blank\" ");	F.document.writeln(" href=\"http://" + hasWWWlink + "\" title=\""  + hasWWWlink + "\">");}F.document.write('<img style="border: 0px solid #FFFFFF" src="' + jpg + '" name="myjpg" id="myjpg" alt="Article JPEG">');if (hasWWWlink) {	F.document.writeln("</a>");}if ((hasExtPDF!=null) & (hasExtPDF!="")) {	//this is a PDF created external with GhostScript	F.document.writeln("<br><a style=\"text-decoration:none;\" href=\"" + hasExtPDF + "\" title=\"PDF\">" + lg[6][cur_lang_ID] + "</a>");}F.document.writeln("</body></html>");F.document.close();show_jpg(t_jpg);return;}function recallshow_article_jpg() {	show_article_jpg(t_obj,t_id,t_page,t_scale,t_jpg,t_xml,t_hasWWWlink,t_hasExtPDF);	return;}//=========function show_jpg(jpg) {if (!F.document.getElementById("myjpg").complete) {	var wait_display=true;	if (navigator.userAgent.toUpperCase().indexOf("SAFARI")>-1) {	//for Safari		if (F.document.myjpg.width>0) wait_display=false;	}	else wait_display=true;	if (wait_display && theimage_recall<50) {		setTimeout('show_jpg(t_jpg)',100);		theimage_recall++;		return;	}}theimage_recall=0;var wid=100, hig=100;wid=F.document.images[0].width + 25;hig=F.document.images[0].height + 45;if (operating_system =='WIN') { wid += 25; hig += 25; }if (hig>parseInt(screen.availHeight)-50) hig=parseInt(screen.availHeight)-50;if (wid>parseInt(screen.availWidth)-50) hig=parseInt(screen.availWidth)-50;if (wid<100) wid=100;if (hig<100) hig=100;F.resizeTo(wid,hig);F.focus();return;}function show_current_article() {setTimeout(current_obj.href,50);}function addDocumentPDFicon() {	if (typeof(flippbook_ready) == "undefined") return;	if (!flippbook_ready(2)) {		setTimeout("addDocumentPDFicon()", 50);		return;	}	try {		var suppress_docpdf = get_site_param("nodocpdf");		if (suppress_docpdf != null) return;	}catch(e){		setTimeout("addDocumentPDFicon()", 50);		return;	}	var pdfname = get_moreDocumentInfo("documentPDFname");	// defined in flipbook.js	if (pdfname == "") return;		var pagenav_container_td = document.getElementById("pagenav_container_td");	if (pagenav_container_td) {		var documentPDFicon_td=document.createElement("td");		documentPDFicon_td.setAttribute('id','documentPDFicon_td');		documentPDFicon_td.setAttribute((document.all && (versionIE<8) ? 'className' : 'class'),'documentPDFicon_td');		documentPDFicon_td.innerHTML = "<a href=\""+pdfname+"\" alt=\""+lg[29][cur_lang_ID]+"\"><img id=\"documentPDFicon_img\" class=\"documentPDFicon_img\" src=\""+xslcss_path+"pdf2.gif\" title=\""+lg[29][cur_lang_ID]+"\"></a>&#160;";		pagenav_container_td.parentNode.insertBefore(documentPDFicon_td,pagenav_container_td);	}	return;}var magnifier_can_use = false;			// is maginifier glass enable and could use itvar magnifier_enabled_initial = false;	// initial view with magnifier glass=true, with floater = falsevar magnifier_enabled = false;			// to toggle mouseover mode: magnifier or floatervar magnifier_can_toggle = true;		// to enable toggle between magnifier or floaterfunction magnifier_init() {	if (typeof(flippbook_ready) == "undefined") return;	if (!flippbook_ready(2)) {		setTimeout("magnifier_init()", 50);		return;	}	var suppress_magnifier = get_site_param("nolupe");	if (suppress_magnifier != null) return;	// how to set up magnifier glass:	// 0 = do not enable, allow normal mouse over only	// 10 or 1 = enable glass and set default view mode with floater and allow toggle	// 11 or 111 = enable glass and set default view mode with magnifying glass and allow toggle	// 110 = enable glass and set default view mode with magnifying glass and DO NOT allow toggle	var useMagnifier = 0;	try {		var useMagnifier_str = parseInt(document.getElementById("magnifyingglass").innerHTML);		if (useMagnifier_str == "") useMagnifier_str = "0"		useMagnifier = parseInt(useMagnifier_str);	} catch(e) { return; }	if (useMagnifier == 0) return;	// if we are here, we may use magnifying glass	magnifier_can_use = true;	if (!TJPinit) {	// wait for magnifyer avalable		setTimeout("magnifier_init()", 50);		return;	}	switch (useMagnifier) {		case 1:		case 10:			magnifier_enabled_initial = false;			magnifier_can_toggle = true;			break;		case 11:		case 111:			magnifier_enabled_initial = true;			magnifier_can_toggle = true;			break;		case 110:			magnifier_enabled_initial = true;			magnifier_can_toggle = false;			break;	}	TJPinit();	if (magnifier_enabled_initial) {		magnifier_enabled = true;		TJPstart();	}	// ad the toggle button for magnifier at first td in pagenav	if (magnifier_can_toggle && document.getElementById("pagenav_container_td")) {		var pagenav_container_td = document.getElementById("pagenav_container_td");		var inspector_td=document.createElement("td");		inspector_td.setAttribute('id','pagenav_inspect_td');		inspector_td.setAttribute((document.all && (versionIE<8) ? 'className' : 'class'),'pagenav_inspect_img_td');		inspector_td.innerHTML = "<div class='pagenav_inspect_help' title='"+lg[30][cur_lang_ID]+"' onclick='magnifier_help(1);''>?</div><img id=\"pagenav_inspect_img\" class=\"pagenav_inspect_img\" src=\""+xslcss_path+(magnifier_enabled?"mag.jpg":"mag_off.jpg")+ "\" title=\""+(magnifier_enabled?lg[27][cur_lang_ID]:lg[28][cur_lang_ID])+"\" onclick=\"magnifier_toggle();\">&#160;";		pagenav_container_td.parentNode.insertBefore(inspector_td,pagenav_container_td);	}}var pagenav_inspect_help_div = null;var pagenav_inspect_help_div_timeout = null;function magnifier_help(func) {	switch (func) {		case 0:	// close magnifier help			if (!document.getElementById("pagenav_inspect_help_table")) return;			var x=document.getElementById("pagenav_inspect_help_table").parentNode;			x.removeChild(document.getElementById("pagenav_inspect_help_table"));			page_inspector_help_div = null;			clearTimeout(pagenav_inspect_help_div_timeout);			break;		case 1:	// show magnifier help			if (document.getElementById("pagenav_inspect_help_table")) return;	// already showing			//var top_div = document.getElementById("articleDisplayTD");			var top_div = document.getElementById("top_div");			var page_inspector_help_div=document.createElement("div");			page_inspector_help_div.setAttribute('id','pagenav_inspect_help_table');			page_inspector_help_div.setAttribute((document.all && (versionIE<8) ? 'className' : 'class'),'pagenav_inspect_help_table');			page_inspector_help_div.style.position='absolute';			page_inspector_help_div.style.top='60px';			page_inspector_help_div.style.left='10px';			page_inspector_help_div.style.zIndex=99999999;			page_inspector_help_div.style.backgroundColor="#fafafa";			page_inspector_help_div.style.padding="3px";			page_inspector_help_div.style.border="1px solid #f7f7f7";						page_inspector_help_div.innerHTML = "<table><tr><td style=\"text-align:left; font-size:12pt;\">"+ lg[36][cur_lang_ID] + lg[31][cur_lang_ID] +"</td></tr><tr><td id=\"pagenav_inspect_help_text\" class=\"pagenav_inspect_help_text\" style=\"font-size:12pt; width:250px; height:200px; text-align:center;\" onclick=\"magnifier_help(0);\"></td></tr></table>";			top_div.parentNode.insertBefore(page_inspector_help_div,top_div);			document.getElementById("inspectorPageIcon").setAttribute('src',xslcss_path+'InspectorPAGE.gif');			magnifier_help_animate(1);			break;	}	return;}var magnifier_help_animate_cnt = 0;var magnifier_help_animate_cntmax = 10;var magnifier_help_animate_funct = 0;function magnifier_help_animate(funct) {	magnifier_help_animate_funct = funct;	if (funct > 4) {		magnifier_help(0);	// animation done		return;	}	if (magnifier_help_animate_cnt > magnifier_help_animate_cntmax) {		magnifier_help_animate_cnt = 0;		magnifier_help_animate_funct++;		pagenav_inspect_help_div_timeout = setTimeout("magnifier_help_animate(magnifier_help_animate_funct)",300);		return;	}	var help_div = document.getElementById("pagenav_inspect_help_text");	switch (funct) {		case 1:	// move mouse up to enlarge text			magnifier_help_animate_cntmax = 15;			if (magnifier_help_animate_cnt == 0) help_div.innerHTML = lg[32][cur_lang_ID];			var cursize = parseInt(help_div.style.fontSize);			if (cursize < 22) help_div.style.fontSize = (parseInt(help_div.style.fontSize) + 1) + "pt";			magnifier_help_animate_cnt++;			pagenav_inspect_help_div_timeout = setTimeout("magnifier_help_animate(magnifier_help_animate_funct)",350);			break;		case 2:	// move mouse down to shrink text			magnifier_help_animate_cntmax = 15;			if (magnifier_help_animate_cnt == 0) help_div.innerHTML = lg[33][cur_lang_ID];			var cursize = parseInt(help_div.style.fontSize);			if (cursize > 12) help_div.style.fontSize = (parseInt(help_div.style.fontSize) - 1) + "pt";			magnifier_help_animate_cnt++;			pagenav_inspect_help_div_timeout = setTimeout("magnifier_help_animate(magnifier_help_animate_funct)",350);			break;		case 3:	// move mouse right to enlarge glass			magnifier_help_animate_cntmax = 180;			if (magnifier_help_animate_cnt == 0) help_div.innerHTML = lg[34][cur_lang_ID];			//help_div.style.fontSize = (parseInt(help_div.style.fontSize) - 1) + "pt";			var curwidth = parseInt(help_div.style.width);			if (curwidth < 340) help_div.style.width = (parseInt(help_div.style.width) + 1) + "px";			magnifier_help_animate_cnt++;			pagenav_inspect_help_div_timeout = setTimeout("magnifier_help_animate(magnifier_help_animate_funct)",25);			break;		case 4:	// move mouse left to shrink glass			magnifier_help_animate_cntmax = 180;			if (magnifier_help_animate_cnt == 0) help_div.innerHTML = lg[35][cur_lang_ID];			//help_div.style.fontSize = (parseInt(help_div.style.fontSize) - 1) + "pt";			var curwidth = parseInt(help_div.style.width);			if (curwidth > 250) help_div.style.width = (parseInt(help_div.style.width) - 1) + "px";			magnifier_help_animate_cnt++;			pagenav_inspect_help_div_timeout = setTimeout("magnifier_help_animate(magnifier_help_animate_funct)",25);			break;		default:			magnifier_help(0);	// animation done			break;	}}function magnifier_toggle() {	if (!magnifier_can_toggle || !magnifier_can_use) return;	if (magnifier_enabled) {		TJPstop();		magnifier_enabled = false;		document.getElementById("pagenav_inspect_img").setAttribute("src", xslcss_path+"mag_off.jpg");		document.getElementById("pagenav_inspect_img").setAttribute("title",lg[28][cur_lang_ID]); }	else {		TJPstart();		magnifier_enabled = true;		document.getElementById("pagenav_inspect_img").setAttribute("src", xslcss_path+"mag.jpg");		document.getElementById("pagenav_inspect_img").setAttribute("title",lg[27][cur_lang_ID]);	}}//=========var floater_recalled = false;var floater_t_obj = null;var floater_t_func = null;var floater_t_tit = null;var floater_t_txt = null;var floater_t_areas = null;var floater_timeoutID = null;function recallfloater() {	floater_recalled = true;	floater(floater_t_obj,floater_t_func,floater_t_tit,floater_t_txt,floater_t_areas);	floater_recalled = false;return;}function floater(obj,func,tit,txt,areas,bbox) {	// areas comes as list: l,t,r,b,angle	//document.getElementById("info").innerHTML = "floater obj:'" + obj + "',func: " + func + ", areas:'"  + areas + "'";if (magnifier_enabled) {	// if magnifier glass is enabled and available	return;}if ((func == 0) && !floater_recalled) {	// give the onMouseOver on canvas some time	floater_t_obj=obj; floater_t_func=func; floater_t_tit=tit; floater_t_txt=txt; floater_t_areas=areas;	floater_timeoutID = setTimeout('recallfloater()',120);	return;}//window.clearTimeout(floater_timeoutID);if (func == 10) {	mouseOnCanvas = true;	return;}try {	if (page_is_flipping) {		hide_floater();		if (canvas_available) clear_all_shadows();		return;	}} catch(e){}if (!floater_is_inited) {	t_obj=obj; t_func=func; t_tit=tit; t_txt=txt; t_areas=areas;	init_floater(t_obj,t_func,t_tit,t_txt,t_areas);	return;}if (!obj) return;current_obj=obj;current_obj_id = obj.id;current_coords=obj.coords;if (obj.id.indexOf("area") < 0) {	// could be a mouse out of an areacanvasR or areacanvasL	current_page_number = obj.id.substring(obj.id.indexOf("P")+1,obj.id.indexOf("_"));	current_pageside = isEven(current_page_number) ? 'L_' : 'R_';	// old unsafe way	if (typeof get_pageside_from_pagenumber == 'function') {	// newer way to get pageside		var current_pagesideX = get_pageside_from_pagenumber(current_page_number);		if (current_pagesideX == "lfth") current_pageside = "L_";		else current_pageside = "R_";	}	current_page=obj.id.substr(obj.id.lastIndexOf('_')+1);	current_page_offsetLeft = getLeftPos(document.getElementById("page" + current_pageside + "1",true));	current_page_offsetTop = getTopPos(document.getElementById("page" + current_pageside + "1",true));}if ( (canvas_available == true) ) {	//document.getElementById("info").innerHTML = "floater func: " + func + ":"  + current_pageside + ": " + areas + "<br>&nbsp;&nbsp;&nbsp;&nbsp;" + txt;	if (mouseOnCanvas && (func == 0)) return;	// this comes from <area onMouseOut="floater(this,0)"...>							// shoots always when the canvas is drawn and overlays article	cur_tit=tit; cur_txt=txt;	var retval = areashadow(func,current_pageside,obj,areas);	return;}else {	if (!obj.coords) { hide_floater(); return; }	co=obj.coords.split(","); //start x,y, end x,y	//document.getElementById('info2').innerHTML = "Layer on page: " + current_obj.id + ", left: " + current_obj.offsetLeft;		var id='float_lineH' + current_pageside + "1"; frameHstyle=document.getElementById(id).style;	id='float_lineV' + current_pageside + "1"; frameVstyle=document.getElementById(id).style;}callerbox=func;var fl=parseInt(layerstyle.left);var ft=parseInt(layerstyle.top);var fb=parseInt(layerstyle.top)+parseInt(document.getElementById("float_container").offsetHeight);var fr=parseInt(layerstyle.left)+parseInt(layerstyle.width);switch (func) {case 0: //check if cursor is on floater	if (browser_name=='NETSCAPE' || browser_name=='FIREFOX') ;	else { iMouse(); }/*document.getElementById('info1').innerHTML = "current_obj.id: " + current_obj.id + "<br>" 			+ "current_pageside: " + current_pageside + ", current_page_offsetLeft: " + current_page_offsetLeft + "<br>" 			+ "Floater l/t/r/b: " + fl + "/" + ft + "/" + fr + "/" + fb + "<br>" 			;*/	if ((mx+1>=fl) && (mx-1<=fr) && (my+1>=ft) && (my-1<=fb)) { in_floater=true; break; } //we are within floater	in_floater=false;	have_to_hide=true;	hide_floater();	break;case 1:	//article startscase 2:	//for chained textboxes	in_floater=false;	cur_tit=tit; cur_txt=txt;	if (!floater_is_visible) update_floater(callerbox);	//call this only if not already visible	break;}//document.getElementById('info1').innerHTML = "in_floater: " + in_floater;return;}//=========function update_floater(func) {if (!floater_is_inited) return;if (have_to_hide) { hide_floater(); return; }if (mx<0) {	tmr=setTimeout('update_floater(callerbox)',50);	return; //do nothing, mouse is not in window}if (tmr) { clearTimeout(tmr); tmr=null; }var fl=parseInt(layerstyle.left);var ft=parseInt(layerstyle.top);var fb=parseInt(layerstyle.top)+parseInt(document.getElementById("float_container").offsetHeight);var fr=parseInt(layerstyle.left)+parseInt(layerstyle.width);if ((mx+1>=fl) && (mx-1<=fr) && (my+1>=ft) && (my-1<=fb))  {	in_floater=true;	return;}in_floater=false;//document.getElementById('info1').innerHTML = "UPDATE in_floater: " + in_floater;var x=mx, y=my;	//store mouse positiondraw_floater();if (func==1) frameVstyle.backgroundColor=frameHstyle.backgroundColor=mf_color;else frameVstyle.backgroundColor=frameHstyle.backgroundColor=mf_color2;//draw the framing boxesframeHstyle.left=parseInt(co[0])+frameHoffset-mf_thick+"px";frameHstyle.top=parseInt(co[1])+frameVoffset-mf_thick+"px";frameHstyle.width=co[2]-co[0]+(2*mf_thick)+"px";frameHstyle.height=mf_thick+"px";frameHstyle.visibility=on;frameVstyle.left=parseInt(co[0])+frameHoffset-mf_thick+"px";frameVstyle.top=parseInt(co[1])+frameVoffset+"px";frameVstyle.width=mf_thick+"px";frameVstyle.height=co[3]-co[1]+mf_thick+"px";frameVstyle.visibility=on;}function draw_floater() {	if (!cur_tit && !cur_txt) return;		//text preview floater stuff	x=mx; y=my;	if (browser_name=="EXPLORER") {	//any Microsoft Explorer		if (operating_system=='MAC') {	//Explorer macintosh			x=mx + document.body.scrollLeft;			y=my + document.body.scrollTop;		}		else {	//Explorer Windows			x += current_page_offsetLeft;			y += current_page_offsetTop;		}	}	//reposition the floater	/*	document.getElementById('info1').innerHTML = "Mouse x/y: " + mx + "/" + my + "<br>" 				+ "current_pageside: " + current_pageside + ", current_page_offsetLeft: " + current_page_offsetLeft + "<br>" 				+ "Floater l/t: " + x + "/" + y + "<br>" 				;	*/	var lposx;	var lposy;	if (current_pageside == "L_") {		lposx = (x+floater_offset)+"px";		lposy = (y+floater_offset)+"px";	}	else {		lposx = (x-parseInt(layerstyle.width)-floater_offset)+"px";		lposy = (y+floater_offset)+"px";	}	if (layerstyle.top!=lposy) layerstyle.top=lposy;	if (layerstyle.left!=lposx) layerstyle.left=lposx;			//change text in floater if different article	if (floater_current_objID!=current_obj.id) {		var logged_in=true; //are we logged in?		try { logged_in=parent.loginwin.chklog(); }		catch(e) { try { if(opener)logged_in=opener.parent.loginwin.chklog(); }catch(e){} }			var tit="";		var txt=cur_txt;		var re=/\+\+/g;		txt=txt.replace(re,"+");		re=/\+\+/g;		txt=txt.replace(re,"+");		while (txt.charAt(0) == "+") txt = txt.substr(1,txt.length);	// cut leading CR		var pos=txt.indexOf("+");		var pos1=txt.indexOf("-",0);		var pos2=txt.indexOf("\\-",0);		if (pos2>=0) pos1=txt.indexOf("-",pos2+2);		//if ( (pos<0) || ((pos1>=0) && (pos1<pos)) ) pos=pos1;		if (pos>60) pos=-1;	//does not really seem to be a title		var show_title = get_css_value("floatTit","backgroundColor"); // check if we have the style class to show a title		/* comment this to never show a title */		if ((show_title != "") && (pos>=0)) {			tit=txt.substr(0,pos);			txt=txt.substring(pos+1,255);		}		/* end title stuff*/		if (!logged_in) {txt=txt.substr(0,max_floaterchars_ifnot_loggedin);txt+="....";}		re=/\\-/g;		tit=tit.replace(re,"-");		txt=txt.replace(re,"-");		re=/\+/g;		txt=txt.replace(re,"<br>");		//document.getElementById('info').innerHTML = "tit: " + tit + "<br>" + "txt: " + txt + "<br>";		if (tit == "") {			document.getElementById('float_tit').style.visibility = "hidden";			document.getElementById('float_tit').innerHTML=tit;		}		else {			document.getElementById('float_tit').style.visibility = "visible";			document.getElementById('float_tit').innerHTML=tit;		}		document.getElementById('float_txt').innerHTML=txt + (txt.length>=240 ? "..." : "");	}		//layerstyle.overflow="visible";	layerstyle.overflow="hidden";	// cut very long lines	layerstyle.visibility=on;	floater_is_visible=true;	floater_is_floating = true;	floater_current_objID=current_obj.id;		var fl=parseInt(layerstyle.left);	var ft=parseInt(layerstyle.top);	var fb=parseInt(layerstyle.top)+parseInt(document.getElementById("float_container").offsetHeight);	var fr=parseInt(layerstyle.left)+parseInt(layerstyle.width);	if ((x+1>=fl) && (x-1<=fr) && (y+1>=ft) && (y-1<=fb)) in_floater=true;	else in_floater=false;	return;}function init_floater(obj,func,tit,txt,areas) {try {	layerstyle=document.getElementById('float_container').style;} catch (e) {	t_obj=obj; t_func=func; t_tit=tit; t_txt=txt; t_areas=areas;	setTimeout('init_floater(t_obj,t_func,t_tit,t_txt,t_areas)',50);	return;}if (use_custom_floater > 0) {	var fltr;	layerstyle.border="0px solid #000000";	layerstyle.backgroundColor="transparent";	fltr=document.getElementById('float_inner');	fltr.style.border="0px solid #000000";	fltr.style.margin="0px";	//set custom floater for title part	if (floater_border!="") {		fltr=document.getElementById('float_tit');		fltr.style.margin="0px";		fltr.style.overflow="visible";		fltr.style.border=floater_TIT_border;		fltr.style.backgroundColor=floater_TIT_backgroundColor;	}	if (floater_TIT_backgroundColor != "") fltr.style.backgroundColor=floater_TIT_backgroundColor;	if (floater_font!="") { document.getElementById('float_tit').style.fontFamily=floater_TIT_font; }	if (floater_fontsize!="") { document.getElementById('float_tit').style.fontSize=floater_TIT_fontsize; }	if (floater_fontweight!="") { document.getElementById('float_tit').style.fontWeight=floater_TIT_fontweight; }	//set custom floater for text part	if (floater_border!="") {		fltr=document.getElementById('float_txt');		fltr.style.margin="0px";		fltr.style.overflow="visible";		fltr.style.border=floater_border;	}	if (floater_backgroundColor != "") fltr.style.backgroundColor=floater_backgroundColor;	if (floater_font!="") { document.getElementById('float_txt').style.fontFamily=floater_font; }	if (floater_fontsize!="") { document.getElementById('float_txt').style.fontSize=floater_fontsize; }	if (floater_fontweight!="") { document.getElementById('float_txt').style.fontWeight=floater_fontweight; }}else {	//use from given style sheet//	floater_width=parseInt(layerstyle.width);//	floater_height=parseInt(layerstyle.height);//	floater_bott=0;	try {		floater_width = parseInt(get_css_value("floatCont","width"));	} catch (e) {}}if (operating_system=="WIN") { scrollbars=20; }layerstyle.visibility=off;layerstyle.top=0+"px";layerstyle.left=-10000+"px";	layerstyle.width=floater_width + "px";floater_is_inited=true;floater(t_obj,t_func,t_tit,t_txt,t_areas);return;}//=========function hide_floater(force) {if (!force && in_floater) return;have_to_hide=false;floater_current_objID="";if (tmr) { clearTimeout(tmr); tmr=null; }floater_is_visible=false;floater_is_inited=false;floater_is_floating = false;if (!layerstyle) return;try {	layerstyle.visibility=off;	layerstyle.top=0+"px";	layerstyle.left=-10000+"px";	//document.onmousemove=null;	//document.onkeydown=document.onkeyup=null;/*	frameHstyle.visibility=off;	frameHstyle.top=frameHstyle.left=frameHstyle.width=frameHstyle.height=0+"px";	frameVstyle.visibility=off;	frameVstyle.top=frameVstyle.left=frameVstyle.width=frameVstyle.height=0+"px";*/	var fltH = document.getElementById('float_lineHL_1').style	var fltV = document.getElementById('float_lineVL_1').style	fltH.visibility=off;	fltH.top=fltH.left=fltH.width=fltH.height=0+"px";	fltV.visibility=off;	fltV.top=fltV.left=fltV.width=fltV.height=0+"px";	fltH = document.getElementById('float_lineHR_1').style	fltV = document.getElementById('float_lineVR_1').style	fltH.visibility=off;	fltH.top=fltH.left=fltH.width=fltH.height=0+"px";	fltV.visibility=off;	fltV.top=fltV.left=fltV.width=fltV.height=0+"px";} catch(e) {}return;}function isEven(x) {	return (x%2)?false:true;}function c() {var l=true;try{l=parent.loginwin.chklog();}catch(e){try{l=opener.parent.loginwin.chklog();}catch(e){}}return(l);}function a() {alert(lg[8][cur_lang_ID])}function p() {alert(lg[9][cur_lang_ID]);return(false)}// show a file (image) in new windowfunction showImage(name) {	F=window.open('','resizedImage','screenX=20,screenY=20,left=20,top=20,width=500,height=500,resizable=Yes,scrollbars=Yes');	F.location.href=name;	F.focus();	return;}// ******* add click for PDF to img tagsfunction add_image_pdf_click(thestr) {	if ((thestr == null) || (thestr == "")) return(thestr);	if (thestr.indexOf("<img ") < 0) return(thestr);	if ( (thestr.toLowerCase().indexOf(".pdf") < 0)		&& (thestr.toLowerCase().indexOf(".jpg") < 0)		&& (thestr.toLowerCase().indexOf(".gif") < 0)		&& (thestr.toLowerCase().indexOf(".png") < 0)		) return(thestr);	str = thestr;	var re_img = null;	try {	// old IE 6 cant understand this		//re_img = new RegExp("<img (.)*?\>","gi");		// get html <img .....> construct		re_img = new RegExp("<img [^>]+>","gi");		// get html <img .....> construct		var imagetags = re_img.exec(str);	// get all image tags into array		if ((imagetags == null) || (imagetags[0] == "")) return(thestr);		var brk = 0;		// just a security counter if the regexp can not replace some signatures		while ((imagetags != null) && (imagetags[0] != "")) {			//alert("str:\n" + str + "\n\nimagetags.length: "+ imagetags.length + "\n\nimagetags: "+ imagetags);			for (var i = 0; i < imagetags.length; i++) {				var alt_re = new RegExp("alt=\"(.)*?\"","gi");		// get content of alt attr construct				var altattrs = alt_re.exec(imagetags[i]);				if ((altattrs == null) || (altattrs[0] == "")) continue;					var altattr = "" + altattrs[i];	// the whole alt="xxx.pdf" string				var pos = 0;				do {					var re = new RegExp("\.pdf","gi"); pos = altattr.search(re); if (pos >= 0) break;					re = new RegExp("\.jpg","gi"); pos = altattr.search(re); if (pos >= 0) break;					re = new RegExp("\.gif","gi"); pos = altattr.search(re); if (pos >= 0) break;					re = new RegExp("\.png","gi"); pos = altattr.search(re); if (pos >= 0) break;					break;				} while (false);				if (pos < 0) continue;					// original is a pdf,jpg,gif or png file				var re = /"(.)*"/;				// get the pdf name in the alt attribute				var pdf_re = re.exec(altattr);		// the pdf name only				var pdf = "" + pdf_re[0];		// ... as string				re = /"/g;						// remove double quotes				pdf = pdf.replace(re,"");				pdf = escape(pdf);					// replace the <img ...> with <a href="pdf"><img...></a>				var new_image = imagetags[i].replace(/\<img /gi,"\<XXimg title=\"^\" style=\"border:0;\" ");				var new_img_lnk = "<a style=\"text-decoration:none;\" href=\"" + pdf + "\" target=\"_blank\">" + new_image + "</a>";				//alert("imagetags: " + imagetags + "\n\naltattr: " + altattr + "\npos: " + pos + "\npdf: " + pdf+ "\n\nnew_img_lnk: " + new_img_lnk);				re = new RegExp(imagetags[i],"gi");				str = str.replace(re, new_img_lnk);					// go to next img alt construct				if (brk > 1000) break;				brk++;			}			// get next img tag			imagetags = re_img.exec(str);	// get all image tags into array		}	}	catch (e) {		str = str.replace(/\<XXimg /gi, "<img ");		return (str);	}	str = str.replace(/\<XXimg /gi, "<img ");	return(str);}var visibleWindow = null;function callURL(url, show_in_new_window, windowname) {	if ( (url == null) || (url == "") ) return;	if (show_in_new_window == true) {		visibleWindow = window.open("",windowname,"width=900,height=600,top=20,left=10,location=Yes,resizable=Yes,scrollbars=Yes,status=Yes,toolbar=Yes,menubar=Yes");		visibleWindow.location.href = url;		visibleWindow.focus();		//alert("visibleWindow: " + windowname);	}	else {		//alert("windowname: " + windowname);		try {			var win = top.document.getElementById(windowname);			win.location.href = url;		} catch(e) {}	}	return;}/******************************************** * canvas stuff to draw a shadow on article area(s) */var canvas_available = false;var canvasL = new Array();var canvasR = new Array();var canvasVisible = false;var mouseOnCanvas = false;var xd = 0;//0;var yd = 0;//0;var wd = 0;//3;var hd = 0;//3;function init_canvas() {	var num_canvas = 0;	var canvas_side_idx = 0; // left side canvas	while (canvas_side_idx < 2) {		num_canvas = 0;		var canvas_side = "";		if (canvas_side_idx == 0) canvas_side = "L";		else canvas_side = "R";		while (true) {			try {				var canvas_id = "areacanvas" + canvas_side + "_" + num_canvas;				if (canvas_side_idx == 0) {					canvasL[num_canvas] = document.getElementById(canvas_id);					if (canvasL[num_canvas] == null) { canvasL.length -= 1; break; }					canvasL[num_canvas].style.zIndex = 0;					var ctx = canvasL[num_canvas].getContext("2d");	// check if supported				}				else {					canvasR[num_canvas] = document.getElementById(canvas_id);					if (canvasR[num_canvas] == null) { canvasR.length -= 1; break; }					canvasR[num_canvas].style.zIndex = 0;					var ctx = canvasR[num_canvas].getContext("2d");	// check if supported				}			} catch (e) { break; }			num_canvas++;		}		canvas_side_idx++;	}	if (num_canvas <= 0) {		//document.getElementById("info").innerHTML += "   no canvas support";		canvas_available = false;	}	else {		canvas_available = true;		//document.getElementById("info").innerHTML = "canvas is supported with number of canvas: " + num_canvas;	}	return (canvas_available);}function clear_all_shadows(func) {	if (shadetimeout != null) {		clearTimeout(shadetimeout);		shadetimeout = null;	}	var canvas_side_idx = 0; // left side canvas	while (canvas_side_idx < 2) {		var canvas_side = "";		var the_canvas = null;		if (canvas_side_idx == 0) {			canvas_side = "L";			num_canvas = canvasL.length;			the_canvas = canvasL;		}		else {			canvas_side = "R";			num_canvas = canvasR.length;			the_canvas = canvasR;		}		var idx = 0;		while (idx < num_canvas) {			try {				if (!func || (func != 0)) drawshadow(the_canvas[idx],0);				the_canvas[idx].style.zIndex = 0;			} catch (e) { break; }			idx++;		}		canvas_side_idx++;	}	mouseOnCanvas = false;}var shadecolors = ["rgba(200,200,220,0.3)", "rgba(200,235,200,0.3)"];var shadecolor = shadecolors[0];var shadetimeout = null;function drawshadow(the_canvas,func,x,y,w,h,angle,tx,ty,obj) {	if (the_canvas == null) return(false);	var ctx = the_canvas.getContext("2d");	if (func == 1) {		// test to show unrotated 0,0		//ctx.fillStyle = "rgba(200,0,0,1)"; ctx.fillRect (0, 0, 4, 4);		ctx.save();		if ((angle != null) && (angle != 0)) {			var DEG2RAD = Math.PI/180;			var myangle = angle * DEG2RAD;			ctx.translate(tx,ty);			ctx.rotate(myangle);		}		// test to show translated/rotated 0,0		//ctx.fillStyle = "rgba(0,0,255,1)"; ctx.fillRect (0, 0, 6, 6);		ctx.fillStyle = shadecolor;		try {			ctx.fillRect (x, y, w, h);		} catch(e) {			//alert("invalid area coords (x,y,w,h): " + x + "," + y + "," + w + "," + h + " on object id: " + obj.id);		}		canvasVisible = true;		ctx.restore();		//alert("x: " + x + ", y:" + y + ", w: " + w + ", h: " + h);	}	else {		ctx.clearRect(0,0,the_canvas.width,the_canvas.height);		canvasVisible = false;		//alert("CLEAR xo: " + xo + ", yo:" + yo + ", wo: " + wo + ", ho: " + ho);	}	return(true);}function areashadow(func,page_side,obj,areas) {	//document.getElementById("info1").innerHTML = "areashadow:" + func + ": " + func + ": " + page_side + ": " + areas;	if (!canvas_available) return(false);	if ( (canvasL == null) || (canvasR == null) ) return(false);	clear_all_shadows();	if (func <= 0) {		hide_floater();		//document.getElementById("info2").innerHTML = "areashadow CLEAR";		return(true);	}	var coords_arr = null;	if ( (areas != null) && (areas != "") ) {		coords_arr = areas.split(";");	}	else {		//document.getElementById("info2").innerHTML = "NO areas";		return(false);	}	if (!coords_arr) {		return(true);	}	draw_floater();	//document.getElementById("info1").innerHTML = "";	for (var i = 0; i < coords_arr.length; i++) {		if (coords_arr[i] =="") continue;		var the_canvas = null;		if (page_side == "L_") the_canvas = canvasL;		if (page_side == "R_") the_canvas = canvasR;		if ( the_canvas == null) {			//alert("canvas error for page_side '" + page_side + "'");			return(false);		}		if (i >= the_canvas.length) break;		//document.getElementById("info1").innerHTML = coords_arr.length + " / " + i + " / " + coords_arr[i];		var coords = coords_arr[i].split(",");	// l,t,r,b		//document.getElementById("info1").innerHTML = coords_arr.length + " / " + i + " / " + coords_arr[i] + " / " + coords;		var l = parseInt(coords[0]);		var t = parseInt(coords[1]);		var w = parseInt(coords[2]) - parseInt(coords[0]);		var h = parseInt(coords[3]) - parseInt(coords[1]);		var lc = l;	// init canvas size to same		var tc = t;		var wc = t;		var hc = h;		var angle = 0.0;		if (coords.length > 4) {			if (coords[4] != "") angle = parseFloat(coords[4]);		}		if (coords.length > 5) {	// override canvas coords with rotated containing rect			lc = parseInt(coords[5]);			tc = parseInt(coords[6]);			wc = parseInt(coords[7]) - parseInt(coords[5]);			hc = parseInt(coords[8]) - parseInt(coords[6]);		}		var tx = l - lc; if (lc > l) tx = lc - l;		var ty = t - tc; if (tc > t) ty = tc - t;		/*		alert("lc:"+lc + "\ntc:"+tc + "\nwc:"+wc + "\nhc:"+hc			+ "\nl:"+l+" lc:"+lc + " tx:"+tx			+ "\nt:"+t+" tc:"+tc + " ty:"+ty			+ "\nw:"+w+" h:"+h			+ "\nangle:"+angle);		*/		//document.getElementById("info1").innerHTML = the_canvas.length + "/the_canvas:" + i + " / " + coords;		//the_canvas[i].style.border = "1px solid red";		the_canvas[i].style.zIndex = 1000000;		the_canvas[i].left = lc + xd;		the_canvas[i].top = tc + yd;		the_canvas[i].width = wc + wd;		the_canvas[i].height = hc + hd;		the_canvas[i].style.left = (lc+xd) +"px";		the_canvas[i].style.top = (tc+yd) +"px";		the_canvas[i].style.width = (wc+wd) +"px";		the_canvas[i].style.height = (hc+hd) +"px";		drawshadow(the_canvas[i],1, 0, 0, w+wd, h+hd, -angle, tx, ty, obj);	}	if (shadecolor == shadecolors[0]) shadecolor = shadecolors[1];	else shadecolor = shadecolors[0];	shadetimeout = setTimeout("clear_all_shadows(0)", 2000);	// this allows smaller areas to become active	return;}function logo_td_init() {	if (typeof(flippbook_ready) == "undefined") return;	if ((lg[16] == null) || (lg[16][cur_lang_ID] == "")) return;	if (!flippbook_ready(2)) {		setTimeout("logo_td_init()", 50);		return;	}	var cont = lg[16][cur_lang_ID];	var re = /\*\*xslcss_path\*\*/gi;	cont = cont.replace(re,xslcss_path);	document.getElementById("logo_td").innerHTML = cont;}// init more stuffmagnifier_init();setTimeout("logo_td_init()", 20);setTimeout("addDocumentPDFicon()", 50);