a = new Array();

function preloadImages(){

i = 1; s = 0; s2 = 0; done = false;
itag = new Object();

	while(!done){
	itag = eval("document.images['n" + i + "']");

	
		if (itag){
		s = 0;
		s2 = itag.src.lastIndexOf('-');
		imgName = itag.src.substring(s,s2);
		a[i-1] = new Image(itag.width,itag.height); 
		a[i-1].src = imgPre + imgName + imgPostOn;
		a[i-1][0] = new Array();
		a[i-1][0] = new Image(itag.width,itag.height);
		a[i-1][0].src = imgPre + imgName + imgPostOff;
		i++;
		}else{
		done = true;
		}	
	}
}

function on(i) {

		imgTag = "n" + i;
		document [imgTag].src = a[i-1].src;
		return;
}

function off(i) {
		imgTag = "n" + i;
		document [imgTag].src = a[i-1][0].src;
		return;
}


function popIt(theFile,wName,windowW,windowH,scrolling){

	popLeft = 50;
    popTop = 0;
    
	
    if (wName == null)
    {
        wName = 'pop';
    }
    if (scrolling == null){
    scrolling = "auto";
    }
    

    var popWindow = window.open(theFile,'pricewin','width='+windowW+',height='+windowH+',top='+popTop+',left='+popLeft+',scrollbars='+scrolling+',statusbar=no,toolbar=no,resizable=yes');

}