﻿/***********************************************
* Rollover background-image button- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var buttontarget = ""

//if (document.images){
//after=new Image()
////Enter image path of second image (for preloading purposes):
//after.src="second.jpg"
//}

function change2(e, image) {
    var el = window.event ? event.srcElement : e.target
    if (el.tagName == "INPUT" && el.type == "button")
        el.style.backgroundImage = "url" + "('" + image + "')"
}

function jumpto2(url) {
    if (buttontarget == "")
        window.location = url
    else if (buttontarget == "_new")
        window.open(url)
    else
        parent[buttontarget].location = url
}

function rollover(e, image) {
    e.style.backgroundImage = "url" + "('" + image + "')";
}

function image_rollover(e, image) {
    e.src = image;
}

