| Line 74... |
Line 74... |
| 74 |
// Image title display
|
74 |
// Image title display
|
| 75 |
var titleIndex = imgindex;
|
75 |
var titleIndex = imgindex;
|
| 76 |
$("#" + containerID + " .modelName").text(arrTitle[titleIndex]);
|
76 |
$("#" + containerID + " .modelName").text(arrTitle[titleIndex]);
|
| 77 |
}
|
77 |
}
|
| 78 |
|
78 |
|
| - |
|
79 |
function goToVid(playerid, vidid, vidindex, arrTitle, containerID, videoType, height, width, screenTopCornerX, screenTopCornerY) {
|
| - |
|
80 |
$("#" + containerID + " .modelName").text(arrTitle[vidindex]);
|
| - |
|
81 |
|
| - |
|
82 |
var params = { allowScriptAccess: "always" };
|
| - |
|
83 |
var atts = { id: playerid };
|
| - |
|
84 |
var slideNo = containerID.replace('vtab-', '');
|
| - |
|
85 |
|
| - |
|
86 |
$('#vedioContainer' + slideNo)
|
| - |
|
87 |
.html('<div id="videoDiv' + slideNo + '"></div>')
|
| - |
|
88 |
.css('width', width + "px").css('height', height + "px");
|
| - |
|
89 |
|
| - |
|
90 |
if(videoType == "withskin") {
|
| - |
|
91 |
$('#vedioContainer' + slideNo).css({margin: '0px 0px 0px 0px'});
|
| - |
|
92 |
swfobject.embedSWF("http://www.youtube.com/v/" + vidid + "&enablejsapi=1&playerapiid=player" + slideNo, "videoDiv" + slideNo, width, height, "8", null, null, params, atts);
|
| - |
|
93 |
} else {
|
| - |
|
94 |
$('#vedioContainer' + slideNo).css({margin: screenTopCornerY + 'px 0px 0px ' + screenTopCornerX + 'px'});
|
| - |
|
95 |
swfobject.embedSWF("http://www.youtube.com/apiplayer?" + "&enablejsapi=1&playerapiid=player" + slideNo, "videoDiv" + slideNo, width, height, "8", null, null, params, atts);
|
| - |
|
96 |
}
|
| - |
|
97 |
// Following two lines will set currentvideo id for the player
|
| - |
|
98 |
var param = "currentVideoId" + playerid.substring(8,playerid.length) + "= \"" + vidid + "\"";
|
| - |
|
99 |
eval(param);
|
| - |
|
100 |
}
|
| - |
|
101 |
|
| 79 |
function goToVid(playerid, vidid, vidindex, arrTitle, containerID){
|
102 |
function goToVid_old(playerid, vidid, vidindex, arrTitle, containerID){
|
| 80 |
//alert("calling..");
|
103 |
//alert("calling..");
|
| 81 |
var titleIndex = vidindex;
|
104 |
var titleIndex = vidindex;
|
| 82 |
$("#" + containerID + " .modelName").text(arrTitle[titleIndex]);
|
105 |
$("#" + containerID + " .modelName").text(arrTitle[titleIndex]);
|
| 83 |
|
106 |
|
| 84 |
ytplayer = document.getElementById(playerid);
|
107 |
ytplayer = document.getElementById(playerid);
|