var currentUrl='http://www.chakpak.com/videos?appName=mov&synd=orkut&gadgetId=825074004667&ownerId=03725848051702213090&client_session_id=15316674&?mid=0&domain=http://kcmsjcavo7hrauhaj6bg3rrfvntpd4ql.a.orkut.gmodules.com&parent=http://www.orkut.co.in&viewerAccessKey=ZjBFgrCwwjVeLGiOp3hj5mN55CYC&mid=0&viewerId=03725848051702213090&restore_saved_action_state=true';
var LOGIN_URL="/cpl/register?registrationStep=-1&nextStep=13&returnUrl=http%3A%2F%2Fwww.chakpak.com%2Fvideos%3FappName%3Dmov%26synd%3Dorkut%26gadgetId%3D825074004667%26ownerId%3D03725848051702213090%26client_session_id%3D15316674%26%3Fmid%3D0%26domain%3Dhttp%3A%2F%2Fkcmsjcavo7hrauhaj6bg3rrfvntpd4ql.a.orkut.gmodules.com%26parent%3Dhttp%3A%2F%2Fwww.orkut.co.in%26viewerAccessKey%3DZjBFgrCwwjVeLGiOp3hj5mN55CYC%26mid%3D0%26viewerId%3D03725848051702213090%26restore_saved_action_state%3Dtrue"
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
var loggedIn = true;
var console = console || {};
console.log = console.log || function(msg) {};
-->
Get Bollywood Online, Latest Indian Movies & Bollywood Updates on Chakpak.com-->
body, div, ul, li, input, select, textarea, p, td, h1, h2, h3 {
color:#444444;
font-family:Verdana,Arial,sans-serif;
font-size:11px;
margin:0pt;
padding:0pt;
}
body {
width:750px;
margin:5px;
padding:5px;
}
.tiny_text {
font-size:9px; !important
}
.actionlink.tiny_text {
font-size:9px; !important
}
bold strong {
color:#777777;
}
.content_box {
color:#8C8C8C;
font-size:11px;
margin-bottom:7px;
margin-top:10px;
}
div.innerwhite div.content_area {
background-color:#FFFFFF !important;
}
div.listbox div.content_area {
background-color:#FFFFFF !important;
}
.content_box a {
color:#02679C;
text-decoration:none;
}
.list_item0 {
background-color:#EFF7FF;
border:1px solid #ffffff;
padding:5px;
}
.listbox .highlight {
background-color:#EFF7AA;
border:1px solid #ccffff;
}
.list_item1 {
background-color:#EFF7FF;
border:1px solid #ffffff;
padding:5px;
}
.content_box bold, .content_box strong{
color:#444444;
}
.box_header {
color:#777777;
font-family:Verdana,Arial,sans-serif;
font-size:11px;
margin:0pt;
padding:0pt;
}
.box_header h2 {
border-bottom:1px solid #D9E6F7;;
padding-bottom:2px;
font-size:11px;
color:#444444;
}
.content_filters {
color:#6666ff;
font-family:Verdana,Arial,sans-serif;
font-size:10px;
margin:0pt;
}
.content_filters a{
padding:0pt;
padding-top:5px;
padding-bottom:5px
}
.content_area {
background-color:#EFF7FF;
padding:5px;
margin-top:1px;
overflow-x:hidden;
}
.col1 {
float:left;
width:48%;
}
.col2 {
margin-left:10px;
float:right;
width:48% ;
}
.col3 {
float:left;
width:32%;
overflow:hidden;
}
.col4 {
margin-left:20px;
float:right;
width:65% ;
}
.col5 {
float:left;
width:65%;
}
.col6 {
margin-left:10px;
float:right;
width:32% ;
}
.profile_notif_box {
background-color:#e4e4fc;
border: 1px solid #c5c5fc;
padding:5px;
font-size:14px;
}
.notif_box {
background-color:#EFF7FF;
border: 1px solid #c5c5fc;
padding:5px;
font-size:14px;
}
os_environment=true; //defined in chakpak.js
var addjs="";
function executeJSInOSEnvironment(js) {
//return executeJSInOSEnvironment_POLLING_BASED(js);
return executeJSInOSEnvironment_OSFrameCall(js);
}
/**************************************************************/
//Polling based app frame to os functions - not used
/**************************************************************/
//not used currently - polling based approach not required
var executeCallNumber=-1;
function createIFrame(url) {
var frameElem = document.createElement("iframe");
var callElemId='app-to-opensocial_call';
var callElemName='app-to-opensocial_call_name';
frameElem.setAttribute("id", callElemId);
frameElem.setAttribute("name", callElemName);
frameElem.setAttribute("width", "1px");
frameElem.setAttribute("height", "1px");
frameElem.setAttribute("src", url);
var frameContainer = document.getElementById('call_iframes_div');
frameContainer.innerHTML = "";
frameContainer.appendChild(frameElem);
setTimeout(function () {
frameElem.setAttribute("id", "ead");
frameElem.setAttribute("name", "fasdfas");
frameElem.setAttribute("src","about:blank");
alert('going to remove frameElem '+frameContainer.innerHTML);
}
,"10000");
}
function executeJSInOSEnvironment_POLLING_BASED(js) {
executeCallNumber++;
console.log('js to execute '+js);
//alert(js);
var handleSuccess=function (response) {
var key=response.responseText;
var url='http://kcmsjcavo7hrauhaj6bg3rrfvntpd4ql.a.orkut.gmodules.com/gadgets/proxy?output=html&url='+
'http%3A%2F%2Fwww.chakpak.com%2Fcpl%2Fapptooscall%3Fkey%3D'+key;
var isFF=navigator.appName.lastIndexOf('Netscape')>=0;
isFF=false;
var isIE=!isFF;
if (isIE ) {
//for IE, use object creation/destruction to communicate
//alert(url);
createIFrame(url);
return;
} else if (isFF) {
var callElemId='app-to-opensocial_call';
console.log(callElemId+":"+document.getElementById(callElemId).name);
var callElem=document.getElementById(callElemId);
document.getElementById(callElemId).src = url;
console.log(callElemId+" outerHTML :"+document.getElementById(callElemId).outerHTML);
setTimeout(function () {
callElem.setAttribute("src","about:blank");
alert('going to remove frameElem '+callElem.innerHTML);
}
,"10000");
//alert(document.getElementById(callElemId).outerHTML) ;
console.log(url);
return;
}
};
var handleFailure=function (o) {
alert('failure :'+o.statusText);
alert('async failure :'+o.responseText);
} ;
var callback =
{
success:handleSuccess, failure:handleFailure, argument:['foo','bar']
};
var storeServerUrl='http://www.chakpak.com/cpl/store';
var storeServerParam={'operation':'push','data':js};
storeServerParam['type']='LOGGED_IN_USER_ACTIVITY';
var window_location=""+window.location;
if (window_location.indexOf('localhost')>=0) {
//this is dev environment, cant make a direct call to chakpak.com , hence
storeServerParam['url']=storeServerUrl;
storeServerParam['domain'] = 'os';
storeServerParam['type']='LOCALHOST';
storeServerUrl='http://localhost:8080/cpl/proxy';
}
//alert(storeServerUrl);
//neatPrintObject(storeServerParam);
sendPostData(storeServerUrl,storeServerParam,callback);
//alert(document.getElementById('app-to-opensocial_call').src);
}
/**************************************************************/
//END - Polling based app frame to os functions - not used
/**************************************************************/
function executeJSInOSEnvironment_OSFrameCall(js) {
executeCallNumber++;
console.log('js to execute '+js);
//alert(js);
var handleSuccess=function (response) {
var key=response.responseText;
//in case type is auto key, it would return the key to be executed in iframe
if (key && key>=0) {
//this is not used now ! - otherwise need to change chakpak.com to the host of the document --
var url='http://kcmsjcavo7hrauhaj6bg3rrfvntpd4ql.a.orkut.gmodules.com/gadgets/proxy?output=html&url='+
'http%3A%2F%2Fwww.chakpak.com%2Fcpl%2Fapptooscall%3Fkey%3D'+key;
var callElemId='app-to-opensocial_call';
console.log(callElemId+":"+document.getElementById(callElemId).name);
var callElem=document.getElementById(callElemId);
document.getElementById(callElemId).src = url;
console.log(callElemId+" outerHTML :"+document.getElementById(callElemId).outerHTML);
console.log(url);
return;
}
};
var handleFailure=function (o) {
console.log('failure :'+o.statusText);
console.log('async failure :'+o.responseText);
} ;
var callback =
{
success:handleSuccess, failure:handleFailure, argument:['foo','bar']
};
//var storeServer='http://www.chakpak.com/cpl/';
var storeServer='http://'+document.location.host+'/cpl/'; //some of the pages may not be served from www.chakpak.com but instead from box4 directly. ajax can be called to box4 only then
var storeName='js-store';
var window_location=""+window.location;
var storeServerParam={'operation':'push','data':js};
storeServerParam['type']='AUTO_KEY';
if (js.indexOf("requestCreateActivity")>=0) { //feeds must go for server side processing( for throttling etc) - hack now
storeServerParam['type']='LOGGED_IN_USER_ACTIVITY';
storeName='feed-store';
} else { //this is type for normal javascript
storeServerParam['type']='PUSH_TYPE_SESSION_DATA';
}
storeServerParam['client_session_id']='15316674';
storeServerParam['user_id']=4478162;
storeServerParam['appName']='mov';
//for localhost use the local store (except in case of AUTO_KEY which can work fine from the server)
if (window_location.indexOf('localhost')>=0 && storeServerParam['type']!='AUTO_KEY') {
storeServer='http://www.chakpak.com/cpl/';
}
storeServerParam['domain']='orkut'; //concepts of login vary by domain
var storeServerUrl=storeServer+storeName;
if (window_location.indexOf('localhost')>=0 && storeServerParam['type']=='AUTO_KEY') {
//this is dev environment, cant make a direct call to chakpak.com , hence proxy it thru local
storeServerParam['url']=storeServerUrl;
storeServerParam['domain'] = 'os';
// storeServerParam['type']='LOCALHOST';
storeServerUrl='http://www.chakpak.com/cpl/proxy';
}
//alert(storeServerUrl);
//neatPrintObject(storeServerParam);
sendPostData(storeServerUrl,storeServerParam,callback);
//alert(document.getElementById('app-to-opensocial_call').src);
}
function pushActivity(activityId) {
var handleSuccess=function (response) {
console.log('success pushed activity to server');
};
var handleFailure=function (o) {
console.log('possible failure in pushing activity:'+o.statusText);
} ;
var callback =
{
success:handleSuccess, failure:handleFailure, argument:['foo','bar']
};
var activityTitle=getInnerHTML(activityId+"_title_id");
var activityBody=getInnerHTML(activityId+"_body_id");
var storeServerUrl='/cpl/ldummy';
var storeServerParam={'forward':'set_session_variables','activityTitle':activityTitle,'activityBody':activityBody};
sendPostData(storeServerUrl,storeServerParam,callback);
}
function sendActivityStream(activityName,activityBody,additionaljs) {
//control of whether to push the acitivity is with the server, no neeed of any check here now
var title=getInnerHTML(activityName+'_title_id');
var updateEventId=document.getElementById(activityName+'_update_event_id');
if (updateEventId) {
updateEventId=updateEventId.value;
console.log('feed id '+updateEventId);
}
if (title) {//try to fetch the activity from the html itself . if found override, otherwise use the originals
var body=getInnerHTML(activityName+'_body_id');
activityName=title;
activityBody=body;
}
var activityParams={};
activityParams['title']=activityName;
if (activityBody) {
activityParams['body']=activityBody;
}
/*activityName=activityName.replace(/ /g,"SPA");
//alert(activityParams);
activityParams=activityParams.toJSONString();
activityParams=activityParams.replace(/ /g,"SPA");
activityParams=activityParams.replace(//g,"GTA");
*/
//alert(activityParams);
//activityParams=activityParams.replace(/ /g,"SPA");
//alert(activity);
var sendFeedAckJs='';
if (updateEventId) {
sendFeedAckJs="sendAckFeedUpdate("+updateEventId+");";
}
var js = "var activity=opensocial.newActivity(" + activityParams.toJSONString() + ");" +
"opensocial.requestCreateActivity(activity,opensocial.CreateActivityPriority.HIGH);console.log('pushed activity');"+
sendFeedAckJs
;
if(additionaljs!=null && additionaljs!="undefined"){
js+=additionaljs;
}
executeJSInOSEnvironment(js);
}
/*
function sendEmail(subject,msg,tolist) {
var params = [];
params[opensocial.Message.Field.TITLE]=subject;
var body=msg;
var message = opensocial.newMessage(body, params);
var recipient =tolist;
if(tolist==null && tolist=="undefined"){
opensocial.DataRequest.Group.VIEWER_FRIENDS;
}
opensocial.requestSendMessage(recipient, message);
}
*/
function gotoCanvas(url) {
initWaitPopup('Loading App...');
executeJSInOSEnvironment("gotoCanvas('" + url + "');");
}
function getBodyHeight() {
var body = document.getElementsByTagName('body')[0];
var height = 900;
if (body) {
//this stopped working - todo figure out why, till then choose the max
if (window.ActiveXObject) { //IE
height = body.scrollHeight;
} else {
height = body.offsetHeight;
}
/*if (!body.scrollHeight) {
height=body.offsetHeight;
} else if (!body.offsetHeight) {
height=body.scrollHeight;
} else if (body.scrollHeight>body.offsetHeight) {
height=body.scrollHeight;
} else {
height=body.offsetHeight;
}*/
}
return height;
}
function adjustHeight() {
var height = getBodyHeight();
var iframeHeight=height;
if (height> 600) { //add buffer to height
iframeHeight = height+ 100;
} else if (iframeHeight > 300) {
iframeHeight = height+ 50;
} else {
iframeHeight = height+ 20;
}
//var gadgetHeight = iframeHeight + 10;
var gadgetHeight = height ;
iframeHeight= height ;
//alert(getBodyHeight()+":"+height);
// alert('s:o:c'+body.scrollHeight+":"+body.offsetHeight+":"+body.clientHeight);
executeJSInOSEnvironment(
"gadgets.window.adjustHeight(" + gadgetHeight + ");"+
"document.getElementById('content_iframe_id').setAttribute('height', '" + iframeHeight + "px');" +
"document.getElementById('content_iframe_id').style.height='" + iframeHeight + "px';"
);
//executeJSInOSEnvironment("gadgets.window.adjustHeight("+height+");");
}
function pushFunctionAtWindowLoad(f,ms) {
var prevLoad=window.onload;
window.onload=function () {
f();
setTimeout(prevLoad,ms);
}
}
.smalltext {
font-size: 9px !important;
}
window.onload=function () {
adjustHeight();
}
home
my reviews(0)
-->
seen(0)
-->
want to see(0)
-->
Wallpapers
-->
Videos
-->
Quiz
-->
MTM
Books
Movie trailers
Esha Deol
A WEDNESDAY
Chand Sa Roshan
HELLO | NEW
Kidnap -
Dostana
Roadside.Romeo(
Abhishek