
rolls = new Array (13);

rolls[0] = new Image(); rolls[0].src = "images/sub_top_01r.jpg";
rolls[1] = new Image(); rolls[1].src = "images/sub_top_02r.jpg";
rolls[2] = new Image(); rolls[2].src = "images/sub_top_03r.jpg";
rolls[3] = new Image(); rolls[3].src = "images/sub_top_04r.jpg";
rolls[4] = new Image(); rolls[4].src = "images/img_recipes_01r.gif";
rolls[5] = new Image(); rolls[5].src = "images/img_recipes_02r.gif";
rolls[6] = new Image(); rolls[6].src = "images/img_recipes_03r.gif";
rolls[7] = new Image(); rolls[7].src = "images/img_recipes_04r.gif";
rolls[8] = new Image(); rolls[8].src = "images/img_recipes_05r.gif";
rolls[9] = new Image(); rolls[9].src = "images/img_recipes_06r.gif";
rolls[10] = new Image(); rolls[10].src = "images/img_recipes_07r.gif";
rolls[11] = new Image(); rolls[11].src = "images/img_recipes_08r.gif";
rolls[12] = new Image(); rolls[12].src = "images/img_recipes_09r.gif";


ups = new Array (13);
ups[0] = "images/sub_top_01.jpg";
ups[1] = "images/sub_top_02.jpg";
ups[2] = "images/sub_top_03.jpg";
ups[3] = "images/sub_top_04.jpg";
ups[4] = "images/img_recipes_01.gif";
ups[5] = "images/img_recipes_02.gif";
ups[6] = "images/img_recipes_03.gif";
ups[7] = "images/img_recipes_04.gif";

ups[8] = "images/img_recipes_05.gif";
ups[9] = "images/img_recipes_06.gif";
ups[10] = "images/img_recipes_07.gif";
ups[11] = "images/img_recipes_08.gif";
ups[12] = "images/img_recipes_09.gif";

var testNS = (document.layers) ? 1:0
var testIE = (document.all) ? 1:0
var testNS6 = (document.getElementById) ? 1:0	
function swap2(img,lyr, swp) {

    if (testIE) document.images[img].src = rolls[swp].src;  //"images/arrow.gif";               
	else if (testNS) document.layers[lyr].document.images[img].src =  rolls[swp].src;
	else if (testNS6) {
		document.getElementById(lyr).document.images[img].src = rolls[swp].src; //"images/arrow.gif"; 
	}    
}

function swapBack2(img,lyr, swp) {

	if (testIE) document.images[img].src = ups[swp]; // "images/arrow_up.gif";         
	else if (testNS) document.layers[lyr].document.images[img].src = ups[swp]; //"images/arrow_up.gif"; 
	else if (testNS6) document.getElementById(lyr).document.images[img].src = ups[swp]; //"images/arrow_up.gif";   
        
}

function swapimg(img,swp) {

	 document.images[img].src = rolls[swp].src;   
}

function swapimgBack(img,swp) {

	 document.images[img].src = ups[swp]; 
    
}

