| Line 8... |
Line 8... |
| 8 |
// Image title display
|
8 |
// Image title display
|
| 9 |
var titleIndex = imgindex;
|
9 |
var titleIndex = imgindex;
|
| 10 |
$("#" + containerID + " .modelName").text(arrTitle[titleIndex]);
|
10 |
$("#" + containerID + " .modelName").text(arrTitle[titleIndex]);
|
| 11 |
}
|
11 |
}
|
| 12 |
|
12 |
|
| - |
|
13 |
function goToVid(playerid, vidid, vidindex, arrTitle, containerID, videoType, height, width, screenTopCornerX, screenTopCornerY) {
|
| - |
|
14 |
$("#" + containerID + " .modelName").text(arrTitle[vidindex]);
|
| - |
|
15 |
|
| - |
|
16 |
var params = { allowScriptAccess: "always" };
|
| - |
|
17 |
var atts = { id: playerid };
|
| - |
|
18 |
var slideNo = containerID.replace('vtab-', '');
|
| - |
|
19 |
|
| - |
|
20 |
$('#vedioContainer' + slideNo)
|
| - |
|
21 |
.html('<div id="videoDiv' + slideNo + '"></div>')
|
| - |
|
22 |
.css('width', width + "px").css('height', height + "px");
|
| - |
|
23 |
|
| - |
|
24 |
if(videoType == "withskin") {
|
| - |
|
25 |
$('#vedioContainer' + slideNo).css({margin: '0px 0px 0px 0px'});
|
| - |
|
26 |
swfobject.embedSWF("http://www.youtube.com/v/" + vidid + "&enablejsapi=1&playerapiid=player" + slideNo, "videoDiv" + slideNo, width, height, "8", null, null, params, atts);
|
| - |
|
27 |
} else {
|
| - |
|
28 |
$('#vedioContainer' + slideNo).css({margin: screenTopCornerY + 'px 0px 0px ' + screenTopCornerX + 'px'});
|
| - |
|
29 |
swfobject.embedSWF("http://www.youtube.com/apiplayer?" + "&enablejsapi=1&playerapiid=player" + slideNo, "videoDiv" + slideNo, width, height, "8", null, null, params, atts);
|
| - |
|
30 |
}
|
| - |
|
31 |
// Following two lines will set currentvideo id for the player
|
| - |
|
32 |
var param = "currentVideoId" + playerid.substring(8,playerid.length) + "= \"" + vidid + "\"";
|
| - |
|
33 |
eval(param);
|
| - |
|
34 |
}
|
| - |
|
35 |
|
| 13 |
function goToVid(playerid, vidid, vidindex, arrTitle, containerID){
|
36 |
function goToVid_old(playerid, vidid, vidindex, arrTitle, containerID){
|
| 14 |
//alert("calling..");
|
37 |
//alert("calling..");
|
| 15 |
var titleIndex = vidindex;
|
38 |
var titleIndex = vidindex;
|
| 16 |
$("#" + containerID + " .modelName").text(arrTitle[titleIndex]);
|
39 |
$("#" + containerID + " .modelName").text(arrTitle[titleIndex]);
|
| 17 |
|
40 |
|
| 18 |
ytplayer = document.getElementById(playerid);
|
41 |
// ytplayer = document.getElementById(playerid);
|
| 19 |
ytplayer.cueVideoById(vidid);
|
42 |
// ytplayer.cueVideoById(vidid);
|
| 20 |
// these two lines will set currentvideo id for the player
|
43 |
// these two lines will set currentvideo id for the player
|
| 21 |
var param = "currentVideoId" + playerid.substring(8,playerid.length) + "= \"" + vidid + "\"";
|
44 |
var param = "currentVideoId" + playerid.substring(8,playerid.length) + "= \"" + vidid + "\"";
|
| 22 |
eval(param);
|
45 |
eval(param);
|
| 23 |
}
|
46 |
}
|