function gif_over(src) {
	src.children.tags('IMG')[0].src=src.children.tags('IMG')[0].src.replace('.gif','r.gif');
} 
function gif_out(src) {
	src.children.tags('IMG')[0].src=src.children.tags('IMG')[0].src.replace('r.gif','.gif');
}

var new_window
function display_image(img_src, img_width, img_height) {
    if (window_available()) {
        new_window.close()
    }
//**************************************************************
    var window_dimensions = "width=" + img_width + ",height=" + img_height
    new_window = window.open("","",window_dimensions)
    new_window.document.writeln('<html>')
    new_window.document.writeln('<head>')
    new_window.document.writeln('<title>')
    new_window.document.writeln('<\/title>')
    new_window.document.writeln('<\/head>')
    new_window.document.writeln('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">')
    new_window.document.writeln('<img src="' + img_src + '">')
    new_window.document.writeln('<\/body>')
    new_window.document.writeln('<\/html>')
    new_window.document.close()
    //var image_filename = img_src.substring(img_src.lastIndexOf("/") + 1)
    new_window.document.title = "photo" 
}
//***************************************************************
function window_available() {
    if (!new_window) {
        return false
    }
    else if (new_window.closed) {
        return false
    }
    else {
        return true
    }
}

function change_foto(){
	numbs = Math.round(Math.random()*1);	
	document.all.bg_left.style.backgroundImage='url("'+imgpath+'bottom/'+numbs+'.gif")';
}