var imgButtonSearch = new Image();
var imgButtonSearchOver = new Image();
var imgButtonGo = new Image();
var imgButtonGoOver = new Image();
var imgButtonSubmit = new Image();
var imgButtonSubmitOver = new Image();
var imgButtonRegister = new Image();
var imgButtonRegisterOver = new Image();
var imgButtonSaveChanges = new Image();
var imgButtonSaveChangesOver = new Image();
var imgButtonUpdate = new Image();
var imgButtonUpdateOver = new Image();
var imgButtonPurchase= new Image();
var imgButtonPurchaseOver = new Image();
var imgButtonAdd = new Image();
var imgButtonAddOver = new Image();


imgButtonGo.src=jqueryFilesPath+"/global/images/graphics/button-go.gif";
imgButtonGoOver.src=jqueryFilesPath+"/global/images/graphics/button-go-hover.gif";
imgButtonSubmit.src = jqueryFilesPath+"/global/images/graphics/button-submit.gif";
imgButtonSubmitOver.src=jqueryFilesPath+"/global/images/graphics/button-submit-hover.gif";
imgButtonSearch.src=jqueryFilesPath+"/global/images/graphics/button-search.gif";
imgButtonSearchOver.src=jqueryFilesPath+"/global/images/graphics/button-search-hover.gif";
imgButtonRegister.src=jqueryFilesPath+"/global/images/graphics/button-register.gif";
imgButtonRegisterOver.src=jqueryFilesPath+"/global/images/graphics/button-register-hover.gif";
imgButtonSaveChanges.src=jqueryFilesPath+"/global/images/graphics/button-savechanges.gif";
imgButtonSaveChangesOver.src=jqueryFilesPath+"/global/images/graphics/button-savechanges-hover.gif";
imgButtonUpdate.src=jqueryFilesPath+"/global/images/graphics/button-update.gif";
imgButtonUpdateOver.src=jqueryFilesPath+"/global/images/graphics/button-update-hover.gif";
imgButtonAdd.src=jqueryFilesPath+"/global/images/graphics/button-add.gif";
imgButtonAddOver.src=jqueryFilesPath+"/global/images/graphics/button-add-hover.gif";
imgButtonPurchase.src=jqueryFilesPath+"/global/images/graphics/button-purchase.gif";
imgButtonPurchaseOver.src=jqueryFilesPath+"/global/images/graphics/button-purchase-hover.gif";




$(document).ready(function(){

$("#submitButton").hover(function()
   {
    $(this).attr("src",imgButtonSubmitOver.src)
   }
   ,function()
   {
    $(this).attr("src",imgButtonSubmit.src)
    }
  )

$("#logonButton").hover(function()
   {
    $(this).attr("src",imgButtonGoOver.src)
   }
   ,function()
   {
    $(this).attr("src",imgButtonGo.src)
    }
  )

$("#registerButton").hover(function()
   {
    $(this).attr("src",imgButtonRegisterOver.src)
   }
   ,function()
   {
    $(this).attr("src",imgButtonRegister.src)
    }
  )


$("#searchButton").hover(function()
   {
    $(this).attr("src",imgButtonSearchOver.src)
   }
   ,function()
   {
    $(this).attr("src",imgButtonSearch.src)
    }
  )

$("#savechangesButton").hover(function()
   {
    $(this).attr("src",imgButtonSaveChangesOver.src)
   }
   ,function()
   {
    $(this).attr("src",imgButtonSaveChanges.src)
    }
  )

$("#updateButton").hover(function()
   {
    $(this).attr("src",imgButtonUpdateOver.src)
   }
   ,function()
   {
    $(this).attr("src",imgButtonUpdate.src)
    }
  )


$(".addButton").hover(function()
   {
    $(this).attr("src",imgButtonAddOver.src)
   }
   ,function()
   {
    $(this).attr("src",imgButtonAdd.src)
    }
  )


$("#purchaseButton").hover(function()
   {
    $("#purchaseButton img").attr("src",imgButtonPurchaseOver.src)
   }
   ,function()
   {
    $("#purchaseButton img").attr("src",imgButtonPurchase.src)
    }
  )


$("#mailThis").hoverIntent(function(){
$("#supplierToolTip").text($("#mailThis img").attr("alt")).fadeIn("fast")
}
,function(){$("#supplierToolTip").fadeOut("fast")}
)

$("#printThis").hoverIntent(function(){
$("#supplierToolTip").text($("#printThis img").attr("alt")).fadeIn("fast")}
,function(){$("#supplierToolTip").fadeOut("fast")}
)

$("#pdfThis").hoverIntent(function(){
$("#supplierToolTip").text($("#pdfThis img").attr("alt")).fadeIn("fast")}
,function(){$("#supplierToolTip").fadeOut("fast")}
)

});