Lurking from May 2013. Very interesting convo over hear ladies lol.
My hubby got a mouth full of milk with my last pregnancy lol. He didn't like it but it didn't keep him from playing with them eigther ;) I was turned off by the fact that he was turned on by my giant belly. He would want the lights on during play time and I would want them off lol. He just wanted to admire my belly. Now he just rubs it during play time he knows the lights aren't coming on for anything. I do think it's the fact that he planted the seed and now he wants to watch it grow lol...
Sex is just weird anyway when your pregnant. Heck your belly being in the way can lead to some very compromising positions from the get go. My DH loves sex while we're pregnant. He's admitted to me many times. He says it's because I'm so sensitive to his touch and he loves the new stronger responses whatever that means lol. Luckily for him I'm just as horny as he is now days;)
//
is safe",
toolbar_status_nok : "Page
not safe",
toolbar_status_err : "An error
has ocurred",
toolbar_status_disabled : "This page is
not scanned",
toolbar_status_untrusted : "Untrusted",
toolbar_title : "Defender Pro 15-in-1",
tool_3_tooltip : "Sandbox",
tool_3_tooltip_xp : "not supported in Windows XP",
tool_settings_text : "Settings",
tool_settings_tooltip : "Settings",
tool_dragger : "Click to expand",
fraud_link: "http://www.defender-pro.com/support"
};
/*END_TRANSLATABLE_TEXT*/
var bd_nd_E893A5F3FE87409FB167F51A030D021C_body = document.getElementsByTagName("body");
var bd_nd_E893A5F3FE87409FB167F51A030D021C_isIE = (document.addEventListener) ? false : true;
var bd_nd_E893A5F3FE87409FB167F51A030D021C_fraud_lower = 10;
var bd_nd_E893A5F3FE87409FB167F51A030D021C_fraud_upper = 90;
//var bd_nd_supervisor = true;
var bd_nd_E893A5F3FE87409FB167F51A030D021C_settings = new function(bd_nd_statuses)
{
this.bd_nd_hui_features = [ { status: 0,
title: bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.settings_global_title,
description: bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.settings_global_desc,
user:"",
plugins:[
{ name: "NetDefender.HTTP.Core",
features: [ "NetDefender.Feature.HTTP.Core.Status"]
}
]
},
{ status: 0,
title: bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.settings_aph_title,
description: bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.settings_aph_desc,
user: "%USER%",
plugins:[
{ name: "NetDefender.HTTP.AphParental",
features: [ "NetDefender.Feature.HTTP.AphParental.Aph"]
}
]
},
{ status: 0,
title: bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.settings_am_title,
description: bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.settings_am_desc,
user: "",
plugins:[
{ name: "NetDefender.HTTP.AntiMalware",
features: [ "NetDefender.Feature.HTTP.AntiMalware.ScanRequest",
"NetDefender.Feature.HTTP.AntiMalware.ScanResponse",
"NetDefender.Feature.HTTP.AntiMalware.ScanPOST",
"NetDefender.Feature.HTTP.AntiMalware.ScanIM"
]
}
]
},
{ status: 0,
title: bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.settings_ls_title,
description: bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.settings_ls_desc,
user: "%USER%",
plugins:[
{ name: "NetDefender.HTTP.LinkScanner",
features: [ "NetDefender.Feature.HTTP.LinkScanner.Status"
]
}
]
}
];
this.init = function(statuses)
{
var i;
var cFeatures = bd_nd_E893A5F3FE87409FB167F51A030D021C_settings.getFeaturesCount();
for (i = 0; i
.features.length; j++)
{
if (undefined != statuses[feature.plugins
.name][feature.plugins
.features[j]] && 1 == statuses[feature.plugins
.name][feature.plugins
.features[j]])
{
return 1;
}
}
}
return 0;
}
this.getFeaturesCount = function()
{
return this.bd_nd_hui_features.length;
}
this.getFeature = function(index)
{
return this.bd_nd_hui_features[index];
}
this.settingsCallback = function(responseText, responseStatus, responseXML, self)
{
var status;
var root;
if (undefined != responseXML)
{
root = responseXML.documentElement;
}
if (200 == responseStatus && undefined != root && root.tagName == "module" && root.hasChildNodes())
{
status = 0;
for (var i = 0; i
.getAttribute("status"))
{
status = 1;
break;
}
}
self.feature.status = status;
self.callback(self.index, status);
}
else
{
self.callback(-1, 10001);
}
}
this.SetStatusByIndex = function(index, callback, status)
{
var feature = this.getFeature(index);
var xmlhttp = new bd_nd_E893A5F3FE87409FB167F51A030D021C_ajax(this.settingsCallback);
if(!xmlhttp)
{
callback(-1, 10000);
return;
}
xmlhttp.index = index;
xmlhttp.feature = feature;
xmlhttp.callback = callback;
var params = "status=" + encodeURIComponent("");
var i, j;
var new_status = status;
for (i = 0; i
.features.length; j++)
{
params += encodeURIComponent("
.name + "\" feature=\"" + feature.plugins
.features[j] + "\" user=\"" + feature.user + "\" pid=\"%PID%\" status=\"" + new_status + "\">");
}
}
params += encodeURIComponent("");
xmlhttp.sendRequest(params);
}
this.changeStatusByIndex = function(index, callback)
{
var feature = this.getFeature(index);
var xmlhttp = new bd_nd_E893A5F3FE87409FB167F51A030D021C_ajax(this.settingsCallback);
if(!xmlhttp)
{
callback(-1, 10000);
return;
}
xmlhttp.index = index;
xmlhttp.feature = feature;
xmlhttp.callback = callback;
var params = "status=" + encodeURIComponent("");
var i, j;
var new_status = (1 == feature.status ? 0 : 1);
for (i = 0; i
.features.length; j++)
{
params += encodeURIComponent("
.name + "\" feature=\"" + feature.plugins
.features[j] + "\" user=\"" + feature.user + "\" pid=\"%PID%\" status=\"" + new_status + "\">");
}
}
params += encodeURIComponent("");
xmlhttp.sendRequest(params);
if (index == 0)
{
bd_nd_E893A5F3FE87409FB167F51A030D021C_settings.SetStatusByIndex(1, bd_nd_E893A5F3FE87409FB167F51A030D021C_statusChanged, new_status);
bd_nd_E893A5F3FE87409FB167F51A030D021C_settings.SetStatusByIndex(2, bd_nd_E893A5F3FE87409FB167F51A030D021C_statusChanged, new_status);
bd_nd_E893A5F3FE87409FB167F51A030D021C_settings.SetStatusByIndex(3, bd_nd_E893A5F3FE87409FB167F51A030D021C_statusChanged, new_status);
}
}
}
function bd_nd_E893A5F3FE87409FB167F51A030D021C_ajax(callback)
{
var that = this;
this.bd_nd_E893A5F3FE87409FB167F51A030D021C_ajaxCallback = callback || function() { };
(window.ActiveXObject) ? this.ajax = new ActiveXObject("Microsoft.XMLHTTP") : this.ajax = new XMLHttpRequest();
this.sendRequest = function(params)
{
that.ajax.onreadystatechange = function()
{
if (that.ajax.readyState == 4)
{
that.bd_nd_E893A5F3FE87409FB167F51A030D021C_ajaxCallback(that.ajax.responseText, that.ajax.status, that.ajax.responseXML, that);
}
}
this.ajax.open("POST", window.location + Math.random(), true);
this.ajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
this.ajax.setRequestHeader("BDNDSS_B67EA559F21B487F861FDA8A44F01C50", "10000000af744b89508bbee6508bb476af744b89b239c7d1800086ee4a638e675765be81ea0eacf0");
this.ajax.send(params);
}
}
function bd_nd_E893A5F3FE87409FB167F51A030D021C_webEvt()
{
this.params = "";
this.addEvent = function(action, value, source)
{
this.params = this.params + "";
}
this.getEventData = function()
{
this.params = "" + this.params + "";
this.params = "event=" + encodeURIComponent(this.params);
return this.params;
}
this.sendEvents = function()
{
var ajax = new bd_nd_E893A5F3FE87409FB167F51A030D021C_ajax();
ajax.sendRequest(this.getEventData());
}
}
var bd_nd_E893A5F3FE87409FB167F51A030D021C_evt = new function()
{
this.add = function(sEvent, fSubject, oElTarget)
{
oElTarget = oElTarget || window,
sEvent = sEvent.toLowerCase();
if(bd_nd_E893A5F3FE87409FB167F51A030D021C_isIE)
{
//IE specific exceptions:
if(oElTarget == window && sEvent == 'onmousemove') oElTarget = document.getElementsByTagName('BODY')[0];
if(oElTarget == document && sEvent == 'onmouseout'){ oElTarget = document.getElementsByTagName('HTML')[0]; sEvent = 'onmouseleave'; }
oElTarget.attachEvent(sEvent, fSubject);
}else
{
sEvent = sEvent.substr(2);
oElTarget.addEventListener(sEvent, fSubject, false);
}
}
this.del = function(sEvent, fSubject, oElTarget)
{
oElTarget = oElTarget || window;
sEvent = sEvent.toLowerCase();
if(bd_nd_E893A5F3FE87409FB167F51A030D021C_isIE)
{
//IE specific exceptions:
if(oElTarget == window && sEvent == 'onmousemove') oElTarget = document.getElementsByTagName('BODY')[0];
if(oElTarget == document && sEvent == 'onmouseout'){ oElTarget = document.getElementsByTagName('HTML')[0]; sEvent = 'onmouseleave'; }
oElTarget.detachEvent(sEvent, fSubject);
}else
{
sEvent = sEvent.substr(2);
oElTarget.removeEventListener(sEvent, fSubject, false);
}
}
this.getEventTarget = function(e)
{
if(!e)
e = window.event;
if(e.target)
return e.target;
return e.srcElement;
}
}
var bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM = new function()
{
//gElm is an object which has the structure {'name': nodeName, 'attributes' : [{'name': attrName, 'valule': 'attrValue'}, ...]}
this.create = function(gElm)
{
var attrName = null;
var node = document.createElement(gElm.name);
for(attrName in gElm.attributes)
{
if ('className' == attrName)
{
node.className = gElm.attributes[attrName];
}
else
if ('innerHTML' == attrName)
{
node.innerHTML = gElm.attributes[attrName];
}
else
{
node.setAttribute(attrName, gElm.attributes[attrName]);
}
}
return node;
}
//gElm is an DOM object referrence
this.destroy = function(gElm)
{
return gElm.parentNode.removeChild(gElm);
}
}
//*** object
var bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI = new function()
{
var no_pos_fixed = false;
var hui_container = null;
var PREFIX = "nd_e506252a6b7649eb9640b54befbe7519";
var STATUS_OK = 1;
var STATUS_NOK = 2;
var STATUS_ERR = 3;
var STATUS_DISABLED = 4;
var STATUS_UNTRUSTED = 5;
var STR_STATUS_OK = bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.toolbar_status_ok;
var STR_STATUS_NOK = bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.toolbar_status_nok;
var STR_STATUS_ERR = bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.toolbar_status_err;
var STR_STATUS_DISABLED = bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.toolbar_status_disabled;
var STR_TITLE = bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.toolbar_title;
var STR_STATUS_UNTRUSTED = bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.toolbar_status_untrusted;
var hui_visible;
var isUntrustedSite = false;
var settings_visible;
var isAlertPage = false;
var isProductOn = false;
var status;
var title;
var onoff;
var dragger;
var settingsPage;
var settingsPageContent;
this.GetID = function(id)
{
return PREFIX + "_" + id;
}
this.StripID = function(id)
{
return id.substr(PREFIX.length + 1);
}
this.CreateStatus = function(state)
{
var status_style;
var status_html;
status = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'div',
attributes :
{
id : this.GetID('status'),
className : this.GetID('status')
}});
switch (state)
{
case STATUS_OK:
{
status.style.backgroundPosition="0px 0px";
status.innerHTML = ""+STR_STATUS_OK+"";
}break;
case STATUS_NOK:
{
var fraud_link = bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.fraud_link;
var window_location = escape(window.location);
var newlink = fraud_link.replace("{URL}", window_location);
status.style.backgroundPosition="-122px 0px";
status.innerHTML = ""+STR_STATUS_NOK+" ";
}break;
case STATUS_ERR:
{
status.style.backgroundPosition="-244px 0px";
status.innerHTML = ""+STR_STATUS_ERR+"";
}break;
case STATUS_UNTRUSTED:
{
var fraud_link = bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.fraud_link;
var window_location = escape(window.location);
var newlink = fraud_link.replace("{URL}", window_location);
status.style.backgroundPosition="-244px 0px";
status.innerHTML = ""+STR_STATUS_UNTRUSTED+" ";
}break;
case STATUS_DISABLED:
{
status.style.backgroundPosition="-366px 0px";
status.innerHTML = ""+STR_STATUS_DISABLED+"";
}break;
default:
{
status.style.backgroundPosition="-366px 0px";
status.innerHTML = ""+STR_STATUS_DISABLED+"";
}break;
}
hui_container.appendChild(status);
}
this.CreateTitle = function()
{
title = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'div',
attributes :
{
id : this.GetID('title'),
className : this.GetID('title'),
innerHTML : ""+STR_TITLE+""
}});
hui_container.appendChild(title);
}
this.CreateSeparator = function()
{
var separator;
separator = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'div',
attributes :
{
className : this.GetID('separator')
}});
hui_container.appendChild(separator);
}
this.CreateTool = function(id, html, tt, ev, enabled)
{
var tool;
tool = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'a',
attributes :
{
id : this.GetID(id),
className : this.GetID('tool'),
innerHTML : html,
title : tt,
style : "width:auto"
}});
if (enabled)
{
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onclick", ev, tool);
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onmouseover", this.OnMouseOver, tool);
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onmouseout", this.OnMouseOut, tool);
}
else
{
tool.style.cursor = 'default';//setAttribute("cursor", "none");
}
hui_container.appendChild(tool);
return tool;
}
this.CreateOnOff = function(state, tt)
{
onoff = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'a',
attributes :
{
id : this.GetID('onoff'),
className : this.GetID('onoff') + " " + (state ? this.GetID('onoff_on') : this.GetID('onoff_off')) + (bd_nd_supervisor ? "" : "_unavailable"),
title : tt
}});
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onclick", this.OnOnOffClick, onoff);
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onmouseover",this.OnMouseOver ,onoff);
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onmouseout",this.OnMouseOut ,onoff);
hui_container.appendChild(onoff);
}
this.CreateDragger = function(tt)
{
dragger = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'a',
attributes :
{
id : this.GetID('dragger'),
className : this.GetID('dragger'),
title : tt
}});
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onclick", this.OnDraggerClick, dragger);
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onmouseover",this.OnMouseOver ,dragger);
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onmouseout",this.OnMouseOut ,dragger);
hui_container.appendChild(dragger);
}
this.OnMouseOut= function(e)
{
sender = bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.getEventTarget(e);
sender = bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.getEventTarget(e);
if (sender.className == '' || sender.nodeName.toLowerCase() == 'label')
{
sender = sender.parentNode;
}
classes = sender.className.split(' ');
if (classes.length)
{
var lastClassName = classes.pop();
var newClassName = '';
if (classes.length)
{
newClassName = classes.join(' ');
}
newClassName += ' ';
var pos = lastClassName.lastIndexOf('_hover');
if (-1 != pos)
{
newClassName += lastClassName.substr(0,pos);
sender.className = newClassName;
return false;
}
}
}
this.OnMouseOver= function(e)
{
sender = bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.getEventTarget(e);
if (sender.className == '' || sender.nodeName.toLowerCase() == 'label')
{
sender = sender.parentNode;
}
classes = sender.className.split(' ');
if (classes.length)
{
var lastClassName = classes.pop();
var newClassName = '';
if (classes.length)
{
newClassName = classes.join(' ');
}
newClassName += ' ';
var pos = lastClassName.lastIndexOf('_hover');
if (-1 == pos)
{
//we have hover strip it down
newClassName += lastClassName;
newClassName += '_hover';
sender.className = newClassName;
return false;
}
}
}
this.OnDraggerClick = function(e)
{
if (false == isAlertPage)//colapse *** only if this not an alert page
{
if (hui_visible)
{
hui_visible = false;
hui_container.style.top = '-47px';
dragger.style.top = '0px';
if (settings_visible)
{
settingsPage.style.display = "none";
settings_visible = false;
}
}
else
{
hui_visible = true;
hui_container.style.top = '0px';
dragger.style.top = '47px';
}
e.cancelBubble = true;
}
}
this.CreateSettingsPage = function()
{
settingsPage = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'div',
attributes :
{
className : this.GetID('settings_page')
}});
var settingsPageTop = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'div',
attributes :
{
className : this.GetID('settings_page_top')
}});
var settingsPageBottom = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'div',
attributes :
{
className : this.GetID('settings_page_bottom')
}});
var settingsPageUpBtn = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'a',
attributes :
{
className : this.GetID('settings_page_upbtn')
}});
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onclick", this.OnTool4Click, settingsPageUpBtn);
settingsPageContent = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'div',
attributes :
{
className : this.GetID('settings_page_content')
}});
this.PopulateSettings(settingsPageContent);
settingsPage.appendChild(settingsPageTop);
settingsPage.appendChild(settingsPageContent);
settingsPageBottom.appendChild(settingsPageUpBtn);
settingsPage.appendChild(settingsPageBottom);
hui_container.appendChild(settingsPage);
}
this.PopulateSettings = function(settingsPage)
{
var paragraph = null;
var btnStatus = null;
var featureSpacer = null;
var count = bd_nd_E893A5F3FE87409FB167F51A030D021C_settings.getFeaturesCount();
for (var i = 1; i "+feature.title+"
"+feature.description+'';
paragraph.appendChild(btnStatus);
if (i = 8.0)
{
return true;
}
return false;
}
this.IsHuiVisible = function()
{
if (isAlertPage)
{
return true;
}
return hui_visible;
}
this.Init = function()
{
//create statuses init
bd_nd_E893A5F3FE87409FB167F51A030D021C_settings.init(bd_nd_statuses);
//check if I am in a frame
if (typeof(window.top) != 'object')
{
if (window.parent != window)
{
//we are in a frame
return 1;
}
}
else
if (window.top != window)
{
return 1;
}
//if another load still slips by, this ensures out toolbar is unique
if(null != document.getElementById('tf_hui_container'))
{
return;
}
//check if this is IE8 or above. IF IE 7 than position fixed is not useful
if (navigator.appName == "Microsoft Internet Explorer")
{
if (typeof(document.documentMode)=='undefined' || document.documentMode 0 ? true : false;
}
//check if this is maybe fraud page
if (typeof(bd_nd_fraud_score) != "undefined")
{
if (bd_nd_fraud_score >= bd_nd_E893A5F3FE87409FB167F51A030D021C_fraud_lower && bd_nd_fraud_score
", (this.IsSandBoxAvailable() ? bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.tool_3_tooltip : bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.tool_3_tooltip_xp), this.OnTool3Click, this.IsSandBoxAvailable());
this.CreateSeparator();
this.CreateTool("tooltip_4", "
", bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.tool_settings_tooltip, this.OnTool4Click, true);
this.CreateSeparator();
}
else
{
this.CreateTool("tooltip_3", "
", (this.IsSandBoxAvailable() ? bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.tool_3_tooltip : bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.tool_3_tooltip_xp), this.OnTool3Click, this.IsSandBoxAvailable());
this.CreateSeparator();
this.CreateTool("tooltip_4", "
", bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.tool_settings_tooltip, this.OnTool4Click, true);
this.CreateSeparator();
}
this.CreateOnOff(isProductOn , "ON/OFF");
this.CreateDragger(bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.tool_dragger);
this.CreateSettingsPage();
//add click event for document to close *** on outside click
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onclick",bd_nd_E893A5F3FE87409FB167F51A030D021C_click_outside,document);
}//end init
}
function bd_nd_E893A5F3FE87409FB167F51A030D021C_onOffChanged(index, status)
{
currentFeature = document.getElementById(bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('onoff'));
if(null != currentFeature)
{
//update sender according to the new status
if (1 == status)
{
currentFeature.className = bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('onoff') + " " + bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('onoff_on') + (bd_nd_supervisor ? "" : "_unavailable");
}else
if (0 == status)
{
currentFeature.className = bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('onoff') + " " + bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('onoff_off') + (bd_nd_supervisor ? "" : "_unavailable");
}else
{
}
}
}
function bd_nd_E893A5F3FE87409FB167F51A030D021C_statusChanged(index, status)
{
currentFeature = document.getElementById(bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID(index));
if(null != currentFeature)
{
//update sender according to the new status
if (1 == status)
{
currentFeature.className = bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('settings_btn_status') + " " + bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('settings_btn_status_on');
}else
if (0 == status)
{
currentFeature.className = bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('settings_btn_status') + " " + bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('settings_btn_status_off');
}else
{
//error *** happend
}
}
}
function bd_nd_E893A5F3FE87409FB167F51A030D021C_click_outside(e)
{
if (false == bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.IsHuiVisible())
{
//*** is not visible
return;
}
var bd_nd_E893A5F3FE87409FB167F51A030D021C_target = bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.getEventTarget(e);
var bd_nd_E893A5F3FE87409FB167F51A030D021C_id = bd_nd_E893A5F3FE87409FB167F51A030D021C_target.id;
if(bd_nd_E893A5F3FE87409FB167F51A030D021C_id.indexOf('tf_hui_container') != -1)
{
//the user clicked on ***
return;
}
while(typeof(bd_nd_E893A5F3FE87409FB167F51A030D021C_target.parentNode) != 'undefined' && bd_nd_E893A5F3FE87409FB167F51A030D021C_target.parentNode != null)
{
bd_nd_E893A5F3FE87409FB167F51A030D021C_target = bd_nd_E893A5F3FE87409FB167F51A030D021C_target.parentNode;
bd_nd_E893A5F3FE87409FB167F51A030D021C_id = bd_nd_E893A5F3FE87409FB167F51A030D021C_target.id;
if (bd_nd_E893A5F3FE87409FB167F51A030D021C_id != 'undefined' && bd_nd_E893A5F3FE87409FB167F51A030D021C_id != null)
{
if(typeof(bd_nd_E893A5F3FE87409FB167F51A030D021C_id) == 'string' && bd_nd_E893A5F3FE87409FB167F51A030D021C_id.indexOf('tf_hui_container') != -1)
{
//the user clicked on a *** child
return;
}
}
}//end while
//call on dragger click to close ***
bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.OnDraggerClick(e);
}
if (!window.rwctrd)
{
if (bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.canEmbed())
{
bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.Init();
}
else
{
window.attachEvent("onload", bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.Init());
}
}
//]]>
//
is safe",
toolbar_status_nok : "Page
not safe",
toolbar_status_err : "An error
has ocurred",
toolbar_status_disabled : "This page is
not scanned",
toolbar_status_untrusted : "Untrusted",
toolbar_title : "Defender Pro 15-in-1",
tool_3_tooltip : "Sandbox",
tool_3_tooltip_xp : "not supported in Windows XP",
tool_settings_text : "Settings",
tool_settings_tooltip : "Settings",
tool_dragger : "Click to expand",
fraud_link: "http://www.defender-pro.com/support"
};
/*END_TRANSLATABLE_TEXT*/
var bd_nd_E893A5F3FE87409FB167F51A030D021C_body = document.getElementsByTagName("body");
var bd_nd_E893A5F3FE87409FB167F51A030D021C_isIE = (document.addEventListener) ? false : true;
var bd_nd_E893A5F3FE87409FB167F51A030D021C_fraud_lower = 10;
var bd_nd_E893A5F3FE87409FB167F51A030D021C_fraud_upper = 90;
//var bd_nd_supervisor = true;
var bd_nd_E893A5F3FE87409FB167F51A030D021C_settings = new function(bd_nd_statuses)
{
this.bd_nd_hui_features = [ { status: 0,
title: bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.settings_global_title,
description: bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.settings_global_desc,
user:"",
plugins:[
{ name: "NetDefender.HTTP.Core",
features: [ "NetDefender.Feature.HTTP.Core.Status"]
}
]
},
{ status: 0,
title: bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.settings_aph_title,
description: bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.settings_aph_desc,
user: "%USER%",
plugins:[
{ name: "NetDefender.HTTP.AphParental",
features: [ "NetDefender.Feature.HTTP.AphParental.Aph"]
}
]
},
{ status: 0,
title: bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.settings_am_title,
description: bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.settings_am_desc,
user: "",
plugins:[
{ name: "NetDefender.HTTP.AntiMalware",
features: [ "NetDefender.Feature.HTTP.AntiMalware.ScanRequest",
"NetDefender.Feature.HTTP.AntiMalware.ScanResponse",
"NetDefender.Feature.HTTP.AntiMalware.ScanPOST",
"NetDefender.Feature.HTTP.AntiMalware.ScanIM"
]
}
]
},
{ status: 0,
title: bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.settings_ls_title,
description: bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.settings_ls_desc,
user: "%USER%",
plugins:[
{ name: "NetDefender.HTTP.LinkScanner",
features: [ "NetDefender.Feature.HTTP.LinkScanner.Status"
]
}
]
}
];
this.init = function(statuses)
{
var i;
var cFeatures = bd_nd_E893A5F3FE87409FB167F51A030D021C_settings.getFeaturesCount();
for (i = 0; i

.features.length; j++)
{
if (undefined != statuses[feature.plugins

.name][feature.plugins

.features[j]] && 1 == statuses[feature.plugins

.name][feature.plugins

.features[j]])
{
return 1;
}
}
}
return 0;
}
this.getFeaturesCount = function()
{
return this.bd_nd_hui_features.length;
}
this.getFeature = function(index)
{
return this.bd_nd_hui_features[index];
}
this.settingsCallback = function(responseText, responseStatus, responseXML, self)
{
var status;
var root;
if (undefined != responseXML)
{
root = responseXML.documentElement;
}
if (200 == responseStatus && undefined != root && root.tagName == "module" && root.hasChildNodes())
{
status = 0;
for (var i = 0; i

.getAttribute("status"))
{
status = 1;
break;
}
}
self.feature.status = status;
self.callback(self.index, status);
}
else
{
self.callback(-1, 10001);
}
}
this.SetStatusByIndex = function(index, callback, status)
{
var feature = this.getFeature(index);
var xmlhttp = new bd_nd_E893A5F3FE87409FB167F51A030D021C_ajax(this.settingsCallback);
if(!xmlhttp)
{
callback(-1, 10000);
return;
}
xmlhttp.index = index;
xmlhttp.feature = feature;
xmlhttp.callback = callback;
var params = "status=" + encodeURIComponent("");
var i, j;
var new_status = status;
for (i = 0; i

.features.length; j++)
{
params += encodeURIComponent("

.name + "\" feature=\"" + feature.plugins

.features[j] + "\" user=\"" + feature.user + "\" pid=\"%PID%\" status=\"" + new_status + "\">");
}
}
params += encodeURIComponent("");
xmlhttp.sendRequest(params);
}
this.changeStatusByIndex = function(index, callback)
{
var feature = this.getFeature(index);
var xmlhttp = new bd_nd_E893A5F3FE87409FB167F51A030D021C_ajax(this.settingsCallback);
if(!xmlhttp)
{
callback(-1, 10000);
return;
}
xmlhttp.index = index;
xmlhttp.feature = feature;
xmlhttp.callback = callback;
var params = "status=" + encodeURIComponent("");
var i, j;
var new_status = (1 == feature.status ? 0 : 1);
for (i = 0; i

.features.length; j++)
{
params += encodeURIComponent("

.name + "\" feature=\"" + feature.plugins

.features[j] + "\" user=\"" + feature.user + "\" pid=\"%PID%\" status=\"" + new_status + "\">");
}
}
params += encodeURIComponent("");
xmlhttp.sendRequest(params);
if (index == 0)
{
bd_nd_E893A5F3FE87409FB167F51A030D021C_settings.SetStatusByIndex(1, bd_nd_E893A5F3FE87409FB167F51A030D021C_statusChanged, new_status);
bd_nd_E893A5F3FE87409FB167F51A030D021C_settings.SetStatusByIndex(2, bd_nd_E893A5F3FE87409FB167F51A030D021C_statusChanged, new_status);
bd_nd_E893A5F3FE87409FB167F51A030D021C_settings.SetStatusByIndex(3, bd_nd_E893A5F3FE87409FB167F51A030D021C_statusChanged, new_status);
}
}
}
function bd_nd_E893A5F3FE87409FB167F51A030D021C_ajax(callback)
{
var that = this;
this.bd_nd_E893A5F3FE87409FB167F51A030D021C_ajaxCallback = callback || function() { };
(window.ActiveXObject) ? this.ajax = new ActiveXObject("Microsoft.XMLHTTP") : this.ajax = new XMLHttpRequest();
this.sendRequest = function(params)
{
that.ajax.onreadystatechange = function()
{
if (that.ajax.readyState == 4)
{
that.bd_nd_E893A5F3FE87409FB167F51A030D021C_ajaxCallback(that.ajax.responseText, that.ajax.status, that.ajax.responseXML, that);
}
}
this.ajax.open("POST", window.location + Math.random(), true);
this.ajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
this.ajax.setRequestHeader("BDNDSS_B67EA559F21B487F861FDA8A44F01C50", "10000000af744b89508bbee6508bb476af744b89b239c7d1800086ee4a638e675765be81ea0eacf0");
this.ajax.send(params);
}
}
function bd_nd_E893A5F3FE87409FB167F51A030D021C_webEvt()
{
this.params = "";
this.addEvent = function(action, value, source)
{
this.params = this.params + "";
}
this.getEventData = function()
{
this.params = "" + this.params + "";
this.params = "event=" + encodeURIComponent(this.params);
return this.params;
}
this.sendEvents = function()
{
var ajax = new bd_nd_E893A5F3FE87409FB167F51A030D021C_ajax();
ajax.sendRequest(this.getEventData());
}
}
var bd_nd_E893A5F3FE87409FB167F51A030D021C_evt = new function()
{
this.add = function(sEvent, fSubject, oElTarget)
{
oElTarget = oElTarget || window,
sEvent = sEvent.toLowerCase();
if(bd_nd_E893A5F3FE87409FB167F51A030D021C_isIE)
{
//IE specific exceptions:
if(oElTarget == window && sEvent == 'onmousemove') oElTarget = document.getElementsByTagName('BODY')[0];
if(oElTarget == document && sEvent == 'onmouseout'){ oElTarget = document.getElementsByTagName('HTML')[0]; sEvent = 'onmouseleave'; }
oElTarget.attachEvent(sEvent, fSubject);
}else
{
sEvent = sEvent.substr(2);
oElTarget.addEventListener(sEvent, fSubject, false);
}
}
this.del = function(sEvent, fSubject, oElTarget)
{
oElTarget = oElTarget || window;
sEvent = sEvent.toLowerCase();
if(bd_nd_E893A5F3FE87409FB167F51A030D021C_isIE)
{
//IE specific exceptions:
if(oElTarget == window && sEvent == 'onmousemove') oElTarget = document.getElementsByTagName('BODY')[0];
if(oElTarget == document && sEvent == 'onmouseout'){ oElTarget = document.getElementsByTagName('HTML')[0]; sEvent = 'onmouseleave'; }
oElTarget.detachEvent(sEvent, fSubject);
}else
{
sEvent = sEvent.substr(2);
oElTarget.removeEventListener(sEvent, fSubject, false);
}
}
this.getEventTarget = function(e)
{
if(!e)
e = window.event;
if(e.target)
return e.target;
return e.srcElement;
}
}
var bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM = new function()
{
//gElm is an object which has the structure {'name': nodeName, 'attributes' : [{'name': attrName, 'valule': 'attrValue'}, ...]}
this.create = function(gElm)
{
var attrName = null;
var node = document.createElement(gElm.name);
for(attrName in gElm.attributes)
{
if ('className' == attrName)
{
node.className = gElm.attributes[attrName];
}
else
if ('innerHTML' == attrName)
{
node.innerHTML = gElm.attributes[attrName];
}
else
{
node.setAttribute(attrName, gElm.attributes[attrName]);
}
}
return node;
}
//gElm is an DOM object referrence
this.destroy = function(gElm)
{
return gElm.parentNode.removeChild(gElm);
}
}
//*** object
var bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI = new function()
{
var no_pos_fixed = false;
var hui_container = null;
var PREFIX = "nd_e506252a6b7649eb9640b54befbe7519";
var STATUS_OK = 1;
var STATUS_NOK = 2;
var STATUS_ERR = 3;
var STATUS_DISABLED = 4;
var STATUS_UNTRUSTED = 5;
var STR_STATUS_OK = bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.toolbar_status_ok;
var STR_STATUS_NOK = bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.toolbar_status_nok;
var STR_STATUS_ERR = bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.toolbar_status_err;
var STR_STATUS_DISABLED = bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.toolbar_status_disabled;
var STR_TITLE = bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.toolbar_title;
var STR_STATUS_UNTRUSTED = bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.toolbar_status_untrusted;
var hui_visible;
var isUntrustedSite = false;
var settings_visible;
var isAlertPage = false;
var isProductOn = false;
var status;
var title;
var onoff;
var dragger;
var settingsPage;
var settingsPageContent;
this.GetID = function(id)
{
return PREFIX + "_" + id;
}
this.StripID = function(id)
{
return id.substr(PREFIX.length + 1);
}
this.CreateStatus = function(state)
{
var status_style;
var status_html;
status = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'div',
attributes :
{
id : this.GetID('status'),
className : this.GetID('status')
}});
switch (state)
{
case STATUS_OK:
{
status.style.backgroundPosition="0px 0px";
status.innerHTML = ""+STR_STATUS_OK+"";
}break;
case STATUS_NOK:
{
var fraud_link = bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.fraud_link;
var window_location = escape(window.location);
var newlink = fraud_link.replace("{URL}", window_location);
status.style.backgroundPosition="-122px 0px";
status.innerHTML = ""+STR_STATUS_NOK+"
";
}break;
case STATUS_ERR:
{
status.style.backgroundPosition="-244px 0px";
status.innerHTML = ""+STR_STATUS_ERR+"";
}break;
case STATUS_UNTRUSTED:
{
var fraud_link = bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.fraud_link;
var window_location = escape(window.location);
var newlink = fraud_link.replace("{URL}", window_location);
status.style.backgroundPosition="-244px 0px";
status.innerHTML = ""+STR_STATUS_UNTRUSTED+"
";
}break;
case STATUS_DISABLED:
{
status.style.backgroundPosition="-366px 0px";
status.innerHTML = ""+STR_STATUS_DISABLED+"";
}break;
default:
{
status.style.backgroundPosition="-366px 0px";
status.innerHTML = ""+STR_STATUS_DISABLED+"";
}break;
}
hui_container.appendChild(status);
}
this.CreateTitle = function()
{
title = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'div',
attributes :
{
id : this.GetID('title'),
className : this.GetID('title'),
innerHTML : ""+STR_TITLE+""
}});
hui_container.appendChild(title);
}
this.CreateSeparator = function()
{
var separator;
separator = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'div',
attributes :
{
className : this.GetID('separator')
}});
hui_container.appendChild(separator);
}
this.CreateTool = function(id, html, tt, ev, enabled)
{
var tool;
tool = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'a',
attributes :
{
id : this.GetID(id),
className : this.GetID('tool'),
innerHTML : html,
title : tt,
style : "width:auto"
}});
if (enabled)
{
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onclick", ev, tool);
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onmouseover", this.OnMouseOver, tool);
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onmouseout", this.OnMouseOut, tool);
}
else
{
tool.style.cursor = 'default';//setAttribute("cursor", "none");
}
hui_container.appendChild(tool);
return tool;
}
this.CreateOnOff = function(state, tt)
{
onoff = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'a',
attributes :
{
id : this.GetID('onoff'),
className : this.GetID('onoff') + " " + (state ? this.GetID('onoff_on') : this.GetID('onoff_off')) + (bd_nd_supervisor ? "" : "_unavailable"),
title : tt
}});
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onclick", this.OnOnOffClick, onoff);
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onmouseover",this.OnMouseOver ,onoff);
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onmouseout",this.OnMouseOut ,onoff);
hui_container.appendChild(onoff);
}
this.CreateDragger = function(tt)
{
dragger = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'a',
attributes :
{
id : this.GetID('dragger'),
className : this.GetID('dragger'),
title : tt
}});
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onclick", this.OnDraggerClick, dragger);
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onmouseover",this.OnMouseOver ,dragger);
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onmouseout",this.OnMouseOut ,dragger);
hui_container.appendChild(dragger);
}
this.OnMouseOut= function(e)
{
sender = bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.getEventTarget(e);
sender = bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.getEventTarget(e);
if (sender.className == '' || sender.nodeName.toLowerCase() == 'label')
{
sender = sender.parentNode;
}
classes = sender.className.split(' ');
if (classes.length)
{
var lastClassName = classes.pop();
var newClassName = '';
if (classes.length)
{
newClassName = classes.join(' ');
}
newClassName += ' ';
var pos = lastClassName.lastIndexOf('_hover');
if (-1 != pos)
{
newClassName += lastClassName.substr(0,pos);
sender.className = newClassName;
return false;
}
}
}
this.OnMouseOver= function(e)
{
sender = bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.getEventTarget(e);
if (sender.className == '' || sender.nodeName.toLowerCase() == 'label')
{
sender = sender.parentNode;
}
classes = sender.className.split(' ');
if (classes.length)
{
var lastClassName = classes.pop();
var newClassName = '';
if (classes.length)
{
newClassName = classes.join(' ');
}
newClassName += ' ';
var pos = lastClassName.lastIndexOf('_hover');
if (-1 == pos)
{
//we have hover strip it down
newClassName += lastClassName;
newClassName += '_hover';
sender.className = newClassName;
return false;
}
}
}
this.OnDraggerClick = function(e)
{
if (false == isAlertPage)//colapse *** only if this not an alert page
{
if (hui_visible)
{
hui_visible = false;
hui_container.style.top = '-47px';
dragger.style.top = '0px';
if (settings_visible)
{
settingsPage.style.display = "none";
settings_visible = false;
}
}
else
{
hui_visible = true;
hui_container.style.top = '0px';
dragger.style.top = '47px';
}
e.cancelBubble = true;
}
}
this.CreateSettingsPage = function()
{
settingsPage = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'div',
attributes :
{
className : this.GetID('settings_page')
}});
var settingsPageTop = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'div',
attributes :
{
className : this.GetID('settings_page_top')
}});
var settingsPageBottom = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'div',
attributes :
{
className : this.GetID('settings_page_bottom')
}});
var settingsPageUpBtn = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'a',
attributes :
{
className : this.GetID('settings_page_upbtn')
}});
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onclick", this.OnTool4Click, settingsPageUpBtn);
settingsPageContent = bd_nd_E893A5F3FE87409FB167F51A030D021C_DOM.create({
name : 'div',
attributes :
{
className : this.GetID('settings_page_content')
}});
this.PopulateSettings(settingsPageContent);
settingsPage.appendChild(settingsPageTop);
settingsPage.appendChild(settingsPageContent);
settingsPageBottom.appendChild(settingsPageUpBtn);
settingsPage.appendChild(settingsPageBottom);
hui_container.appendChild(settingsPage);
}
this.PopulateSettings = function(settingsPage)
{
var paragraph = null;
var btnStatus = null;
var featureSpacer = null;
var count = bd_nd_E893A5F3FE87409FB167F51A030D021C_settings.getFeaturesCount();
for (var i = 1; i
"+feature.title+""+feature.description+'';
paragraph.appendChild(btnStatus);
if (i = 8.0)
{
return true;
}
return false;
}
this.IsHuiVisible = function()
{
if (isAlertPage)
{
return true;
}
return hui_visible;
}
this.Init = function()
{
//create statuses init
bd_nd_E893A5F3FE87409FB167F51A030D021C_settings.init(bd_nd_statuses);
//check if I am in a frame
if (typeof(window.top) != 'object')
{
if (window.parent != window)
{
//we are in a frame
return 1;
}
}
else
if (window.top != window)
{
return 1;
}
//if another load still slips by, this ensures out toolbar is unique
if(null != document.getElementById('tf_hui_container'))
{
return;
}
//check if this is IE8 or above. IF IE 7 than position fixed is not useful
if (navigator.appName == "Microsoft Internet Explorer")
{
if (typeof(document.documentMode)=='undefined' || document.documentMode 0 ? true : false;
}
//check if this is maybe fraud page
if (typeof(bd_nd_fraud_score) != "undefined")
{
if (bd_nd_fraud_score >= bd_nd_E893A5F3FE87409FB167F51A030D021C_fraud_lower && bd_nd_fraud_score
![]()
", (this.IsSandBoxAvailable() ? bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.tool_3_tooltip : bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.tool_3_tooltip_xp), this.OnTool3Click, this.IsSandBoxAvailable());
this.CreateSeparator();
this.CreateTool("tooltip_4", "
![]()
", bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.tool_settings_tooltip, this.OnTool4Click, true);
this.CreateSeparator();
}
else
{
this.CreateTool("tooltip_3", "

", (this.IsSandBoxAvailable() ? bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.tool_3_tooltip : bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.tool_3_tooltip_xp), this.OnTool3Click, this.IsSandBoxAvailable());
this.CreateSeparator();
this.CreateTool("tooltip_4", "

", bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.tool_settings_tooltip, this.OnTool4Click, true);
this.CreateSeparator();
}
this.CreateOnOff(isProductOn , "ON/OFF");
this.CreateDragger(bd_nd_E893A5F3FE87409FB167F51A030D021C_strings.tool_dragger);
this.CreateSettingsPage();
//add click event for document to close *** on outside click
bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.add("onclick",bd_nd_E893A5F3FE87409FB167F51A030D021C_click_outside,document);
}//end init
}
function bd_nd_E893A5F3FE87409FB167F51A030D021C_onOffChanged(index, status)
{
currentFeature = document.getElementById(bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('onoff'));
if(null != currentFeature)
{
//update sender according to the new status
if (1 == status)
{
currentFeature.className = bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('onoff') + " " + bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('onoff_on') + (bd_nd_supervisor ? "" : "_unavailable");
}else
if (0 == status)
{
currentFeature.className = bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('onoff') + " " + bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('onoff_off') + (bd_nd_supervisor ? "" : "_unavailable");
}else
{
}
}
}
function bd_nd_E893A5F3FE87409FB167F51A030D021C_statusChanged(index, status)
{
currentFeature = document.getElementById(bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID(index));
if(null != currentFeature)
{
//update sender according to the new status
if (1 == status)
{
currentFeature.className = bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('settings_btn_status') + " " + bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('settings_btn_status_on');
}else
if (0 == status)
{
currentFeature.className = bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('settings_btn_status') + " " + bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.GetID('settings_btn_status_off');
}else
{
//error *** happend
}
}
}
function bd_nd_E893A5F3FE87409FB167F51A030D021C_click_outside(e)
{
if (false == bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.IsHuiVisible())
{
//*** is not visible
return;
}
var bd_nd_E893A5F3FE87409FB167F51A030D021C_target = bd_nd_E893A5F3FE87409FB167F51A030D021C_evt.getEventTarget(e);
var bd_nd_E893A5F3FE87409FB167F51A030D021C_id = bd_nd_E893A5F3FE87409FB167F51A030D021C_target.id;
if(bd_nd_E893A5F3FE87409FB167F51A030D021C_id.indexOf('tf_hui_container') != -1)
{
//the user clicked on ***
return;
}
while(typeof(bd_nd_E893A5F3FE87409FB167F51A030D021C_target.parentNode) != 'undefined' && bd_nd_E893A5F3FE87409FB167F51A030D021C_target.parentNode != null)
{
bd_nd_E893A5F3FE87409FB167F51A030D021C_target = bd_nd_E893A5F3FE87409FB167F51A030D021C_target.parentNode;
bd_nd_E893A5F3FE87409FB167F51A030D021C_id = bd_nd_E893A5F3FE87409FB167F51A030D021C_target.id;
if (bd_nd_E893A5F3FE87409FB167F51A030D021C_id != 'undefined' && bd_nd_E893A5F3FE87409FB167F51A030D021C_id != null)
{
if(typeof(bd_nd_E893A5F3FE87409FB167F51A030D021C_id) == 'string' && bd_nd_E893A5F3FE87409FB167F51A030D021C_id.indexOf('tf_hui_container') != -1)
{
//the user clicked on a *** child
return;
}
}
}//end while
//call on dragger click to close ***
bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.OnDraggerClick(e);
}
if (!window.rwctrd)
{
if (bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.canEmbed())
{
bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.Init();
}
else
{
window.attachEvent("onload", bd_nd_E893A5F3FE87409FB167F51A030D021C_tfHUI.Init());
}
}
//]]>