﻿/// <reference path="JQuery/jquery-1.3.2-vsdoc2.js" />

function InitClientScript() {
    $('.HomeThumb').hover(ShowColour, HideColour);
};

$(document).ready(function() {
    InitClientScript();
    document.body.setAttribute('oncontextmenu', 'return false;');
});

function ShowColour() {
    var event_obj = arguments[0];
   // $(this).find(".HomeThumbText")[0].style.color = "#33ccff";
    if ($(this).find(".HomeThumbColour").length > 0) {
        if ($(this).find(".HomeThumbColour")[0].style.display == "" || $(this).find(".HomeThumbColour")[0].style.display == "none") {
            $(this).find(".HomeThumbColour").slideDown('fast');
        }
    }

}

function HideColour() {
    var event_obj = arguments[0];
   // $(this).find(".HomeThumbText")[0].style.color = "#808080";
    $(this).find(".HomeThumbColour")[0].style.color = "#33ccff";
    if ($(this).find(".HomeThumbColour").length > 0) {
            $(this).find(".HomeThumbColour").fadeOut('fast');
    }

}

//function ShowColour() {
//    var event_obj = arguments[0];

//    if ($(this).find(".HomeThumbLeft").length > 0) {
//        if ($(this).find(".HomeThumbLeft")[0].currentStyle.display == "none") {
//            $(this).find(".HomeThumbLeft").show("slide", { direction: "left" }, 200);
//        }
//    }
//    if ($(this).find(".HomeThumbRight").length > 0) {
//        if ($(this).find(".HomeThumbRight")[0].currentStyle.display == "none") {
//            $(this).find(".HomeThumbRight").show("slide", { direction: "right " }, 200);
//        }
//    }

//}

//function HideColour() {
//    var event_obj = arguments[0];
//    if ($(this).find(".HomeThumbLeft").length > 0) {
//        if ($(this).find(".HomeThumbLeft")[0].currentStyle.display == "block") {
//            $(this).find(".HomeThumbLeft").hide("slide", { direction: "left" }, 200);
//        }
//    }

//    if ($(this).find(".HomeThumbRight").length > 0) {
//        if ($(this).find(".HomeThumbRight")[0].currentStyle.display == "block") {
//            $(this).find(".HomeThumbRight").hide("slide", { direction: "right " }, 200);
//        }
//    }
//}

