function SampleToolTip(){
var _divToolTip = document.getElementById("ctl00_cphContent_stToolTip_divToolTip");
var _divTitle = document.getElementById("ctl00_cphContent_stToolTip_divTitle");
var _tdDescription = document.getElementById("ctl00_cphContent_stToolTip_tdDescription");
var _tdPrice = document.getElementById("ctl00_cphContent_stToolTip_tdPrice");
var _tdIndustry = document.getElementById("ctl00_cphContent_stToolTip_tdIndustry");
var _tdSampleType = document.getElementById("ctl00_cphContent_stToolTip_tdSampleType");
var _trFileSize = document.getElementById("ctl00_cphContent_stToolTip_trFileSize");
var _tdFileSize = document.getElementById("ctl00_cphContent_stToolTip_tdFileSize");
var _trURL = document.getElementById("ctl00_cphContent_stToolTip_trURL");
var _tdURL = document.getElementById("ctl00_cphContent_stToolTip_tdURL");

this.show = function(e, strTitle, strDescription, strPrice, strIndustry, strSampleType, strFileSize, strUrl){
_divTitle.innerHTML = strTitle;
_tdDescription.innerHTML = strDescription;
_tdPrice.innerHTML = strPrice;
_tdIndustry.innerHTML = strIndustry;
_tdSampleType.innerHTML = strSampleType;

if(strFileSize.length > 0){ //file
_tdFileSize.innerHTML = strFileSize;
_trFileSize.style.display = "block";
_trURL.style.display = "none";
}else{ //remote source
_tdURL.innerHTML =strUrl;
_trURL.style.display = "block";
_trFileSize.style.display = "none";
}	

_divToolTip.style.display = "block";
positionToolTip(e, _divToolTip);
}

this.hide = function(){
_divToolTip.style.display = "none";
}
}

function SampleThumbScroller(aryThumb){
var _this = this;
var _aryThumb = aryThumb;
var _divThumbs = document.getElementById("ctl00_cphContent_pmMarquee_divThumbs");
var _intThumbCount = aryThumb.length;
var _intThumbWidth = 130; 
var _intTimerID = 0;
var _intLeft = 0;
var _intNextIndex = 0;

this.start = function(){
_intTimerID = window.setInterval("_sts.scrollRight()", 40);
}

this.stop = function(){
window.clearInterval(_intTimerID);
}

this.scrollRight = function(){
_intLeft--;
_divThumbs.style.left = _intLeft.toString() + "px";

if(_intLeft % _intThumbWidth == 0){
_aryThumb[_intNextIndex].style.left = ((_intLeft * -1) + (_intThumbCount * _intThumbWidth) - _intThumbWidth).toString() + "px";
_intNextIndex++;

if(_intNextIndex == _intThumbCount)
_intNextIndex = 0; 
}
}
}

