" str += "
" str += "
"; str += "
" + title.name + "
"; str += "
"; str += "
"; str += ""; str += title.name; str += "

"; if(title.shortDescription == null) { } else{ str += title.shortDescription; } str += "
" str += "

"; } str += "
"; wrapper.innerHTML += str; setTimeout("Shadowbox.init();",1250); } else if("Carousel" == "Carousel") { var wrapper = document.getElementById("ctl00_ContentPlaceHolder1_Carousel1 wrap"); var str = "
    "; for (var i = 0; i
    "; str += title.name; str += "
    "; str += "
    "; /*str += title.name; str += "||Short Desc:||"; str += title.shortDescription; str += "||Long Desc:||"; str += title.longDescription; str += "||ID:||"; str += title.id; str += "||videostillurl:||" + + '';*/ } str += "
"; wrapper.innerHTML += str; jQuery('#ctl00_ContentPlaceHolder1_Carousel1').jcarousel(); var text = ""; if (jsonData["items"].length == 0) { text = "0 Videos"; document.getElementById("wrap").style.display = "none"; } else if (jsonData["items"].length == 1) { text = "1 Video"; } else { text = jsonData["items"].length + " videos"; } document.getElementById("ctl00_ContentPlaceHolder1_Carousel1 counter").innerHTML = text; setTimeout("Shadowbox.init();",1250); } }