//************This Header Must Remain Attached ********** You May Not Remove This Header******
//Image Link Displayer© by John Farquharson daworxwebdesign@yahoo.com                        *
//Completed Sat Nov 23 MMI @ 12:26 A.M. EDST Copyright DaWorx Web Design® MMII (2002)        *
//Author continues to hold all rights to ownership of this JavaScript - copyright 2002 (MMII)*
//Tested in Internet Explorer 8.0 / Opera 6.0		                        	     *
//************This Header Must Remain Attached ********** You May Not Remove This Header******
document.write("<form name='the_form' action=''><table border='1' bordercolor='#000000' cellpadding='0' cellspacing='0' width='200' align='left'><tr><td bgcolor='#000000' background=''><center><font size='1' face='verdana' color='#FFFFFF'>TheMusicWerx.com ~ CD Catalog Box</font><hr></center></tr></td><tr><td bgcolor='#000000' background='none'>");
document.write("<center><a href='javascript:theLink();' onMouseOver='clearTimeout(my_timeout), status=my_link[index];return true;' onMouseOut='spinMe(); status=\" \"'><img name='the_image' src='images/loading_pw.gif' width='200' height='200' border='0' alt='CLICK IMAGE To View Information For This CD!'></a><br>");
document.write("</center></tr></td><tr><td bgcolor='#000000' background=''>");
document.write("<center><input type='button' name='start' value='Re-Start' onClick='spinMe();'><input type='button' name='stop' value='Stop' onClick='clearTimeout(my_timeout);'><input type='button' name='view_songs' value='<View CD>' onClick='theLink();'></center>");
document.write("<center><hr><font size='1' face='verdana' color='#FFFFFF'>TheMusicWerx.com ~ CD Catalog Box</font></center></tr></td></table>");
document.write("<img src='images/right_arrow.gif' align='absmiddle'><input type='text' name='the_status' size='84' style='font-weight:bold; background:transparent; border:none; font-family:verdana; font-size:12px' readonly onClick=\"theLink();\"' onFocus='the_status.blur();' class='xlink' onMouseOver='clearTimeout(my_timeout);' onMouseOut='spinMe();' style='text-decoration:underline;' title='CLICK To View Information For This CD!'></form>");

var my_link = [ 
"tmwcart/product_info.php/cPath/22/products_id/29", 
"tmwcart/product_info.php/cPath/22/products_id/30", 
"tmwcart/product_info.php/cPath/22/products_id/31", 
"tmwcart/product_info.php/cPath/22/products_id/32", 
"tmwcart/product_info.php/cPath/22/products_id/33", 
"tmwcart/product_info.php/cPath/22/products_id/34", 
"tmwcart/product_info.php/cPath/22/products_id/35", 
"tmwcart/product_info.php/cPath/22/products_id/36", 
"tmwcart/product_info.php/cPath/22/products_id/37", 
"tmwcart/product_info.php/cPath/22/products_id/38", 
"tmwcart/product_info.php/cPath/22/products_id/39", 
"tmwcart/product_info.php/cPath/22/products_id/40", 
"tmwcart/product_info.php/cPath/22/products_id/41", 
"tmwcart/product_info.php/cPath/22/products_id/42", 
"tmwcart/product_info.php/cPath/22/products_id/43", 
"tmwcart/product_info.php/cPath/22/products_id/44", 
"tmwcart/product_info.php/cPath/22/products_id/45"  




 ];

var my_image = [ 
"images/country_greats.jpg", 
"images/country_outlaws.jpg", 
"images/dolly_parton_legends.jpg", 
"images/don_williams_the_ties_that_bind.jpg", 
"images/eddy_arnold_greatest_hits.jpg", 
"images/freddy_fender_hits.jpg", 
"images/gene_pitney_the_hits.jpg", 
"images/glen_campbell_rhinestone_cowboy.jpg", 
"images/hank_williams_lovesick_blues.jpg", 
"images/hank_williams_move_it_on_over.jpg", 
"images/i_love_you_because_country.jpg", 
"images/johnny_cash_ring_of_fire.jpg",  
"images/merle_haggard_greatest_hits.jpg", 
"images/patsy_cline_walkin_after_midnight.jpg", 
"images/patsy_cline_crazy.jpg", 
"images/stanley_brothers_clinch_mountain_boys.jpg", 
"images/this_is_country.jpg" 

 ];

var my_status = [ 

"COUNTRY: Country Greats ~ Various Artists (3 CDs)", 
"COUNTRY: Country Outlaws ~ Various Artists (3 CDs)", 
"COUNTRY: Dolly Parton ~ Legends Series (3 CDs)", 
"COUNTRY: Don Williams ~ The Ties That Bind (3 CDs)", 
"COUNTRY: Eddy Arnold ~ Greatest Hits (3 CDs)", 
"COUNTRY: Freddy Fender ~ The Hits (3 CDs)", 
"COUNTRY: Gene Pitney ~ The Hits (3 CDs)", 
"COUNTRY: Glen Campbell ~ Rhinestone Cowboy (3 CDs)", 
"COUNTRY: Hank Williams ~ Lovesick Blues (3 CDs)", 
"COUNTRY: Hank Williams ~ Move It On Over (3 CDs)", 
"COUNTRY: I Love You Because - Various Artists (3 CDs)", 
"COUNTRY: Johnny Cash ~ Ring Of Fire (3 CDs)", 
"COUNTRY: Merle Haggard ~ Greatest Hits (3 CDs)", 
"COUNTRY: Patsy Cline - Walkin' After Midnight (3 CDs)", 
"COUNTRY: Patsy Cline ~ Crazy (3 CDs)", 
"COUNTRY: Stanley Bros & Clinch Mountain Boys ~ I'm A Man Of Constant Sorrow (3 CDs)", 
"COUNTRY: This Is Country ~ Various Artists (3 CDs)"  

 ];

var speed = 8000;
var index = -1;
var an_imagepic = -1;
var an_image = new Image();
	an_image.src = my_image[an_imagepic];
var my_timeout;
function spinMe(){
        index++, an_imagepic++;
	if ((index >= my_image.length) && (index >= my_link.length)) 
	{index = 0, an_imagepic = 0;}
	window.document.the_form.the_image.src = my_image[an_imagepic];
	window.document.the_form.the_status.value = my_status[index];
       	my_timeout = setTimeout("spinMe();", speed);
if ((navigator.appName == "Microsoft Internet Explorer") || ((navigator.appName == "Netscape") && (parseFloat(navigator.appVersion) > "4.6")))
{window.document.the_form.start.style.color = "#FFFFFF";
window.document.the_form.start.style.background = "#000000";
window.document.the_form.stop.style.color = "#FFFFFF";
window.document.the_form.stop.style.background = "#000000";
window.document.the_form.view_songs.style.color = "#FFFFFF";
window.document.the_form.view_songs.style.background = "#000000";
}}
function theLink(){
	window.open(my_link[index]);}
