function adPlacer()
{
	var img_ad = '';
	if(document.getElementById('newsletter_ad_container') && document.getElementById('newsletter_ad_loader'))
	{
		img_ad = document.getElementById('newsletter_ad_loader').innerHTML;
		document.getElementById('newsletter_ad_container').innerHTML = img_ad;
	}
	if(document.getElementById('article_mid_google_loader') && document.getElementById('article_mid_google'))
	{
		img_ad = document.getElementById('article_mid_google_loader').innerHTML;
		document.getElementById('article_mid_google').innerHTML = img_ad;
	}
}

function invokeLatestVideo()
{
        var pageURL = "/scripts/cms/index.php?action=tag-video";
        var status = new AjaxRequest.get(
               {
                       'url':pageURL,
                       'onSuccess':function(req2){
                                        var content = req2.responseText;
                                        if( content.length > 0 )
                                        {
                                                if(document.getElementById('video_on_tag'))
                                                   document.getElementById('video_on_tag').innerHTML = content;
                                        }

                               },
                       'onError':function(req2){
                                        }
               }
        );
        return;

}
//script for header navigation
var prev_link_id = '',prev_nav_id = '',global_prev_nav_id = '';
function invokeSubnavigation(thisid,action)
{

	var link_id = thisid.id;
	var nav_id = 'parent_'+link_id;
	if(action == 'onmouseover')
	{
		if(document.getElementById(nav_id))
		{
			document.getElementById(link_id).style.backgroundColor='#ffffff';
			document.getElementById(link_id).style.borderBottom='none';
			document.getElementById(nav_id).style.display = 'block';
		}
		if(document.getElementById(prev_nav_id) && (prev_nav_id != nav_id))
		{
			document.getElementById(prev_link_id).style.borderBottom='1px solid #BE2931';
			document.getElementById(prev_link_id).style.backgroundColor='#ffffff';
			document.getElementById(prev_nav_id).style.display = 'none';

		}
		prev_nav_id = nav_id;
		prev_link_id = link_id;		
		//alert(prev_nav_id+'-'+prev_link_id);
	}
	else
	{
		link_id = global_prev_nav_id;
		nav_id = 'parent_'+link_id;
		document.getElementById(link_id).style.backgroundColor='#ffffff';	
		document.getElementById(link_id).style.borderBottom='none';
		if(document.getElementById(prev_link_id) && (prev_link_id != link_id))
		{
			document.getElementById(prev_link_id).style.backgroundColor='#ffffff';
			document.getElementById(prev_link_id).style.borderBottom='1px solid #BE2931';
		}
		if(document.getElementById(nav_id))
			document.getElementById(nav_id).style.display = 'block';
		if(document.getElementById(prev_nav_id) && (prev_nav_id != nav_id))
			document.getElementById(prev_nav_id).style.display = 'none';

		prev_nav_id = nav_id;
		prev_link_id = link_id;

	}
	return;
}

function setNavigationDefault()
{
	var self_url = document.location.href;
        self_url = self_url.replace('http://entertainment.oneindia.in/','');
        var cat_names = self_url.split('/');
        var category = cat_names[0];
	global_prev_nav_id = category;
	if(document.getElementById(category))
	{

		invokeSubnavigation(document.getElementById(category),'onmouseover');
	}
	
}




//script for newsletter subscription



function selectTextById()
{
	if(document.getElementById('email').value == 'Enter email id')
		document.getElementById('email').select()
}
function selectTextByIdname()
{
	if(document.getElementById('username').value == 'Your Name')
		document.getElementById('username').select()
}

function checkById(){
	var name=document.getElementById('username').value;
	
	//var nameFilter= "/^[a-zA-Z0-9_-\.]+$/";
	if (!name.match(/^[a-zA-Z0-9_\-\. ]+$/) || name == "Your Name") {
	       alert("Please enter a valid name.\n");
	       return false;
	}
	
        if(!document.getElementById('email').value.match(/^[\w\_\-\.]+\@[\w\_\-\.]+\.[\w\_\-\.]+$/)){ 
            alert('Please enter correct email id');
            return false;
        }
            return true;
}

function postform(act,form){
   form.action1.value=act;
   form.method='post';
   if(check()){
      form.submit();
      return true;
   }else{
      return false;
   }
}

function postformById(act,form){
   form.action1.value=act;
   form.method='post';
   if(checkById()){
      form.submit();
      return true;
   }else{
      return false;
   }
}

function selecttext()
{
document.newsletter_subscribeform.email.select()
}
//script for newsletter subscription
function selectTextById()
{
	if(document.getElementById('email').value == 'Enter email id')
		document.getElementById('email').select()
}


//news letter script

function placeLeftImage()
{
        var adcontent='';
        if(document.getElementById('left_ad_below_img'))
        {
                adcontent=document.getElementById('left_ad_below_img').innerHTML;
                if(document.getElementById('article_newsletter'))
                        document.getElementById('article_newsletter').innerHTML= adcontent;
        }
        return;
}

function changeFontSize(type){
        var tar_class;
        switch(type){
            case 'small':
                tar_class = 'small';
                break;
            case 'medium':
                tar_class = 'medium';
                break;
            case 'large':
                tar_class = 'large';
                break;
        }
        document.getElementById('story').className=type;
    }


	var upnext_cat_id = 1;
function navigatePrevStories(navigation,record_id)
{
	return;
        var self_url = document.location.href;
        var pageURL = "/scripts/cms/getArticleDetails.php?record_id="+record_id+"&type=prev_story&source_url="+self_url;
        var status = new AjaxRequest.get(
               {
                       'url':pageURL,
                       'onSuccess':function(req2){
                                        var content = req2.responseText;
                                        if( content.length > 0 )
                                        {
                                                if(document.getElementById('previous_story'))
                                                   document.getElementById('previous_story').innerHTML = content;
                                        }

                               },
                       'onError':function(req2){
                                                if(document.getElementById('previous_story'))
                                                        document.getElementById('previous_story').innerHTML = '';
                                        }
               }
        );

        return;
}

function navigateNextStories(navigation,record_id)
{
	return;
        var self_url = document.location.href;
        var pageURL = "/scripts/cms/getArticleDetails.php?record_id="+record_id+"&type=next_story&source_url="+self_url;
        var status = new AjaxRequest.get(
               {
                       'url':pageURL,
                       'onSuccess':function(req1){
                                        var content = req1.responseText;
                                        if( content.length > 0 )
                                        {
                                                if(document.getElementById('next_story'))
                                                        document.getElementById('next_story').innerHTML = content;
                                        }

                               },
                       'onError':function(req1){
                                                if(document.getElementById('next_story'))
                                                        document.getElementById('next_story').innerHTML = '';
                                        }
               }
        );

        return;
}

	
	
var cur_id,pre_id;
var right_cur_id,right_pre_id;



function showSlide( id)
{
	var content_slide = '';
	var tab_id = '';
	var cur_class = '',pre_class = '';

	content_slide = "contentslide_";
	tab_id = "linktab_";
	cur_class = "onclick_red";
	pre_class = "onclick_blue";

        cur_id = id;
        if(document.getElementById(content_slide+cur_id))
        {
                document.getElementById(content_slide+cur_id).style.display = 'block';
                document.getElementById(tab_id+cur_id).className = cur_class;

        }
        if( cur_id != pre_id )
        if(document.getElementById(content_slide+pre_id))
        {
                document.getElementById(content_slide+pre_id).style.display = 'none';
                document.getElementById(tab_id+pre_id).className = pre_class;
        }

        else
        {
                pre_id = '1';
                if( cur_id != pre_id )
                {
                        document.getElementById(content_slide+pre_id).style.display = 'none';
                        document.getElementById(tab_id+pre_id).className = pre_class;
                }

        }


        pre_id = cur_id;

        return;
}

function showRightSlide( id )
{
	var content_slide = '';
	var bg = '',arrow = '';
	var tab_id = '';

	content_slide = "rightslide_";
	tab_id = "clicktab_";
	bg = "bg_";
	arrow = "arrow_";

        right_cur_id = id;
        if(document.getElementById(content_slide+right_cur_id))
        {
                document.getElementById(content_slide+right_cur_id).style.display = 'block';
		document.getElementById(bg+right_cur_id).className = "display_bg";
		document.getElementById(arrow+right_cur_id).className = "display_arrow";

        }
        if( right_cur_id != right_pre_id )
        if(document.getElementById(content_slide+right_pre_id))
        {
                document.getElementById(content_slide+right_pre_id).style.display = 'none';
		document.getElementById(bg+right_pre_id).className = "normal_bg";
		document.getElementById(arrow+right_pre_id).className = "normal_arrow";
        }

        else
        {
                right_pre_id = '1';
                if( right_cur_id != right_pre_id )
                {
                        document.getElementById(content_slide+right_pre_id).style.display = 'none';
			document.getElementById(bg+right_pre_id).className = "normal_bg";
			document.getElementById(arrow+right_pre_id).className = "normal_arrow";
                }

        }


        right_pre_id = right_cur_id;

        return;
}

function invokeDidUMiss( category_id ,category_name) // for the category_id
{
		upnext_cat_id = category_id;
		return;
       var pageURL = "/scripts/cms/getArticleDetails.php?category_id="+category_id+"&type=did-u-miss&category_name="+category_name;
       var status = AjaxRequest.get(
               {
                       'url':pageURL
                       ,'onSuccess':function(req){
                                       content = req.responseText;
					if( content.length > 0 )
					{
						document.getElementById('did-u-miss').innerHTML = content;
					}
                                       
                               }
                       ,'onError':function(req){ document.getElementById('did-u-miss').innerHTML = '';}
               }
       );

	return;

}

function showRelatedTopics()
{
	if(document.getElementById('tags_container'))
	{
		document.getElementById('tags_container').style.display = 'none';
		var tag_output = document.getElementById('tags_container').innerHTML;

		if(document.getElementById('tag_output'))
		{
			document.getElementById('tag_output').innerHTML = tag_output;
		}
	}
}


function invokeOnLine( html_id)
{
	if(document.getElementById(html_id))
		html_id = html_id;
	else
		html_id = html_id.id;


	var index = document.getElementById(html_id).selectedIndex;

	var story_tag = document.getElementById(html_id).options[index].text;

	var self_url = window.location.href;
	var category_name = self_url.split('/')[3];

	var pageURL = "/scripts/cms/getArticleDetails.php?tag_name="+story_tag+"&type=latest-story&category_name="+category_name+"&tag_index="+index;

	var status = AjaxRequest.get(
			{
			'url':pageURL
			,'onSuccess':function(req){
			content = req.responseText;
			if( content.length > 0 )
			{
			document.getElementById('latest_story').innerHTML = content;
			}

			}
			,'onError':function(req){ document.getElementById('latest_story').innerHTML =''; }
			}
			);


	return;
}



// script for retweet starts

(function(){

window.RetweetJS = {
	// Your Bit.ly Username
	bitly_user: "retweetjs",

	// Your Bit.ly API Key
	// Found here: http://bit.ly/account
	bitly_key: "R_6287c92ecaf9efc6f39e4f33bdbf80b1",

	// The text to replace the links with
	//link_text: (/windows/i.test( navigator.userAgent) ? "&#9658;" : "&#9851;") +
	//	"&nbsp;Retweet",
        //
	link_text: "<img src='/img/tweet.jpg' border='0'/>&nbsp;<font style='vertical-align:top;'>RETWEET</font>",

	// What # to show (Use "clicks" for # of clicks or "none" for nothing)
	count_type: "none",

	// Tweet Prefix text
	// "RT @jeresig " would result in: "RT @jeresig Link Title http://bit.ly/asdf"
	prefix: "",

	// Style information
	styling: "a.retweet { font: 11px Helvetica,Arial; color: #000; text-decoration: none; border: 0px; }" +
		"a.retweet span { color:#0066CC; font-family:Gautami,Pothana2000,Arial;text-decoration:none;}"+
		"a.vert { display: block; text-align: center; font-size: 16px; float: left; margin: 4px; }" +
		"a.retweet strong.vert { display: block; margin-bottom: 4px; background: #F5F5F5; border: 1px solid #EEE; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; padding: 3px; }" +
		"a.retweet span.vert { display: block; font-size: 12px; margin-left: 0px; }"
};
		//"a.retweet span { color: #FFF; background: #94CC3D; margin-left: 2px; border: 1px solid #43A52A; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; padding: 3px; }" +

//////////////// No Need to Configure Below Here ////////////////

var loadCount = 1;

// Asynchronously load the Bit.ly JavaScript API
// If it hasn't been loaded already
if ( typeof BitlyClient === "undefined" ) {
	var head = document.getElementsByTagName("head")[0] ||
		document.documentElement;
	var script = document.createElement("script");
	script.src = "http://bit.ly/javascript-api.js?version=latest&login=" +
	//script.src = "/common/js/javascript-api.js?version=latest&login=" +
		RetweetJS.bitly_user + "&apiKey=" + RetweetJS.bitly_key;
	script.charSet = "utf-8";
	head.appendChild( script );

	var check = setInterval(function(){
		if ( typeof BitlyCB !== "undefined" ) {
			clearInterval( check );
			head.removeChild( script );
			loaded();
		}
	}, 10);

	loadCount = 0;
}

if ( document.addEventListener ) {
	document.addEventListener("DOMContentLoaded", loaded, false);

} else if ( window.attachEvent ) {
	window.attachEvent("onload", loaded);
}

function loaded(){
	// Need to wait for doc ready and js ready
	if ( ++loadCount < 2 ) {
		return;
	}

	var elems = [], urlElem = {}, hashURL = {};

	BitlyCB.shortenResponse = function(data) {
		for ( var url in data.results ) {
			var hash = data.results[url].userHash;
			hashURL[hash] = url;

			var elems = urlElem[ url ];

			for ( var i = 0; i < elems.length; i++ ) {
				elems[i].href += hash;
			}

			if ( RetweetJS.count_type === "clicks" ) {
				BitlyClient.stats(hash, 'BitlyCB.statsResponse');
			}
		}
	};

	BitlyCB.statsResponse = function(data) {
		var clicks = data.results.clicks, hash = data.results.userHash;
		var url = hashURL[ hash ], elems = urlElem[ url ];

		if ( clicks > 0 ) {
			for ( var i = 0; i < elems.length; i++ ) {
				var strong = document.createElement("strong");
				strong.appendChild( document.createTextNode( clicks + " " ) );
				elems[i].insertBefore(strong, elems[i].firstChild);

				if ( /(^|\s)vert(\s|$)/.test( elems[i].className ) ) {
					elems[i].firstChild.className = elems[i].lastChild.className = "vert";
				}
			}
		}

		hashURL[ hash ] = urlElem[ url ] = null;
	};

	if ( document.getElementsByClassName ) {
		elems = document.getElementsByClassName("retweet");
	} else {
		var tmp = document.getElementsByTagName("a");
		for ( var i = 0; i < tmp.length; i++ ) {
			if ( /(^|\s)retweet(\s|$)/.test( tmp[i].className ) ) {
				elems.push( tmp[i] );
			}
		}
	}

	if ( elems.length && RetweetJS.styling ) {
		var style = document.createElement("style");
		style.type = "text/css";

		try {
			style.appendChild( document.createTextNode( RetweetJS.styling ) );
		} catch (e) {
			if ( style.styleSheet ) {
				style.styleSheet.cssText = RetweetJS.styling;
			}
		}

		document.body.appendChild( style );
	}

	for ( var i = 0; i < elems.length; i++ ) {
		var elem = elems[i];

		if ( /(^|\s)self(\s|$)/.test( elem.className ) ) {
			elem.href = window.location;
			/// copy from here
			var meta = document.getElementsByTagName("meta");
			for( var x in meta )
			{
				if(meta[x]["name"] == "title")
					elem.title = meta[x]["content"];
			}
			if(elem.title.length <= 0 )
				elem.title = document.title;
			// end of copy
		}

		var origText = elem.title || elem.textContent || elem.innerText,
			href = elem.href;

		elem.innerHTML = "<span>" + RetweetJS.link_text + "</span>";
		elem.title = "";
		elem.href = "http://twitter.com/home?status=" +
			encodeURIComponent(RetweetJS.prefix + origText + " http://bit.ly/");

		if ( urlElem[ href ] ) {
			urlElem[ href ].push( elem );
		} else {
			urlElem[ href ] = [ elem ];
			BitlyClient.shorten(href, 'BitlyCB.shortenResponse');
		}
	}
	if(document.getElementById('retweet_holder'))
	{
                var elems = document.getElementById('retweet_holder');
                document.getElementById("retweet_holder2").href = elems.href;
	}


}

})();
//script for retweet ends




function activateTab(id, mod, no_tabs) {
    for (var i=1; i<=no_tabs; i++) {
        if  (p_o(mod+"_tc"+i)) {
            if (id == i) {
                p_o(mod+"_tc"+i).style.display = "block";
                p_o(mod+"_t"+i).className= "active";
            } else {
                p_o(mod+"_tc"+i).style.display = "none";
                p_o(mod+"_t"+i).className = "";
            }
        }
    }
}

var toFcs=null;
function p_o(o){return document.getElementById(o);}
function showTab(did,cid,cback){
    if(did==null)return false;
    var div=p_o(did);
    var tab=p_o(cid);
    if(tab==null)return false;
    var tabs=div.childNodes;
    for(var i=0;i<tabs.length;i++){
        if(tabs[i].nodeType==1&&tabs[i]!=tab){
            tabs[i].className='dn';
        }
    }
    tab.className='di';
    if(cback!=null)eval(cback);
    fcs();
}
function mkTab(did,cid,htm){
    var div=p_o(did);
    if(div==null)return;
    var newT=false;
    var tab=p_o(cid);
    if(!tab){
        tab=document.createElement('div');
        tab.setAttribute('id',cid);
        newT=true;
    }
    tab.className='dn';
    tab.innerHTML=htm;
    if(newT)div.appendChild(tab);
}
function allLI(arg) {
    if (p_o(arg)) {
        if (tablisttag==null)tablisttag='li';
        var x = p_o((arg)).getElementsByTagName(tablisttag).length;
        while (x>0) {
            if (p_o((arg+x)))p_o((arg+x)).className="";
            if (p_o((arg+'a'+x)))p_o((arg+'a'+x)).className="";
            x--;
        }
    }
}
function selTab(arg,i){
    if(arg!=null){
        allLI(arg);
        lidx = (arg +i);
        liadx = (arg+'a'+i);
    }
    if(arg == 'r'){
        p_o(lidx).className="curr";
    }else if(arg!=null){
        if (p_o(lidx))p_o(lidx).className="over";
        if (p_o(liadx)){
            if(dlscheme[i]){
                p_o(liadx).className="sel "+ dlscheme[i];
            }else{
                p_o(liadx).className="sel";
            }
        }
    }
}
function pGet(url,i,arg,id,cback,frce,fcsId){
    var cid=id+i;
    toFcs=fcsId;
    if((frce!=null&&frce)||showTab(id,cid,cback)==false){
        var uid=(new Date()).getTime();
        url+='&uid='+uid+'&cid='+cid;
        if(arg!=null)url+='&targ='+arg;
        if(i!=null)url+='&tid='+i;
        if(cback!=null)url+='&cback='+escape(cback);
    }else{
        selTab(arg,i);
    }
}
function fcs(id){
    if(id==null){
        if(toFcs==null)return;
        id=toFcs;
    }
    var o=p_o(id);
    toFcs=null;
    if(!o)return;
    if(o.getAttribute("tabIndex")==null){
        switch(o.nodeName.toLowerCase()){
            case 'a':
            case 'body':
            case 'button':
            case 'frame':
            case 'iframe':
            case 'img':
            case 'input':
            case 'object':
            case 'select':
            case 'textarea':
                break;
            default:
                o.setAttribute("tabIndex","-1");
                break;
        }
    }
    if(o.focus){
        if(document.all){
            o.focus();
            o.focus(); 
        }else{
            setTimeout('p_o("' + o.id + '").focus()', 0);
        }
    }
}
function ae(o,et,fn){
    var x;
    if(x=o.addEventListener)x(et,fn,0);
    else if(x=o.attachEvent){
        o['e'+et+fn]=fn;
        o[et+fn]=function(){o['e'+et+fn](window.event);}
        x('on'+et,o[et+fn]);
    }
}
function omo(id){
    s_objectID=id;
}

var colorscheme='';
var dlscheme = new Array();
var c=0;
var tkr='';
var dlini=false;
var to=null;
var pto=null;
var dlnum=1;
var nDls=1;
var dlnext = new Array();
var dldur=80;
var dllast;
var qfcs;
var troflags = new Array();
var dlpops = new Array();
var pd;
var psed=false;
var fitab='';
var pctrl_flag = 1;

function dlinit(){
    if(dlini)return;
    dlini=true;
    to=setTimeout('dlgo()',getdldur(dlnum));
    if(p_o('pt'+dlnum))pt();
}
function pt(){
    if(!pd)return;
    c++;
    if(c==pd.length)c=0;
    pto=setTimeout('pt()',3000);
}
function dlf(){
    if(pctrl_flag == 1) {
        p_o('dlpi').className="dlpi";
        pctrl_flag = 0;
    } else
        psed = true;
    return dlgo('FWD');
}
function dlb(){return dlgo('BAK')}
function dlgo(typ,num){
    var fcsId='dlC';
    dlini=true;
    dllast=dlnum;
    switch(typ){
        case 'NUM':
            if(dlnum==num)return false;
            clrT();
            dlnum=num;
            psed=true;
            break;
        case 'BAK':
            clrT();
            dlnum--;
            psed=true;
            break;
        case 'FWD':
            clrT();
            dlnum++;
            break;
        default:
            if(!psed) dlnum++;
            fcsId=null;
            break;
    }
    if(dlnum>nDls){
        dlnum=1;
    }else if(dlnum<1){
        dlnum=nDls;
    }
    if(nDls!=1){
        var pUrl = '';
        if(dlpops['dl'+dlnum]) {
            pUrl += '&dlitem='+dlpops['dl'+dlnum];
        }
        pGet('',dlnum,'dlt','dlC','dlc()',null,fcsId);
    }

    if (p_o("dyn_sqrblock")) {
        for (var i=1; i<=nDls; i++) {
            if (p_o("dl_sqr"+i)) {
                if (i == dlnum)
                    p_o("dl_sqr"+i).style.background = "#FFF";
                else
                    p_o("dl_sqr"+i).style.background = "#BABABA";
            }
        }
    }
    setPse();
    return false;
}
function dlc() {
    dlteaser();
    dlcnt();
    if(!psed){
        to=setTimeout('dlgo()',getdldur(dlnum));
    }
}
function dlcnt() {
    if (p_o('dlcount')) {
        p_o('dlcount').innerHTML = dlnum + '/' + nDls;
    }
}
function dlteaser() {
    if (p_o('dlnext')) {
        if (dlnum == nDls) {
            nextDL = 1;
        } else {
            nextDL = dlnum + 1;
        }
        if (dlnext[nextDL]) {
            p_o('dlnext').innerHTML = dlnext[nextDL];
        } else {
            p_o('dlnext').innerHTML = '';
        }
    }
}
function dlblr() {
    qfcs=0;
}
function dlfcs() {
    qfcs=1;
}
function dlp(){
    if(psed){
        psed=false;
        to=setTimeout('dlgo()',getdldur(dlnum));
    }else{
        psed=true;
        clrT();
    }
    setPse();
    return false;
}
function setPse(){
    if(!p_o('dlpi'))return;
    if(psed){
        p_o('dlpi').className="dlpi_off";
    }else{
        p_o('dlpi').className="dlpi";
    }
}





function track(id,once) {
    if(!(o=p_o(id)))return;
    if(once && troflags[id]){
        return;
    }
    var d=o.innerHTML;
    var urls=d.split(",");
    if(once)troflags[id] = 1;
}
function clrT(){
    if(to){
        clearTimeout(to);
    to=null;
    }
}

ae(window,'load',dlinit);

function getdldur(dlnum) {
    if (o=p_o('dlcyc'+dlnum)) {
        return (o.innerHTML * 1500);
    }
    return dldur;
}


  
	

function getUserCityAndCountry(sub_frm)
{
        var self_url = document.location.href;
        var pageURL = "/scripts/cms/getArticleDetails.php?type=get-city";
        var status = new AjaxRequest.get(
               {
                       'url':pageURL,
                       'onSuccess':function(req2){
									var content = req2.responseText;
									content_arr = content.split("-!@#-");
									city = content_arr[0];
									country = content_arr[1];
									document.getElementById('newsletter_city').value = city;
									document.getElementById('newsletter_country').value = country;
									sub_frm.submit();
                               },
                       'onError':function(req2){}
               }
        );

        return false;
}

//For flowers.oneindia promo
function loadFlowers() {
    var pageURL = "/scripts/cms/flower-promo.php";
    var status = AjaxRequest.get(
        {
            'url':pageURL,
            'onSuccess':function(req){ document.getElementById('flower_holder').innerHTML = req.responseText; }, 'onError':function(req){ alert('Error!\nStatusText='+req.statusText+'\nContents='+req.responseText); }
        }
    );
  return status;
}

function jsVideoCallbacks(arg) {   
     
   
    if(arg['status'] == "content_start") {
    var ventuno_id = arg['id'];
    document.getElementById('ventunovideoID').innerHTML = ventuno_id;
    var pageURL = "/scripts/cms/UpdateVentunoVideoCount.php?ventuno_id="+ventuno_id;
        var status = new AjaxRequest.get(
               {
                       'url':pageURL,
                       'onSuccess':function(req2){
                                        var content = req2.responseText;
                                        
                               },
                       'onError':function(req2){
                                        }
               }
        );
        return;
}
}

