///////////////////////////////////////////////////////////
/// Magic Image Rotation								///
///	v 1.0.1												///
/// Copyright 2007, Loyce Bradley Petrey				///
///	All Rights Reserved.								///
/// http://www.EchoChrist.com/MagicImage				///
/// webmaster@EchoChrist.com							///
///														///
///	This script is free to use as long as this notice 	///
/// remains unchanged and intact.					 	///
///														///
/// This program is free software: you can redistribute ///
///	it and/or modify it under the terms of the GNU 		///
///	General Public License as published by the Free 	///
///	Software Foundation. 								///
///														///
/// This program is distributed in the hope that it 	///
/// will be useful, but WITHOUT ANY WARRANTY; without 	///
///	even the implied warranty of MERCHANTABILITY or 	///
///	FITNESS FOR A PARTICULAR PURPOSE.  					///
/// 													///
/// Be Imitators of God as dear children and walk		///
/// in love as Christ also loved us.					///
///	Ephesians 5:1-2										///
///////////////////////////////////////////////////////////

var ImageLoad = 
[
['neuheiten.php', 	'pixz/golden_rose_mousse_foundation.jpg', 	'Golden Rose Mousse Foundation'		],	
['neuheiten.php', 	'pixz/golden_rose_style_mascara.jpg', 	'Golden Rose Style Mascara'			],	
['neuheiten.php', 	'pixz/golden_rose_mega_shine_volume_lipgloss.jpg', 	'Golden Rose Mega Shine Volume Lipgloss'				],	
['neuheiten.php', 	'pixz/golden_rose_extreme_lipplumper.jpg', 	'Golden Rose Extreme Lipplumper'			],	
['neuheiten.php', 	'pixz/golden_rose_3d_masara.jpg', 	'Golden Rose 3D Mascara'			],	
];

var ImageCount		= 5;			
var ImageDelay		= 4000;			
var LinkTarget		= "_self"		
var ImageIndex		= 0;			
var FirstLoad 		= 0;			
var QuickStartID 	= 0;  			
var htmlString 		= ""			

function ImageChange()

{		

htmlString = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><td><center>';
htmlString = htmlString + '<font face = "Verdana" size="2">';		
htmlString = htmlString +'<a target="';
htmlString = htmlString + LinkTarget;
htmlString = htmlString + '" href="';
htmlString = htmlString + ImageLoad[ImageIndex][0];
htmlString = htmlString + '"><img border="0" height="187" width="187" src="';					
htmlString = htmlString + ImageLoad[ImageIndex][1];
htmlString = htmlString + '"></a></td></tr><tr><td height="42" align="center" valign="middle">';
htmlString = htmlString + ImageLoad[ImageIndex][2];
htmlString = htmlString + '</font>';
htmlString = htmlString + '</center></table>';		

document.getElementById('rotator').innerHTML = htmlString; 				

if(ImageIndex == ImageCount - 1)	
{										
ImageIndex= 0;																				
}																								
else																							
{																								
ImageIndex++;																					
}																										

if(FirstLoad == 0)					
{
SlowFinish();
}

}



function  QuickStart()
{
QuickStartID=setInterval("ImageChange()", 1000);
}
																


function SlowFinish()
{
clearInterval(QuickStartID);
FirstLoad = 1;
setInterval("ImageChange()", ImageDelay);	 
}


QuickStart()


