<?php
switch($hercules_data) {
// data for first rotator
case "first":
$data = "/hercules/scripts/display.txt"; // txt file with images definition
$width = "234"; // set here width
$height = "60"; // set here height
$second = "10"; // set here second
$order = "0"; // 0 - display images in order, r - display images randomly
break;
// end of data for first rotator
// data for second rotator
case "second":
$data = "/hercules/scripts/display2.txt"; // txt file with images definition
$width = "234"; // set here width
$height = "60"; // set here height
$second = "10"; // set here second
$order = "0"; // 0 - display images in order, r - display images randomly
break;
// end of data for first rotator
default: "";
}
// Don't edit below this line if you don't know what you need to change
$hercules_path = "http://" . $_SERVER['SERVER_NAME'];
$src = $hercules_path . "/hercules/scripts/hercules_rotator.php?data=$data&width=$width&height=$height&sec=$second&order=$order";
echo '<iframe src="' . $src . '" scrolling="no" name="hercules_image_rotator" marginwidth="0" marginheight="0" width="' . $width . '" height="' . $height . '" frameborder="no"> </iframe>';
?>