if(typeof(EZDATA) == 'undefined') { EZDATA = {}; }

ezQuery(document).ready(function(){    
    //Add click functionality to the description layovers of the more video section
    ezQuery(".ez-thumbs a",".ez-relatedVideos").each(function(){
        var thumb = ezQuery(this);
        thumb.attr("title", "");
        var desc = ezQuery(".ez-main .ez-desc", thumb.parent().parent());
        desc.bind("click", function(){
                window.location = thumb.attr("href");
        });
    });
	//dimensions for layover descriptions
    ezQuery(".ez-relatedVideos .ez-itemMod-item .ez-desc").each(function(){
        var hl = ezQuery(this);
        var tn = ezQuery(".ez-thumbs", hl.parent().parent());
        hl.css("width", (tn.width() - 10) + "px");
        hl.css("height", (tn.height() - 62) + "px");
    });
});

//Replace all specific characters in a string			
EZDATA.ReplaceAll = function(Source,stringToFind,stringToReplace) {
	var temp = Source;
    var index = temp.indexOf(stringToFind);
    while(index != -1){
        temp = temp.replace(stringToFind,stringToReplace);
        index = temp.indexOf(stringToFind);
    }
    return temp;			
}
