<!-- Begin
back1 = new Image (21,17);
back1.src = "images/nav_back_off.gif";
back2 = new Image (21,17);
back2.src = "images/nav_back_off.gif";

next1 = new Image (22,17);
next1.src = "images/nav_forwrd_off.gif";
next2 = new Image (22,17);
next2.src = "images/nav_forwrd_off.gif";

maxPic = 8;

p1 = new Image (65,42);
p1.src = "images/SP01_thumb.gif";
link1 = "SP01";

p2 = new Image (65,42);
p2.src = "images/SP02_thumb.gif";
link2 = "SP02";

p3 = new Image (65,42);
p3.src = "images/SP03_thumb.gif";
link3 = "SP03";

p4 = new Image (65,42);
p4.src = "images/SP04_thumb.gif";
link4 = "SP04";

p5 = new Image (65,42);
p5.src = "images/SP05_thumb.gif";
link5 = "SP05";

p6 = new Image (65,42);
p6.src = "images/SP06_thumb.gif";
link6 = "SP06";

p7 = new Image (65,42);
p7.src = "images/SP07_thumb.gif";
link7 = "SP07";

p8 = new Image (65,42);
p8.src = "images/SP08_thumb.gif";
link8 = "SP08";


//count = 1;
function next() {
count++;
if (count > maxPic) {
count = 1;
}
eval("document.p.src=p" + count + ".src");
}
function back() {
count--;
if (count == 0) {
count = maxPic;
}
eval("document.p.src=p" + count + ".src");
}
function create_p() {
location.href="create_poem.cfm?theme_id=" + eval("link" + count);
}
function view_p() {
location.href="view_poem.cfm?theme_id=" + eval("link" + count);
}
//  End -->
