var ArrayIMG=new Array();
var ArrayIMGadd=new Array();
var Interactive;
$(document).ready(function(){
	var IndexAdd=0;
	$("#myImageFlow").children('a').each(function(i){
		var longdesc=$(this).attr('href');
		var parDiv=$(this).parent();
		IndexAdd=i;
		if($(this).children('img').length>1){
			ArrayIMGadd[IndexAdd]=new Array();
			var Fimg=null;
			$(this).children('img').each(function(i){
				if (!(Fimg))
					Fimg=$(this).appendTo(parDiv).attr('longDesc',longdesc);
				ArrayIMGadd[IndexAdd].push($(this).attr('src'));
			});
			$(this).remove();
		}else
			$(this).remove().children('img').appendTo(parDiv).attr('longDesc',longdesc);
	});
	var Iimg=0;
	$("#myImageFlow").children('img').each(function(i){
			ArrayIMG.push({name:$(this).attr('alt'),src:$(this).attr('src'),url:$(this).attr('longDesc')});	
			//$(this).attr('longDesc','javascript:ShowModel()');							  
	});
	Interactive = new ImageFlow();
	if($.browser.msie)
		Interactive.init({ImageFlowID:'myImageFlow',reflections:false,reflectionPNG: true, startAnimation: true,imageCursor:'pointer' });
	else
		Interactive.init({ImageFlowID:'myImageFlow',reflectionPNG: true, startAnimation: true,imageCursor:'pointer' });	
	
});
