// JavaScript Document
<!-- Original:  Markus Fischer (mfischer@josefine.ben.tuwien.ac.at) -->
<!-- Web Site:  http://josefine.ben.tuwien.ac.at/~mfischer/ -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var mfBanners = [
['http://www.miamilodge.com', '../Concept_Pictures/img/ML_131X160_EN_6.jpg'],
['http://www.miamilodge.com', '../Concept_Pictures/img/ML_131X160_EN_2.jpg'],  
['http://www.miamilodge.com', '../Concept_Pictures/img/ML_131X60_EN_1.jpg'], 
['http://www.miami-hotelshabitat.com', '../Concept_Pictures/img/MHH_131X160_EN_1.jpg']
];

var mfBanners2 = [
['http://www.miamihabitat.com', '../Concept_Pictures/img/miamihabitat-2.gif'],
['http://www.miamihabitat.com', '../Concept_Pictures/img/MH_131X160_EN_5.jpg'],  
['http://www.miamihabitat.com', '../Concept_Pictures/img/MH_131X160_EN_3.jpg'],  
['http://www.miami-hotelshabitat.com', '../Concept_Pictures/img/MHH_131X160_EN_1.jpg']
];

var mfIe = false;
if( document.all) {
mfIe = true;
}
var mfBannerIndex = 0;

function mfBannerChange() {
var htmlString = '<a target="_blank" href="'+mfBanners[mfBannerIndex][0]+'"> <img border="0" src="'+mfBanners[mfBannerIndex][1]+'"></a>';
if( mfIe) {
document.all.banner.innerHTML = htmlString;
}
else {
document.layers["banner"].document.open();
document.layers["banner"].document.write( htmlString);
document.layers["banner"].document.close();
}
if(mfBannerIndex < mfBanners.length - 1)
mfBannerIndex++;
else
mfBannerIndex = 0;
}


function mfBannerChange2() {
var htmlString2 = '<a target="_blank" href="'+mfBanners2[mfBannerIndex][0]+'"> <img border="0" src="'+mfBanners2[mfBannerIndex][1]+'"></a>';
if( mfIe) {

document.all.banner2.innerHTML = htmlString2;
}
else {
document.layers["banner2"].document.open();
document.layers["banner2"].document.write( htmlString2);
document.layers["banner2"].document.close();
}
if(mfBannerIndex < mfBanners.length - 1)
mfBannerIndex++;
else
mfBannerIndex = 0;
}


setInterval("mfBannerChange()", 5000);
setInterval("mfBannerChange2()", 7700);
//  End -->