Rev 1107 | Rev 2720 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
function goToImg(refimg,imgindex,img, arrTitle, containerID){//document.images[refimg].src = img[imgindex]var imgid = "#"+refimg;var img = img[imgindex];$(imgid).attr("src",img);// Image title displayvar titleIndex = imgindex;$("#" + containerID + " .modelName").text(arrTitle[titleIndex]);}function goToVid(playerid, vidid, vidindex, arrTitle, containerID, videoType, height, width, screenTopCornerX, screenTopCornerY) {$("#" + containerID + " .modelName").text(arrTitle[vidindex]);var params = { allowScriptAccess: "always" };var atts = { id: playerid };var slideNo = containerID.replace('vtab-', '');$('#vedioContainer' + slideNo).html('<div id="videoDiv' + slideNo + '"></div>').css('width', width + "px").css('height', height + "px");if(videoType == "withskin") {$('#vedioContainer' + slideNo).css({margin: '0px 0px 0px 0px'});swfobject.embedSWF("http://www.youtube.com/v/" + vidid + "&enablejsapi=1&playerapiid=player" + slideNo, "videoDiv" + slideNo, width, height, "8", null, null, params, atts);} else {$('#vedioContainer' + slideNo).css({margin: screenTopCornerY + 'px 0px 0px ' + screenTopCornerX + 'px'});swfobject.embedSWF("http://www.youtube.com/apiplayer?" + "&enablejsapi=1&playerapiid=player" + slideNo, "videoDiv" + slideNo, width, height, "8", null, null, params, atts);}// Following two lines will set currentvideo id for the playervar param = "currentVideoId" + playerid.substring(8,playerid.length) + "= \"" + vidid + "\"";eval(param);}function goToVid_old(playerid, vidid, vidindex, arrTitle, containerID){//alert("calling..");var titleIndex = vidindex;$("#" + containerID + " .modelName").text(arrTitle[titleIndex]);// ytplayer = document.getElementById(playerid);// ytplayer.cueVideoById(vidid);// these two lines will set currentvideo id for the playervar param = "currentVideoId" + playerid.substring(8,playerid.length) + "= \"" + vidid + "\"";eval(param);}