Daintree Home Toh Tuck Road

From Hikvision Guides
Jump to: navigation, search

The Daintree House is generally a leasehold development by Malaysia based developer called SP Setia and it's 99-years old. Daintree House Layout includes different type and design for you to select from. Each design is attentively developed to improve your home https://www.daintrees-residence.com/ experience and bring more comfort to you and your family. The floor plan design will deal with house owners by being more spacious. Exclusive 327 units consists of 1-4 Bedroom with Efficient designs, Elegant Quality surfaces & fittings.< New Condo Launch ='text-align:center'>

Daintree Home is the brand-new condo domestic task established by the widely known Malaysian real-estate designer, S P Setia Bhd Group with a leasehold 99-years. The property developer, S P Setia has acquired this land by putting the bid of 265 million dollars for the plot of land at 18,721.4 sq. m for Daintree condo There was a submission of 24 bids by different designers for the land which lies at the prime place. Daintree Residences is located close to numerous authentic eateries such as coffee shops which serves excellent pancakes in addition to other deserts for your factor to consider.



<style>
/*Css Required only for this page ::after Purpose - Preview of image upload._3cc*/

background-position: center center;
background-size: cover;
-webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .4);
border: 2px solid #fff;
display: inline-block;
height: 60px;
width: 60px;


/*/@media (min-width: 1024px)
div#mce_54-body
width: 510px !important;


#mce_58
display: inline-block;


div#mce_37, div#mce_38 div#mce_39
display: none;

*/

.SlideShowContainer
display: inline;
width: 100%;
position: absolute !important;


.SlideShowImage
/*position: absolute;
top: 0;
left: 0;
display: none;
border-radius: 25px;*/
border-radius: 25px;
display: block;
position: absolute;
left: 0;
margin: auto;
top: 30px;
max-width: 500px;
max-height: 500px;


.removeslideshowimage
/* display: inline-block;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
background: rgba(63, 63, 63, .5);
display: inline-block;
cursor: pointer;
padding: 6px;
cursor: pointer;
width: auto;
height: auto;
margin-right: 10px;
margin-top: 5px;*/


.removeslideshowimage:after
content: 'X';
position: absolute;
width: 18px;
height: 18px;
margin: 3px -25px;
font-family: open Sans !important;
font-size: 10pt;
cursor: pointer;
padding: 2px;
border-radius: 20px;
color: #fff;
background: #818181;
text-align: center;

</style>

<title id="Posttitle"></title>

<link href="css/IngridMsg.css" rel="stylesheet" />

<link rel="apple-touch-icon" sizes="57x57" href="http://a1.images.ingrid.ws/zcommunity/img/57-x-57.png" />

<link rel="apple-touch-icon" sizes="72x72" href="http://a1.images.ingrid.ws/zcommunity/img/72-x-72.png" />

<link rel="apple-touch-icon" sizes="114x114" href="http://a1.images.ingrid.ws/zcommunity/img/114-x-114.png" />

<link rel="shortcut icon" href="http://a1.images.ingrid.ws/zcommunity/img/favicon.ico" />

<meta name="google-site-verification" content="SvkiywoVsW9vzwMIjky7B_NSyMp3BWZUA0thPtFRifg" />

<link href="css/Blog.css" rel="stylesheet" />


<script src="http://a2.appcache.ingrid.ws/zcommunity/scripts/jquery-1.4.1.js"></script>

<script src="http://a2.appcache.ingrid.ws/zcommunity/scripts/jquery-1.9.1.js"></script>



<script type="text/javascript">
var autoSaveID = "";
var MessageIDAfterPublish = "";
var clickReceived = false;
var IsPosted = false;
var DraftMessage = "Your post has been saved to draft";
var PublishMessage = "Your post has been published successfully";
var UpdateMessage = "Your post has been updated successfully";
var ContestEntryUnverifiedMessage = "Your post has been saved successfully. Please verify your account to publish it";
var ConfirmPosttoChannel = "Your post has been published successfully. Do you want to post this to a channel?";
var PostedtoChannel = "Your post has been posted to selected channel(s) successfully";
var ConfirmDrafts = "This post has been saved another draft version.

Click OK to view or Cancel to discard the draft?";
//ConfirmDrafts = "There is a draft existing for this post.

Click OK to view or Cancel to discard the draft";
ConfirmDrafts = "There is a draft existing for this post.";
var ConfirmedPosttoChannel = false; var AttachmentType = "Contest Over";

//Public variable declaration : Purpose : Contest validation from Blog Create New Post Page.
var IsPhishing = true;
var sid = "0";
var mid = "0";
var DraftId = "0";
var walluin = "";
var useruin = "";
var BlogType = 'Blog';
var IsAuthorisedUser = 0;
var IsContestEntry = false;
var BlogNotAuthorizedTextDelete = "You don't have permission to delete this.";
var BlogNotAuthorizedText = "You don't have permission to update this blog post";
var GroupBlogNotAuthorizedText = "You don't have permission to update this group blog post";
var ResetWebsiteMenuConfirm = ""; //You need to reset the menu to include this new post. Proceed with reset?";
ResetWebsiteMenuConfirm = "Add this new item to your website menu.";

var IsDraft = "";
//var IsProcessing = false;
var IsDraftHasPostID = false;
var b3post;
var NewCubeeID = 0;
function getParameterByName(name)
var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));


if (getParameterByName('mid') == null)
GroupBlogNotAuthorizedText = "You don't have permission to create this group blog post";
//ConfirmNavigationText = "Your blog has been created successfully. Do you want to create a post?";

var editor;
$(window).load(function ()
// executes when complete page is fully loaded, including all frames, objects and images
setTimeout("GetFocus()", 1000);


// $("[aria-label='Source code']").click(function (e)
//$("body").on("click", "#mce_48", function ()
/*$("[aria-label='Source code']").bind("click", function (e)

setTimeout(function ()
//console.log();
editor = CodeMirror.fromTextArea(document.getElementById($(".code").attr("id")),
lineNumbers: true,
mode: "text/html",
matchBrackets: true
);
editor.on("change", function()
$(".code").val(editor.getValue())
);
, 1000);



);*/

);



/*$(window).load(function ()
GetValues();
);*/
$(window).load(function ()
$("#Editor_ifr").contents().find("body").css('height', 'auto');
$("#Editor_ifr").css('padding', '10px').css('box-shadow', '0px 0px 10px silver').css('width', '98%');
if (IsMobileDevice())
$("#Editor_ifr").css('width', '93%');

);
$(document).ready(function ()
if (window.top !== window.self) window.top.location.replace(window.self.location.href);
if (document.cookie.indexOf("ZCookie") == -1)
if (location.href.indexOf("localhost") > "-1"
else getParameterByName("gname") != null)

if (getParameterByName("sid") != null)
sid = getParameterByName("sid");
$("#hdnStreamID").val(sid);

if (getParameterByName("mid") != null)
mid = getParameterByName("mid");

if (getParameterByName("draftid") != null)
DraftId = getParameterByName("draftid");

if (getParameterByName("type") == "Blog")
BlogType = "Blog";

else
BlogType = "GBlog";
sid = getParameterByName("sid");
var postItems = type: 'GetGroupUINBygname', gname: getParameterByName("gname")
$.post("ZBlogHandler.ashx", postItems, function (data)
walluin = data;
$('#hdnUIN').val(data);
BindBlogs();
var postItems = type: 'CheckAuthentication', walluin: walluin
$.post("ZBlogHandler.ashx", postItems, function (data)
IsPhishing = data;
);
);



ReadPageDetails();
var bottomDivshow = false;

var blogname = getParameterByName('blogname');
$("#bloggername").html(blogname);
if (getParameterByName('theme') != null && getParameterByName('theme') != "")
var fileref = document.createElement("link")
fileref.setAttribute("rel", "stylesheet")
fileref.setAttribute("type", "text/css")
filename = "style/theme/" + getParameterByName('theme') + ".css";
fileref.setAttribute("href", filename);
if (typeof fileref != "undefined")
document.getElementsByTagName("head")[0].appendChild(fileref)



try
CheckInit();

catch (e)


LoadChannelsToddl();
/*if ($('#hdnLoggedInUserUIN').val() !=
)
$('#hdnLoggedInUserUINCurrent').val($('#hdnLoggedInUserUIN').val());*/

$(".closepreviews").click(function ()
$(".closepreviews").closest(".previewbox").remove();
);
);
function FindUrls(text) https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)
function ReadPageDetails(url)
SomeUrlArray.push(url);
var previewurl = unescape(url);
// $(".expandbtn .expandtxt").html("Expand this link");
$('#urlContent').html("<a class='previewed' href='" + previewurl + "'>" + previewurl.split('/')[2] + "</a>");
if (previewurl !== "undefined")
GetPreviewOfLink(previewurl);


function GetPreviewOfLink(SomeLink)
if (!SomeLink.match(/http/i))
SomeLink = "http://" + SomeLink;

if (ProcessedPreviewLinks[SomeLink])
ProcessPreview(SomeLink, "cached");
return;

var SomePreviewLink = PreviewServer + "showlink.php?url=" + SomeLink;
/* $.post(SomePreviewLink + "?t=" + (new Date()).getTime(), function (data)
if (data != null)
if (data.length > 0)
ProcessPreview(data);
return;


);*/
$.ajax(

url: SomePreviewLink,
type: 'GET',
secureuri: false,
data: SomePreviewLink,
beforeSend: function (XMLHttpRequest, settings)
,
complete: function ()
,
success: function (data, status)
if (data != null)
if (data.length > 0)
ProcessPreview(data, SomeLink);

// $(".expandbtn .expandtxt").html("Expand this link");
// $(".expandbtn").hide();

UrlInEditor = "";
return;


,
error: function (data, status, e)

);


var ProcessedPreviewLinks = ;
function ProcessPreview(SomeData, SomeLink)
var SomeNewdata = SomeData.replace(/ /g, "\

").replace(/\r/g, "\\r").replace(/\t/g, "\\t").replace(/\'/g, "'");
var SomeParsedData = JSON.parse(SomeNewdata);
if (SomeParsedData.status.toLowerCase() == "failure")

$(".expandbtn .expandtxt").html("Sorry, this link cannot be expanded!");
ProcessedPreviewLinks[SomeLink] = true;
setTimeout(function ()
closethis();
return (null);
, 2000);


//$("#urlContent").html(SomeString);
//var urlstring = $("#urlContent").html();

//tinyMCE.activeEditor.execCommand('mceInsertContent', false, urlstring);
return (null);

else
$(".expandbtn").hide();

var SomeLinks = $("#urlContent a"); //$(".msg a").add($(".commenttext a")); // mke it to include comments and headings etc.
//var SomeLinks = SomeLink;
for (var i = 0; i < SomeLinks.length; i++)
try
/*if (SomeLinks[i].href.replace(/\/$/, "") == SomeParsedData["result"]["url"].split("?t")[0].replace(/\/$/, "")) // a fairer check.
SomeParsedData["result"]["twitter:image"];
var SomeDefaultTitle = SomeParsedData["result"]["title"];
if (SomeDefaultTitle != null)
SomeDefaultTitle = SomeDefaultTitle;
else
SomeDefaultTitle = "";
var SomeDefaultDesciptions;
try
if (typeof (SomeParsedData["result"]["description"]) != "undefined")
SomeDefaultDesciptions = SomeParsedData["result"]["description"][0];
//SomeDefaultDesciptions = SomeDefaultTitle;

else
//SomeDefaultDesciptions = SomeParsedData["result"]["description"][0];


catch (err)

if (!SomeDefaultImage)
var SomeImages = SomeParsedData["result"]["images"];
if (SomeImages)
if (SomeImages.length > 0)
for (var j = 0; j < SomeImages.length; j++) pixel)/))
SomeDefaultImage = SomeImages[j];
break;





if (SomeDefaultImage)
if (!SomeDefaultImage.match(/http/))
SomeDefaultImage = "http://" + SomeDefaultImage;


var SomeString = "";
var FriendlyDomainName = SomeLinks[i].href.split("/").slice(2, 3);
SomeString += "
";
//SomeString += "
close
";
SomeString += "<img class='linkclose' style='width:auto !important;zoom:1.3' src='img/Close.png'>";
//SomeString += "<a class='cleanedlink' href='"+ SomeLinks[i].href +"'>" + FriendlyDomainName + "</a>";
SomeString += "
" + SomeDefaultTitle + "
";
if (SomeDefaultImage)
SomeString += "<img style='width:300px' src='" + SomeDefaultImage + "' class='previewimage'/>";

if (SomeDefaultDesciptions)
SomeString += "
" + SomeDefaultDesciptions + "
" + "
";

SomeString += "

 

";
//tinymce.activeEditor.setContent(tinymce.activeEditor.getContent() + " " + SomeString);

//tinymce.activeEditor.execCommand('mceInsertContent', false, tinymce.activeEditor.getContent() + " " + SomeString);

var beditor = tinymce.activeEditor;
var bcontent = beditor.getContent();
// bcontent = bcontent.replace(SomeLinks[i].href, SomeString);
//beditor.setContent(bcontent);
$("#urlContent").html(SomeString);
var urlstring = $("#urlContent").html();
//$("#urlContent").html(SomeString);
tinyMCE.activeEditor.execCommand('mceInsertContent', false, urlstring);

//added by Soumya, on 2015, this helps to identify whether the editor content been edited
$("#divOriginalHTML").html(tinymce.activeEditor.getContent() + " " + SomeString);
$(SomeLinks[i]).append(SomeString);
$(SomeLinks[i]).addClass("linkified");
ProcessedPreviewLinks[SomeLinks[i].href] = true;
tinyMCE.activeEditor.selection.select(tinyMCE.activeEditor.getBody(), true);
tinyMCE.activeEditor.selection.collapse(false);
//

catch (err)


return (SomeParsedData);

function GetValues()
setTimeout("GetContestDetails()", 1000);
if (getParameterByName("mid") != null)
var sid = getParameterByName("mid");
$("#CreateBlogTitle").html("Edit Post"); $("#PostTo").html("Move post to Blog");
document.title = "Edit Post";
var postItems = type: 'GetPostData', mid: sid
$.post("ZBlogHandler.ashx?t=" + (new Date()).getTime(), postItems, function (data)
GetMessageDetails(data);
);

else if (getParameterByName("draftid") != null)
var sid = getParameterByName("draftid");
$("#CreateBlogTitle").html("Edit Post"); $("#PostTo").html("Move post to Blog");
document.title = "Edit Post";
var postItems = type: 'GetDraftData', mid: sid
$.post("ZBlogHandler.ashx?t=" + (new Date()).getTime(), postItems, function (data)
GetMessageDetails(data);
);

else
document.title = "New Post";
$("#CreateBlogTitle").html("Create New Post");
$(".buttondivnewpost").show();


function GetMessageDetails(data)
if (data != null) Message.substring(0, 11) == "[PollCubee:")
GetSingleCubeePointerContent(unescape(Message), tinyMCE.activeEditor);

else
$("#divPreview").html(unescape(Message));
if ($("#SlideShowContainer").length > 0)
$("#SlideShowText").html("Modify Slide Show");
$("#slideShowPreview").html($("#SlideShowContainer").html());
$("#slideShowPreview").hide();
$("#SlideShowContainer").parent().after(SlideShowIcon);
$("#SlideShowContainer").parent().remove();
$("#slideShowPreview img").wrap("
");


tinyMCE.activeEditor.setContent($("#divPreview").html());
$("#tinymce img").css("max-width", "100%");


//added by Soumya, on 2015, this helps to identify whether the editor content been edited
$("#divOriginalHTML").html($("#divPreview").html());
$("#divPreview").html();



if (getParameterByName("mid") != null)
ValidateDraftExists();

else
$(".buttondivnewpost").show();

if (b3post[0].FromUserUIN != $('#hdnLoggedInUIN').val())
$('#blognamedisplaydropdown').remove();
$('#trchannels').remove();




function RemoveSlideShowImage(ObjectImage)
$(ObjectImage).remove();

if ($("#slideShowPreview img").length == 0)
$(".slideshowupimages").hide();
$("#SlideShowText").html("Add Slide Show");




function PlaySlideShow()

if ($("#slideShowPreview img").length > 0)
var someimg = $("#slideShowPreview img");
$("#DivSlideShowPlay").html(someimg.clone());
$(".blackBG").show();

//$("#slideShowPreview img").each(function (i, e)
// $("#DivSlideShowPlay").html($(e).clone());
//);

$("#DivSlideShowPlay img").addClass("SlideShowImage");
StartSlideShow();


function StartSlideShow()
$("#divPreview").html(
);
$("#divOriginalHTML").html();
var $SlideShowImages = $("#DivSlideShowPlay").find("img");
i = 0;
function PlaySlideShow()
var next = (++i % $SlideShowImages.length);
$($SlideShowImages.get(next - 1)).fadeOut(900);
$($SlideShowImages.get(next)).fadeIn(900);

PlaySlideShow();
var interval = setInterval(PlaySlideShow, 1000);
$("#DivSlideShowPlay, .slideshowpreviewdiv").show();


function GetContestDetails()
if (getParameterByName('src') != null && getParameterByName('src') == 'ch' && getParameterByName('chval') != null)
$("#chkbx" + getParameterByName('chval')).attr('checked', true);
if ($("#HiddenContestID").val() == getParameterByName('chval'))
//In this case new contest entry is being created, below code to remove all channels other than the cotest from the list
$("#chkchannels .ChannelItemsList >.ChannelItemsListCheckGroup >input:checkbox").filter(':not(#chkbx' + getParameterByName('chval') + ')').parent().parent().remove();
//Remove border for the contest channel as it is the last one
$("#chkchannels .ChannelItemsList").css('border', 'none');
//Disable the channel to prevent uncheck
$("#chkbx" + getParameterByName('chval')).attr('disabled', 'disabled');
$("#SearchChannelText").hide();




/// START : Create New Blog Functionality

function BlogAddOrEdit()
var SomeURL = "";
var uin = $.trim($("#hdnLoggedInUIN").val());

var head = document.getElementById('txtPostHead').value; var blogType = getParameterByName('type');
var category = document.getElementById('txtPostCategory').value; var themeID = "";
postItems = blogType == "Blog" ? type: 'nbn', uin: uin, bt: blogType, hd: head, cat: category, tid: themeID, url: SomeURL  : type: 'nbn', uin: walluin, bt: blogType, hd: head, cat: category, tid: themeID, url: SomeURL ;

$.post("ZBlogHandler.ashx?t=" + (new Date()).getTime(), postItems, function (data)
if (data != null)
$(".BGDivPopUp").css('display', 'none');
$("#selectblog").append($("<option>").val(data).text(head));
//Sort Items
$("#selectblog").html($("#selectblog option").sort(function (a, b)
var ret = 0;
a = a.text.toLowerCase(); b = b.text.toLowerCase();
if (a > b)
ret = 1;
if (a < b)
ret = -1;
return ret;
));

//

$("#selectblog").val(data);

//BindBlogs(data);

);

function PostRequiredCheck()
if (document.getElementById('txtPostHead').value.trim() == "")
document.getElementById('spnPostHeadRequired').style.display = "inline";
document.getElementById('txtPostHead').focus();
return false;

else
document.getElementById('spnPostHeadRequired').style.display = "none";
document.getElementById('spnPostCategoryRequired').style.display = "none";
if (document.getElementById('txtPostCategory').value.trim() == "")
document.getElementById('txtPostCategory').value = "General";

$('.blackBG').remove();
BlogAddOrEdit();


//////////END : Create New Blog Functionality

//////////START : Create New Blog Post Functionality
//Functions to get Tags from the post content
var ExpectedNumberOfKeywords = 30;
function AvoidWords(StringContent, AvoidWordsArray)
var SplitContentArray = StringContent.split(' ');
var ResultArray = $.grep(SplitContentArray, function (value, index)
for (var WordCount = 0; WordCount < AvoidWordsArray.length; WordCount++) ing\\b
, true);
return ResultArray.slice(0, ExpectedNumberOfKeywords);

function cleanArray(actual)
var newArray = new Array();
for (var i = 0; i < actual.length; i++)
if ((actual[i].trim() != "") && (actual[i].trim().length < 10) && (actual[i].trim().length > 2))
newArray.push(actual[i]);


return newArray.toString();


function GenerateTags() /ig,
).replace(/\[/ig, ).replace(/\]/ig, ).replace(/\/ig, ).replace(/\/ig, ).replace(/\`/ig, ).replace(/\~/ig, ).replace(/\_/ig, ).replace(/\-/ig, );
var WordsExtract = AvoidWords(StringContent.toLowerCase(), SomeArray);
return cleanArray(WordsExtract);

//START : Slide Show Functions
//Changed by SREEJAYA on 13th June 2016....B3 editor supports Full URL so slideshow icon should be full URL
var SlideShowIcon = '<img src="http://b3.zcubes.com/img/blog/SlideShow.png" alt="" />';
function ReplaceSlideShow()
var SlideShowContent = $("#SlideShowTemplate").html();
SlideShowContent = SlideShowContent.replace(/SOMEID/gi, "");
var img = "";
$("#slideShowPreview img").each(function (i, e)

img = img + "<img src='" + $("#slideShowPreview img")[i].src + "' >";
//alert("img" + img);

);
//SlideShowContent = SlideShowContent.replace(/SOMECONTENT/gi, $("#slideShowPreview").html());
SlideShowContent = SlideShowContent.replace(/SOMECONTENT/gi, img);
//tinymce.activeEditor.setContent(tinymce.activeEditor.getContent().replace(SlideShowIcon, SlideShowContent));
return tinymce.activeEditor.getContent().replace(SlideShowIcon, SlideShowContent);

//END : Slide Show Functions

function ContestValidation()
$("#divPreview").html(tinymce.editors[0].getContent());

if ($.trim($("#HiddenContestID").val()) != "")
if (parseInt($.trim($("#HiddenContestID").val())) > 0)
var ContestCheckbox = $("#chkbx" + $.trim($("#HiddenContestID").val()));
if (ContestCheckbox.attr("checked") == undefined)
if (ContestCheckbox.prop("checked"))
IsContestEntry = true;

else
if (ContestCheckbox.attr("checked"))
IsContestEntry = true;




if (IsContestEntry == true)
if ($("#divPreview img").attr("src") == null)
alert("Selfie channel need an image to continue.");
return true;

else
if (AttachmentType == "")
return false;
else
if (AttachmentType.toUpperCase().indexOf($("#divPreview img").attr('src').split(".").reverse()[0].toUpperCase()) == -1 && ($("#txtBlogCategory").val() == $("#chkbx" + getParameterByName('chval')).parent().next().html()))
alert("Image file format is not valid. Please send .JPG/.JPEG/.BMP/.PNG/.GIF files.");
return true;



else
return false;


function ValidateDraft()
if (!IsEmptyEditor())

return false;

else
return true;


var SomeDraftArray;
function ValidateDraftExists()
clickReceived = false;
if ($("#btnDraft").html() == "Revert to Draft")
var postItems = type: 'CheckDrafts', MessageId: mid
$.post("ZBlogHandler.ashx?t=" + (new Date()).getTime(), postItems, function (data)
var vAnswer = false;
if (data != null && data != "") ', 2, "");

$('.dvAlertMsgText').html(ConfirmDrafts);
$('body').prepend("
");
$('#divAlertMsgB3DraftExists').show();
/*vAnswer = confirm(ConfirmDrafts);
if (vAnswer == true)

$("body").prepend("
");
$("#DraftContent").html(decodeURIComponent(SomeDraftArray[0].Message));
$("#DraftHeading").html(decodeURIComponent(SomeDraftArray[0].Heading));

$("#DraftContainer").show();

else if (vAnswer == false)

$(".buttondivnewpost").show();
*/

else
$(".buttondivnewpost").show();

);


function ViewDrafts()
$("body").prepend("
");
$("#DraftContent").html(decodeURIComponent(SomeDraftArray[0].Message));
$("#DraftHeading").html(decodeURIComponent(SomeDraftArray[0].Heading));

$("#DraftContainer").show();


function DiscardDrafts()
$(".buttondivnewpost").show();

function OverwriteWithDraftContent()
tinymce.activeEditor.setContent($("#DraftContent").html());
//added by Soumya, on 2015, this helps to identify whether the editor content been edited
$("#divOriginalHTML").html($("#DraftContent").html());
$("#txtBlogHead").val($("#DraftHeading").html());

DeleteDraftVersion();


function DeleteDraftVersion()
var postItems = type: 'OverwriteDrafts', MessageId: mid
$.post("ZBlogHandler.ashx?t=" + (new Date()).getTime(), postItems, function (data)
var vAnswer = false;
if (data != null && data != "")

);

function ValidatePublishOrUpdate()
if ($.trim($('#txtBlogHead').val()) == "")
$('#spnHeadRequired').css('display', 'inline');
$('#spnCategoryRequired, #spnContentRequired').css('display', 'none');
$('#txtBlogHead').focus();
return false;

else if (!IsEmptyEditor())
$('#spnContentRequired').css('display', 'inline');
$('#spnCategoryRequired, #spnHeadRequired').css('display', 'none');
tinyMCE.activeEditor.focus();
return false;

else if (ContestValidation())

else
$('#spnHeadRequired').css('display', 'none');
$('#spnCategoryRequired').css('display', 'none');
$('#spnContentRequired').css('display', 'none');
if ($.trim($('#txtBlogCategory').val()) == )
$('#txtBlogCategory').val('General');

return true;



var SaveType =
;
function SaveAsDraft(SomeAction)
sid = $("#selectblog").val() == null ? (getParameterByName('sid') == undefined

function SaveAsDraftAuthorisedUser(SomeAction)
IsDraft = '1';
SaveType = (SomeAction == undefined && $.trim($("#btnDraft").html()) == "Revert to Draft") ? "revertdraft" : "draft";
//Set all button pointer-events: none, to avoid click these buttons before finishing current Draft/Publish
//$(".buttondivnewpost").css("pointer-events", "none");
$("#SaveStatus").html("Draft Saving...");
$("#SaveStatus").show();
$("#divOriginalHTML").html(ReplaceSlideShow());
//CreatePreviewForBlog(tinyMCE.editors[0].getContent());
CreatePreviewForBlog($("#divOriginalHTML").html());

function PublishOrUpdate()
if (document.cookie.indexOf("ZCookie") == -1)
PromptLogin();

else
if (ValidatePublishOrUpdate() == true)
$(".buttondivnewpost").css("pointer-events", "none");
sid = $("#selectblog").val() == null ? (getParameterByName('sid') == undefined


function PublishOrUpdateAuthorisedUser()
IsDraft = ;
SaveType = $.trim($("#btnPublish").html()) == "Publish" ? "publish" : "update";
//$(".buttondivnewpost").css("pointer-events", "none");
$("#SaveStatus").html("Post Saving...");
$("#SaveStatus").show();
$("#divOriginalHTML").html(ReplaceSlideShow());
//CreatePreviewForBlog(tinyMCE.editors[0].getContent());
CreatePreviewForBlog($("#divOriginalHTML").html());

function PostBlogWithPreview(preview)
PostBlogWithPreviewOriginal(preview);
return;
if (IsDraft == "1")
PostBlogWithPreviewOriginal(preview)

else

postItems = type: "capvalidate", "g-recaptcha-response": $("#g-recaptcha-response").val() ;
//console.log(postItems);
$.post("ZBlogHandler.ashx?t=" + (new Date()).getTime(), postItems, function (data)
var dt = JSON.parse(data);
console.log(dt);
if (dt.success && IsDraft != "1")
PostBlogWithPreviewOriginal(preview)

else if (IsDraft == "1")
PostBlogWithPreviewOriginal(preview)

else if (!dt.success)
$("#SaveStatus").html("Captcha verification failed.");

else
$("#SaveStatus").html("Please click on Captcha.");

);


function isAbusive(str)
var badWords = ['kiss', 'masturbate', 'blowjobs', 'porn', 'erotic', 'sex', 'nude', 'sex-toys', 'sexy', 'sexual', 'dildo', 'adult toys', 'adult-toys', 'sex-dolls', 'sex-doll', 'intercourse toys', 'micropenis', 'vibrator', 'Live Sex Show', 'Adult webcams', 'child sex', 'penis', 'anal', 'Porn Video', 'porn movie', 'Adult Webcams', 'x-videos-porn', 'child sex', 'create a bomb', 'create bombs', 'buy a gun', 'buy guns', 'Oral sex', 'vibrator', 'online sex', 'cam sex', 'sex toy', 'sex doll', 'butt plugs', 'nude', 'foreplay', 'local couples', 'dating', 'escorts', 'escort', 'shemales', 'vigrx', 'lesbians', 'betting', 'gambling', 'sex massage', 'erotic massages', 'porno', 'lingerie', 'sextoys', 'homosex', 'homosexual', 'bbw', 'pov', 'xxx', 'phonesex', 'phone-sex', 'phone sex', 'intercourse', 'threesome', 'call girls', 'cannabis', 'marijuana', 'weed', 'cbd', 'Aurora Cannabis', 'Aurora pot', 'aurora', 'white widow', 'Grow cannabis', '안마', '섹스', '포르노', '키스', '입으로', '포르노', '에로틱한', '섹스', '나체상', '섹스토이', '섹시한', '성적', '딜도', '성인용장난감', '성인용장난감', '섹스인형', '성인형', '성교용장난감', '미소누공', '진동기', '라이브섹스쇼', '성인웹캠', '아이섹스', '음경', '항문', '포르노비디오', '포르노영화', '성인웹캠', '엑스비디오포르노', '아이섹스', '폭탄을만들다.', '폭탄을만들다.', '총을사다.', '총을사다.', '구강성교', '진동기', '온라인섹스', '캠섹스', '섹스토이', '섹스인형', '맞대기플러그', '나체상', '전희', '지역커플', '데이트', '호위하다', '호위', '시녀들', '비그', '레즈비언', '도박', '도박', '섹스마사지', '에로틱한마사지', '포르노', '란제리', '섹스토이', '동성애', '동성애자', 'bbw', '포', '트리플엑스', 'phonesex', '전화-​​섹스', '전화섹스', '교통', '삼인조', '여자전화', '대마초', '삼', '담배', 'cbd', '오로라대마초', '오로라냄비', '오로라', '하얀창문', '대마초재배', '안마', '吻', '口交', 'A片', '好色之徒', '性别', '裸体', '性玩具', '性感的', '有性', '假阳具', '成人玩具', '成人玩具', '性爱玩偶', '性爱娃娃', '性交玩具', '阴茎', '振子', '现场性爱秀', '成人摄像头', '孩子的性别', '阴茎', '肛门', '色情录像', '色情电影', '成人网络摄像头', 'X-视频色情', '孩子的性别', '制造炸弹', '制造炸弹', '买枪', '买枪', '口交', '振子', '在线性', '凸轮性', '性玩具', '性玩偶', '对接插头', '裸体', '前戏', '当地夫妇', '约会', '护送', '护送', 'shemales', '让VigRX', '女同志', '博彩', '赌博', '性按摩', '色情按摩', '色情', '女用贴身内衣裤', '性爱工具', 'homosex', '同性', 'BBW', 'POV', 'XXX', 'phonesex', '电话性爱', '手机性爱', '交往', '三人组', '应召女郎', '麻', '大麻', '野草', 'CBD', '极光大麻', '极光壶', '极光', '白寡妇', '种植大麻', '안 마', '吻', '口交', 'A片', '好色之徒', '性別', '裸體', '性玩具', '性感的', '有性', '假陽具', '成人玩具', '成人玩具', '性愛玩偶', '性愛娃娃', '性交玩具', '陰莖', '振子', '現場性愛秀', '成人攝像頭', '孩子的性別', '陰莖', '肛門', '色情錄像', '色情電影', '成人網絡攝像頭', 'X-視頻色情', '孩子的性別', '製造炸彈', '製造炸彈', '買槍', '買槍', '口交', '振子', '在線性', '凸輪性', '性玩具', '性玩偶', '對接插頭', '裸體', '前戲', '當地夫婦', '約會', '護送', '護送', 'shemales', '讓VigRX', '女同志', '博彩', '賭博', '性按摩', '色情按摩', '色情', '女用貼身內衣褲', '性愛工具', 'homosex', '同性', 'BBW', 'POV', 'XXX', 'phonesex', '電話性愛', '手機性愛', '交往', '三人組', '應召女郎', '麻', '大麻', '野草', 'CBD', '極光大麻', '極光壺', '極光', '白寡婦', '種植大麻', '안 마', 'Beso', 'mamadas', 'pornografía', 'erótico', 'sexo', 'desnudo', 'juguetes sexuales', 'sexy', 'sexual', 'consolador', 'juguetes para adultos', 'juguetes para adultos', 'muñecas sexuales', 'muñeca sexual', 'juguetes sexuales', 'micropene', 'vibrador', 'Show de sexo en vivo', 'Webcams para adultos', 'sexo infantil', 'pene', 'anal', 'Video porno', 'pelicula porno', 'Webcams para adultos', 'x-videos-porno', 'sexo infantil', 'crear una bomba', 'crear bombas', 'comprar un arma', 'comprar armas', 'Sexo oral', 'vibrador', 'sexo en línea', 'cam sex', 'juguete sexual', 'muñeca sexual', 'tapones de trasero', 'desnudo', 'los juegos previos', 'parejas locales', 'saliendo', 'escoltas', 'escolta', 'travestis', 'Vigrx', 'lesbianas', 'apuesta', 'juego', 'masaje sexual', 'masajes eroticos', 'porno', 'lencería', 'sextoys', 'homosexual', 'homosexual', 'bbw', 'pov', 'xxx', 'phonesex', 'teléfono-sexo', 'sexo telefónico', 'coito', 'grupo de tres', 'prostitutas', 'canabis', 'marijuana', 'hierba', 'CDB', 'Aurora Cannabis', 'Olla de aurora', 'Aurora', 'ventana blanca', 'Cultivar cannabis', '안마', 'beijo', 'boquetes', 'pornô', 'erótico', 'sexo', 'nu', 'brinquedos sexuais', 'sexy', 'sexual', 'dildo', 'brinquedos para adultos', 'brinquedos para adultos', 'bonecas sexuais', 'boneca sexual', 'brinquedos sexuais', 'micropênis', 'vibrador', 'Show de sexo ao vivo', 'Webcams para adultos', 'sexo infantil', 'pênis', 'anal', 'Vídeo Pornô', 'filme pornô', 'Webcams para adultos', 'x-videos-porn', 'sexo infantil', 'crie uma bomba', 'criar bombas', 'compre uma arma', 'comprar armas', 'Sexo oral', 'vibrador', 'sexo online', 'cam sex', 'brinquedo sexual', 'boneca sexual', 'butt plugs', 'nu', 'preliminares', 'casais locais', 'namoro', 'escolta', 'escolta', 'shemales', 'vigrx', 'lésbicas', 'aposta', 'jogos de azar', 'massagem sexual', 'massagens eróticas', 'porno', 'lingerie', 'sextoys', 'homossexual', 'homossexual', 'bbw', 'pov', 'xxx', 'phonesex', 'sexo por telefone', 'sexo por telefone', 'relação sexual', 'trio', 'garotas de programa', 'maconha', 'maconha', 'erva daninha', 'cbd', 'Aurora Cannabis', 'Pote de Aurora', 'aurora', 'janela branca', 'Grow cannabis', '안마'];
var isTrue = false;
if (str)
for (var i = 0; i < badWords.length; i++) \s/g,
).toLowerCase().indexOf(badWords[i]) + 1);
if (isTrue)
break;


return isTrue;

var badwordflag = false;
function BadWords()
var comments = $("#divOriginalHTML");
//for (var i = comments.length - 1; i >= 0; i--)
//console.log(i, $(comments[i]).text())
//if (isAbusive($(comments[i]).text()))
if (isAbusive(comments.text())

function HideBlogPost(cid, id, IsDraft)
//params = 'fnid=3&cid=' + cid;
//var urlDeleteBlog = "CubeeControlFunctions.aspx?" + params;
//$.post(urlDeleteBlog, function (data)
var postItems = type: 'HideFromBlogHome', ID: cid
$.post("ZBlogHandler.ashx", postItems, function(data)
if (data != null)
// alert(data);
if (data == "Success")
///location.href="BlogAdmin.aspx";
console.log("fldone");
// id.parentElement.parentElement.remove();
// LayOut();


);

function PostBlogWithPreviewOriginal(preview) );



function RedirectToBlogPost()
//alert(PublishMessage);
setTimeout(function ()
GotoBlogs('bp', IsDraft);
, 4000);


// function CheckThisPostInMenu(cid, id, IsDraft)
//
// //Ajax the current menu, compare with this id.
// //var PostItems = type: 'GetWebsiteMenuJSON', sid: getParameterByName("sid")
// var PostItems = type: 'GetMenuHtmlIfExist', sid: getParameterByName("sid")
// $.post("ZBlogHandler.ashx", PostItems, function (data)
//
// if (data != null && data != "" && data.length > 13)
//
// var js = decodeURIComponent(data);

// if (js.indexOf(cid) > -1)
//
// if (confirm('Delete this post may cause to reset the menu. Do you want to proceed?'))
//
// //alert("proceed");
// DeleteBlogPost(cid, id, IsDraft);

// if (IsApp)
//
// location.href = "menuoptions.html?app=m&zname=" + getParameterByName("zname") + "&sid=" + getParameterByName("sid") + "&src=bpv&edit=true&save=true&blogname=" + $("#spnHeading").html();
//
// else
//
// location.href = "menuoptions.html?zname=" + getParameterByName("zname") + "&sid=" + getParameterByName("sid") + "&src=bpv&edit=true&save=true&blogname=" + $("#spnHeading").html();
//
// vAnswer = false;
//
//
// else
//
// DeleteBlogPost(cid, id, IsDraft);
//



//

// );


//

function GotoBlogs(src, isDraft)
if (isDraft != 2)
var url = "";
if (getParameterByName("zname") != null)
url = "ListBlogs.aspx?zname=" + getParameterByName("zname");

if (getParameterByName("gname") != null)
url = "ListBlogs.aspx?gname=" + getParameterByName("gname");

var sid = $("#selectblog").val();
if (src == undefined)
switch (getParameterByName('src'))
case "bp":
var streamID;
if (sid == "")
streamID = $("#selectblog").val();
else
streamID = sid;
if (getParameterByName("zname") != null)
url = "BlogPost.aspx?zname=" + getParameterByName('zname') + "&sid=" + sid;
else if (getParameterByName("gname") != null)
url = "BlogPost.aspx?gname=" + getParameterByName('gname') + "&sid=" + sid;
if (isDraft == 1)
url = url + "&t=d";
break;
case "bpv":
if (getParameterByName('mid') != "" && getParameterByName('mid') != null)
if ($("#btnDraft").html() == "Save as Draft"
else if (getParameterByName('sid') != "" && getParameterByName('sid') != null)
url = "v.aspx?sid=" + sid;

break;
case "h":
url = "bloghome.htm";
break;
case "ch":
url = "Channel.aspx?ch=" + $.trim($("#chkbx" + getParameterByName('chval')).parent().next().html());
break;
default:
if (getParameterByName("zname") != null)
url = "ListBlogs.aspx?zname=" + getParameterByName('zname');
else
url = "ListBlogs.aspx?gname=" + getParameterByName('gname');
break;


else
if (getParameterByName("src") != null && getParameterByName("src") == 'ch')
url = "Channel.aspx?ch=" + $.trim($("#chkbx" + getParameterByName('chval')).parent().next().html());

if (IsApp)
location.href = url + "&app=m";

else
location.href = url;



else sid == null)
url = "ListBlogs.aspx?";
if (getParameterByName("zname") != null)
url = url + "zname=" + getParameterByName('zname');

else if (getParameterByName("gname") != null)
url = url + "gname=" + getParameterByName('gname');


else
url = "BlogPost.aspx?sid=" + sid;
if (getParameterByName("zname") != null)
url = url + "&zname=" + getParameterByName('zname');

else if (getParameterByName("gname") != null)
url = url + "&gname=" + getParameterByName('gname');



if (isDraft == '1')
url = url + "&t=d";



if (IsApp)
location.href = url + "&app=m";

else
location.href = url;




/// END : Create New Blog Post Functionality

/// START : HashTag
/*------------------Code for HashTag-------------------*/
function unique(array)
if (array != null)
return $.grep(array, function (el, index)
return index == $.inArray(el, array);
);

else
return "";


function FilterHashKeys()
var EditorContent;
var HashKeys = [];
EditorContent = tinyMCE.editors[0].getContent( format: 'text' );
//HashKeys = EditorContent.match(/#(\S+)/g);
// var Content = RemoveUnwantedKeys();

HashKeys = EditorContent.toLowerCase().match(/#([A-Za-z_][A-Za-z0-9_]*)/g);

// \B#(\w*[A-Za-z_]+\w*)

return unique(HashKeys);

function SaveHashKeys(CubeeId)
var HashkeyList = [];
HashkeyList = FilterHashKeys();

if (HashkeyList.length > 0)

var HashKeystrings = HashkeyList.join(',');


//var Keys = RemoveUnwantedKeys(HashKeystrings);


//var postItems = type: 'addhashtag', HashTag: HashKeystrings, CubeeIds: CubeeId
var postItems = type: 'addhashtag', HashTag: HashKeystrings, CubeeIds: CubeeId
$.post("Hashtag.ashx", postItems, function (data)

);


function RemoveUnwantedKeys(StringKeys) /ig, ).replace(/\[/ig, ).replace(/\]/ig, ).replace(/\/ig, ).replace(/\/ig, ).replace(/\`/ig, ).replace(/\~/ig, ).replace(/\_/ig, ).replace(/\-/ig, );

var WordsExtract = AvoidTheseWords(StringContent.toLowerCase(), SomeArray);
return cleanThisArray(WordsExtract);

var ExpectedNumberOfKeywords = 30;
function AvoidTheseWords(StringContent, AvoidWordsArray)
var SplitContentArray = StringContent.split(' ');
var ResultArray = $.grep(SplitContentArray, function (value, index)
for (var WordCount = 0; WordCount < AvoidWordsArray.length; WordCount++) able\\b
, true);
return ResultArray.slice(0, ExpectedNumberOfKeywords);

function cleanThisArray(actual)
var newArray = new Array();
for (var i = 0; i < actual.length; i++)
if ((actual[i].trim() != "") /*&& (actual[i].trim().length < 10)*/ && (actual[i].trim().length > 2))
newArray.push("#" + actual[i]);


return newArray.toString();


/*------------------------------------------------------------*/
/// END : HashTag

function GotoBlogPost()

if (IsApp)
location.href = "v.aspx?app=m&sid=" + getParameterByName('sid');

else
location.href = "v.aspx?sid=" + getParameterByName('sid');




function simulateKeyPress(character)
jQuery.event.trigger( type: 'keypress', which: character.charCodeAt(0) );


function SortByName1(x, y)
return ((x.Texts == y.Texts) ? 0 : ((x.Texts > y.Texts) ? 1 : -1));

function SortByName(a, b)
var ret = 0;
a = a.Texts.toLowerCase(); b = b.Texts.toLowerCase();
if (a > b)
ret = 1;
if (a < b)
ret = -1;
return ret;


function BindBlogs(newblogID)
var uin = $.trim($("#hdnLoggedInUIN").val());
var DefaultBlogID = "";
var DefaultBlogText = "";
var BlogListUIN =
;
BlogListUIN = getParameterByName('type') == "GBlog" ? walluin : uin;
if ($("#selectblog").children().length == 0 && (BlogListUIN != ))
postItems = getParameterByName('type') == "GBlog" ? type: 'GetGroupBlogList', uin: walluin  : type: 'GetBlogList', uin: uin ;
$.post("ZBlogHandler.ashx?t=" + (new Date()).getTime(), postItems, function (data)
if (data != null)
var select = $("#selectblog"); select.children().remove();
try
var arr = eval(data);
arr.sort(SortByName);
$(arr).each(function (index, item)
select.append($("<option>").val(decodeURIComponent(item.Value)).text(decodeURIComponent(item.Texts)));
// if (getParameterByName('zname') != "" && getParameterByName('zname') != null)
//
// if (unescape(item.Texts) == getParameterByName('zname') + "'s Blog")
// DefaultBlogID = item.Value;
//
if ($("#hdnLoggedInZName").val() != null && $("#hdnLoggedInZName").val() != "")
if (unescape(item.Texts).toLowerCase() == ($("#hdnLoggedInZName").val() + "'s Blog").toLowerCase())
DefaultBlogID = item.Value;
DefaultBlogText = $("#hdnLoggedInZName").val() + "'s Blog";



else if (getParameterByName('gname') != "" && getParameterByName('gname') != null)
if (unescape(item.Texts) == getParameterByName('gname') + "'s Blog")
DefaultBlogID = item.Value;
DefaultBlogText = getParameterByName('gname') + "'s Blog";


);

catch (e)


if (newblogID != "")
$("#selectblog").val(newblogID);
else if (sid != "" && sid != null)
$("#selectblog").val(sid);
else if (DefaultBlogID != "")
//if (getParameterByName('zname') != "" && getParameterByName('zname') != null)
/* if ($("#hdnLoggedInZName").val() != null && $("#hdnLoggedInZName").val() != "")

$("#selectblog").val(DefaultBlogID); $('#bloggername').html(getParameterByName('zname') + "'s Blog");

else if (getParameterByName('gname') != "" && getParameterByName('gname') != null)

$("#selectblog").val(DefaultBlogID); $('#bloggername').html(getParameterByName('gname') + "'s Blog");
*/
$("#selectblog").val(DefaultBlogID); $('#bloggername').html(DefaultBlogText);

else
//if (getParameterByName('zname') != "" && getParameterByName('zname') != null)
if ($("#hdnLoggedInZName").val() != null && $("#hdnLoggedInZName").val() != "")
select.prepend($("<option>").val(0).text($("#hdnLoggedInZName").val() + "'s Blog"));

else if (getParameterByName('gname') != "" && getParameterByName('gname') != null)
select.prepend($("<option>").val(0).text(getParameterByName('gname') + "'s Blog"));

$("#bloggername").remove();
$("#selectblog").val(0);

$("#hdnStreamID").val($("#selectblog").val());
sid = $("#selectblog").val();

);


function SearchBlogs()

if (IsApp)
location.href = "BlogSearch.aspx?app=m&st=default&s=" + $("#txtSearchBlog").val();

else
location.href = "BlogSearch.aspx?st=default&s=" + $("#txtSearchBlog").val();



function InitBlogCreatePop()
$('#categorySuggestion').css('display', 'none'); $('.BGDivPopUp').css('display', 'block');
$("#txtPostHead").val(""); $("#txtPostCategory").val("General");
$('body').prepend("
");
$('#txtPostHead').focus();

function eToggle()
$('#extrafields').toggle(function ()
//$("#toggle").attr('src') == "http://a3.userfiles.ingrid.ws/zcommunity/img/Blog/addPanel.png" ? $("#toggle").attr('src', 'img/Blog/hidePanel.png') : $("#toggle").attr('src', 'img/Blog/addPanel.png');
$("#toggle").attr('src') == "http://a3.userfiles.ingrid.ws/zcommunity/img/Blog/addPanel.png" ? $("#toggle").attr('src', 'http://a3.userfiles.ingrid.ws/zcommunity/img/Blog/hidePanel.png') : $("#toggle").attr('src', 'http://a3.userfiles.ingrid.ws/zcommunity/img/Blog/addPanel.png');
);

function BlogEnterKeyPressed(e)
if (e.keyCode == 13)
SearchBlogs();

// function GetSelectedChannels()
//
// var Channels = "";
// $("#chkchannels input").each(function (index, item)
//
// if ($(item).attr("checked"))
// Channels = Channels + $(item).val() + ",";
// );
// Channels = Channels.slice(0, Channels.length - 1);
// return Channels;
//
function GotoListBlogs()
if (getParameterByName("chval") != null)
if ($("#chkbx" + getParameterByName('chval')).parent().parent().children().last().length > 0)
GotoChannel($("#chkbx" + getParameterByName('chval')).parent().parent().children().last().html());

else if (getParameterByName("zname") != null)

if (IsApp)
location.href = "ListBlogs.aspx?app=m&zname=" + getParameterByName("zname");

else
location.href = "ListBlogs.aspx?zname=" + getParameterByName("zname");



else
GotoBlogs('bp', IsDraft)


function PullDropDown()
var element = $("select")[0], worked = false;
if (document.createEvent) // all browsers
var e = document.createEvent("MouseEvents");
e.initMouseEvent("mousedown", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
worked = element.dispatchEvent(e);
else if (element.fireEvent) // ie
worked = element.fireEvent("onmousedown");

if (!worked) // unknown browser / error
alert("It didn't worked in your browser.");



//Autocomplete : Clicked category to text box
function Tobox(name)
document.getElementById('txtBlogCategory').value = unescape(name);
document.getElementById('ccCategory').style.display = 'none';


function PostTobox(name)
document.getElementById('txtPostCategory').value = unescape(name);
document.getElementById('ccCategory').style.display = 'none';

//Autocomplete : Close the auto completed pop up
function closePop()
document.getElementById('categorySuggestion').style.display = 'none';
$("#categoryClose").css('display', 'none');
$("#txtBlogCategory").val("");

//Autocomplete
function AutoCompleteHandler(id)
searchkey = document.getElementById(id).value.trim();
if (searchkey ==
)
document.getElementById('ccCategory').style.display = 'none';
return;

var hasBuddy = "0";
var qString = "Mode=getCategory"
var AjaxUrl = "CategoryHandler.ashx?" + qString + "&SearchKey=" + searchkey;
$.post(AjaxUrl, function (data)
if (data != null)
//alert("call");
CategoryEval = eval(data.toString());
document.getElementById('ccCategory').style.display = 'block';
$("#categorySuggestion").css('display', 'block');
$("#categoryClose").css('display', 'block');

if (CategoryEval == null)
document.getElementById('ccCategory').style.display = 'none';

else
var code = " CATEGORYNAME ";
var length = CategoryEval.length;
$('#categories').html("");
for (var k = 0; k < length; k++)
var template = code; var cat = escape(CategoryEval[k].CategoryName); var str = template.replace(/ECATEGORYNAME/gi, cat);
str = str.replace(/CATEGORYNAME/gi, CategoryEval[k].CategoryName);
$('#categories').append(str);



else
document.getElementById('ccCategory').style.display = 'none';
);


function PostAutoCompleteHandler(id)
searchkey = document.getElementById(id).value.trim();
if (searchkey == )
document.getElementById('ccCategory').style.display = 'none';
return;

var hasBuddy = "0";

var AjaxUrl = "CategoryHandler.ashx?Mode=getCategory&SearchKey=" + searchkey;
$.post(AjaxUrl, function (data)
if (data != null)
CategoryEval = eval(data.toString());
document.getElementById('postccCategory').style.display = 'block';

$("#postcategoryClose").css('display', 'block');

if (CategoryEval == null)
document.getElementById('postccCategory').style.display = 'none';

else
var code = " CATEGORYNAME ";
var length = CategoryEval.length;
$('#Postcategories').html("");
for (var k = 0; k < length; k++)
var template = code; var cat = escape(CategoryEval[k].CategoryName);
var str = template.replace(/ECATEGORYNAME/gi, cat);
str = str.replace(/CATEGORYNAME/gi, CategoryEval[k].CategoryName);
$('#Postcategories').append(str);



else
document.getElementById('ccCategory').style.display = 'none';
);


function InformParent(id)
// This function is not using for any purpose. Purpose : To avoid error in console.


function IsEmptyEditor()
/g,
)).length > 0)
return true;

return false;


var IsFetched = false;
function LoadChannelsToddlOLD()
if (!IsFetched)
var postItems = type: 'GetChannels'
$.post("ZBlogHandler.ashx?t=" + (new Date()).getTime(), postItems, function (data) );


function LoadChannelsToddl()
if (!IsFetched)
// var postItems = type: 'GetChannels'
// $.post("ZBlogHandler.ashx?t=" + (new Date()).getTime(), postItems, function (data)
// data != "")
//
// IsFetched = true;
// $("#chkchannels").html("");
// var arr = eval(data);
// ChannelArray = arr;
// GetChannelDesign(ChannelArray);
//
// );
$.post("ChannelHandler.ashx?Type=getchannels&channelid=0&channeltype=B3User", function (data) );



function ExitNewPost() (DraftId != 0))
//
// //alert('Save This');
// //$("#divAlertMsg").html($("#B3Popup").html());

// $("#divAlertMsg").show();
// $('body').prepend("
");
//
// else
//
// //alert('Close This');
// GotoListBlogs();

//
//var ShowAlert = false;
// if ((SaveType == 'revertdraft') && ($.trim($("#divOriginalHTML").html()) != ReplaceSlideShow()))
//
// ShowAlert = true;
//
// else if ((DraftId == "0" && IsEmptyEditor())

function HideConfirmation()
$("#divAlertMsgB3NewCancel").hide();
$(".blackBG").remove();
tinyMCE.activeEditor.focus();

//Authentication check added by Soumya, on 2016October17
function DeleteDraft()
if (document.cookie.indexOf("ZCookie") == -1)
$('#divAlertMsgB3NewCancel').hide();
PromptLogin();

else
if (DraftId != 0)
sid = $("#selectblog").val() == null ? (getParameterByName('sid') == undefined
else
GotoListBlogs();



function DeleteDraftConfirmation(DraftId) ' + DraftId, 2, "");

function DeleteDraftAuthorisedUser(DraftId)

var PostItems = type: 'DeleteDraft', ID: DraftId
$.post("ZBlogHandler.ashx", PostItems, function (data)
if (data != null)
if (data == "Success")
GotoListBlogs();


);




/******************To add class linkified for inner links in editor added by Rajendu on 20170908***********************************************/
//editorctrl = false;
function WireEditorLinks()
if (tinymce.editors.length > 0)
//return;
if(tinymce.activeEditor.getContent()=="")

return;

//$(".cubeegenericeditor #Editor_ifr").contents().find('body p').linkify();
var SomeLiveEditorLinks = GetLiveLinksInEditors();
if (SomeLiveEditorLinks.length > 0)
SomeLiveEditorLinks.each(
function (i, xi)
var SomeLink = xi.href;
/*var SomeExpandedURL = ConvertToHTMLCodeIfPossible(SomeLink);
if (SomeExpandedURL.html)

MakeLinkToPreviewedHTML(xi, SomeExpandedURL.html, true);
return;

if (!SomePreviewLinks[SomeLink])

SomePreviewLinks[SomeLink] = false;

if (!SomePreviewLinks[SomeLink])


setInterval(function ()

if (editorctrl)

LaunchPreviewCalls();

, 1000);

else

GetPreviewOfLink(SomeLink);
*/

if (!$(xi).hasClass("previewed"))
$(xi).addClass("previewed linkified");
// to avoid further linkification.


);






function GetLiveLinksInEditors()
if(tinymce.activeEditor.getContent()=="")

return;

else
var SomeFindElements = [];
/*if ($(".cubeegenericeditor").length > 0)

if ($(".cubeegenericeditor").css("display") != "none")
*/
SomeFindElements = $(".textEditorDiv #Editor_ifr").contents().find('body').find("a:not(.previewed)");
/*
*/
// add comment controls also here.
return (SomeFindElements);


setInterval(function ()
WireEditorLinks();
, 3000);



/*************************************************************/

</script>

<script>
setTimeout(function ()
(function (i, s, o, g, r, a, m)
i['GoogleAnalyticsObject'] = r; i[r] = i[r] )(window, document, 'script', '//a1.appcache.ingrid.ws/zcommunity/vendor/scripts/analytics.js', 'ga');
ga('create', 'UA-5084137-12', 'zcubes.com');
ga('send', 'pageview');
, 6000);

</script>




<input id="hdnLoggedInFullName" type="hidden" value="" />

<input id="hdnLoggedInZName" type="hidden" value="" />

<input id="hdnLoggedInUIN" type="hidden" value="" />

<input id="hdnStreamID" type="hidden" value="" />

<input id="hdnUIN" type="hidden" value="" />

<input id="hdnBlogPostID" type="hidden" />

<input id="hdnIsEdit" type="hidden" />

<input id="hdnIsAuthenticated" type="hidden" value="" />

<input id="HiddenContestID" type="hidden" value="" />

<input id="HiddenContestName" type="hidden" value="" />

<input id="HiddenStreamId" type="hidden" value="" />























Blog Pattern














class="PatternThump">











<form action="AjaxBlogPhoto.aspx" target="ifrSlf" method="post" enctype="multipart/form-data">







<input type="file" id="btnFile" name="btnFile[]" multiple="" onchange1="javascript:UploadGridImage(this,this.id);" <br="" /> onchange="javascript:UploadGridImages(this,this.id,'Image');" class="browse"



style="display: none">







<input style="display: none;" type="submit" id="btnImgUpd" />







<input type="hidden" name="hidLogo" id="hidLogo" />































</form>







































































<form method="post">







<input type="hidden" id="hidSharePage" name="hidSharePage" value="Blog" />







<input type="hidden" name="ccShareType" id="ccShareType" /> <input type="hidden" name="ccImagetype" id="ccImagetype" /> <input type="hidden" name="ccFullURL" id="ccFullURL" /> <input type="hidden" name="ccFileName" id="ccFileName" /> <input type="hidden" name="ccThumbURL" id="ccThumbURL" /> <input type="hidden" name="ccMsgType" id="ccMsgType" />



























































































































































<tbody>




<tr>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
</table>













































<link href="http://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet" <br="" /> type="text/css">







<meta name="viewport" content="initial-scale=1, maximum-scale=1" />







<meta name="apple-mobile-web-app-capable" content="yes" />







<script src="http://a1.appcache.ingrid.ws/zcommunity/scripts/1.4.0/jquery.min.js" <br=""></script> type="text/javascript">







<script type="text/javascript" src="http://a1.appcache.ingrid.ws/zcommunity/tinymce/js/tinymce/tinymce.min.js?d"></script>



















<script type="text/javascript" src="http://a2.appcache.ingrid.ws/zcommunity/scripts/ajaxfileupload.js"></script>







<script type="text/javascript" src="http://a4.appcache.ingrid.ws/zcommunity/scripts/ShareContols_Editor.js?20190509"></script>







<script type="text/javascript" src="http://a3.appcache.ingrid.ws/zcommunity/scripts/jquery.endless-scroll.js"></script>







<style type="text/css">

#mce_50-body

overflow-x: auto;

.itemtext-new

font-family: Candara,Tahoma,Arial, Helvetica, sans-serif;
color: #303030;
font-size: 18px;
width: 20%;


.new-ok-button

padding: 10px 20px;
-webkit-border-radius: 50px/50px 50px 50px 50px;
-moz-border-radius: 50px/50px 50px 50px 50px;
border-radius: 50px/50px 50px 50px 50px;
-webkit-box-shadow: 0 2px 8px rgba(190,190,190,.39);
-moz-box-shadow: 0 2px 8px rgba(190,190,190,.39);
box-shadow: 0 2px 8px rgba(190,190,190,.39);
border: solid 1px #bebebe;
background-image: -webkit-linear-gradient(bottom, #e6e6e6, #fff);
background-image: -moz-linear-gradient(bottom, #e6e6e6, #fff);
background-image: -o-linear-gradient(bottom, #e6e6e6, #fff);
background-image: -ms-linear-gradient(bottom, #e6e6e6, #fff);
background-image: linear-gradient(to top, #e6e6e6, #fff);
cursor: pointer;
margin-left: 10px;
float: right;
margin-bottom: 10px;
margin-top: 10px;
color: #383838;
font-family: Candara,Tahoma,Arial, Helvetica, sans-serif;


.input-box-blog

box-sizing: border-box;
padding: 11px 20px;
width: 100%;
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
border-radius: 50px;
background-color: #fff;
-webkit-box-shadow: 0 0 21px rgba(255,255,255,.55), inset 1px 2px rgba(79,79,79,.67);
-moz-box-shadow: 0 0 21px rgba(255,255,255,.55), inset 1px 2px rgba(79,79,79,.67);
box-shadow: 0 0 21px rgba(255,255,255,.55), inset 1px 2px rgba(79,79,79,.67);
border: solid 1px #bebebe;
outline: none;
font-family: Candara,Tahoma,Arial, Helvetica, sans-serif;
font-size: 18px;
color: #303030;
padding-right: 38px;


.expandbtn

position: absolute;
z-index: 2;
font-family: sans-serif;
font-size: 9pt;



.EditorShareDiv

display: inline-block;
width: 100%;
padding: 10px 0px;


.mce-menubtn.mce-fixed-width span

width: 80px;


.mce-window

width: 50% !important;
left: 22% !important;


.mce-textbox.mce-multiline

width: 100% !important;
box-sizing: border-box;
left: 0 !important;
position: relative !important;


.mce-container-body.mce-abs-layout

box-sizing: border-box;
padding: 0px 20px;



.mce-tinymce

clear: both;


.Backbtn

width: 78px;
height: 28px;
float: right;
margin-top: 17px;
margin-right: 40px;
display: block;
margin-left: 1%;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
border-bottom-left-radius: 20px;
-webkit-box-shadow: rgb(185, 214, 231) 0px 2px 0px, rgb(142, 188, 218) 0px 2px 1px;
box-shadow: rgb(185, 214, 231) 0px 2px 0px, rgb(142, 188, 218) 0px 2px 1px;
-webkit-transition: box-shadow 0.1s ease-in-out;
transition: box-shadow 0.1s ease-in-out;
cursor: pointer;
text-align: center;



.slideshowpreviewdiv

position: fixed;
z-index: 14;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
-webkit-box-shadow: 0 2px 24px rgba(0,1,2,.45);
-moz-box-shadow: 0 2px 24px rgba(0,1,2,.45);
box-shadow: 0 2px 24px rgba(0,1,2,.45);
border: solid 1px #fff;
background-color: #fbfbfb;
box-sizing: border-box;
padding: 20px;
clear: both;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
white-space: nowrap;



.slideshowpreviewclose

position: absolute;
right: 10px;
top: 10px;
background-color: white;
padding: 6px;
border-radius: 55px !important;
border: 1px solid #BDBDE6 !important;
-webkit-transition: all 0.1s ease;
-moz-transition: all 0.1s ease;
-ms-transition: all 0.1s ease;
-o-transition: all 0.1s ease;
transition: all 0.1s ease;
cursor: pointer;
display: inline-flex;


.slideshowrelativediv

position: relative;
width: 500px;
height: 500px;


.slideshowupimages

width: 100%;
border-top: 1px solid #CBCBCB;
box-sizing: border-box;
padding-top: 10px;


.slideshowupimages img

float: left;
width: 100px;
height: 100px;
border-radius: 10px;
margin-right: 1px;
margin-top: 1px;


.slideshowupimages img:after

content: 'X';


.EditorContent

font-family: Candara,Arial, Helvetica, sans-serif;
font-size: 18px;
color: #303030;
float: left;
cursor: pointer;
overflow: hidden;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 5px 5px;


.EditorContentThump

width: 34px;
height: 34px;
-webkit-border-radius: 0 3px 0 4px/0 3px;
-moz-border-radius: 0 3px 0 4px/0 3px;
border-radius: 0 3px 0 4px/0 3px;
border: solid 1px #fff;
vertical-align: middle;
float: left;
margin-right: 10px;
border: 1px solid #DADADA;
background-color: rgb(240, 240, 240);


.ThumpImage

width: 100%;
height: 100%;


.EditorItemSelected

background-color: #e8e8e8;


.EditorItemsList

position: relative;
width: 100%;
cursor: pointer;
border-bottom: 1px solid #E4E4E4;
float: left;


.Editorcheckboxcontainer

border-radius: 8px;
background-color: #fff;
box-shadow: 0 3px 5px rgba(126,126,126,.19);
border: solid 1px #d2d2d2;
box-sizing: border-box;
padding: 15px;
width: 100%;
overflow: auto;
overflow-x: hidden;
max-height: 250px;


.Editorcheckboxcontainerdiv

position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
z-index: 14;
width: 30%;
min-width: 320px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
-webkit-box-shadow: 0 2px 24px rgba(0,1,2,.45);
-moz-box-shadow: 0 2px 24px rgba(0,1,2,.45);
box-shadow: 0 2px 24px rgba(0,1,2,.45);
border: solid 1px #fff;
background-color: #fbfbfb;
padding: 26px;
clear: both;
white-space: nowrap;


.cubeecontrolclose

position: absolute;
right: 10px;
top: 10px;
background-color: white;
padding: 6px;
border-radius: 55px !important;
border: 1px solid #BDBDE6 !important;
-webkit-transition: all 0.1s ease;
-moz-transition: all 0.1s ease;
-ms-transition: all 0.1s ease;
-o-transition: all 0.1s ease;
transition: all 0.1s ease;
cursor: pointer;
display: inline-flex;


.InputBoxEditor

box-sizing: border-box;
padding: 11px 20px;
width: 100%;
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
border-radius: 50px;
background-color: #fff;
-webkit-box-shadow: 0 0 21px rgba(255,255,255,.55), inset 1px 2px rgba(79,79,79,.67);
-moz-box-shadow: 0 0 21px rgba(255,255,255,.55), inset 1px 2px rgba(79,79,79,.67);
box-shadow: 0 0 21px rgba(255,255,255,.55), inset 1px 2px rgba(79,79,79,.67);
border: solid 1px #bebebe;
outline: none;
font-family: Candara,Tahoma,Arial, Helvetica, sans-serif;
font-size: 18px;
color: #303030;
padding-right: 38px;
margin-top: 20px;


#Birthday img

width: 75px;
height: 75px;


a

text-decoration: none !important;


#SharePanelContainer

margin-top: 5px;
-webkit-transition: -webkit-transform .1s ease-in-out;
-moz-transition: -moz-transform .1s ease-in-out;
-o-transition: -o-transform .1s ease-in-out;
transition: transform .1s ease-in-out;



#Editor_ifr

border: none;
border-radius: 0px;
display: block;
width: 100% !important;
padding: 0px !important;
box-sizing: border-box;
box-shadow: none !important;



/*
.EditorShareDiv

width: 220px;
float: left;
*/

.EditorShare

padding: 2px;
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
border-radius: 50px;
background-color: #d9eeff;
-webkit-box-shadow: 0 2px 8px rgba(190, 190, 190, .39);
-moz-box-shadow: 0 2px 8px rgba(190, 190, 190, .39);
box-shadow: 0 2px 8px rgba(190, 190, 190, .39);
border: solid 1px #bebebe !important;
background-image: -webkit-linear-gradient(bottom, #e6e6e6, #fff) !important;
background-image: -moz-linear-gradient(bottom, #e6e6e6, #fff) !important;
background-image: -o-linear-gradient(bottom, #e6e6e6, #fff) !important;
background-image: linear-gradient(to top, #e6e6e6, #fff) !important;
cursor: pointer !important;
margin-right: 2%;
float: left;
cursor: pointer;


.sharebutton:active, .NavButton:active, .SearchButton:active, .sharebutton2:active, .cubeecontroll:active, .fullprofileButton:active, .ArchivesIcon:active, .SortArchives:active, .BigButton:active, .close:active, .EditorShare:active, .calloutButton:active, .albumbutton:active, .NavButton4:active, .RectangleButton:active, .DraftButtons:active, .ArchivesIcon2:active, .SearchButton2:active, .DraftButtons2:active, .BackButton:active

-webkit-transform: translate(0, 1px);
-moz-transform: translate(0, 1px);
-ms-transform: translate(0, 1px);
background-color: #eef4f8;
-webkit-box-shadow: 0 0 17px 23px rgba(255, 255, 255, .57), inset 0 2px rgba(73, 110, 149, .75) !important;
-moz-box-shadow: 0 0 17px 23px rgba(255, 255, 255, .57), inset 0 2px rgba(73, 110, 149, .75) !important;
box-shadow: 0 0 17px 23px rgba(255, 255, 255, .57), inset 0 2px rgba(73, 110, 149, .75) !important;
border: solid 1px #7db1e5 !important;
background-image: -webkit-linear-gradient(top, #76c5f6, #97d6fe 66%) !important;
background-image: -moz-linear-gradient(top, #76c5f6, #97d6fe 66%) !important;
background-image: -o-linear-gradient(top, #76c5f6, #97d6fe 66%) !important;
background-image: -ms-linear-gradient(top, #76c5f6, #97d6fe 66%) !important;
background-image: linear-gradient(to bottom, #76c5f6, #97d6fe 66%) !important;
color: #FFFFFF;
cursor: pointer;



.silverbtn

font-family: open Sans !important;
font-size: 13pt;
text-align: center;
display: inline-block;
outline: none;
cursor: pointer;
padding: 5px;
border: 1px solid #DBDBDB;
border-radius: 20px !important;
box-shadow: 1px 3px 4px #7C99BD;
color: #606060;
background: #fff;
background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e6e6e6));
background: -moz-linear-gradient(top, #fff, #e6e6e6);
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6');
-webkit-box-shadow: 0 3px rgba(96, 145, 175, .42);
-moz-box-shadow: 0 3px rgba(96, 145, 175, .42);
box-shadow: 0 3px rgba(96, 145, 175, .42);
text-decoration: none;


.silverbtn:active

-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
background-color: #EEF4F8;
-webkit-box-shadow: 0 0 17px 23px rgba(255, 255, 255, .57), inset 0 2px rgba(73, 110, 149, .75);
-moz-box-shadow: 0 0 17px 23px rgba(255, 255, 255, .57), inset 0 2px rgba(73, 110, 149, .75);
box-shadow: 0 0 17px 23px rgba(255, 255, 255, .57), inset 0 2px rgba(73, 110, 149, .75);
border: solid 1px #7DB1E5;
background-image: -webkit-linear-gradient(top, #76C5F6, #97D6FE 66%);
background-image: -moz-linear-gradient(top, #76C5F6, #97D6FE 66%);
background-image: -o-linear-gradient(top, #76C5F6, #97D6FE 66%);
background-image: -ms-linear-gradient(top, #76C5F6, #97D6FE 66%);
background-image: linear-gradient(to bottom, #76C5F6, #97D6FE 66%);


.EditorShare2

padding: 2px !important;
-webkit-border-radius: 50px !important;
-moz-border-radius: 50px !important;
border-radius: 50px !important;
background-color: #d9eeff !important;
-webkit-box-shadow: 0 2px 8px rgba(190, 190, 190, .39) !important;
-moz-box-shadow: 0 2px 8px rgba(190, 190, 190, .39) !important;
box-shadow: 0 2px 8px rgba(190, 190, 190, .39) !important;
border: solid 1px #bebebe !important;
background-image: -webkit-linear-gradient(bottom, #e6e6e6, #fff) !important;
background-image: -moz-linear-gradient(bottom, #e6e6e6, #fff) !important;
background-image: -o-linear-gradient(bottom, #e6e6e6, #fff) !important;
background-image: linear-gradient(to top, #e6e6e6, #fff) !important;
cursor: pointer !important;
margin-right: 10px !important;
float: left !important;
margin-top: -4px !important;


.CreateBlogTitle

font-size: 25px !important;
color: #1f1f1f !important;
border-bottom: 1px solid #d2d2d2 !important;
margin-top: 20px !important;
padding-bottom: 10px !important;


.AlbumDiv

position: relative !important;
display: inline-block;
width: 100% !important;
padding-left: 20px !important;
padding-right: 20px !important;
padding-bottom: 20px !important;
-webkit-border-radius: 20px !important;
-moz-border-radius: 20px !important;
border-radius: 20px !important;
background-color: #fff !important;
-webkit-box-shadow: 0 0 21px rgba(255, 255, 255, .55), 0 2px 3px rgba(0, 0, 0, .27) !important;
-moz-box-shadow: 0 0 21px rgba(255, 255, 255, .55), 0 2px 3px rgba(0, 0, 0, .27) !important;
box-shadow: 0 0 21px rgba(255, 255, 255, .55), 0 2px 3px rgba(0, 0, 0, .27) !important;
border: solid 1px #bebebe !important;
background-image: -webkit-linear-gradient(bottom, #e6e6e6, #f7f7f7) !important;
background-image: -moz-linear-gradient(bottom, #e6e6e6, #f7f7f7) !important;
background-image: -o-linear-gradient(bottom, #e6e6e6, #f7f7f7) !important;
background-image: linear-gradient(to top, #e6e6e6, #f7f7f7) !important;
box-sizing: border-box !important;


.albumThumbDiv

font-size: 18px !important;
color: #1f1f1f !important;
margin-top: 15px !important;
width: 140px !important;
float: left !important;
margin-right: 20px !important;


.albumThumb

-webkit-border-radius: 100px !important;
-moz-border-radius: 100px !important;
border-radius: 100px !important;
background-color: #fff !important;
-webkit-box-shadow: 0 5px 9px rgba(0, 0, 0, .25) !important;
-moz-box-shadow: 0 5px 9px rgba(0, 0, 0, .25) !important;
box-shadow: 0 5px 9px rgba(0, 0, 0, .25) !important;
border: solid 6px #fff !important;
cursor: pointer !important;
height: 133px;
width: 133px;


.albumThumbTitle

width: 100% !important;
text-align: center !important;


.panel

margin-top: 5px;
-webkit-transition: -webkit-transform .1s ease-in-out;
-moz-transition: -moz-transform .1s ease-in-out;
-o-transition: -o-transform .1s ease-in-out;
transition: transform .1s ease-in-out;


.scrollpanel

height: 260px;
overflow: scroll;


.albumListing

-webkit-border-radius: 100px !important;
-moz-border-radius: 100px !important;
border-radius: 100px !important;
background-color: #fff !important;
-webkit-box-shadow: 0 5px 9px rgba(0, 0, 0, .25) !important;
-moz-box-shadow: 0 5px 9px rgba(0, 0, 0, .25) !important;
box-shadow: 0 5px 9px rgba(0, 0, 0, .25) !important;
border: solid 6px #fff !important;
cursor: pointer !important;
height: 100px;
width: 100px;


@media only screen and (min-width : 481px) and (max-width : 1024px)



@media only screen and (min-width : 100px) and (max-width : 481px)

.Editorcheckboxcontainerdiv

padding: 15px;
box-sizing: border-box;
width: 100%;


.mce-window

width: 100% !important;
left: 0% !important;


body .mce-abs-layout-item, .mce-abs-end

position: relative;
left: 0 !important;


.mce-container-body.mce-abs-layout

padding: 0px 10px;
width: 100% !important;


.mce-foot

width: 100% !important;


.mce-container

width: 100% !important;


.mce-popover.mce-bottom.mce-start

width: inherit !important;



.Editorcheckboxcontainer

width: 100%;


.EditorContent

float: none;


.EditorShare

padding: 1px;
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
border-radius: 50px;
background-color: #d9eeff;
-webkit-box-shadow: 0 2px 8px rgba(190,190,190,.39);
-moz-box-shadow: 0 2px 8px rgba(190,190,190,.39);
box-shadow: 0 2px 8px rgba(190,190,190,.39);
border: solid 1px #bebebe;
background-image: -webkit-linear-gradient(bottom, #e6e6e6, #fff);
background-image: -moz-linear-gradient(bottom, #e6e6e6, #fff);
background-image: -o-linear-gradient(bottom, #e6e6e6, #fff);
background-image: linear-gradient(to top, #e6e6e6, #fff);
cursor: pointer;
margin-right: 2%;
margin-top: -4px; /*display: none;*/

/*div[aria-label="Font Sizes"]

width: 20%;


div[aria-label="Font Family"]

width: 35%;

div[aria-label="Redo"], div[aria-label="Undo"], div[aria-label="Bullet list"], div[aria-label="Text color"], div[aria-label="Table"]

display: none;
*/

</style>















<script type="text/javascript">



var UrlInEditor;
var SomeUrlArray = [];

function ShowConfirmLinkExpansion()

$(".expandbtn").show();//tinyMCE.activeEditor.selection.getRng().startOffset // $(tinyMCE.activeEditor.selection.getNode()).position().top
$(".expandbtn .expandtxt").html('Add Link Preview?');
//$(".expandbtn").css("top", tinyMCE.activeEditor.selection.getRng().startOffset + $("#Editor_ifr").offset().top + 50);
$(".expandbtn").css("top", tinyMCE.activeEditor.selection.getRng().getClientRects()[0].top + $("#Editor_ifr").offset().top + 20);
//$(".expandbtn").css("left", tinyMCE.activeEditor.selection.getRng().getClientRects()[0].left);
//console.log(tinyMCE.activeEditor.selection.getRng().getClientRects()[0].top);


function UrlExpand()

$(".expandbtn .expandtxt").html('loading...');
ReadPageDetails(UrlInEditor);

function closethis(e)


//$("#Editor_ifr").contents().find(".expandbtn").css("display","none");
//$("#Editor_ifr").contents().find(e).css("display","none");
//console.log($("#Editor_ifr").contents().find(e.srcElement));
$(".expandbtn").css("display", "none");

function insert_contents(inst)

//inst.setContent('  ');
tinymce.Editor.select('  ');
inst.focus();
// ed.selection.select(newParagraph);
tinymce.Editor.selection.collapse(false);


$(window).load(function ()
//$(window).load(function ()

$("#dvMsg").load("IngridMsgAlert.html");
tinymce.init( preview code",
content_css: '//www.tinymce.com/css/codepen.min.css',*/
save_onsavecallback: function () console.log("Save"); ,

file_browser_callback: function (field_name, url, type, win)

if (type == 'image') $('#my_form input').click();
else
win.document.getElementById(field_name).value = 'Copy & Paste URL';
,
//*****************Added by saral for group Messaging********************
mode: "textareas",
entity_encoding: 'raw',

//----/*Added by SREEJAYA for preventing full URL getting converted to relative URL*/*******************
relative_urls: false,
remove_script_host: false,
convert_urls :false,
link_assume_external_targets: true,
forced_root_block: "",
force_br_newlines: false,
force_p_newlines: false,
paste_preprocess: function (plugin, args)

/* if (document.URL.toLowerCase().indexOf("blogcreatenewpost.aspx") > 0)
http*/

if (document.URL.toLowerCase().indexOf("blogcreatenewpost.aspx") > 0)
2[0-4]\d


,
/* paste_postprocess: function(plugin, args)
someurlstring = "<a class='previewed linkified' href='" + UrlInEditor + "'>" + UrlInEditor + "</a>";

args.content = UrlInEditor.replace(UrlInEditor, someurlstring);
tinyMCE.activeEditor.selection.select(tinyMCE.activeEditor.getBody(), true);
tinyMCE.activeEditor.selection.collapse(false);
,*/
setup: function (ed)

ed.on('init', function (e, l)

//tinyMCE.activeEditor.setContent($("#divPreview").html());
GetValues();
);
/*ed.onClick.add(function(ed, evt)

$(ed.getBody()).find('a').each(function(index, element)
if (!$(this).attr('href').search('http'))
$(this).attr('href', 'http://' + $(this).attr('href'));

);
);*/
ed.on('click', function (ed,evt)

if(evt!== undefined)

if (evt.target.className == 'linkclose')

$(evt.target).closest(".previewbox").remove();


//$(ed.getBody()).find('iframe').each(function(index, element));

);

var SquareBracket = "";
var CurCursurIndex = "";

function GetFocus()


if (IsMobileDevice())

$('html, body').animate(
scrollTop: $("#CreateBlogTitle").offset().top
);


//tinymce.activeEditor.focus();
$("#txtBlogHead").focus();


function GetPostSuggestionBox()


//alert(CurCursurIndex);
//------------------
var PostSuggestionTemplate = $(".EditorcheckboxcontainerTemp").html();
PostItems = type: 'bs', st: "Heading", s: $.trim($("#txtBlogHeadSearch").val()), sid: sid ;
$.post("ZBlogHandler.ashx", PostItems, function (data)

if (data != null)

var ObjSearchResult = eval(data);
$(".Editorcheckboxcontainer").html("");


if (decodeURIComponent(ObjSearchResult[0].ID) != "No More Results")

for (var k = 0; k < ObjSearchResult.length; k++)



SomeTemplateCode = PostSuggestionTemplate;
SomeTemplateCode = SomeTemplateCode.replace(/BLOGXID/gi, decodeURIComponent(ObjSearchResult[k].ID));
//SomeTemplateCode = SomeTemplateCode.replace(/BLOGXSEARCHTERM/gi, $.trim($("#txtBlogHeadSearch").val()));
SomeTemplateCode = SomeTemplateCode.replace(/ESCBLOGXHead/gi, escape(decodeURIComponent(ObjSearchResult[k].Heading)));
SomeTemplateCode = SomeTemplateCode.replace(/BLOGXHead/gi, decodeURIComponent(ObjSearchResult[k].Heading));

//SomeTemplateCode = SomeTemplateCode.replace(/BLOGXHead/gi, decodeURIComponent(ObjSearchResult[k].Preview));

$(".Editorcheckboxcontainer").append(SomeTemplateCode);



if ($(".Editorcheckboxcontainer").html().length > 0)

$(".Editorcheckboxcontainerdiv, .blackBG").show(function ()

$("#txtBlogHeadSearch").focus();
);


);
//------------------------

function SelectThisPost(thisobj, sid, Postheading)

$('.EditorItemsList').removeClass('EditorItemSelected');
$(thisobj).addClass('EditorItemSelected');
$('#txtBlogText').val(unescape(Postheading));
$('.b3posts1').hide();
$('.b3posts2').show();


function PinToContent()

//alert(text);
var str = "";
str = "<a href='" + BlogPostShortURL + $.trim($('.EditorItemSelected #thisid').val()) + "'>" + unescape($('#txtBlogText').val()) + "</a> ";

//var ed = tinyMCE.get('Editor'); // get editor instance
//var range = ed.selection.getRng().startOffset; // get range

var beditor = tinymce.activeEditor;
var bcontent = beditor.getContent();
var lstindex = bcontent.lastIndexOf("[[");
bcontent = bcontent.substring(0, lstindex);
beditor.setContent(bcontent + ' ');
//move the editor cursor to the end position
beditor.focus();
beditor.selection.select(beditor.getBody(), true);
beditor.selection.collapse(false);

tinymce.activeEditor.execCommand('mceInsertContent', false, str);
//ed = tinyMCE.get('Editor'); // get editor instance
//range = ed.selection.getRng().startOffset; // get range

//var TEditor = tinymce.activeEditor.getContent();
//tinymce.activeEditor.setContent(TEditor.replace(TEditor.substring(range - 2, range), ""));
$(".Editorcheckboxcontainerdiv, .blackBG").hide();
$('#txtBlogText').val();
$('#txtBlogHeadSearch').val();

$('.EditorItemsList').removeClass('EditorItemSelected');
$('.b3posts1').show();
$('.b3posts2').hide();

function BackToLinks()

$('#txtBlogText').val(
);
$('.b3posts1').show();
$('.b3posts2').hide();


function CancelLinks()

var beditor = tinymce.activeEditor;
var bcontent = beditor.getContent();
var lstindex = bcontent.lastIndexOf("[[");
bcontent = bcontent.substring(0, lstindex);
beditor.setContent(bcontent);

$(".Editorcheckboxcontainerdiv, .blackBG").hide();
$('#txtBlogText').val();
$('#txtBlogHeadSearch').val(
);

$('.EditorItemsList').removeClass('EditorItemSelected');
$('.b3posts1').show();
$('.b3posts2').hide();


function AutoSaveB3Draft()

//RCheck(2);
if ($(".buttondivnewpost").css('display') == 'block')

SaveAsDraft('draft');
/*$("#SaveStatus").show();
setTimeout(function ()

$("#SaveStatus").hide();
, 500);*/


$(window).load(function ()

//This is to reduce the font size dropdown list
$('.mce-tinymce').find('[aria-label = Font Sizes]').find('span').css('width', '29px');
/*$('.mce-tinymce').find('[aria-label = Font Family]').hide();
$('.mce-tinymce').find('[aria-label = Font Family]').find('span').text('Aa').css('width', '20px');
$('.mce-tinymce').find('[aria-label = Font Family]').show();*/
//$('.mce-tinymce').find('[aria-label = Font Family]').find('span').text('Aa').css('width', '35px');
$('.mce-tinymce').find("span:contains('Formats')").text('AA').css('width', '23px');


//$('form')[0].before($('#ShareCtrls').html());
/*$("#mce_54").before($('#ShareCtrls').html());
$(".EditorShareDiv").css("width", "300px");
$(".EditorShareDiv").css("margin-top", "3px");
$(".EditorShareDiv").css("float", "left");
$("#mce_54").css('margin-left', '305px');*/
);

function SetText()

var sizeid = $(".mce-text")[0].id;
$("#" + sizeid).html("Size");


function Close()

GotoEditor();
if (IsSlideShow)

PinToEditor();


var IsSlideShow = false;
function OpenSlideShow(pnlClose, pnlOpen, This)

$(This).parent().hide();
IsSlideShow = true;
$("#slideShowPreview").show();
if ($("#slideShowPreview img").length > 0)

/*$("#btnSlideShow").show();
$("#btnSlideShowPlay").show();*/

$("#btnSlideShow").css('display', 'inline-block');
$("#btnSlideShowPlay").css('display', 'inline-block');



//$("#" + pnlClose).removeAttr("style");
//$("#" + pnlClose).attr("style", "width:100%;display:none");
//$("#" + pnlOpen).removeAttr("style");
//$("#" + pnlOpen).attr("style", "width:100%;display:block");

function PinToEditor()

if ($.trim($("#slideShowPreview").html()) != "")

// var str = "";
// str += "
";
// str += $("#slideShowPreview").html();
// str += "
";
// str = "<img src='img/blog/SlideShow.png'/>";

tinymce.activeEditor.setContent(tinymce.activeEditor.getContent().replace(SlideShowIcon,
));

GotoEditor(SlideShowIcon);
//$("#slideShowPreview").html("");
$("#slideShowPreview").hide();

IsSlideShow = false;
$("#pnlPhotoOption table td:first").show();
$("#btnSlideShow").hide();
$("#btnSlideShowPlay").hide();


//Function for insert image from my album to editor
function GotoMessageEditor(ImagePath)


if (IsSlideShow)

//alert("slideshow 1");
$("#slideShowPreview").append('
<img src=\"' + ImagePath + '" />
');

if ($("#slideShowPreview img").length > 0)

/*$("#btnSlideShow").show();
$("#btnSlideShowPlay").show();*/
$("#btnSlideShow").css('display', 'inline-block');
$("#DivSlideShowPlay").hide();


else

var goto = "<a class='lightbox' target=_blank href='" + (ImagePath) + "'> <img src='" + (ImagePath) + "' /></a>";
GotoEditor(goto);




</script>


































title="Share Images" class="EditorShare3" onclick="ShowPanelContainer(this.src,this.title,'Images')"



style="display: none;">






title="Share Images" class="EditorShare" onclick="ShowPanelContainer(this.src,this.title,'Images')">






title="Share Gifts" class="EditorShare" onclick="ShowPanelContainer(this.src,this.title,'Gifts')">






title="Share My Experiences" class="EditorShare" onclick="ShowPanelContainer(this.src,this.title,'Exp')">






title="Share Video" class="EditorShare" onclick="ShowPanelContainer(this.src,this.title,'Video')">






title="Embed HTML" class="EditorShare" onclick="ShowPanelContainer(this.src,this.title,'HTML')">






title="Share Documents" class="EditorShare" onclick="ShowPanelContainer(this.src,this.title,'Doc')">







































<textarea id="Editor" name="Editor" style="width: 100%; height: 400px"></textarea>







<input type="hidden" name="hidLogo" id="hidLogo" />







<input type="hidden" name="hidFile" id="hidFile" />







onclick="Close();">



X






































class="EditorShare2">






































































































Heading <input id="txtBlogHead" maxlength="150" class="InputBox" name="ccHead" type="text" <br="" /> placeholder="Heading" required="required"><span style="display: none; color: red;" <br=""></span> id="spnHeadRequired"> * Heading field required.

<tbody>






</tbody>
[ ] style="text-decoration: underline;" id="SlideShowText">Add Slide Show [ ] style="text-decoration: underline;" value="Birthday">Add Image URL [ ] style="text-decoration: underline;" value="Smileys">Upload Photo [ ] value="AlbumImages">Album Images