//script for newsletter subscription

var video_ad_flag = true;
function handleMouseDown()
{
	if(video_ad_flag)
	{
		var x = document.createElement('iframe');
		x.setAttribute("src","/common/article-video-ad.html");
		x.setAttribute("width","350");
		x.setAttribute("height","280");
		x.setAttribute("frameborder","0");
		x.setAttribute("scrolling","0");
		document.getElementById('video_ad').appendChild(x);
	}
}
function invokeLatestVideo()
{
	var self_url = document.location.href;
        self_url = self_url.replace('http://living.oneindia.in/','');
	var tag_name = '';
        var pageURL = "/scripts/cms/index.php?action=tag-video&tag="+tag_name;
        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;

}
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 showDiv(){
	if(document.getElementById('addImg') && document.getElementById('videoImg'))
	{
		document.getElementById('addImg').style.display = 'block';
		document.getElementById('videoImg').style.display = 'none';
	}
}
function hideDiv(id){
	if(document.getElementById('addImg') && document.getElementById('videoImg'))
	{
		video_ad_flag = false;
		document.getElementById('videoImg').style.display = 'block';
		document.getElementById('addImg').style.display = 'none';
		//if(document.getElementById('video_ad'))
		//	document.getElementById('video_ad').innerHTML = '';
	}
}





// moving ad down at some interval
function shiftAdDown( section )
{
	if(document.getElementById('content_portion'))
	{
		document.getElementById('content_portion').style.display = 'block';
	}
	
	return;
}
// 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 #AF2159';
			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 #AF2159';
		}
		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://living.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');
	}
	
}



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;
}
	/*var self_url = document.location.href;
    if(self_url == 'http://living.oneindia.in/beauty/')
	{
    
        var referrer = document.referrer;
        if(referrer != '')
        {
		alert(referrer);
            var query = document.referrer.substring(document.referrer.indexOf('?')+1);
        }
    }*/
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;
var pre_color = '';

function fileUpload(form, div_id)
{
	var qry_str='',sel_str,image_property;
	var JSONobject = '';
	var action_url = '/scripts/cms/fileupload.php';
	var iframe = document.createElement("iframe");
	iframe.setAttribute("id","upload_iframe");
	iframe.setAttribute("name","upload_iframe");
	iframe.setAttribute("width","0");
	iframe.setAttribute("height","0");
	iframe.setAttribute("border","0");
	iframe.setAttribute("style","width: 0; height: 0; border: none;");

	form.parentNode.appendChild(iframe);
	window.frames['upload_iframe'].name="upload_iframe";

	iframeId = document.getElementById("upload_iframe");

	var eventHandler = function()  
	{
		if (iframeId.detachEvent)
			iframeId.detachEvent("onload", eventHandler);
		else
			iframeId.removeEventListener("load", eventHandler, false);

		if (iframeId.contentDocument) {
			data = iframeId.contentDocument.body.innerHTML;
		} else if (iframeId.contentWindow) {
			data = iframeId.contentWindow.document.body.innerHTML;
		} else if (iframeId.document) {
			data = iframeId.document.body.innerHTML;
		}
		document.getElementById(div_id).innerHTML = data;

		// Del the iframe...
		setTimeout('iframeId.parentNode.removeChild(iframeId)', 250);
	}

	if (iframeId.addEventListener)
		iframeId.addEventListener("load", eventHandler, true);
	if (iframeId.attachEvent)
		iframeId.attachEvent("onload", eventHandler);

	form.setAttribute("target","upload_iframe");
	form.setAttribute("action", action_url);
	form.setAttribute("method","post");
	form.setAttribute("enctype","multipart/form-data");
	form.setAttribute("encoding","multipart/form-data");

	form.submit();

	//document.getElementById(div_id).innerHTML = "Uploading...";
	document.getElementById(div_id).innerHTML = '<img id="loading" src="/images/loading.gif" width="20" height="20">';
	//form.setAttribute('action','index.php');
}

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,cur_color,new_color,default_color )
{
	var color = '';
        var content_slide = '';
        var bg = '',arrow = '';
        var tab_id = '';
        content_slide = "rightslide_";
        tab_id = "clicktab_";
        bg = "bg_";
        arrow = "arrow_";
        color = 'color_';
	
	if(pre_color == '')
		pre_color = default_color;

        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).style.backgroundColor = new_color;
                document.getElementById(arrow+right_cur_id).style.color = '#FFFFFF';
                document.getElementById(arrow+right_cur_id).style.backgroundColor = new_color;
		document.getElementById(arrow+right_cur_id).style.backgroundImage = "url(/img/arrow-down.gif)";
		document.getElementById(arrow+right_cur_id).style.backgroundRepeat = 'no-repeat';
		document.getElementById(arrow+right_cur_id).style.backgroundPosition = 'left center';
		document.getElementById(color+right_cur_id).style.backgroundColor = new_color;
        }
        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).style.backgroundColor = cur_color;
                document.getElementById(arrow+right_pre_id).style.backgroundColor = cur_color;
                document.getElementById(color+right_pre_id).style.backgroundColor = pre_color;                
		document.getElementById(arrow+right_pre_id).style.backgroundImage = "url(/img/brn-arrow-side.gif)";
                document.getElementById(arrow+right_pre_id).style.color = '#AB2E36';
		document.getElementById(arrow+right_pre_id).style.backgroundPosition = 'left center';
		document.getElementById(arrow+right_pre_id).style.backgroundRepeat = 'no-repeat';
        }
        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).style.backgroundColor = cur_color;
		        document.getElementById(arrow+right_pre_id).style.backgroundColor = cur_color;
		        document.getElementById(color+right_pre_id).style.backgroundColor = pre_color;       
			document.getElementById(arrow+right_pre_id).style.backgroundImage = "url(/img/brn-arrow-side.gif)";
                	document.getElementById(arrow+right_pre_id).style.color = '#AB2E36';
			document.getElementById(arrow+right_pre_id).style.backgroundRepeat = 'no-repeat';
			document.getElementById(arrow+right_pre_id).style.backgroundPosition = 'left center';
                }

        }

        right_pre_id = right_cur_id;
	pre_color = new_color;

        return;
}
function checkUserPresence()
{
	var pageURL = "/scripts/cms/getArticleDetails.php?type=user_info&source_url="+window.location.href;
        var status = AjaxRequest.get(
               {
                       'url':pageURL
                       ,'onSuccess':function(req){
                                       content = req.responseText;
					//alert(content);
                                        if( content.length > 0 )
                                        {
                                                document.getElementById('user_info').innerHTML = content;
                                        }

                               }
                       ,'onError':function(req){ document.getElementById('user_info').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 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 )
					{
						if(document.getElementById('did-u-miss'))
							document.getElementById('did-u-miss').innerHTML = content;
					}
                                       
                               }
                       ,'onError':function(req){ document.getElementById('did-u-miss').innerHTML = '';}
               }
       );

	return;

}


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&tag_index="+index+"&category_name="+category_name;
	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 showTopics()
{
        var body_content = '';
        var new_content = '', patt = '';
        var topics = '',tag_arr = '',story_content = '';
        body_content = document.getElementsByTagName('div');
        for( var x in body_content )
        {
                if( body_content[x].className == 'article_middle_width' )
                {
                        story_content = body_content[x].innerHTML;
                        var strpos = story_content.indexOf('Tags:');
                        var nst = parseInt(strpos)+13;
                        if(strpos == -1 )
                        {
                                strpos = story_content.indexOf('Topics:');
                                nst = parseInt(strpos)+15;
                        }

                        var endpos = story_content.indexOf("</p>",nst);
                        filter_content = strip_tags(story_content.substring(nst,endpos));
                        tag_arr = filter_content.split(',');
                        for( var tag in tag_arr )
                        {
                                patt = trim(tag_arr[tag]);
                                patt = '/'+patt+'/gi';

                                if( story_content.match(eval(patt)) && story_content.match(eval(patt)).length > 1 )
                                {
					return;
					var tag_val = trim(tag_arr[tag]).replace(/\s+/gi,'-');
                                        patt = trim(tag_arr[tag]);
                                        patt = '/'+patt+'/i';

                                        new_content = '<span style="color:blue;"><a href="/search.html?topic='+tag_val+'" style="text-decoration:none;">'+trim(tag_arr[tag])+'</a></span>';

                                        story_content = story_content.replace(eval(patt),new_content);
                        		body_content[x].innerHTML = story_content; //filter_content;
                                }
                        }
                }
        }
}
function fetchRelatedStories()
{
        var self_url = document.location.href;
	//if(self_url.match(/\/temp\//) != null )
	//{
		var tag_content = document.getElementById('tag_output').innerHTML;
		var pattern = /<a(.*)href="\/search\.html\?topic=(.*)"(.*)>(.*)<\/a>/;
		var values = tag_content.match(pattern);
		/*if(document.getElementById('related_story_heading'))
		{
			var heading = document.getElementById('related_story_heading').innerHTML;
			document.getElementById('related_story_heading').innerHTML = values[4]+' '+heading;			
		}*/
		if(document.getElementById('related_stories'))
		{
			var tag_output = document.getElementById('related_stories').innerHTML;
			if(document.getElementById('stories_container'))
			{
				document.getElementById('stories_container').innerHTML = tag_output;
			}
		}
	//}
}
// Javascript Trim() function
function trim(str){
    if (str == null){return ("");}
          return str.replace(/(^\s+)|(\s+$)/g,"");
}
//                //Strip html tags
function strip_tags( str ){
return str.replace(/<\/?[^>]+>/gi, '');
}
//
// Function to submit article vote ends




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){ }
        }
    );
  return status;
}
  
	

			
//For flowers.oneindia promo
function loadSplFlowers() {
    var pageURL = "/scripts/cms/flower-special-promo.php";
    var status = AjaxRequest.get(
        {
            'url':pageURL,
            'onSuccess':function(req){ document.getElementById('flower_spl_holder').innerHTML = req.responseText; }, 'onError':function(req){ }
        }
    );
  return status;
}




