PageSourceSearch

http://www.operaduets.com/~navs/website.js

js operaduets.com collected 2026-09-24 23:56:58 UTC 15,841 bytes, 627 lines download raw bytes

1
2		var nav_website = new Object();
3
4		nav_website.underline="false";
5		nav_website.justification="center";
6		nav_website.textFont="Helvetica";
7		nav_website.selectedUnderline="false";
8		nav_website.accentStyle="Square";
9		nav_website.funButton="Arts_and_Crafts";
10		nav_website.mouseoverBgcolor="#406AB0";
11		nav_website.mouseoverBold="true";
12		nav_website.buttonCategory="basic";
13		nav_website.darkButton="Basic_Black";
14		nav_website.italic="true";
15		nav_website.importedImageMouseOver="BaltsaCarreras/FedoraWien_op_130x85.jpg";
16		nav_website.textSize="10";
17		nav_website.tabCategory="basic";
18		nav_website.style="tabs";
19		nav_website.selectedTextcolor="#BEC4FD";
20		nav_website.graphicSelected="true";
21		nav_website.selectedBgcolor="#B91806";
22		nav_website.accentColor="Cream";
23		nav_website.hasLinks="true";
24		nav_website.basicButton="Black";
25		nav_website.accentType="none";
26		nav_website.graphicMouseover="true";
27		nav_website.horizontalSpacing="10";
28		nav_website.lineWidth="2";
29		nav_website.selectedEffect="true";
30		nav_website.lineColor="#FFFFFF";
31		nav_website.modernButton="Black_Button";
32		nav_website.border="#406AB0";
33		nav_website.simpleButton="Autumn_Leaves";
34		nav_website.type="Navigation";
35		nav_website.bold="false";
36		nav_website.sophisticatedButton="Antique";
37		nav_website.localPreview="false";
38		nav_website.verticalSpacing="10";
39		nav_website.selectedBold="true";
40		nav_website.basicTab="Black";
41		nav_website.mouseoverEffect="true";
42		nav_website.navID="nav_website";
43		nav_website.mouseoverTextcolor="#FCA705";
44		nav_website.imageHeight="31";
45		nav_website.mouseoverUnderline="false";
46		nav_website.texturedButton="Brick";
47		nav_website.selectedItalic="true";
48		nav_website.brightButton="Chicky";
49		nav_website.importedImageSelected="";
50		nav_website.dirty="false";
51		nav_website.squareTab="Camel";
52		nav_website.horizontalWrap="6";
53		nav_website.numLinks="5";
54		nav_website.imageWidth="114";
55		nav_website.mouseoverItalic="false";
56		nav_website.importedImage="BaltsaCarreras/DonCarlo_op_130x95.jpg";
57		nav_website.background="#000000";
58		nav_website.shinyButton="Shiny_Aqua";
59		nav_website.version="5";
60		nav_website.orientation="horizontal";
61		nav_website.textColor="#C5DD97";
62		nav_website.holidayButton="Christmas_Ornaments";
63		
64		nav_website.navName = "website";
65		nav_website.imagePath = "/~media/elements/LayoutClipart/../LayoutClipart/NavTabs/Basic_Tab_Black_Unselected.gif";
66		nav_website.selectedImagePath = "/~media/elements/LayoutClipart/../LayoutClipart/NavTabs/Basic_Tab_Black_Selected.gif";
67		nav_website.mouseOverImagePath = "/~media/elements/LayoutClipart/../LayoutClipart/NavTabs/Basic_Tab_Black_Selected.gif";
68		nav_website.imageWidth = "114";
69		nav_website.imageHeight = "31";
70		nav_website.fontClass = "size10 Helvetica10";
71		nav_website.fontFace = "Helvetica, Arial, sans-serif";
72
73		
74		
75		var baseHref = '';
76		
77		if (document.getElementsByTagName)
78		{
79			
80			var base = document.getElementsByTagName('base');
81			
82			if (base && base.length > 0)
83			{
84				
85				if (base[0].href != undefined)
86				{
87					
88					baseHref = base[0].href;
89					
90					if (baseHref != '' && baseHref.charAt(baseHref.length - 1) != '/')
91					{
92						baseHref += '/';
93					}
94				}
95			}
96		}
97		
98		nav_website.links=new Array(5);
99	
100		
101		var nav_website_Link1 = new Object();
102		nav_website_Link1.type = "url";
103		nav_website_Link1.displayName = "OperaDuets Photos";
104		nav_website_Link1.linkWindow = "_self";
105		nav_website_Link1.linkValue = "http://www.operaduetsphotos.com/";
106		nav_website_Link1.linkIndex = "1";
107		nav_website.links[0] = nav_website_Link1;
108
109		var nav_website_Link2 = new Object();
110		nav_website_Link2.type = "url";
111		nav_website_Link2.displayName = "Josep Carreras";
112		nav_website_Link2.linkWindow = "_self";
113		nav_website_Link2.linkValue = "http://josepcarreras.operaduets.com/";
114		nav_website_Link2.linkIndex = "2";
115		nav_website.links[1] = nav_website_Link2;
116
117		var nav_website_Link3 = new Object();
118		nav_website_Link3.type = "url";
119		nav_website_Link3.displayName = "Agnes Baltsa";
120		nav_website_Link3.linkWindow = "_self";
121		nav_website_Link3.linkValue = "http://agnesbaltsa.operaduets.com/";
122		nav_website_Link3.linkIndex = "3";
123		nav_website.links[2] = nav_website_Link3;
124
125		var nav_website_Link4 = new Object();
126		nav_website_Link4.type = "url";
127		nav_website_Link4.displayName = "José Cura";
128		nav_website_Link4.linkWindow = "_self";
129		nav_website_Link4.linkValue = "http://josecura.operaduets.com/";
130		nav_website_Link4.linkIndex = "4";
131		nav_website.links[3] = nav_website_Link4;
132
133		var nav_website_Link5 = new Object();
134		nav_website_Link5.type = "url";
135		nav_website_Link5.displayName = "OperaDuets Travel";
136		nav_website_Link5.linkWindow = "_self";
137		nav_website_Link5.linkValue = "http://www.operaduetstravel.com/";
138		nav_website_Link5.linkIndex = "5";
139		nav_website.links[4] = nav_website_Link5;
140
141		
142
143
144
145
146function renderGraphicalHTML(Navigation, strTpGif)
147{
148	var strHTML = '';
149	strHTML += '<table border="0" cellspacing="0" cellpadding="0">';
150
151	var i;
152	for(i = 0; i < Navigation.links.length; i++)
153	{
154		strHTML += renderGraphicalLink(Navigation, Navigation.links[i], strTpGif);	
155	}
156	
157	strHTML += '</table>';
158	return strHTML;
159}
160
161function mouseOn(tdCell, newBackgroundImage) 
162{
163	tdCell.style.backgroundImage = 'url(' + newBackgroundImage + ')';
164}
165
166function mouseOff(tdCell, newBackgroundImage)
167{
168	tdCell.style.backgroundImage = 'url(' + newBackgroundImage + ')';
169}
170
171function getGraphicMouseOverHandler(Navigation, bIsCurrentPage)
172{
173	
174	if (Navigation.mouseoverEffect != 'true') return '';
175
176	if((Navigation.graphicSelected=='true' || Navigation.selectedTextcolor) && bIsCurrentPage && 'true' == Navigation.selectedEffect)
177	{
178		return '';
179	}
180	var bShowMouseoverText = !(bIsCurrentPage && 'true' == Navigation.selectedEffect && Navigation.selectedTextcolor);
181	var strMouseOver = '';
182	var strMouseOut = '';
183	
184	if(Navigation.graphicMouseover=='true')
185	{
186		strMouseOver += ' mouseOn(this, \'' + Navigation.mouseOverImagePath +  '\');';
187		strMouseOut += ' mouseOff(this, \'' + Navigation.imagePath + '\');';
188	}		
189	var textColor;
190	var baseTextColor = Navigation.textColor;
191	var bold;
192	var baseBold = Navigation.bold;
193	var underline;
194	var baseUnderline = Navigation.underline;
195	var italic;
196	var baseItalic = Navigation.italic;
197	if(bIsCurrentPage && 'true' == Navigation.selectedEffect)
198	{
199		textColor = Navigation.selectedTextcolor ? Navigation.selectedTextcolor : (Navigation.mouseoverTextColor ? Navigation.mouseoverTextcolor : Navigation.textColor);
200		baseTextColor = Navigation.selectedTextcolor ? Navigation.selectedTextcolor : Navigation.textColor;
201		baseBold = bold = Navigation.selectedBold;
202		baseUnderline = underline = Navigation.selectedUnderline;
203		baseItalic = italic = Navigation.selectedItalic;
204	}
205	else
206	{
207		textColor = Navigation.mouseoverTextcolor ? Navigation.mouseoverTextcolor : Navigation.textColor;
208		bold = Navigation.mouseoverBold;
209		underline = Navigation.mouseoverUnderline;
210		italic = Navigation.mouseoverItalic;
211	}
212	strMouseOver += ' textMouseOn(this, \'' + textColor + '\', \'' + bold + '\', \'' + underline + '\', \'' + italic + '\');';
213	strMouseOut += ' textMouseOff(this, \'' + baseTextColor + '\', \'' + baseBold + '\', \'' + baseUnderline + '\', \'' + baseItalic + '\');';
214	return ' onMouseOver="' + strMouseOver + '" onMouseOut="' + strMouseOut + '"';
215}	
216
217
218function getGraphicalStyle(Navigation, strImg, strFontColor, bold, italic, underline, bNetscape) 
219{
220	var strStyle = ' style="';
221	
222	strStyle += 'cursor: pointer; cursor: hand; '; 
223	strStyle += 'color:' + strFontColor + ';';
224	strStyle += 'background-image:url(' + strImg + ');';
225	strStyle += 'background-repeat:no-repeat;';
226	strStyle += 'background-position:' + Navigation.justification + ';';
227
228	if(!bNetscape)
229	{
230		if (bold) strStyle += 'font-weight: bold;';
231		if (italic) strStyle += 'font-style: italic;';
232		if (underline) strStyle += 'text-decoration: underline;';
233	}
234	
235		
236	strStyle += Navigation.justification;			
237	
238	
239	strStyle += '" ';
240	
241	return strStyle;
242}
243
244function renderGraphicalLink(Navigation, Link, strTpGif)
245{
246	var strImg = Navigation.imagePath;
247	var strFontColor = Navigation.textColor;
248	var bIsCurrentPage = isCurrentPage(Link);
249	var strLinkValue = fixLinkValue(Link);
250	var bLastLink = Link.linkIndex == Navigation.numLinks;
251	var nColIndex = 0;
252	
253	if(Navigation.orientation=='horizontal')
254	{
255		nColIndex = (Link.linkIndex - 1) % Navigation.horizontalWrap;
256	}
257	
258	if (bIsCurrentPage && 'true' == Navigation.selectedEffect) 
259	{
260		if(Navigation.graphicSelected=='true')
261		{
262			strImg = Navigation.selectedImagePath;	
263		}
264		
265		if(Navigation.selectedTextcolor)
266		{
267			strFontColor = Navigation.selectedTextcolor;	
268		}
269	}
270	
271	
272	var bNetscape = false;
273	var strAppName = navigator.appName;
274	var appVer = parseFloat(navigator.appVersion);
275	var nGeneralPadding = 10;	
276	
277	if ( (strAppName == 'Netscape') &&
278				(appVer >= 4.0 && appVer < 5) ) 
279	{  
280		bNetscape = true;
281	}
282	
283	var strHTML = '';
284	
285	if(Navigation.orientation=='horizontal')
286	{
287		if( (Link.linkIndex % Navigation.horizontalWrap) == 1) 
288		{
289			strHTML += '<TR ALIGN="CENTER" VALIGN="MIDDLE">';
290			strHTML += '<TD>';
291			strHTML += '<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">';
292			strHTML += '<TR>';
293		}	
294	}
295	else
296	{
297		
298		strHTML += '<TR>'
299	}
300
301	
302	
303	strHTML += '<TD NOWRAP HEIGHT="' + Navigation.imageHeight + '"';
304	
305	strHTML += ' ALIGN="' + Navigation.justification + '" VALIGN="MIDDLE"';
306	
307	
308	strHTML += ' id="'+Navigation.navName+'_Link'+Link.linkIndex+'"';
309	
310	if(!bNetscape)
311	{
312		
313		strHTML += getGraphicalStyle(
314			Navigation, 
315			strImg, 
316			strFontColor,
317			((bIsCurrentPage && 'true' == Navigation.selectedEffect) ? ('true' == Navigation.selectedBold) : ('true' == Navigation.bold)),
318			((bIsCurrentPage && 'true' == Navigation.selectedEffect) ? ('true' == Navigation.selectedItalic) : ('true' == Navigation.italic)),
319			((bIsCurrentPage && 'true' == Navigation.selectedEffect) ? ('true' == Navigation.selectedUnderline) : ('true' == Navigation.underline)),
320			bNetscape
321		);
322	}
323	else
324	{
325		
326		if(bIsCurrentPage && 'true' == Navigation.selectedEffect)
327		{
328			strHTML += ' CLASS="navBackgroundSelected' + Navigation.navName + '" ';
329		}
330		else
331		{
332			strHTML += ' CLASS="navBackground' + Navigation.navName + '" ';
333		}
334	}
335		
336	if(!bNetscape)
337	{		
338		
339		var strOnClick = getOnClick(strLinkValue, Link.linkWindow); 
340		
341		
342		var strMouseOver = getGraphicMouseOverHandler(Navigation, bIsCurrentPage);
343		
344		strHTML += strOnClick + strMouseOver;
345	}
346	
347	if(bNetscape)
348	{
349		strHTML += ' width="' + Navigation.imageWidth + '"';
350	}
351	
352	strHTML += '>';  
353	
354	
355	var strFormattingStart = ''; 
356	var strFormattingEnd = '';
357	
358	if (bNetscape)
359	{
360		if((bIsCurrentPage && 'true' == Navigation.selectedEffect) ? ('true' == Navigation.selectedItalic) : ('true' == Navigation.italic))
361		{
362			strFormattingStart += '<I>';
363			strFormattingEnd = '</I>' + strFormattingEnd;
364		}
365		if((bIsCurrentPage && 'true' == Navigation.selectedEffect) ? ('true' == Navigation.selectedBold) : ('true' == Navigation.bold))
366		{
367			strFormattingStart += '<B>';
368			strFormattingEnd = '</B>' + strFormattingEnd;
369		}
370	}
371	
372	
373	if(!bNetscape)
374	{
375		var nDivWidth = Navigation.imageWidth;
376		
377		if(Navigation.justification != 'center')
378		{
379			nDivWidth = nDivWidth - nGeneralPadding;
380		}
381		strHTML += '<DIV ';
382		strHTML += ' STYLE="width:' + nDivWidth + 'px';
383		
384		if(Navigation.justification != 'center')
385		{
386			strHTML += ';margin-' + Navigation.justification + ':';
387			strHTML += nGeneralPadding + 'px';	
388		}
389		strHTML+='">';
390	}
391	
392	if(bNetscape)
393	{
394		if(Navigation.justification == 'left')
395		{
396			strHTML += '<IMG SRC="' + strTpGif + '" WIDTH="' + nGeneralPadding + '" HEIGHT="1" BORDER="0">';	
397		}
398
399		
400		strHTML += '<A HREF="' + strLinkValue + '" TARGET="';
401
402		
403		var strLinkTarget = Link.linkWindow;
404		if(strLinkTarget == '_self')
405		{
406			strLinkTarget = '_parent';
407		}
408				
409		strHTML += strLinkTarget + '">'; 
410	}	
411	
412	
413	strHTML += '<FONT';
414	strHTML += ' FACE="' + Navigation.fontFace + '"';
415	strHTML += ' CLASS="' + Navigation.fontClass + '"'; 
416	
417	
418	if(bNetscape)
419	{
420		strHTML += ' COLOR="' + strFontColor + '"';
421	}
422	
423	strHTML += '>'; 
424	
425	strHTML += strFormattingStart + Link.displayName + strFormattingEnd;
426	
427	strHTML += '</FONT>';
428
429	
430	if(!bNetscape)
431	{
432		strHTML += '</DIV>';
433	}
434	
435	
436	if(bNetscape)
437	{
438		if(Navigation.justification == 'right')
439		{
440			strHTML += '<IMG SRC="' + strTpGif + '" WIDTH="' + nGeneralPadding + '" HEIGHT="1" BORDER="0">';
441		}
442		strHTML += '</A>';
443	}		
444	
445	
446	strHTML += '</TD>';
447	
448	
449	if(Navigation.orientation=='vertical')
450	{
451		strHTML += '</TR>';
452		
453		if(Navigation.verticalSpacing > 0)
454		{
455			if(!bLastLink)
456			{
457				strHTML += '<TR><TD>';
458				strHTML += '<IMG SRC="' + strTpGif + '" HEIGHT="' + Navigation.verticalSpacing + '" WIDTH="1" BORDER="0" ALT="">';
459				strHTML += '</TD></TR>';
460			}
461		}
462	}
463	else
464	{
465		
466		if(Navigation.horizontalSpacing > 0)
467		{
468			if(!bLastLink && (nColIndex != Navigation.horizontalWrap - 1))
469			{
470				strHTML += '<TD WIDTH="' + Navigation.horizontalSpacing + '">';
471				strHTML += '<IMG SRC="' + strTpGif + '" WIDTH="' + Navigation.horizontalSpacing + '" HEIGHT="1" BORDER="0" ALT="">';
472				strHTML += '</TD>';
473			}
474		}
475		
476		
477		if (bLastLink || nColIndex == Navigation.horizontalWrap - 1) 
478		{
479			strHTML += '</TR>';
480			strHTML += '</TABLE>';
481			strHTML += '</TD></TR>';		
482		}
483		
484		
485		if(nColIndex == Navigation.horizontalWrap - 1 && !bLastLink)
486		{
487			strHTML += '<TR><TD>';
488			strHTML += '<IMG SRC="' + strTpGif + '" HEIGHT="' + Navigation.verticalSpacing + '" WIDTH="1" BORDER="0" ALT="">';
489			strHTML += '</TD></TR>';
490		}
491	}
492	return strHTML;
493}
494
495
496		
497
498
499
500function renderHTML(Navigation)
501{
502	if (navigator.userAgent.indexOf('Mozilla/3') != -1)
503	{
504		return 'Sorry, since you are using an old version of Netscape, you may 
504not be able to access all the pages in this Web site.';	
505	}
506
507	if (Navigation.style == 'text')
508	{
509		return renderTextHTML(Navigation, '/tp.gif');
510	}
511	else
512	{
513		return renderGraphicalHTML(Navigation, '/tp.gif');
514	}
515}
516
517
518function fixLinkValue(Link)
519{
520	if(Link.type!='existing')
521	{
522		return Link.linkValue;
523	}
524	else
525	{
526		return baseHref + strRelativePathToRoot + Link.linkValue;	
527	}
528}
529
530function isCurrentPage(Link)  
531{
532	if(Link.type!='existing')
533	{
534		return false;
535	}		
536	var strLinkValue = Link.linkValue.toLowerCase();
537	return (strRelativePagePath == strLinkValue);	
538} 
539
540function getOnClick(strLinkValue, strLinkTarget)  
541{ 
542	var strOnClick;
543	if(strLinkTarget == '_blank')
544	{
545		strOnClick = 'onClick="window.open(\'' + strLinkValue + '\');"';
546	}
547	else
548	{  
549		strOnClick = 'onClick="document.location = \'' + strLinkValue + '\';"';
550	}
551	return strOnClick;
552}  
553
554function netscapeDivCheck()  
555{  
556	var strAppName = navigator.appName;
557	var appVer = parseFloat(navigator.appVersion);
558	if ( (strAppName == 'Netscape') &&
559		(appVer >= 4.0 && appVer < 5) ) {  document.write('
559</DIV>');
560	}
561}
562
563function textMouseOn(textObj, newColor, mouseoverBold, mouseoverUnderline, mouseoverItalic)
564{ 
565	if(newColor)
566	{
567		textObj.style.color=newColor; 
568	}
569	if(mouseoverBold=='true')
570	{
571		textObj.style.fontWeight='bold';
572	}
573	else
574	{
575		textObj.style.fontWeight='normal';
576	}
577	if(mouseoverUnderline=='true')
578	{
579		textObj.style.textDecoration='underline';
580	}
581	else
582	{
583		textObj.style.textDecoration='none';
584	}
585	if(mouseoverItalic=='true')
586	{
587		textObj.style.fontStyle='italic';
588	}
589	else
590	{
591		textObj.style.fontStyle='normal';
592	}
593}  
594
595function textMouseOff(textObj, newColor, bold, underline, italic)
596{ 
597	textObj.style.color=newColor; 
598	if(bold=='true')
599	{
600		textObj.style.fontWeight='bold';
601	}
602	else
603	{
604		textObj.style.fontWeight='normal';
605	}
606	if(underline=='true')
607	{
608		textObj.style.textDecoration='underline';
609	}
610	else
611	{
612		textObj.style.textDecoration='none';
613	}
614	if(italic=='true')
615	{
616		textObj.style.fontStyle='italic';
617	}
618	else
619	{
620		textObj.style.fontStyle='normal';
621	}
622}
623
624
625		
626		document.write(renderHTML(nav_website));
627

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.