<!--

/**
* Function : dump()
* Arguments: The data - array,hash(associative array),object
*    The level - OPTIONAL
* Returns  : The textual representation of the array.
* This function was inspired by the print_r function of PHP.
* This will accept some data as the argument and return a
* text that will be a more readable version of the
* array/hash/object that is given.
*/
// from: http://binnyva.blogspot.com/2005/10/dump-function-javascript-equivalent-of.html
function dump(arr,level) {
var dumped_text = "";
if(!level) level = 0;

//The padding given at the beginning of the line.
var level_padding = "";
for(var j=0;j<level+1;j++) level_padding += "    ";

if(typeof(arr) == 'object') { //Array/Hashes/Objects
 for(var item in arr) {
  var value = arr[item];
 
  if(typeof(value) == 'object') { //If it is an array,
   dumped_text += level_padding + "'" + item + "' ...\n";
   dumped_text += dump(value,level+1);
  } else {
   dumped_text += level_padding + "'" + item + "' => \"" + value + "\"\n";
  }
 }
} else { //Stings/Chars/Numbers etc.
 dumped_text = "===>"+arr+"<===("+typeof(arr)+")";
}
return dumped_text;
} 


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
	var d=document;
	if(d.images){
   		if(!d.MM_p) {
   			d.MM_p=new Array();
		}
    	var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
		for(i=0; i<a.length; i++){
    		if (a[i].indexOf("#")!=0){
				d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
			}
		}    
	}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x;
  var a=MM_swapImage.arguments;
  document.MM_sr=new Array; 
  for(i=0;i<(a.length-2);i+=3)  
   	if ((x=MM_findObj(a[i]))!=null){
   		document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function hilfe(link) {
add=window.open (link,"Hilfe","width=400,height=200,location=0,menubar=0,personalbar=0,status=0,left=100,top=100");
add.focus();
return false;
}

function drucken(link) {
add=window.open (link,"Drucken","width=600,height=400,scrollbars=yes,left=100,top=100");
add.focus();
fill(add, param);
return false;
}


function copy_form_from_parent(form_name)
{
	//source_form=eval('parent.window.document.'+form_name);
    source_form=eval('this.window.opener.parent.document.'+form_name);
	//alert(source_form);
	target_form=eval('this.window.document.'+form_name);
	//alert(target_form);
	
	form_copy(source_form, target_form);
}

function form_copy(source_form, target_form)
{
	for (k=0; k<source_form.length; k++)
	{
		//alert(source_form.elements[k].value+' -> '+target_form.elements[k].value);
		target_form.elements[k].value=source_form.elements[k].value;
		/*alert(source_form.elements[k].checked+' -> '+target_form.elements[k].checked);*/
		target_form.elements[k].checked=source_form.elements[k].checked;
	}
}



//PLF-http://www.jejavascript.net/
var coeff=4;//Coefficient de reduction
var larg=80;//largeur maxi de l'image
var haut=80;//hauteur maxi de l'image
var coeffinit=4;
function changer_a() {
if (document.image_a.width < larg) {
coeff = coeff-0.2;
document.image_a.width = Math.round(larg/coeff);
document.image_a.height = Math.round(haut/coeff);
chang_a=window.setTimeout('changer_a()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_a() {
if (document.image_a.width > larg/coeffinit) {
window.clearTimeout(chang_a);
coeff = coeff+0.2;
document.image_a.width = Math.round(larg/coeff);
document.image_a.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_a()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}


function changer_b() {
if (document.image_b.width < larg) {
coeff = coeff-0.2;
document.image_b.width = Math.round(larg/coeff);
document.image_b.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_b()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_b() {
if (document.image_b.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_b.width = Math.round(larg/coeff);
document.image_b.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_b()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}




function changer_c() {
if (document.image_c.width < larg) {
coeff = coeff-0.2;
document.image_c.width = Math.round(larg/coeff);
document.image_c.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_c()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_c() {
if (document.image_c.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_c.width = Math.round(larg/coeff);
document.image_c.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_c()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}


function changer_d() {
if (document.image_d.width < larg) {
coeff = coeff-0.2;
document.image_d.width = Math.round(larg/coeff);
document.image_d.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_d()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_d() {
if (document.image_d.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_d.width = Math.round(larg/coeff);
document.image_d.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_d()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}



function changer_e() {
if (document.image_e.width < larg) {
coeff = coeff-0.2;
document.image_e.width = Math.round(larg/coeff);
document.image_e.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_e()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_e() {
if (document.image_e.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_e.width = Math.round(larg/coeff);
document.image_e.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_e()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}


function changer_f() {
if (document.image_f.width < larg) {
coeff = coeff-0.2;
document.image_f.width = Math.round(larg/coeff);
document.image_f.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_f()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_f() {
if (document.image_f.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_f.width = Math.round(larg/coeff);
document.image_f.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_f()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}



function changer_g() {
if (document.image_g.width < larg) {
coeff = coeff-0.2;
document.image_g.width = Math.round(larg/coeff);
document.image_g.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_g()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_g() {
if (document.image_g.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_g.width = Math.round(larg/coeff);
document.image_g.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_g()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}




function changer_h() {
if (document.image_h.width < larg) {
coeff = coeff-0.2;
document.image_h.width = Math.round(larg/coeff);
document.image_h.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_h()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_h() {
if (document.image_h.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_h.width = Math.round(larg/coeff);
document.image_h.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_h()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}



function changer_i() {
if (document.image_i.width < larg) {
coeff = coeff-0.2;
document.image_i.width = Math.round(larg/coeff);
document.image_i.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_i()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_i() {
if (document.image_i.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_i.width = Math.round(larg/coeff);
document.image_i.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_i()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}



function changer_j() {
if (document.image_j.width < larg) {
coeff = coeff-0.2;
document.image_j.width = Math.round(larg/coeff);
document.image_j.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_j()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_j() {
if (document.image_j.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_j.width = Math.round(larg/coeff);
document.image_j.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_j()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}



function changer_k() {
if (document.image_k.width < larg) {
coeff = coeff-0.2;
document.image_k.width = Math.round(larg/coeff);
document.image_k.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_k()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_k() {
if (document.image_k.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_k.width = Math.round(larg/coeff);
document.image_k.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_k()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}


function changer_l() {
if (document.image_l.width < larg) {
coeff = coeff-0.2;
document.image_l.width = Math.round(larg/coeff);
document.image_l.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_l()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_l() {
if (document.image_l.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_l.width = Math.round(larg/coeff);
document.image_l.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_l()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}



function changer_m() {
if (document.image_m.width < larg) {
coeff = coeff-0.2;
document.image_m.width = Math.round(larg/coeff);
document.image_m.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_m()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_m() {
if (document.image_m.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_m.width = Math.round(larg/coeff);
document.image_m.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_m()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}


function changer_n() {
if (document.image_n.width < larg) {
coeff = coeff-0.2;
document.image_n.width = Math.round(larg/coeff);
document.image_n.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_n()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_n() {
if (document.image_n.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_n.width = Math.round(larg/coeff);
document.image_n.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_n()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}



function changer_o() {
if (document.image_o.width < larg) {
coeff = coeff-0.2;
document.image_o.width = Math.round(larg/coeff);
document.image_o.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_o()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_o() {
if (document.image_o.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_o.width = Math.round(larg/coeff);
document.image_o.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_o()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}




function changer_p() {
if (document.image_p.width < larg) {
coeff = coeff-0.2;
document.image_p.width = Math.round(larg/coeff);
document.image_p.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_p()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_p() {
if (document.image_p.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_p.width = Math.round(larg/coeff);
document.image_p.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_p()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}



function changer_q() {
if (document.image_q.width < larg) {
coeff = coeff-0.2;
document.image_q.width = Math.round(larg/coeff);
document.image_q.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_q()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_q() {
if (document.image_q.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_q.width = Math.round(larg/coeff);
document.image_q.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_q()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}



function changer_r() {
if (document.image_r.width < larg) {
coeff = coeff-0.2;
document.image_r.width = Math.round(larg/coeff);
document.image_r.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_r()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_r() {
if (document.image_r.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_r.width = Math.round(larg/coeff);
document.image_r.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_r()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}



function changer_s() {
if (document.image_s.width < larg) {
coeff = coeff-0.2;
document.image_s.width = Math.round(larg/coeff);
document.image_s.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_s()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_s() {
if (document.image_s.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_s.width = Math.round(larg/coeff);
document.image_s.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_s()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}



function changer_t() {
if (document.image_t.width < larg) {
coeff = coeff-0.2;
document.image_t.width = Math.round(larg/coeff);
document.image_t.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_t()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_t() {
if (document.image_t.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_t.width = Math.round(larg/coeff);
document.image_t.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_t()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}



function changer_u() {
if (document.image_u.width < larg) {
coeff = coeff-0.2;
document.image_u.width = Math.round(larg/coeff);
document.image_u.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_u()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_u() {
if (document.image_u.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_u.width = Math.round(larg/coeff);
document.image_u.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_u()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}



function changer_v() {
if (document.image_v.width < larg) {
coeff = coeff-0.2;
document.image_v.width = Math.round(larg/coeff);
document.image_v.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_v()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_v() {
if (document.image_v.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_v.width = Math.round(larg/coeff);
document.image_v.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_v()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}



function changer_w() {
if (document.image_w.width < larg) {
coeff = coeff-0.2;
document.image_w.width = Math.round(larg/coeff);
document.image_w.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_w()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_w() {
if (document.image_w.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_w.width = Math.round(larg/coeff);
document.image_w.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_w()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}




function changer_xyz() {
if (document.image_xyz.width < larg) {
coeff = coeff-0.2;
document.image_xyz.width = Math.round(larg/coeff);
document.image_xyz.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_xyz()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_xyz() {
if (document.image_xyz.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_xyz.width = Math.round(larg/coeff);
document.image_xyz.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_xyz()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}



function changer_() {
if (document.image_.width < larg) {
coeff = coeff-0.2;
document.image_.width = Math.round(larg/coeff);
document.image_.height = Math.round(haut/coeff);
chang=window.setTimeout('changer_()',1);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}
function initial_() {
if (document.image_.width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image_.width = Math.round(larg/coeff);
document.image_.height = Math.round(haut/coeff);

initi=window.setTimeout('initial_()',1);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}



//-->




















/*
function drucken_formular(link, form_name)
{
	added_window=window.open(link, "Drucken", "width=700,height=600,scrollbars=yes,left=100,top=100");
	//setTimeout('fill()', 1000);
	fill(added_window, form_name);
	//added_window.focus();
}

function fill(added_wnd, form_name)
{
	source_form=eval('this.window.document.'+form_name);
	//alert(source_form);
	target_form=eval('added_wnd.window.document.'+form_name);
	for (k=0; k<source_form.length; k++)
	{
		target_form.elements[k].value=source_form.elements[k].value;
	}
}



var g_param;
var g_add;

function drucken_formular(link, param)
{
add=window.open (link,"Drucken","width=600,height=400,scrollbars=yes,left=100,top=100");
g_param = param;
g_add = add;
setTimeout('fill()', 1000);
add.focus();
return true;
  
}

function fill()
{
  wnd = g_add;
  param = g_param;
  
  // alert (wnd.document.register);
  for (k = 0; k < param.length; k++)
  {
    wnd.window.document.register.elements[k].value = param.elements[k].value;
  }
  // alert("test");
}*/


//-->

