
function fenoe(name) {
	
   var breite = screen.width - 10;
   var hoehe  = screen.height - 60;

   NewWin = window.open(name, "_blank", "location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes");
	NewWin.focus();
}

function sd() {
	location.href="sprache/deutsch.html";
}

function se() {
	location.href="sprache/english.html";
}

function taf() {
	location.href="tellafriend/handle.html";
}

function wk(action, item) {
	
	var adr;
	var pre;
	
	adr = '';
	pre = '';
		
	if(typeof(action)=='undefined') {
		action = '';
	}
	
	if(typeof(item)=='undefined') {
		item = '';
	}
	
	switch(action) {
		case 'del':
			adr = '';
			break;
			
		case '../':
			pre = '../';
			adr = 'warenkorb/';
			break;
			
		default:
			adr = 'warenkorb/';
	}
	
	if(action!='' && item !='') {
		adr = adr + action + '_' + item + '.html'; 
	} else {
		adr = pre + adr + 'handle' + '.html';
	}
	
	location.href=adr;
}


function imd(code) {
	
	var wert='';
	var p=0;
	var d=0;
	
	for(var i=0; i<code.length; i++) {
		wert=code.substr(i,1);
		
		switch (wert){
			case 'p':
				p++;
				imdp(p);break;
			case 'd':
				d++;
				imdd(d);break;
			case 'g':
				imdg();break;
			case 'f':
				imdf();break;
			case 'i':
				imdi();break;
			case 's':
				imds();break;
			case 'o':
				imdo();break
			case 't':;
				imdt();break;
			case 'e':
				imde();break;
			default:
			 wert='';
		}
	}
}

function imdp(p) {
	switch(p) {
		case 1:
			document.write('<p>');break;
		case 2:
			document.write('<br/></p>');break;
		default:
	}

}

function imdd(d) {
	switch(d) {
		case 1:
			document.write('<div class="lhfwr">');break;
		case 2:
			document.write('<div class="lhf">');break;
		case 3:
			document.write('</div>');break;
		case 4:
			document.write('</div>');break;
		default:
	}
}
	
function imdg() {
	document.write('<img src="img/lhf.gif" alt=""/>');
}


function imdf() {
	document.write('Happy-Flora<br />');
}

function imdi() {
	document.write('Robert Toth<br />');
}

function imds() {
	document.write('Kirschgartshäuser Strasse 76a<br />');
}

function imdo() {
	document.write('D-68307 Mannheim<br />');
}

function imdt() {
	document.write('0176/21198194<br />');
}

function imde() {
	var x0;
	var x1;
	var x2;
	var x3;
	
	x1 = 66+31; // a
	x3 = 34*3-1;	// 'e '
	x0 = 85;	// u

	x2 = String.fromCharCode(x0+29,(x0+1)/2+43+25,x1+1,x3);
	
	x0=x0+20;
	x1=(x1+1)/2+9;
	x3=x3+15;
	
	x2=x2+String.fromCharCode(x0+9,x1*2,46,x3,(x3-5),x0+11,104 );
	
	x0++;
	x1=x1*3;
	x0=x0/2;
	x3=x0*3;
	//                           @     h       a     
	x2=x2+String.fromCharCode(x0+11,x1/2+17, x3-62);
	
	x0=(x0-3)*2+12;
	x1=x1-62;
	x3= x1+9;
	//                           p    p    y  -
	x2=x2+String.fromCharCode(x0++, x1--, x3 ,45);
	
	x0=(x0++)/2+57;
	x1=x0++;
	x3=x0/3*4-41;
	x1=(x1/2+11)/3*4;
	//                          f     l    o   r
	x2=x2+String.fromCharCode(x0-12,x1+18,x3,114);
	
	x1=x0/2;// (57)
	x3=x3/5*4;
	x0=x3+12;
	x1=x1*2;
	//                         a       .      e      u 
	x2=x2+String.fromCharCode(x3+8, x3/2+2, x0,  x1+3 );

	
	document.write(x2 + '<br />');
	
	
	
/*	
	start = 42;
	
	document.write(String.fromCharCode(start,start+1,start+2,start+3,start+4,start+5) + '<br />');
	document.write(String.fromCharCode(start+6,start+7,start+8,start+9,start+10) + '<br />');
	
	var Test = String.fromCharCode(65, 66, 67);
	- = 45
	@ = 64
	. = 46
	0 = 48
	1 = 49 
	A = 65;
	a = 97;
	E = 69;
	f = 102;
	H = 72;
	K = 75;
	N = 77;
	O = 78;
	o = 110;
	p = 111;
	R = 82;
	r = 114;
	T = 84;
	U = 85;
	u = 117;
	y = 120;
*/
}


