// Configure Your Data FROM Here
// Username And Password To Load XML And Pictures
var Cams99Username = "steven";
var Cams99Password = "schulz99";
// URL To The Coverflow Flash File. Always Use Absolute (i.e. WITH Hostname) URL!
var Cams99FlashURL = "http://www.99cams.com/coverflow/coverflow.swf";
// URL To XML File Which Holds Top Shows
var Cams99DataMasterURL = "http://www.99cams.com/billing/XMLCams/interface.asmx/getTopShows%3Fusername%3D" + Cams99Username + "%26passwort%3D" + Cams99Password + "%26anz%3D" + Cams99NumOfCovers;
// URL To Sample Pictures (Only First Picture will be Used)
var Cams99DataPictureURL = "http://www.99cams.com/billing/XMLCams/getpicture.asp%3Fusername%3D" + Cams99Username + "%26passwort%3D" + Cams99Password + "%26fpi%3D1%26showid%3D";
// Page To Link To If User Clicks On Model (Parameter Will Be Configured in The Lower Javascript Code)
var Cams99ModelPageURL = "http://www.99cams.com/%3Fwmid%3D" + Cams99PartnerId + "%26custparam%3Dcam_";
// Page To Link To If User Searches (Parameter Will Be Configured in The Lower Javascript Code)
//var Cams99SearchTargetURL = "http://www.99cams.de/layout/0/suche_uebersicht.asp%3Ffsk16%3D%26aid%3D" + Cams99PartnerId + getSId() + "%26p1%3D";
//var Cams99SearchTargetURL = "http://www.99cams.com/layout/0/suche_uebersicht.asp%3Ffsk16%3D%26wmid%3D" + Cams99PartnerId + getSId() + "%26p1%3D";
var Cams99SearchTargetURL = "http://www.99cams.com/layout/0/suche_uebersicht.asp%3FAID%3D" + Cams99PartnerId + "%26setdone=1" + getSId() + "%26p1%3D";

// TO Here
if(!Cams99Width) {
var Cams99Width = '548';
}
if(!Cams99Height) {
	var Cams99Height = '238';
}


function getSId() {
var Cams99TempParam = Cams99Parameter.slice(1).split("&");
	for(var x = 0; x < Cams99TempParam.length; x++) {
		if(Cams99TempParam[x].toLowerCase().indexOf("aid=") != -1) {
			return "%26" + encodeURIComponent(Cams99TempParam[x]);
		}
	}
return "";
}

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + Cams99Width + '" height="' + Cams99Height + '">');
document.write('<param name="movie" value="');
document.write(Cams99FlashURL);
document.write('?dataURL='+Cams99DataMasterURL);
document.write('&picURL='+Cams99DataPictureURL);
document.write('&modelURL='+Cams99ModelPageURL);
document.write('&modelURLTarget=' + Cams99ModelTarget);
document.write('&searchTitel=' + Cams99searchTitle);
document.write('&searchURL='+Cams99SearchTargetURL);
document.write('&searchURLTarget=' + Cams99SearchTarget);
document.write('&BGColor=' + Cams99BackgroundColor);
document.write('&MRColor1=' + Cams99MirrorColor1);
document.write('&MRColor2=' + Cams99MirrorColor2);
document.write('&GDColor=' + Cams99GradientColor);
document.write('&GHeight=' + Cams99Height);
document.write('&GWidth=' + Cams99Width);
document.write('" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#' + Cams99BackgroundColor + '" />');
document.write('<embed src="');
document.write(Cams99FlashURL);
document.write('?dataURL='+Cams99DataMasterURL);
document.write('&picURL='+Cams99DataPictureURL);
document.write('&modelURL='+Cams99ModelPageURL);
document.write('&modelURLTarget=' + Cams99ModelTarget);
document.write('&searchTitel=' + Cams99searchTitle);
document.write('&searchURL='+Cams99SearchTargetURL);
document.write('&searchURLTarget=' + Cams99SearchTarget);
document.write('&BGColor=' + Cams99BackgroundColor);
document.write('&MRColor1=' + Cams99MirrorColor1);
document.write('&MRColor2=' + Cams99MirrorColor2);
document.write('&GDColor=' + Cams99GradientColor);
document.write('&GHeight=' + Cams99Height);
document.write('&GWidth=' + Cams99Width);
document.write('" quality="high" bgcolor="#' + Cams99BackgroundColor + '" width="' + Cams99Width + '" height="' + Cams99Height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');