// <script>
var clickThrough=getARMID('mid'),rid=getARMID('rid');


function linkTo(pr,pg){
	if(!tf.utils){setTimeout(function(){linkTo(pr,pg);},100);return;}
	function linkToCallback(f,prid,pgid){
		if(tf.pgid.toLowerCase()!=prid&&tf.content.location.href.indexOf('/'+f)==-1){
			tf.content.location=tf.wm.url(f,'-',true)+'#'+prid.toLowerCase();
		}
	}
	if(typeof(pg)=='undefined')pg='';
	tf.utils.prpgmap.getParentPage(pr,pg,linkToCallback);
}
if(location.hash){
	if(isInSF())dw('<script src="../net.js" type="text/javascript"></script>');
	linkTo(location.hash.substr(1),location.pathname.replace(/.*\/(d\d*)(_.*)?\.html/,'$1'));
}

var splitNum=20;




if(parm['lang']){lang=langNav=parm['lang'];}



function winMgr(){this._a=[];this._rnd=Math.random();this.online=(loc.protocol.indexOf('file:')==-1);var h=(this.online?'':'file://')+loc.pathname.replace(/\\/g,'/');var re=new RegExp((tf.lang==tf.baseLang?'':'(?:\/'+tf.lang+')?')+'(?:\/contents\/.*?$|\/([^/]*){1}$)');this.baseurl=h.replace(re,'/')+'contents/';var hostRaw=this.path(tf.location);this.host=escape(hostRaw);this.hostbaseurl=hostRaw.replace(/\/contents\/.*/,'') + '/';}
winMgr.prototype.url=function(f,a,l){
var ff=unescape(f),unescaped=(ff!=f);
if(ff.indexOf(':\\')!=-1||ff.indexOf('://')!=-1)return f;
if(ff.substr(0,3)=='../'){f=ff.substr(3);if(unescaped)f=escape(f);}
if(!a&&a!='-')a=this._rnd;
if(l)f=tf.lang+'/'+f;
return (a=='-')?this.baseurl+f:this.add2Q(this.baseurl+f,'lmd',a);
}
winMgr.prototype.add2Q=function(h,p,v){
if(h.indexOf('?')==-1)return h+'?'+p+'='+v;
if(h.indexOf(p)==-1)return h+'&'+p+'='+v;
var t=h.replace('?','&').split('&');
for(var i=0;i<t.length;i++)if(t[i].indexOf(p+'=')==0)t[i]=p+'='+v;
if(t.length>1) t[1]='?'+t[1];return t.join('&').replace('&?','?');
}
winMgr.prototype.jfile=function(f,q){
var ff=unescape(f),unescaped=(ff!=f);
if(ff.indexOf('?')>-1){ff=ff.substr(0,ff.indexOf('?'));if(unescaped)f=escape(ff);}
var m=Math.max(f.lastIndexOf('/'),f.lastIndexOf('\\'));
return (m>-1)?f.substring(m+1):f;
}
winMgr.prototype.path=function(p){
p=p.toString();
var pp=unescape(p.toString()),unescaped=(pp!=p);
var i=pp.indexOf('?');if(i!=-1)pp=pp.substring(0,i);
if(unescaped)p=escape(pp);
return (p.charAt(p.length-1)=='/')?p:p.substring(0,p.lastIndexOf('/')+1);
}
var wm=new winMgr();
dw('<scr'+'ipt src="'+wm.url('date.js')+'"><\/sc'+'ript>');



function showalerts(){
if(!langEnterLoaded){setTimeout('showalerts()',100);return;}


}



if(typeof(lmd['index'])=='string'&&LMD_this!=lmd['index']&&location.href.indexOf('lmd=')==-1)
	loc.replace(tf.enterFilename+location.search+(location.search?'&':'?')+'lmd='+lmd['index']+location.hash);
else{
showalerts();




var currencies={};
function currency(i,a,m,d,s){
	this.iso=i;
	
	this.abbrev=a;
	this.multiplier=m;
	this.decimal_places=d;
	this.sign=s;
	this.getSignedID=function(){return this.iso+'/'+this.sign;}
}
var shopCurrency=new currency("EUR","€",1.0,2,'0F314C45D6142938567BCFCF7DD8CD93');
var currentCurrency=new currency("EUR","€",1.0,2,'0F314C45D6142938567BCFCF7DD8CD93');



var secondCurrency=null;




var mfhObj=null;
function mfh(id,idx1H,idx2H,forFullWidth){
	var tfc=content;
	this.forFullWidth=forFullWidth;
	this.gl=function(s){return tfc.document?tfc.document.getElementById(s):null;}

	this.initialised=false;

	this.isDescendantOf=function(idParent,idChild){
		var ret=false,el=gl(idChild),elParent=null;
		if(el)elParent=el.offsetParent;
		while(elParent){
			if(elParent.id==idParent){ret=true;break;}
			elParent=elParent.offsetParent;
		}
		return ret;
	}

	this.applyms=function(){
		if(utils&&typeof(utils.ms)=='function'&&gl('idx1Navigation')&&gl('idx2Navigation')){
			var h=Math.max(mfhObj.height, 0);
			for(var i=1;i<=2;i++){
				var idNav='idx'+i+'Navigation',idxH=(i==1?idx1H:idx2H),elNav=gl(idNav);
				
				if(elNav){
					var w=elNav.parentNode.parentNode.offsetWidth-4;
					for(var n=0,num=tfc.aMS.length;n<num;n++){if(tfc.aMS[n][0]==idNav&&tfc.aMS[n][1]){tfc.aMS[n]=[idNav,w,tfc.aMS[n][2],true];break;}}
				}
			}
			



			var cnt=tfc.aMS.length,a;
			for(var n=0;n<cnt;n++){a=tfc.aMS[n];utils.ms(a[0],a[1],a[2],a[3]);if(tf.isIE6)mfhObj.redraw(tf.content.document.getElementById(a[0]));}
		}
		else setTimeout('mfhObj.applyms()',100);
	}
	this.redraw=function(el){if(!el)return;el.style.zoom='0.99';el.style.zoom='1';}
	this.resize=function(evt,notOnResize){
		if(tfc.specialLoading||content.document&&content.document.readyState&&content.document.readyState!='complete'){setTimeout('mfhObj.resize(null,'+notOnResize+')',25);return;}
		var tfcd=tfc.document,tfcdb=tfcd.body,el=gl(id),ws=gl('WebSite');
		if(!el){setTimeout('mfhObj.resize(null,'+notOnResize+')',25);return;}

		if(!this.forFullWidth){
			function getOffsetTop(el){
				var y=0;
				while(el){y+=el.offsetTop;el=el.offsetParent;}
				return y;
			}

			if(!mfhObj.initialised){
				var tfcdbS=tfcdb.style,tfcddeS=tfcd.documentElement.style;
				tfcdbS.width='auto';
				tfcddeS.height='100%';
				tfcdbS.overflowY='hidden';
				tfcddeS.overflowY='hidden';

				ws.style.minHeight='';
				ws.style.height='auto';

				mfhObj.initialised=true;
			}

			var actualDocHeight=0;
			for(var n=0,num=tfcdb.childNodes.length;n<num;n++){
				var tfcdb_cn=tfcdb.childNodes[n];
				if(!tfcdb_cn||tfcdb_cn.nodeType!=1||!tfcdb_cn.id||tfcdb_cn.offsetHeight==0||tfcdb_cn.style.visibility=='hidden'||tfcdb_cn.style.display=='none')continue;
				actualDocHeight+=tfcdb_cn.offsetHeight;
			}
			var cyTop=getOffsetTop(el),cyBottom=actualDocHeight-ws.offsetTop-ws.offsetHeight+(ws.offsetHeight-el.offsetTop-el.offsetHeight);

			el.style.minHeight='';
			var h=tfcd.documentElement.offsetHeight-cyTop-cyBottom;
			if(h>0){el.style.height=h+'px';mfhObj.height=h;}
			el.style.overflow='hidden';

			for(var n=0,num=el.childNodes.length;n<num;++n){
				var nd=el.childNodes[n],ndS=nd.style;
				if(nd.nodeType==1&&nd.className.indexOf('LayoutObject')==-1){
					ndS.minHeight='';
					if(nd.className&&nd.className.indexOf('EqualHeight')!=-1&&(h-nd.offsetTop)>=0)ndS.height=(h-nd.offsetTop)+'px';
					if(nd.id=='Content'){if(window.opera||isSafari)ndS.overflow='auto';else{ndS.overflowY='auto';if(typeof(ndS.zoom)!='undefined'){ndS.zoom='0.99';ndS.zoom='1';}}}
					else{ndS.overflow='hidden';}
				}
			}
			mfhObj.redraw(gl('WebSiteHeader'));
			mfhObj.redraw(gl('WebSiteFooter'));
			if(tfc.location.hash)tfc.location=tfc.location;
		}
		if(notOnResize)setTimeout(mfhObj.applyms,20);
	}

	if(!mfhObj){
		mfhObj=this;
		addEvent('onresize',mfhObj.resize);
	}
	mfhObj.resize(null,true);
}

var arrObj=[],bgstyleadded=false;
function load(url,id,isLang,force,replaceInnerHTML){
	if(content){
		try{
		var cfe=content.frameElement;
		if(!bgstyleadded&&cfe&&cfe.style.cssText){
			cfe.style.cssText=cfe.style.cssText.replace(/url\(\.\./,'url(contents');
			bgstyleadded=true;
		}
		}catch(e){}
		if(replaceInnerHTML)arrObj[id]=content.document.getElementById(id);
		if(xLoaded&&extra.loadExecute&&(LD_loaded||id=='lang')){extra.loadExecute(url,id,isLang,force);}
		else{setTimeout('load("'+url+'","'+id+'",'+isLang+','+force+')',100);}
	}
}

var sfJSON=function(){function f(n){return n<10?'0'+n:n;}
Date.prototype.toJSON=function(){return this.getUTCFullYear()+'-'+
f(this.getUTCMonth()+1)+'-'+
f(this.getUTCDate())+'T'+
f(this.getUTCHours())+':'+
f(this.getUTCMinutes())+':'+
f(this.getUTCSeconds())+'Z';};var m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};function stringify(value,whitelist,treatAsObject){var a,i,k,l,r=/["\\\x00-\x1f\x7f-\x9f]/g,v;switch(typeof value){case'string':return r.test(value)?'"'+value.replace(r,function(a){var c=m[a];if(c){return c;}
c=a.charCodeAt();return'\\u00'+Math.floor(c/16).toString(16)+
(c%16).toString(16);})+'"':'"'+value+'"';case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
if(typeof value.toJSON==='function'){return stringify(value.toJSON());}
a=[];if(typeof value.length==='number'&&!(value.propertyIsEnumerable('length'))&&!treatAsObject){l=value.length;for(i=0;i<l;i+=1){a.push(stringify(value[i],whitelist,treatAsObject)||'null');}
return'['+a.join(',')+']';}
if(whitelist){l=whitelist.length;for(i=0;i<l;i+=1){k=whitelist[i];if(typeof k==='string'){v=stringify(value[k],whitelist,treatAsObject);if(v){a.push(stringify(k,whitelist,treatAsObject)+':'+v);}}}}else{for(k in value){if(typeof k==='string'){v=stringify(value[k],whitelist,treatAsObject);if(v){a.push(stringify(k,whitelist,treatAsObject)+':'+v);}}}}
return'{'+a.join(',')+'}';}}
return{stringify:stringify,parse:function(text,filter){if(!text)return{};var j;function walk(k,v){var i,n;if(v&&typeof v==='object'){for(i in v){if(Object.prototype.hasOwnProperty.apply(v,[i])){n=walk(i,v[i]);if(n!==undefined){v[i]=n;}}}}
return filter(k,v);}
if(/^[\],:{}\s]*$/.test(text.replace(/\\./g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?::?[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof filter==='function'?walk('',j):j;}
throw new SyntaxError('parseJSON');},parseClone:function(text){var o=this.parse(text);return this.clone(o);},clone:function(arr){var ret=[];for(var i in arr){if(typeof(arr[i])=='object'&&typeof(arr[i].tagName)=='undefined'){ret[i]=this.clone(arr[i]);}
else{ret[i]=arr[i];}}
return ret;}};}();



function saveBskToName(){
	var toJSON=tf.sfJSON.stringify,bsks=[tf.core.Basket,tf.core.Favorite];
	for(var n=0;n<bsks.length;n++){
		var bt=bsks[n];
		if(bt.items.cnt()>0||tf.core.ResellerID!=''){
			bt.fbsk.bsk='';
			var i=bt.items.start();
			while(i){i.parent='';i=bt.items.next()}
			i=bt.fbsk.items.start();
			while(i){i.parent='';i=bt.fbsk.items.next()}
			
			i=bt.itemsTemporary.start();
			while(i){i.parent='';i=bt.itemsTemporary.next()}
			

			bt.wssig=tf.wssig;
			nametag.add(n==0?'bsk':'fav',toJSON(bt));

			i=bt.items.start();
			while(i){i.parent=bt;i=bt.items.next()}
			i=bt.fbsk.items.start();
			while(i){i.parent=bt;i=bt.fbsk.items.next()}
			
			i=bt.itemsTemporary.start();
			while(i){i.parent=bt;i=bt.itemsTemporary.next()}
			
			bt.fbsk.bsk=bt;
		}
		else nametag.del(n==0?'bsk':'fav');
	}
	if(tf.wm._pArr){
		tf.wm._pArr['wssig']=tf.wssig;
		nametag.add('_pArr',toJSON(tf.wm._pArr,null,true));
	}

	
tf.shopCurrency['wssig']=tf.wssig;
tf.nametag.add('currShop',tf.sfJSON.stringify(tf.shopCurrency));
if(tf.secondCurrency){
	tf.secondCurrency['wssig']=tf.wssig;
	tf.nametag.add('currSec',tf.sfJSON.stringify(tf.secondCurrency));
}
tf.currentCurrency['wssig']=tf.wssig;
tf.nametag.add('currCurr',tf.sfJSON.stringify(tf.currentCurrency));


	nametag.add('coreProperties',toJSON(tf.core.getCoreProperties()));
}

function loadBskFromName(){

	var tf=this,fromJSON=tf.sfJSON.parse;
	if(!tf.conf){setTimeout('loadBskFromName()',100);return;}
	var bskStr=nametag.get('bsk');
	if(bskStr){
		tf.conf.coreSettings();
		var obskStr=fromJSON(bskStr);
		if(obskStr&&obskStr.wssig==tf.wssig){
			tf.core.Basket.merge(obskStr);
		}
	}
	var favStr=nametag.get('fav');
	if(favStr){
		var ofavStr=fromJSON(favStr);
		if(ofavStr){
			tf.core.Favorite.merge(ofavStr);
		}
	}
	var _pArrStr=nametag.get('_pArr');
	if(_pArrStr){
		if(typeof(tf.wm._pArr)=='undefined')tf.wm._pArr={};
		var oldArr=tf.sfJSON.parseClone(_pArrStr);
		if(oldArr&&oldArr['wssig']==tf.wssig){
			merge(tf.wm._pArr,oldArr);
		}
	}

	
var currStr=tf.nametag.get('currShop');
if(currStr){
	var oCurr=tf.sfJSON.parse(currStr);
	if(oCurr&&oCurr['wssig']==tf.wssig)merge(tf.shopCurrency,oCurr);
}
currStr=tf.nametag.get('currSec');
if(currStr){
	var oCurr=tf.sfJSON.parse(currStr);
	if(oCurr&&oCurr['wssig']==tf.wssig)merge(tf.secondCurrency,oCurr);
}
currStr=tf.nametag.get('currCurr');
if(currStr){
	var oCurr=tf.sfJSON.parse(currStr);
	if(oCurr&&oCurr['wssig']==tf.wssig)merge(tf.currentCurrency,oCurr);
}


	tf.core.setCoreProperties(fromJSON(nametag.get('coreProperties')));
	bskLoaded=true;

	tf.lastpage=nametag.get('lastpage');
	tf.lastdeptpage=nametag.get('lastdeptpage');
}
function merge(lhs,rhs){if(!lhs)lhs=[];for(var n in rhs)lhs[n]=rhs[n];}


if(lang=='de'){
}

var langEnterLoaded=true;


function gl(s){return d.getElementById(s);}function ldjs(f){dw('<sc'+'ript src="'+f+'"><\/sc'+'ript>');}
if(isInSF()){ldjs('../sf.js');ldjs('../lang_de.js');ldjs('../../shared_files/menu_scroller.js');}
else{var core=tf.core,LD=tf;}

function addOnload(f){addEvent('onload',f);}
function addEvent(e,f,t){if(!t)var t=window;if (t.addEventListener)t.addEventListener(e.replace(/^on/,''),f,false);else if (t.attachEvent)t.attachEvent(e,f);}
function addEventOnClass(e,f,c) {
	var tfcd=tf.content.document,maxh=0,coll=[],re = new RegExp(' ?'+c+'( |$)');
	var atag=['DIV','SPAN','H1','H2','H3','TD'];
	for(var ntag=0,nntag=atag.length;ntag<nntag;ntag++){
		var t=tfcd.getElementsByTagName(atag[ntag]);
		for (var x = 0, cnt=t.length; x<cnt; x++) {
			var tx=t[x],cls=tx.getAttribute('class') || tx.getAttribute('className');
			if (cls && cls.match(re)) {
				addEvent(e,f,tx);
			}
		}
	}
}
function ld(name,sf,args){var s;if(LD)s=LD[name];if(!LD||!s)s=(sf)?sf:'';if(args){var sa=s.split('%%');s='';for(var i=0;i<sa.length;i++)if(args[i])s+=sa[i]+args[i];else s+=sa[i];}return s.replace('%%','');}
var specialLoading=false,nameStr='';
if(tf.isIE){
	addEvent('onbeforeunload', function(){nameStr=tf.name;});
	addEvent('onunload', function(){tf.name=nameStr;});
}


var aMS=[],aMM=[];
function imgs2(){var tfu=tf.utils;if(tfu&&tfu.imgs)tfu.imgs();else setTimeout('imgs2()',50)};
addOnload(imgs2);


var ldwriteArr=[];
function ldwrite(){if(!tf.LD_loaded||tf.extra&&tf.extra.loadInProgress>0){setTimeout('ldwrite()',100);return;}for(var n=0,l=tf.ldwriteArr.length;n<l;n++){var o=tf.ldwriteArr[n],name=o[0],uniq=o[1],args=o[3],s=ld(name,o[2],args);if(s){var el=gl(name+uniq);if(el)el.innerHTML=s;}}}addOnload(ldwrite);
function ldwriteadd(name,def,args){if(LD[name])return ld(name,def,args);var uniq=Math.random();tf.ldwriteArr.push([name,uniq,def,args]);return'<span id="'+name+uniq+'"></span>';}

var sfMakeSpace = {
	subscribers:'',
	go: function(bool,styleid,displayid){
		var dispid=displayid||'none';
		this.subscribers.replace(dispid+'|','');
		if(bool)this.subscribers+=dispid+'|';
		else if(this.subscribers!=''&&this.subscribers!='none|')return;

		if(styleid){
			var ss=d.styleSheets;
			for(var n=0,num=ss.length;n<num;n++){
				if(ss[n].title==styleid)ss[n].disabled=!bool;
			}
		}

		if(displayid!=''){
			el=gl(displayid);
			if(el){
				el.style.display=(bool?'block':'none');
			}
		}
	}
};


var autoText = {
	GCUsesAutoText:{GC1:0,GC2:0,GC3:0,GC4:1,GC5:1,GC6:1,GC8:1,GC9:1,GC10:0,GC11:0,GC12:0,GC13:0,GC14:1,GC15:1,GC16:1,GC17:0,GC18:0,GC19:0,GC20:0,GC22:0,GC23:0,GC26:0,GC27:0,GC28:1,GC29:1,GC30:1,GC31:1,GC32:1,GC33:1,GC34:1,GC35:1,GC36:0,GC37:0,GC38:0,GC40:0,GC41:0,GC44:1,GC45:1,GC48:1,GC49:1,GC50:0,GC51:0,GC52:0,GC53:0,GC54:0,GC55:0,GC56:0,GC57:0,GC58:0,GC59:0,GC60:0,GC61:0},
	lightText:'#FFFFFF',
	darkText:'#000000',
	isColorDark:function(doc, el) {
		var cc = '', node = el;
		if (typeof(node.currentStyle) != 'undefined') {
			while (node && node.nodeName != 'HTML' && node.currentStyle.backgroundColor.indexOf('#') == -1) {
				node = node.parentNode;
			}
			if (node) {
				cc = node.currentStyle.backgroundColor.substring(1);
				cc = parseInt(cc.substr(0, 2), 16) + parseInt(cc.substr(2, 2), 16) + parseInt(cc.substr(4, 2), 16)
			}
		}
		else
		{
			while (node && node.nodeName != 'HTML' && doc.defaultView.getComputedStyle(node, '').backgroundColor.indexOf('rgb') == -1) {
				node = node.parentNode;
			}
			if (node) cc = doc.defaultView.getComputedStyle(node, '').backgroundColor.replace(/rgb\((\d+), (\d+), (\d+)\)/, function($0, $1, $2, $3) { return parseInt($1)+parseInt($2)+parseInt($3); });
		}
		return (cc < 388);
	},
	parser:function(doc, node, ancestorGC) {
		if(!node || !node.childNodes)return;
		for (var i=0,num=node.childNodes.length; i<num; i++) {
			var el=node.childNodes[i];
			if (el.nodeType == 1 && el.nodeName != 'SCRIPT' && el.nodeName != 'STYLE') {
				var GC = el.className.match(/^GC\d+/),GCNum=GC?parseInt(GC[0].replace('GC','')):-1;
				if (GC && typeof(autoText.GCUsesAutoText[GC[0]]) != 'undefined' || el.nodeName == 'A' && autoText.GCUsesAutoText[ancestorGC] == 1) {
					var cc = (autoText.isColorDark(doc, el.nodeName == 'A' && el.parentNode ? el.parentNode : el) ? autoText.lightText : autoText.darkText);
					el.style.color = cc;
					if (!tf.isInSF() && GCNum >= 28 && GCNum <= 35 && autoText.GCUsesAutoText[GC[0]] == 1) {
						for (var n=0,nn=el.childNodes.length; n<nn; n++) {
							if (el.childNodes[n].nodeName == 'A') {
								el.childNodes[n].style.color = cc;
							}
						}
					}
				}
				else if (GC) {
					el.style.color = '';
					if (!tf.isInSF() && GCNum >= 28 && GCNum <= 35) {
						for (var n=0,nn=el.childNodes.length; n<nn; n++) {
							if (el.childNodes[n].nodeName == 'A') {
								el.childNodes[n].style.color = '';
							}
						}
					}
				}
				else if (el.nodeName == 'A' && ancestorGC && typeof(autoText.GCUsesAutoText[ancestorGC]) == 'undefined') {
					el.style.color = '';
				}
			}
			if (el.hasChildNodes()) autoText.parser(doc, el);
		}
	},
	apply:function() {
		if (d.frames) {
			for (var i=0,num=d.frames.length;i<num;i++){
				if(typeof(d.frames[i].document)=='object')autoText.parser(d.frames[i].document, d.frames[i].document.body);
			}
		}
		autoText.parser(document, document.body);
	}
}
addOnload(autoText.apply);


function navRO(ovr,o,id,gc){
	function rmGC(s){var ss=s.split(' ');return(ss[1])?ss[1]:s;}
	function addOvr(o){o.className=gc+rmGC(o.className)+movr;}
	function rmOvr(o){o.className=gc+rmGC(o.className).replace(/MouseOver$/,'');}
	gc+=' ';
	var className=rmGC(o.className),s=className.replace(/(?:Left|Right)?(?:MouseOver)?$/,'');
	var movr='MouseOver',ell=gl(s+'Left'+id),elc=gl(s+id),elr=gl(s+'Right'+id);
	if(ell&&elc&&elr){
		if(ovr){addOvr(ell);addOvr(elc);addOvr(elr);}
		else{rmOvr(ell);rmOvr(elc);rmOvr(elr);}
	} else{
		if(ovr)o.className=gc+className+'MouseOver';
		else o.className=gc+className.replace(/MouseOver$/,'');
	}
	var tfc=tf.content;
	if(typeof(tfc.autoText)!='undefined')tfc.autoText.parser(tfc.document, o, o.className.split(' ')[0]);
}
function navOvr(o,id,gc){navRO(true,o,id,gc);}function navOut(o,id,gc){navRO(false,o,id,gc);}
var aOtherURL={};
function navClk(o,h,id){var url=unescape(tf.wm.url(h,'-',1));
if(typeof(aOtherURL[id])=='undefined'){tf.content.location.href=url;}
else{
	if(aOtherURL[id]==0){tf.content.location=tf.wm.url('otherurl.html?ourl='+id,'-',1);}
	else{window.open(url);}
}}

function cancelBuble(evt){try{var e=(typeof(evt)!='undefined')?evt:event;e.cancelBubble=true;}catch(e){}}


var qandi={
	coreProp:tf.sfJSON.parse(tf.nametag.get('coreProperties')),
	all:function(args){
		if(!this.show)return'';
		var pgid=args[0],Id=args[1],MinQty=args[2],FractQty=args[3],QtyUnit=args[4];
		if(!parseInt(FractQty))MinQty=parseInt(MinQty);
		var ret=['<table border="0" cellpadding="0" cellspacing="0"><tr>',
			'<td nowrap="nowrap">',
			this['qtyFld'](Id,MinQty,FractQty,QtyUnit),
			'</td><td nowrap="nowrap">',
			this['addToBasket'](pgid,Id),
			'</td>',
			'<td nowrap="nowrap">',
			this['favorites'](pgid,Id),
			'</td>',
			'</tr></table>'].join('');
		if(tf.isEntryPage)ret=ret.replace(/\.\.\/media\//g,(tf.lang!=tf.baseLang?'../':'')+'contents/media/');
		return ret;
	},
	qtyFld:function(Id,MinQty,FractQty,QtyUnit){
		if(!this.show)return'';
		if(!parseInt(FractQty))MinQty=parseInt(MinQty);
		var def_qty=1,n='ProductQuantity';
		if(MinQty>0)def_qty=MinQty;else if(FractQty>0)if(tf.core&&tf.core.nfmt)def_qty=core.nfmt.toLoc('1.00');
		var ret='<div sf:object="'+n+'" class="'+n+'">&nbsp;<input type="text" onclick="cancelBuble()" id="'+Id+'_Quantity" name="'+Id+'_Quantity" value="'+def_qty+'" size="6" maxlength="6">';
		if(QtyUnit!='')ret+='<span sf:object="'+n+'Unit" class="'+n+'Unit">'+QtyUnit+'</span>&nbsp;';
		ret+='</div>';
		return ret;
	},
	addToBasket:function(pgid,Id,ldtag){
		if(!this.show)return'';
		var ret='',n='';
		if(ldtag){ret='<a class="ImgLink" href="#" onclick="if(isInSF())return;sfAddPop();if(add_'+Id+'()!=0){sfAddUnpop();}return false;">'+tf.ldwriteadd(ldtag)+'</a>';}
		else{
	
	var atbb={'de':{img:'../media/add2basket.png',w:24,h:24,alt:'In den Warenkorb'}};
	n='AddtobasketButton-';
	ret+='<a class="ImgLink" href="#" onclick="if(isInSF())return;sfAddPop();if(add_'+Id+'()!=0){sfAddUnpop();}return false;"><span sf:object="'+n+'" id="'+n+pgid+'"  class="GC25 '+n+'" style="display:inline-block;">'
	+'<img width="'+atbb[tf.lang]['w']+'" height="'+atbb[tf.lang]['h']+'" src="'+atbb[tf.lang]['img']+'" id="I'+n+'Image-'+Id+'" name="I'+n+'Image-'+Id+'" border="0" alt="'+atbb[tf.lang]['alt']+'" title="'+atbb[tf.lang]['alt']+'" hspace="0" vspace="0" align="" onmouseover="window.status=\''+unescape(atbb[tf.lang]['alt'].replace(/&#39;/,'\\\''))+'\';return true;" onmouseout="window.status=\'\';return true">'
	+'</span></a>';

			if(tf.isEntryPage)ret=ret.replace(/\.\.\/media\//g,(tf.lang!=tf.baseLang?'../':'')+'contents/media/');
		}
		return ret;
	},
	favorites:function(pgid,Id,ldtag){
		if(!this.show)return'';
		var ret='',n='';
		if(ldtag){ret='<a class="ImgLink" class="background-color:transparent;" href="#" onclick="if(isInSF())return;add_'+Id+'(1);return false;">'+tf.ldwriteadd(ldtag)+'</a>';}
		else{
	
	var fbb={'de':{img:'../media/favourites.png',w:24,h:24,alt:'Zu den Favoriten hinzufügen'}};
	n='FavoritesButton-';
	ret+='<a class="ImgLink" class="background-color:transparent;" href="#" onclick="if(isInSF())return;add_'+Id+'(1);return false;"><span sf:object="'+n+'" id="'+n+pgid+'"  class="GC25 '+n+'" style="display:inline-block;">'
	+'<img width="'+fbb[tf.lang]['w']+'" height="'+fbb[tf.lang]['h']+'" src="'+fbb[tf.lang]['img']+'" id="I'+n+'Image-'+Id+'" name="I'+n+'Image-'+Id+'" border="0" alt="'+fbb[tf.lang]['alt']+'" title="'+fbb[tf.lang]['alt']+'" hspace="0" vspace="0" align="" onmouseover="window.status=\''+unescape(fbb[tf.lang]['alt'].replace(/&#39;/,'\\\''))+'\';return true;" onmouseout="window.status=\'\';return true">'
	+'</span></a>';

			if(tf.isEntryPage)ret=ret.replace(/\.\.\/media\//g,(tf.lang!=tf.baseLang?'../':'')+'contents/media/');
		}
		return ret;
	},
	ph:0
}
qandi['show']=true;


function dynLoadPrice(id,p,pd,fnEnd){
	core=tf.core
	if(core&&tf.utils){
		if(p.length==0) return;
		
		if(core.regPrc)core.regPrc(p);
		if(fnEnd){fnEnd(id);}
		if(pd)tf.utils.populatedata();
	}
	else setTimeout(function(){dynLoadPrice(id,p,pd,fnEnd);},100);
}

var equalHeightClass=[];
function equalHeightOnClass(){
	for(var n=0,nn=equalHeightClass.length;n<nn;n++){
		tf.utils.equaldiv(equalHeightClass[n]);
	}
}

var moreHistory = {
	push:function(from_pgidx,to_pgidx,append_prid){
		if (tf.isInSF()) return;
		this._load();
		this._stack.push({from:(from_pgidx?from_pgidx:tf.pgidx)+(append_prid?'#'+to_pgidx.replace(/\.html?/,''):''),to:to_pgidx});
		this._save();
	},
	pop:function(pgidx){
		if (tf.isInSF()) return '';
		this._load();
		var o=this._stack[this._stack.length-1],fromURL='';
		if(o&&o['to']==pgidx)fromURL=o['from'];
		if(fromURL){this._stack.pop();this._save();}
		return fromURL;
	},
	_load:function(){
		var s=tf.nametag.get('moreHistory');
		if(s){this._stack=tf.sfJSON.parse(s);}
	},
	_save:function(){
		tf.nametag.add('moreHistory',tf.sfJSON.stringify(this._stack));
	},
	_stack:[]
};
addOnload(function(){
	addEvent('onclick', function(evt){
		var el = evt.srcElement || evt.target;
		if (el.nodeName == 'A' && el.getAttribute('href')) {
			if (el.href.match(/p\d+_?.*?\.html/) && !el.onclick || !el.onclick.toString().match('tf.moreHistory.push')) tf.moreHistory.push(tf.pgidx,tf.wm.jfile(el.href),false);return true;
		}
	}, d.body);
});

tf.load('lang.html','lang');
tf.load('utils.html','utils');

}
// </script>

// #InstalledVersion# #InstalledRelease#
// $Revision: 4644 $
// $HeadURL: svn://3d3-p432/ShopFactory/trunk/bin/Common%20Files/parse/loader.js $
