function Randomizer(){
						this.swfArray=new Array();
						this.imgArray=new Array();
						this.percent=new Array();
						this.imgUrlArray=new Array();
					}
				
					Randomizer.prototype.addMovie=function (_swf,_alt,_weight,_imgUrl) {
						this.swfArray.push(_swf);
						this.imgArray.push(_alt);
						this.percent.push(_weight);
						this.imgUrlArray.push(_imgUrl);
					}
					
					Randomizer.prototype.lottery=function () {
						var total=0;
						var agirlik=new Array();
						agirlik[0]=0;
						for (_i=0;_i<=this.percent.length-1;_i++) {
							total+=this.percent[_i];
							agirlik[_i+1]=agirlik[_i]+this.percent[_i];
						}
						
						var n=(Math.random()*total)+1;
						n=(n>total?n-1:n);
						
						for (_i=0;_i<=this.percent.length-1;_i++) {
							
							if (agirlik[_i]<n && agirlik[_i+1]>=n) {
								this.selectedindex=_i;
								break;
							}
						}
					}
					
					Randomizer.prototype.getSelectedFlash=function () {
						return this.swfArray[this.selectedindex];
					}
					Randomizer.prototype.getSelectedAltImage=function () {
						return this.imgArray[this.selectedindex];
						}
					Randomizer.prototype.getSelectedAltImageUrl=function () {
						return this.imgUrlArray[this.selectedindex];
					}	