document.write('<table id="vista-buttons_com_id53ph7" width="0" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-bottom:2px" title ="Startseite - Home"><a href="http://www.hunte-camp.de/index.html" onmouseover=\'xpe("53ph7o");\' onmouseout=\'xpe("53ph7n");\'><img id="xpi_53ph7" src="'+vbImgPath+'/bt53ph7_0.gif" name="vb53ph7" width="175" height="40" border="0" alt="Startseite" /></a></td></tr><tr><td style="padding-bottom:2px" title ="Informationen zum Campingplatz Hunte-Camp"><a onmouseover=\'xpe("a3ph7o");xpshow("a3ph7",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_a3ph7" src="'+vbImgPath+'/bta3ph7_0.gif" name="vba3ph7" width="175" height="40" border="0" alt="Campingplatz" /></a><div><ul id="vbUL_a3ph7" class="vbUL53ph7"><li><a href="http://www.hunte-camp.de/Campingplatz.html" title="Vorstellung vom Campingplatz ">Campingplatz&nbsp;Info</a></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Touristen-Stellplatz.html" title=" Infos zu  den Stellplätzen und zum Campingplatz ">Touristen&nbsp;-&nbsp;Stellplätze&nbsp;</a></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Preise.html" title="Unsere Preise Angebote für Gäste mit eigenem Wohnwagen oder Zelt.">Preise&nbsp;&&nbsp;Angebote</a></li><li class="separator"><span></span></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Dauercamper.html" title="Alles zum Thema Dauercamping auf dem Campingplatz Hunte-Camp">Dauercamping</a></li><li class="separator"><span></span></li></ul></div></td></tr><tr><td style="padding-bottom:2px" title ="Mietunterkünfte auf dem Campingplatz Hunte-Camp"><a onmouseover=\'xpe("s3ph7o");xpshow("s3ph7",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_s3ph7" src="'+vbImgPath+'/bts3ph7_0.gif" name="vbs3ph7" width="175" height="40" border="0" alt="Mietunterkünfte" /></a><div><ul id="vbUL_s3ph7" class="vbUL53ph7"><li class="separator"><span></span></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Mietwohnwagen.html" title="Mietwohnwagen Villa Caravana">Villa&nbsp;Caravana</a></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Mietwohnwagen-Willy.html" title="Vorstellung des Mietwohnwagen Willy">Mietwohnwagen&nbsp;Willy</a></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Blockhaeuser.html" title="Sie können bei uns auch Blockhütten für Ihren Campingurlaub  mieten">Blockhütten&nbsp;mieten</a></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/MW-Preise.html" title="Preise & Angebote für unsere Mietunterkünfte">Preise&nbsp;&&nbsp;Angebote</a></li><li class="separator"><span></span></li></ul></div></td></tr><tr><td style="padding-bottom:2px" title ="Ferienhaus Casa Carolus in Dötlingen"><a target="_blank" onmouseover=\'xpe("33ph7o");xpshow("33ph7",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_33ph7" src="'+vbImgPath+'/bt33ph7_0.gif" name="vb33ph7" width="175" height="40" border="0" alt="Ferienhaus Casa Carolus" /></a><div><ul id="vbUL_33ph7" class="vbUL53ph7"><li><a href="http://www.hunte-camp.de/Casa-Carolus.html" title="Ferienhaus Casa Carolus in Dötlingen - Landkreis Oldenburg">Ferienhaus&nbsp;Casa&nbsp;Carolus</a></li><li><a href="http://www.natur-urlaub-ferienhaus.de/index.html" title="Direkt zur Homepage vom Ferienhaus Casa Carolus">Direkt&nbsp;zur&nbsp;Homepage</a></li></ul></div></td></tr><tr><td style="padding-bottom:2px" title ="Preise & Angebote vom Campingplatz Hunte-Camp im Überblick!"><a href="http://www.hunte-camp.de/Preise.html" target="_blank" onmouseover=\'xpe("r3ph7o");\' onmouseout=\'xpe("r3ph7n");\'><img id="xpi_r3ph7" src="'+vbImgPath+'/btr3ph7_0.gif" name="vbr3ph7" width="175" height="40" border="0" alt="Preise & Angebote" /></a></td></tr><tr><td style="padding-bottom:2px" title ="Kanutouren auf der Hunte  Kanu4you"><a onmouseover=\'xpe("63ph7o");xpshow("63ph7",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_63ph7" src="'+vbImgPath+'/bt63ph7_0.gif" name="vb63ph7" width="175" height="40" border="0" alt="Kanutouren  Kanu4you" /></a><div><ul id="vbUL_63ph7" class="vbUL53ph7"><li><a href="http://www.hunte-camp.de/Kanu4you.html" title="Informationen zu Kanutouren auf der Hunte in den Landkreisen: Diepholz - Vechta und Oldenburg" target="_self">Tourenbeschreibung</a></li><li class="separator"><span></span></li><li><a href="http://www.kanu4you.com" title="Hier geht es direkt zur Homepage vom Kanuverleih Kanu4you" target="_blank">Homepage-&nbsp;Kanu4you</a></li></ul></div></td></tr><tr><td style="padding-bottom:2px" title ="Vorstellung vom Team - Kanu4you und Hunte-Camp"><a href="http://www.hunte-camp.de/Team.html" onmouseover=\'xpe("23ph7o");\' onmouseout=\'xpe("23ph7n");\'><img id="xpi_23ph7" src="'+vbImgPath+'/bt23ph7_0.gif" name="vb23ph7" width="175" height="40" border="0" alt="Team " /></a></td></tr><tr><td style="padding-bottom:2px" title ="Wählen Sie hier das für Sie passende Angebot oder senden Sie uns eine Nachricht"><a onmouseover=\'xpe("t3ph7o");xpshow("t3ph7",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_t3ph7" src="'+vbImgPath+'/btt3ph7_0.gif" name="vbt3ph7" width="175" height="40" border="0" alt="Anfrage / Buchung" /></a><div><ul id="vbUL_t3ph7" class="vbUL53ph7"><li><a title="Was möchten Sie tun? Anfrage senden oder Ihren Stellplatz buchen?">Touristen&nbsp;Stellplätze</a><ul id="vbUL_u3ph7" class="vbUL53ph7"><li><a href="http://www.hunte-camp.de/Anfrage.html" title="Erfragen Sie freie Termine oder senden Sie uns eine Nachricht.">Anfrage</a><ul id="vbUL_v3ph7" class="vbUL53ph7"><li><a href="http://www.hunte-camp.de/Buchung.html" title="Hier können Sie Ihren Campingurlaub bequem online buchen.">Buchung</a></li></ul></li></ul></li><li class="separator"><span></span></li><li><a title="Was möchten Sie tun? Nachricht senden oder einen Mietwohnwagen  buchen?">Mietwohnwagen</a><ul id="vbUL_y3ph7" class="vbUL53ph7"><li><a href="http://www.hunte-camp.de/AnfrageMW.html" title="Senden Sie uns eine Nachricht oder erfragen Sie freie Termine">Anfrage</a><ul id="vbUL_x3ph7" class="vbUL53ph7"><li><a href="http://www.hunte-camp.de/Reservierung-Mietwohnwagen.php" title="Buchungen Sie hier bequem online den von Ihnen gewünschten Mietwohnwagen">Buchung</a></li></ul></li></ul></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Anfrage-Buchung.html" title="Was möchten Sie tun? Uns eine Nachricht senden oder eine Blockhütte  buchen?">Blockhütten&nbsp;mieten</a><ul id="vbUL_l3ph7" class="vbUL53ph7"><li><a href="http://www.hunte-camp.de/Anfrage.html" title="Senden Sie uns eine Nachricht oder erfragen Sie freie Termine">Anfrage</a><ul id="vbUL_b3ph7" class="vbUL53ph7"><li><a href="http://www.hunte-camp.de/Buchung.html" title="Buchungen Sie hier bequem online eine Blockhütte.">Buchung</a></li></ul></li></ul></li><li class="separator"><span></span></li><li><a title="Was möchten Sie tun? Uns eine Nachricht senden oder eine Kanutour  buchen?">Kanuverleih</a><ul id="vbUL_f3ph7" class="vbUL53ph7"><li><a href="http://www.kanu4you.com/Kontaktformular.php" title="Senden Sie uns eine Nachricht oder erfragen Sie freie Termine" target="_blank">Anfrage</a><ul id="vbUL_n3ph7" class="vbUL53ph7"><li><a href="http://www.kanu4you.com/Reservierung1.php" title="Hier können Sie Ihre gewünschte Kanutour buchen." target="_blank">Buchung</a></li></ul></li></ul></li><li class="separator"><span></span></li><li class="separator"><span></span></li></ul></div></td></tr><tr><td style="padding-bottom:2px" title ="Informationen zur Umgebung Freizeitgestaltung und Ausflugsziele."><a onmouseover=\'xpe("p3ph7o");xpshow("p3ph7",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_p3ph7" src="'+vbImgPath+'/btp3ph7_0.gif" name="vbp3ph7" width="175" height="40" border="0" alt="Freizeit / Ausflüge" /></a><div><ul id="vbUL_p3ph7" class="vbUL53ph7"><li><a href="http://www.hunte-camp.de/Freizeit-Ausfluege.html" title="Viele weitere Informationen zu Ausflugszielen und Freizeitaktivitäten in der Umgebung.">&nbsp;Ausflüge&nbsp;&&nbsp;Freizeittipps</a></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Naturpark.html" title="Naturpark Wildeshauser Geest">Naturpark&nbsp;Wildeshauser&nbsp;Geest</a></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Badesee.html" title="Badesee in Westrittrum - Nur 1,5km entfernt.">Badesee</a></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Radwandern.html" title="Radwandern im Naturpark Wildeshauser Geest. ">Radwandern</a></li><li class="separator"><span></span></li><li><a href="http://www.freizeitpark-ostrittrum.de/" title="Der Tierpark Ostrittrum liegt unweit vom Campingplatz.">Tierpark&nbsp;Ostrittrum</a></li><li class="separator"><span></span></li><li><a href="http://www.doetlingen.de/tourismus.php" title="Das Künstlerdorf Dötlingen ist gleich um die Ecke.">Künstlerdorf&nbsp;Dötlingen</a></li><li class="separator"><span></span></li><li><a href="http://www.swingolf-iserloy.de/" title="Freizeitspass - Swin Golf spielen- Gartencafe">Swin&nbsp;Golf</a></li><li class="separator"><span></span></li><li><a title="Städtetouren - Lohnende Ausflugsziele">Städtetouren</a><ul id="vbUL_h3ph7" class="vbUL53ph7"><li><a href="http://www.bremen-tourismus.de/btz/k1-rubrik_unter_unter.cfm?m=1.1&RubrikID=371&subsub=true" title="Sie werden zu der offiziellen Tourismusseite für Bremen weitergeleitet." target="_blank">Bremen</a></li><li class="separator"><span></span></li><li><a href="http://www.oldenburg.de/stadtol/index.php?id=tourist" title="Sie werden zu der offiziellen Tourismusseite für Oldenburg weitergeleitet." target="_blank">Oldenburg</a></li></ul></li><li class="separator"><span></span></li><li class="separator"><span></span></li></ul></div></td></tr><tr><td style="padding-bottom:2px" title ="Informationen / Service"><a onmouseover=\'xpe("o3ph7o");xpshow("o3ph7",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_o3ph7" src="'+vbImgPath+'/bto3ph7_0.gif" name="vbo3ph7" width="175" height="40" border="0" alt="Informationen / Service" /></a><div><ul id="vbUL_o3ph7" class="vbUL53ph7"><li><img src="'+vbImgPath+'/sm33ph7.gif" alt="Allgemeine Informationen" /><a href="http://www.hunte-camp.de/Informationen.html" title="Allgemeine Informationen- Öffnungszeiten - Service">Allgemeine&nbsp;Informationen</a></li><li><a href="http://www.hunte-camp.de/Fragebogen.php " title="Ihre Meinung ist uns wichtig. Helfen Sie uns, unsere Leistungen zu verbessern.">Kundenbefragung</a></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Anfahrt.html" title="Anreise Information - Anfahrtsbeschreibung - Routenplaner">Anreise&nbsp;Information</a></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Naturschutz.html" title="Naturschutz und Ökologisches Reisen">Naturschutz</a></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Fahrradverleih.html" title="Der Fahrradverleih auf unserem Campingplatz">Fahrradverleih</a></li><li><a href="http://www.hunte-camp.de/gaestebuch/index.php" title="Schreiben Sie uns wie es Ihnen bei uns gefallen hat." target="_blank">Gästebuch</a></li><li><img src="'+vbImgPath+'/smr3ph7.gif" alt=" Pinnwand " /><a href="http://www.hunte-camp.de/Pinnwand.html" title="Fotos, Videos und Einträge an die Pinnwand posten.">&nbsp;Pinnwand&nbsp;</a></li><li><img src="'+vbImgPath+'/sma3ph7.gif" alt="Hotspot" /><a href="http://www.hunte-camp.de/Hotspot.html" title="WLAN Internet - Hotspot auf dem Campingplatz Hunte-Camp">Hotspot</a></li><li><img src="'+vbImgPath+'/sms3ph7.gif" alt="Downloads PDF" /><a title="Downloads PDF">Downloads&nbsp;PDF</a><ul id="vbUL_j3ph7" class="vbUL53ph7"><li><a href="http://www.hunte-camp.de/Downloads/Anfahrtsbeschreibung.pdf" title="Anreise Information zum Campingplatz Hunte-Camp" target="_blank">Anfahrt</a></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Downloads/Flyer-web2009.pdf" title="Flyer vom Campingplatz 2009" target="_blank">Flyer&nbsp;PDF</a></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Downloads/AGB-CP.pdf" title="Unsere Allgemeinen Geschäftsbedingungen" target="_blank">AGB</a></li></ul></li><li class="separator"><span></span></li></ul></div></td></tr><tr><td style="padding-bottom:2px" title ="Fotogalerie vom Campingplatz- Kanu4you und der Umgebung"><a href="http://www.hunte-camp.de/Fotoalbum.html" onmouseover=\'xpe("w3ph7o");\' onmouseout=\'xpe("w3ph7n");\'><img id="xpi_w3ph7" src="'+vbImgPath+'/btw3ph7_0.gif" name="vbw3ph7" width="175" height="40" border="0" alt="Fotogalerie" /></a></td></tr><tr><td style="padding-bottom:2px" title ="Partnerseiten"><a href="http://www.hunte-camp.de/Links.html" onmouseover=\'xpe("43ph7o");xpshow("43ph7",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_43ph7" src="'+vbImgPath+'/bt43ph7_0.gif" name="vb43ph7" width="175" height="40" border="0" alt="Partnerseiten" /></a><div><ul id="vbUL_43ph7" class="vbUL53ph7"><li><a href="http://www.hunte-camp.de/Linkpartner.html" title="Linkpartner">Linkpartner</a></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Partnerseiten.html" title="Partnerseiten">Partnerseiten</a></li><li class="separator"><span></span></li><li><a href="http://www.hunte-camp.de/Partnerlinks.html" title="Partnerlinks">Partnerlinks</a></li></ul></div></td></tr><tr><td style="padding-bottom:2px" title ="Auswahl Impressum und AGB\'s "><a onmouseover=\'xpe("z3ph7o");xpshow("z3ph7",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_z3ph7" src="'+vbImgPath+'/btz3ph7_0.gif" name="vbz3ph7" width="175" height="40" border="0" alt="Impressum / AGB" /></a><div><ul id="vbUL_z3ph7" class="vbUL53ph7"><li><a href="http://www.hunte-camp.de/Impressum.html" title="Impressum vom Campingplatz">Campingplatz</a><ul id="vbUL_k3ph7" class="vbUL53ph7"><li><a href="http://www.hunte-camp.de/AGB.html" title="AGB vom Campingplatz">AGB</a></li></ul></li><li class="separator"><span></span></li><li class="separator"><span></span></li><li><a href="http://www.kanu4you.com/Impressum.html" title="Impressum vom Kanuverleih Kanu4you" target="_blank">Kanu4you</a><ul id="vbUL_g3ph7" class="vbUL53ph7"><li><a href="http://www.kanu4you.com/AGB.html" title="AGB von Kanu4you" target="_blank">AGB</a></li></ul></li></ul></div></td></tr></table>');
vb53ph7n=xppr('53ph7_0.gif');vb53ph7o=xppr('53ph7_1.gif');vba3ph7n=xppr('a3ph7_0.gif');vba3ph7o=xppr('a3ph7_1.gif');vbs3ph7n=xppr('s3ph7_0.gif');vbs3ph7o=xppr('s3ph7_1.gif');vb33ph7n=xppr('33ph7_0.gif');vb33ph7o=xppr('33ph7_1.gif');vbr3ph7n=xppr('r3ph7_0.gif');vbr3ph7o=xppr('r3ph7_1.gif');vb63ph7n=xppr('63ph7_0.gif');vb63ph7o=xppr('63ph7_1.gif');vb23ph7n=xppr('23ph7_0.gif');vb23ph7o=xppr('23ph7_1.gif');vbt3ph7n=xppr('t3ph7_0.gif');vbt3ph7o=xppr('t3ph7_1.gif');vbp3ph7n=xppr('p3ph7_0.gif');vbp3ph7o=xppr('p3ph7_1.gif');vbo3ph7n=xppr('o3ph7_0.gif');vbo3ph7o=xppr('o3ph7_1.gif');vbw3ph7n=xppr('w3ph7_0.gif');vbw3ph7o=xppr('w3ph7_1.gif');vb43ph7n=xppr('43ph7_0.gif');vb43ph7o=xppr('43ph7_1.gif');vbz3ph7n=xppr('z3ph7_0.gif');vbz3ph7o=xppr('z3ph7_1.gif');var arrowChar='&raquo;';/*
 *==============================================================================
 *
 *     Copyright (c) 2007-2009, by Vista-buttons.com
 *     Version 2.1.2i
 *     http://vista-buttons.com
 *
 *==============================================================================
 * 
 * todo:
 * - item move into anchor
 * - item over using css
 * - item base on li structure
 *
 * variables:
 *   @btIdPref
 *   @pItem
 *   @ulIdPref
 *   @frameSubmenu
 *
 */
 
 
var btIdPref='vb';

function xppr(im) {
	var i=new Image();
	i.src=vbImgPath+'bt'+im;
	return i;
};

function xpe(id) {
	x=id.substring(0,id.length-1);
	if(document[btIdPref+x])document[btIdPref+x].src=eval(btIdPref+id+'.src');
};


/*
*	Vista buttons engine functions
*/ 
function vistaButtons(params){
	// init global vars
	var xobtn = null; // curent element text identifier curent
	var menuContId = 'xpMenuCont';
	var ulIdPref='vbUL_';
	
	
	//Detect browser
	var isDOM=document.getElementById; //DOM1 browser (MSIE 5+, Netscape 6, Opera 5+)
	var isOp=isO5=window.opera && isDOM; //Opera 5+
	var isOp7=isOp && document.readyState; //Opera 7+
	var isIE=document.all && document.all.item && !isOp; //Microsoft Internet Explorer 4+
	var isMz=isDOM && navigator.appName=="Netscape"; //Mozilla or Netscape 6.*


	
	/*
	 *  vistabuttons engine and global object
	 */
	
	/* create new menu and insert it to page */
	document.write('<div id="' + menuContId + '" ></div>');
	var menuCont = document.getElementById(menuContId);
		
	var ULs = document.getElementsByTagName('UL');
	for (var i=0, cnt=ULs.length; i<cnt; i++)
		if (ULs[i].id
		&& (ULs[i].id.substring(0, ulIdPref.length)==ulIdPref) // if is xp UL
		&& !(
			(ULs[i].parentNode)
			&& (ULs[i].parentNode.parentNode)
			&& (ULs[i].parentNode.parentNode.id.substring(0, ulIdPref.length)==ulIdPref)
			)
		)
		{
			// hide vista-buttons link
			var A=document.getElementById(ULs[i].id+'a');
			if (A) A.style.display='none';
		
			createMenu(ULs[i], 0, 0, params, menuCont);
			ULs[i].style.display = 'none';
		};
		
	

	/*
	 * create menu
	 * structure:	<div - menu >
	 *			<table>
	 *				<tr - item>
	 *					<td - for icon><img></td>
	 *					<td - for label><a></a></td>
	 *					<td - for arrow><img></td>
	 *				</tr>
		 *				...
	 *			</table>
	 *		</div>
	 * @ulParent - main parent of menu UL
	 * @iParent - parent item
	 * @level - level
	 */
	function createMenu(ulParent, iParent, level, params, owner){
	
		// create menu obj
		var oMenu = document.createElement((params.subFrame?'table':'div'));
		owner.appendChild(oMenu);
		if (oMenu.tagName == 'TABLE') oMenu.cellSpacing = 0; // set even if don't need in concert
		
		
		// assign menu content and crate a frame if need
		var oMenuCont;
		if (params.subFrame)
			for (var i=0; i<3; i++){
				var row = oMenu.insertRow(-1);
				for (var j=0; j<3; j++){
					var cell = row.insertCell(-1);
					if (i==1 && j==1) oMenuCont = cell
					else cell.className = 'imgFrame'+i+j;
				}
			}
		else
			oMenuCont = (oMenu.tagName == 'DIV')? oMenu: oMenu.insertRow(-1).insertCell(-1);
		
		oMenuCont.className = 'subContent';
		
		
		var oTable = document.createElement('table');
		oMenuCont.appendChild(oTable);

		oMenu.id = ulParent.id + 'tbl';
		oMenu.className = ulParent.className; // inherite style from menu definition with ul
		//oTable.style.visibility = 'hidden';
		oMenu.style.position = 'absolute'; // set here without fail
		oMenu.xpItems = [];		/* submenu items list */
		oMenu.iParent = iParent;
		oMenu.level = level;
		
		oMenu.style.zIndex = 9 + oMenu.level;
		oTable.cellSpacing = 0;

		// set menu events and metods
		oMenu.onmouseover = function (){
			xpStopTimeOut(this);
		};
		oMenu.onmouseout = function (){
			xpStartTimeOut(xpShownMenu)
		};
		oMenu.xpClearMenuMark = function(){
			for (var j = 0; j < this.xpItems.length; j++){
				var p = this.xpItems[j];
				if (p.tagName == 'TR') {
					p.className = p.className.replace('over','');
					if (p.className.indexOf('popup')<0)	p.clrOverImg();
				}
			};
		};
		
		oMenu.smShown = 0;
		
		/* create items  - organizing circle for LI */
		for (var i=0, cntLI=ulParent.childNodes.length; i<cntLI; i++){
			var oLI = ulParent.childNodes[i];
			if (oLI.tagName != 'LI') continue;
			
			
			/* 
			*	create menu item
			*/
			
			// create item base
			var oItem = oTable.insertRow(-1);
			
					
			// parse LI content 
			// <img src="icon">     <a> Item Label </a>     <img src="arrow">     <ul></ul>
			var InnerAnchor = 0;
			oItem.Img = null;
			oItem.ImgOver = null;
			var InnerUl = 0;
			oItem.ImgArrow = null;
			oItem.ImgArrowOver = null;

			// parse LI content
			for (var j=0; j < oLI.childNodes.length; j++)
				if (oLI.childNodes[j].tagName == 'A') InnerAnchor = oLI.childNodes[j];
				else if (oLI.childNodes[j].tagName == 'IMG'){
					if (!InnerAnchor){
						if (!oItem.Img) oItem.Img = oLI.childNodes[j];
						else oItem.ImgOver = oLI.childNodes[j]
					}
					else {
						if(!oItem.ImgArrow) oItem.ImgArrow = oLI.childNodes[j];
						else oItem.ImgArrowOver = oLI.childNodes[j]
					}
				}
				else if (oLI.childNodes[j].tagName == 'UL') InnerUl = oLI.childNodes[j];
				else if (oLI.childNodes[j].tagName == 'DIV'){
					for (var k=0; k<oLI.childNodes[j].childNodes.length; k++)
						if (oLI.childNodes[j].childNodes[k].tagName=='UL') InnerUl = oLI.childNodes[j].childNodes[k];
				}


			if (InnerAnchor || InnerUl || oItem.ImgArrow){ // it is not a separator

				var oItemCont = oItem;
				oItem.className = oLI.className;
				oItem.menu = oMenu;		
				oItem.setPopup = function(){
					this.className +=  ' popup';
				};
				oItem.clrPopup = function(){
					this.className = this.className.replace('popup','');
					if (this.className.indexOf('over')<0) this.clrOverImg();
				};
				oItem.clrOverImg = function(){
					if (this.Img) this.Img.style.display = 'inline';
					if (this.ImgOver) this.ImgOver.style.display = 'none';
					if (this.ImgArrow) this.ImgArrow.style.display = 'inline';
					if (this.ImgArrowOver) this.ImgArrowOver.style.display = 'none'
				};
			
				// create item content
				var oTDIMG = oItemCont.insertCell(-1);
				var oTDLabel = oItemCont.insertCell(-1);
				var oTDArrow = oItemCont.insertCell(-1);
				
				oTDIMG.style.borderRightWidth = '0px';
				oTDLabel.style.borderRightWidth = '0px';
				oTDLabel.style.borderLeftWidth = '0px';
				oTDArrow.style.borderLeftWidth = '0px';
				oTDIMG.style.paddingRight = '4px';
				oTDLabel.style.paddingRight = '4px';
				oTDLabel.style.paddingLeft = '4px';
				oTDArrow.style.paddingLeft = '4px';

				if (oItem.Img) oTDIMG.appendChild(oItem.Img);
				else oTDIMG.innerHTML = '&nbsp;';
				if (oItem.ImgOver) {
					oItem.ImgOver.style.display = 'none';
					oTDIMG.appendChild(oItem.ImgOver);
				};

				// create anchor with link execution
				if (InnerAnchor){
					var newText = document.createElement('SPAN');
					newText.innerHTML = InnerAnchor.innerHTML;

					if (InnerAnchor.href.indexOf('.pdf')>=0 && document.all)
						oTDLabel.appendChild(newText)
					else{
						oTDLabel.appendChild(InnerAnchor);
						
						// off standart click 
						InnerAnchor.onclick = function(){
							return false;
						};
					};
					
					oItem.linkHref = InnerAnchor.href;
					oItem.linkTarget = InnerAnchor.target;
					
					/* add item to menu info */
					with(oMenu) xpItems[xpItems.length] = oItem;
					
					// define my click handle event
					oItem.onclick = function(){
						if (this.linkHref)
							open(this.linkHref, (this.linkTarget? this.linkTarget :"_self"));
					}
				}
				else oTDLabel.innerHTML = '&nbsp;';

				// set item events
				oItem.onmouseover = function (){
					// clear other mark
					this.menu.xpClearMenuMark();
					this.className += ' over';// mark this item
					if (this.ImgOver){
						this.Img.style.display = 'none';
						this.ImgOver.style.display = 'inline';
					};
					if (this.ImgArrowOver){
						this.ImgArrow.style.display = 'none';
						this.ImgArrowOver.style.display = 'inline';
					};

					if (this.smPopup) xpshowmenu(this.smPopup, 1, this); // show new menu
					else xpStartTimeOut(this.menu.smShown); // hide bug
				};
				oItem.onmouseout = function (){
					this.menu.xpClearMenuMark();
				};

				// define submenu
				if (InnerUl){
					// set event for over
					oTDArrow.className = 'arrow';
					if (oItem.ImgArrow){ 
						oTDArrow.appendChild(oItem.ImgArrow);
						if (oItem.ImgArrowOver){
							oItem.ImgArrowOver.style.display = 'none';
							oTDArrow.appendChild(oItem.ImgArrowOver)
						}
					}
					else {
						if (typeof(arrowChar)!='undefined' && arrowChar){
							oTDArrow.appendChild(document.createElement('a'));
							oTDArrow.lastChild.innerHTML = arrowChar;
						}
						else oTDArrow.innerHTML = '&nbsp;';
					};

					oItem.smPopup = createMenu(InnerUl, oItem, level + 1, params, owner);
				}
				else oTDArrow.innerHTML = '&nbsp;';
			}
			else{ // add a separator
				oItem.className = 'separator';
				var oTD = oItem.insertCell(-1);
				oTD.colSpan = 3;
				
				oTD.innerHTML = '<div></div>';
			}

		}

		return oMenu;
	};



	function xpDef(){
	  for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])=='undefined') return false;}
	  return true;
	};


	function xpClientSize(){
	
		var x=0,y=0,w=0,h=0,doc=document,win=window;

		var cond = (!doc.compatMode || doc.compatMode == 'CSS1Compat') /*&& !win.opera */&& doc.documentElement;
		// height
		if(cond && doc.documentElement.clientHeight) h=doc.documentElement.clientHeight;
		else if(doc.body && doc.body.clientHeight) h=doc.body.clientHeight;
		else if(xpDef(win.innerWidth,win.innerHeight,doc.width)) {
			h=win.innerHeight;
			if(doc.width>win.innerWidth) h-=16;
		};
		//width
		if(cond && doc.documentElement.clientWidth) w=doc.documentElement.clientWidth;
		else if(doc.body && doc.body.clientWidth) w=doc.body.clientWidth;
		else if(xDef(win.innerWidth,win.innerHeight,doc.height)) {
			w=win.innerWidth;
			if(doc.height>win.innerHeight) w-=16;
		}

		if(doc.documentElement && doc.documentElement.scrollLeft) x=doc.documentElement.scrollLeft;
		else if(doc.body && xpDef(doc.body.scrollLeft)) x=doc.body.scrollLeft;

		if(doc.documentElement && doc.documentElement.scrollTop) y=doc.documentElement.scrollTop;
		else if(doc.body && xpDef(doc.body.scrollTop)) y=doc.body.scrollTop;
		
		return {x:x,y:y,w:w,h:h};
	};



	function xpObjectSize(o){
		var w = (isOp&&!isOp7) ? o.style.pixelWidth  : document.layers ? o.clip.width /* Netscape 4.*/ : o.offsetWidth;
		var h = (isOp&&!isOp7) ? o.style.pixelHeight : document.layers ? o.clip.height/* Netscape 4.*/ : o.offsetHeight;
		return {x:w, y:h};
	};



	/*
	 * calc absolute coordinates of specified object
	 */
	function xppos(obj){
		var l=0, t=0;
		while (obj) //  && obj.tagName!='BODY'
		{
			l += obj.offsetLeft;
			t += obj.offsetTop;
		
			// some browser not right set offsetParent
			//		if (obj.style && obj.style.position=='absolute') break;// this is a fix but not constant
			
			obj = obj.offsetParent;
		};	

		// fix special for opera
		if (document.body) with (document){
			if (body.leftMargin) l -= body.leftMargin;
			if (body.topMargin) t -= body.topMargin
		}

		return {x: l, y: t};
	};



	/* show menu item
	 * ind - part of object identifier
	 * @isVertical - previous menu is vertical
	 * @iParent - object created events identifier - this is about a anchor or previous menu item
	 */
	var xpshow = window.xpshow = function(ind, isVertical, iParent){
		xpshowmenu(ulIdPref+ind+'tbl', isVertical, iParent);
	}

	function xpshowmenu(menu, isVertical, iParent)
	{
		menu = get(menu);
		if (!menu) return;
		
		// already showing?
		if (menu.style.visibility == 'visible'){
			xpStopTimeOut(menu);
			return;
		};
		
		// hide previous menu in this level
		if (iParent && iParent.menu)
			xphide(iParent.menu.smShown);
		if (!menu.level && (xpShownMenu != menu))
			xphide(xpShownMenu);

		// it saves button main menu
		if (!menu.level) xobtn = menu.id.replace(ulIdPref,'').replace('tbl','');

		// Parent - parent menu item
		var parentObj =  (iParent.tagName == 'A')? iParent.parentNode: iParent;

		var pos = xppos(parentObj); // parent coordinate
		if (iParent && iParent.menu){
			pos.x -= iParent.menu['scrollLeft'] || 0;
			pos.y -= iParent.menu['scrollTop'] || 0;
		};
		var size = xpObjectSize(parentObj);

		menu.xpMenuX = 1; // menu open direction
		menu.xpMenuDx = 1; // menu open  offset
		if (menu.level > 0){
			// inherit direction from previous level
			menu.xpMenuX = menu.iParent.menu.xpMenuX;
			menu.xpMenuDx = menu.iParent.menu.xpMenuDx;
		};
		
		// initialize property
		menu.style.overflow = 'visible';
		menu.style.height = 'auto';
		menu.style.width = 'auto';

		// fix bug position for some document structure
		menu.style.left = '0px';
		menu.style.top = '0px';
		var parentAbs = xppos(menu);

		// detect window size
		var WinSize = xpClientSize();
		var menuSize = xpObjectSize(menu);

		// calc and init Y coordinate
		var CalcedPos = xpCalcMenuPos(WinSize.y, WinSize.h, pos.y, size.y, menuSize.y, menu.xpMenuDx, isVertical);

		menu.xpMenuDx = CalcedPos.align;

		// fix scrollbar bug for opera
		if (isOp && !menu.OrigWidth) menu.OrigWidth = menu.clientWidth;//menu.clientWidth;


		// size was changed - resize height, open scroll, correct width for scrollbar
		if (CalcedPos.size < menuSize.y){
			//xpsm.style.overflowY = 'auto';
			menu.style.overflow = 'auto';
			//menu.style.overflow = 'visible';
			if (isIE) menu.style.overflowX = 'visible';
			if (isIE) menu.style.width = menu.offsetWidth + 17 + 'px';
			else if (isMz) menu.style.magrinRight = 20;

			menu.style.height = CalcedPos.size + 'px';
			menu.scrollTop  = 0;
			menu.scrollLeft = 0;

			// fix scrollbar bug for opera
			if (isOp) menu.style.width = menu.OrigWidth + 'px';
		};

		menu.style.top = CalcedPos.xy - parentAbs.y + 'px';

		// calc and init X coorinate
		menuSize = xpObjectSize(menu);
		CalcedPos = xpCalcMenuPos(WinSize.x, WinSize.w, pos.x, size.x, menuSize.x, menu.xpMenuX, !isVertical);
		menu.xpMenuX = CalcedPos.align;
		if (CalcedPos.size < menuSize.x)// size was changed
			if (menu.xpMenuX > 0)
				CalcedPos.xy -= (menuSize.x - CalcedPos.size); // covered
		menu.style.left = CalcedPos.xy - parentAbs.x + 'px';

		menu.style.visibility = 'visible';

		if (!menu.level) xpShownMenu = menu
		else {
			iParent.menu.smShown = menu;
			iParent.setPopup();
		}
		
	};

	
	

	/*
	 calc menu pos for one coordinate 
	 use size of menu, parent object and screen, menu direction and parent menu orientation
	 screenSize - size of screen
	 parentXY, parentSize - position and size of parent menu
	 size - size of selected menu
	 align = +1(right, bottom), 0(center), -1(left, top)  - direction of menu
	 oHoriz  = 0(vertical), 1(horizontal) - orientation of parent menu
	*/
	function xpCalcMenuPos(screenXY, screenSize, parentXY, parentSize, size, align, oHoriz){
		var xy = parentXY;
		var newSize = size;
		var newAlign = align;
		var space = 5; // space to document borders
		
		if ((align == 0) && (!oHoriz)) align = 1; //center may be only for horizontal orientation
		
		if (!oHoriz) {// VERTICAL
			// |------<--------->)<---parent--->(<---------->---------|
			// check the place for the future menu and correct orientation
			if	(((newAlign >= 0) && (parentXY + parentSize + size > screenSize + screenXY - space)) // don't go in screen from the algin
								|| ((newAlign < 0) && (parentXY - size < space))){
				// correct direction about most of place
				if (parentXY - screenXY > screenSize + screenXY - (parentXY + parentSize)) newAlign = -1; else newAlign = 1;
			};
			// set coordinate and size
			if (newAlign >= 0){
				xy = parentXY + parentSize;
				if (screenSize + screenXY - space - xy < newSize) newSize = screenSize + screenXY  - space - xy;
			}
			else {
				xy = parentXY - newSize;
				if (xy - screenXY < space){
					xy = space + screenXY;
					newSize = parentXY - space - screenXY;
				}
			}
		}
		else {
			// --------------- <---parent---> -------------------
			//                      (<------------------------>--------|
			//   |-----<--------------------->)
			// if menu not go in screen
			if (newSize > screenSize - 2*space) {
				xy = space + screenXY;
				newSize = screenSize - 2*space;
			}
			else{
				// calc
				xy = parentXY + parentSize/2 - newSize/2 + newAlign * (newSize/2 - parentSize/2);

				// correct
				if (xy < space + screenXY){
					newAlign = 1;
					xy = space + screenXY;
				}
				if (xy + size > screenSize  + screenXY - space){
					newAlign = -1;
					xy -= xy + newSize - (screenSize  + screenXY - space);
				}
			}
		};

		return {xy: xy, size: newSize, align: newAlign};
	};
	
	
	function get(o){
		return (typeof o == 'string')? document.getElementById(o): o
	}
	

	/*
	 * hide submenu
	 * @menu
	 */
	function xphide(menu){
		menu = get(menu);
		if (!menu || menu.style.visibility != 'visible') return;

		// hide child
		xphide(menu.smShown);
		
		// off cursor selection
		menu.xpClearMenuMark();

		// hide the menu
		menu.style.visibility = 'hidden';

		// if all submenu close, then change button icon
		if (menu.level == 0){
			xpe(xobtn + 'n');//???????????
		}

		menu.smShown = 0;
		if (menu.iParent) menu.iParent.clrPopup();

		// clear to hide timeout
		if (menu.hideTimer){
			clearTimeout(menu.hideTimer);
			menu.hideTimer = null;
		}
	};
	window.xphide = xphide;
	
	

	// on mouse out from menu
	window.xpsmout = function(sender){
		if (!sender) return;
		// set time out
		xpStartTimeOut(xpShownMenu)
	};
	

	// on mouse over menu
	window.xpsmover = function(menu)
	{
		xpStopTimeOut(menu);
	};


	/*
	*	clear Time out for all parent and this menu 
	*	run in submenu engine context
	*/
	function xpStopTimeOut(menu){
		for( var o = menu; o; o = o.iParent? o.iParent.menu: 0)
			if (o.hideTimer)
				o.hideTimer = clearTimeout(o.hideTimer);
	};

	
	/*
	 * 	 start hide timer for this menu and all its submenu 
	 */
	function xpStartTimeOut(menu){
		if (menu) {
			if (!menu.hideTimer) 
				menu.hideTimer = setTimeout( function (){ xphide(menu) } , 300);
			xpStartTimeOut(menu.smShown)
		}
	}


};// end of menu component

var xpShownMenu = 0; // curent open menu tread

new vistaButtons({
	subFrame: 0
});



