Spiritual Calisthenics: “Excercising Your Faith”—Part IV

I think most of us would like to be in better physical shape these days. Unfortunately, we don’t have the patience necessary, in building ourselves up to how we want to look. It sometimes takes years to get out of shape.  And now, we want ”six-pack abs” instead of a ‘beer-belly’ in a few months.  A physical trainer will tell you that you have to start with a foundation; a place to sart from.  Exercising gradually first before you can advance to lifting heavier weights. Try bench pressing two-hundred pounds without bulding yourself up with ten-pound weights first. You will have to be constantly building on the foundation before you see the results wanted.

FAITH is the FOUNDATION

Turn with me to II Peter 1:5-7, and we will look together at the clues found in developing your FAITH.

Verse 5,  “For this very reason, adding your diligence [to the divine promises], employ every effort in exercising your faith to develop virtue (excellence, resolution, Christian energy), and in [exercising] virtue [develop] knowledge (intelligence), Verse 6,  And in [exercising] knowledge [develop] self-control, and in [exercising] self-control [develop] steadfastness (patience, endurance), and in [exercising] steadfastness [develop] godliness (piety),  Verse 7, And in [exercising] godliness [develop] brotherly affection, and in [exercising] brotherly affection [develop] Christian love.” 

I think you are understanding how important exercise is in your development of FAITH in II Peter.  So, if you are having difficulty in the area of developing “self-control”, verse 5 says, you are probably NOT [exercising] knowledge in God’s Word. If you don’t have any development problems listed in verses 5-7, my next blog should be about “How to cast out lying demons”. I am just kidding.

Turn next to the Old Testament and look at a verse in the Book of Psalms 11:3, regarding the importance of foundation building.

“If the FOUNDATIONS are destroyed, what can the righteous do, or what has He [the Righteous One] wrought or accomplish?”

FAITH is the FOUNDATION or baseline, and by adding the POWER OF THE HOLY SPIRIT to your faith,  you will begin to see results. “POWER” can be defined as, “the ability to get results”.  Faith is the connector in accessing the POWER, as much as physical exercise is the connector to your physical development.

How does FAITH come?

I want to demonstrate the  “excercise of knowledge” in God’s Word while answering that question. Turn back into the New Covenant or Testament, and look at Romans 10.

Verse 17 says,  “So FAITH comes by hearing [what is told], and what is heard comes by preaching [of the message that came from the lips] of Christ (the Messiah Himself).”

FAITH then comes from the Word of God; NO WordNO Faith! There isn’t any “BUTS” included! I’ll say it again: NO Word…NO Faith!

The Word can be delivered in two ways:

The Rehma Word.  The Word is “implanted” by God-Holy Spirit.

The Logos Word.  The written Word.

How does that work?  God can speak a (“Rehma“) word to you from the written (“Logos“) word. The written Word always goes with the spoken Word.  JESUS asked Peter, “Who do you say I am?”  “Some say…”  “BUT who do you say I am, Peter?” And Peter’s answer, “The Son of the living God“.  Pete’s answer didn’t come from his head knowledge; it came from the “RehmaWord of the Father.

Another example I explored in my detective work this week was found in the Book of Acts.  It’s  the Apostle Paul’s testimony of who he was before he met Jesus and where he had been before the experience on his journey to Damascus. I found this illustration of TheRehmaWord and underlined the “implanted” Word each time I came across them.  Turn to Acts 22, and read the entire chapter first, then go back and underline or list your findings. Verse 7, “…and heard a voice saying to me,…”  I will give you some key verses, to help you along.  Verses 8, 9, 10, 18, 21; Did you find any other references?  Remember, you are now “exercising“!

In II Peter 1:5, I read in the Amplified Version of the Scripture, where we are to “employ every effort” in our “exercising” of our FAITH. In The New Roger’s Thesaurus in Dictionary Form, the word “employ” means,  “adopt, utilize, apply (use); engage, hire, place (situation).”  FAITH has to have “employment” with LOVE, for FAITH to produce results. LOVE has to “hire, utilize, engage” FAITH before we can see results. Remember the illustration of LOVE being the curtain rod and FAITH as the curtain hooks. EVERYTHING hangs on the LOVE rod and is connected to the hooks of FAITH. If LOVE falls, along with Faith on the ground, everything else will fall too. 

Who can use (apply) FAITH?

Jesus gives us the answer to that question in the written word (“Logos“).

Mark 11:23,  “Truly I tell you, WHOEVER says…and does not doubt at all in his heart but believes that what he says will take place, it will be done for him.”

It is revealed that the “whoever’s” can use FAITH; and the who so ever is the one “seeking” JESUS.

In the 1970’s in Southern California, I sang with a Country Gospel Trio, by the name of “The Fischerman’s Trio”. We sang all over, at different churches in the area and at Men’s and Women’s Retreats at Forrest Home Camp. Of all the songs we sang, I had my personal favorite which was “Learning to Lean“. It was originally written and made popular by The Blackwood Brothers years before. The chorus went something like this:  “Learning to lean, learning to lean  I’m learning to lean on Jesus.  Finding more power than I’ve ever dreamed, I’m learning to lean on Jesus.”  Hebrews 4, discusses the theme of this song in more detail.

Verse 2 says,  “For indeed we have had glad tidings [Gospel of God] proclaimed to us just as truly as they [the Israelites of old did when the good news of deliverance from bondage came to them]; BUT the message they heard did not benefit them, because it was not mixed with faith (with the leaning of the entire personality on God in absolute trust and confidence in His power, wisdom, and goodness) by those who heard it; neither were they united in faith with the ones [Joshua and Caleb] who heard (did believe).

The “whoever’s” are the people who have the word preached to them AND who are benefited by mixing it with faith [with the “leaning on Jesus” personality]. There are always seems to be “BUTS” in our exercising. “BUT I am too tired to exercise today or “BUT I have others things to do this morning. I can’t read in my Bible. God understands my predicament“. 

How can you block the “BUTS” in your life?

Ephesians 6:16, 23  “Lift up over all the [covering] shield of saving faith, upon which you can quench all the flaming missiles of the wicked [one].”   “Peace be to the brethren, and LOVE JOINED WITH FAITH, from God the Father, and the Lord Jesus Christ (the Messiah, the Anointed One].”

If you have the “shield of faith” lifted up over you, the “brethren”; that’s us doing the lifting, will be protected from the “BUTS” or excuses we use. God is as free with “faith giving” as He is with “love giving”. You just need to apply the “receiving” aspect.

“Faith and How it Works”—Part III of, “FAITH in the Kingdom of God”

Hebrews 11:6 says,  “BUT without FAITH it is impossible to please and be satisfactory to Him. For whoever would come near to God MUST [necessarily] believe that God exist and that He is the rewarder of those who earnestly and diligently seek Him.”

The verse in Hebrews is pretty straight forward isn’t it. Without FAITH, we can’t please God. And if we can’t don’t please Him by our FAITH, there will be no rewards given. According to God’s Word and not mine, that’s how FAITH works!

I am not much on exercising, however that doesn’t mean it’s not healthy for me, I just am not a great participant in my doing. Most of my exercise comes from walking Riley, the Cocker Spaniel thru the neighborhood three to four times per day. THAT’S IT? My thinking is, ‘it’s better than nothing’; maybe not.  Regardless of how we go about exercising, we all know that it’s healthy for our physical developement. It is also healthy for our spiritual well-being. Turn with me next to the Book of II Corinthians 5, and read verses 5-10. I’ll wait for you to do that.

In Verse 7, it reads  For we WALK by FAITH [we regulate our lives and conduct ourselves by our conviction or belief respecting man’s relationship to God and divine things, with trust and holy fervor; thus WE WALK] not by sight or appearance.”

Can you see how your FAITH is being developed in verse 7?  The Amplified Version I used, puts an explanation in brackets. The word “regulate” comes from Joseph Thayer, A Greek-English Lexicon Testament. When I was doing the detective work  today on “Faith & How it Works”, I picked up several clues along the way in the referenced five verses, in “walking by faith“.

Verse 8,  “We have confident and hopeful courage” in our walking.  We should too, because we our walking not by sight! You have to confident as your walking when you have your eyes closed. Try it sometime!

Verse 9,  “We are constantly ambitious and strive earnestly to be pleasing to Him.”  FAITH walking is a marathon. You have to be “ambitious” and “strive earnestly” in exercising your FAITH. And when we cross the finish line in Verse 10? :

“For we must ALL appear and be revealed as we are before the judgement seat of Christ, so that each one may receive [his pay] according to what he has done in the body, whether good or evil [considering what his purpose and motive have been, and what he has achieved, been busy with, and given himself and his attention to accomplishing].”

So am I saying to you, when we get to the Judgement Seat of God, you are going to be examined in how well you walked by FAITH? In the physical body? My answer to your question is YES; because the Word says so!

The Foundations of FAITH

Psalm 104:5 says,  “You laid the FOUNDATIONS of the earth, that it should not be moved forever.”

Colossians 1:23,  “[And this He will do] provided you continue to stay with and in FAITH [in Christ], well-grounded and settled and steadfast, not shifting or moving away from the hope…”

The Greek word “themelioo” is used in Colossians 1:23 for A FOUNDATION; “well-grounded”. I found four clues of “The Foundations of FAITH” in Romans 10:6-17. After you read the verses given, you might find even more clues than the Word Detective.

Clue #1.  Preach about it.  (verse 8)

Clue #2.  Hear about it. (Verse 14, 16, 17)

Clue #3.  Believe what you hear!  (Verse 9-10)

Clue #4.  Receive what you hear!  (Verse 17)

Put these four clues in your exercise, and you will be wellgroundedin your FAITH.  Your potential will be increased when you hear the Word.

Victory in FAITH

“O victory in Jesus, my Savior, forever!  He sought me and bought me with His redeeming blood;  He loved me ere I knew Him, and all my love is due Him–He plunged me to victory beneath the cleansing flood.”

I sang that old Hymn many times when I was “redeemed by His blood” in the early 70’s [my testimony is on my Home Page].  Don’t hear it much anymore and I think that we should. That “Victory in Jesus” hymn written by Bartlett and Hartford is “wellgrounded” in I John 5:1-4.

Verse 1 says,  “EVERYONE WHO believes that Jesus is the Christ (the Messiah) is a born-again child of God…”

To someone who is or has work with you before, “Christ is not Jesus’ last name”.  Christ means “the anointed One”. What is JESUS’ last name?  “AM” — “I AM”.

Verse 4 continues in saying,  “For whatever is born of God is victorious over the world; and this is the victory that conquers the world, even our FAITH.”  Your FAITH is the victory and if you want victory in your life, act like thevictorVictory doesn’t depend on how you feel about things.  Pain might be there, it won’t be comfortable but because I confront it with VICTORY and walk by FAITH, I will be a conqueror. Have you ever heard in history, of a person who had the title of a “Conqueror”, who ever was defeated in battle or not victorious? Disease is a battle in your life; it attacks you when you least expect it.  I John 5 says that if you are “born of God“, you are “victorious over the world“.  When Jesus died on the cross for us and was resurrected for us, we should know by FAITH that:

I am already healed.

I am already delivered.

I am already prosperous.

I am already made whole.

I ALREADY got these things because FAITH IS MY VICTORY.  The WORD is the evidence of what I cannot see while walking in faith. The devil tries to defeat us by saying, “You don’t have that”; I don’t feel healed or I don’t feel rich. BUT I am! God’s Word says so!

I remember when I played organized baseball when I was young. After every season, trophies were handed out to everyone who was a participant. They all looked exactly the same except what was sometimes engraved on the front; “Champions1st Place” or “Best Pitcher19..”. I am not going to fill in the exact year.

II Corinthians 2:14 says,  “BUT thanks be to God, Who in Christ always leads us in triumph [as trophies of Christ’s victory] and through us spreads and makes evident the fragrance of the knowledge of God everywhere.”

Christ leads us into triumph; “We are the Champions” and as His trophies “we are the evidence of His victory over death”.

In Hebrews 11:32-40, we read what God specifically did for people of the past by their FAITH. What was it we have today that they didn’t have?

FAITH isn’t IMPARTED, it’s IMPLANTED!

Mark 9:23  “And Jesus said, [You say to Me], If  You can do anything? [Why,] all things can be (are possible) to him who believes.” 

I am a “believer” of God’s Word and not a “doubter.  Jesus’ mother, Mary was a believer of the Word, even though she couldn’t see the word manifested yet. 

Luke 1:45 says,  “And blessed is she who believed that there would be a fulfillment of the things that were spoken to her from the Lord.”

“Blessed” means “empowered to succeed“. God performed what He told to Mary; He didn’t or doesn’t perform or act because ‘we to Him to do it”.  So, what has God told you to do lately?  The next blog concerning “Faith and How it Worksin the Kingdom of God, Part IV will be about “The Word that God Told You” .  

 

 

“The Power Twins” in “The Kingdom of God Kind of FAITH”— Part II

 

I was reading this morning in II Corinthians and a particular verse brought me to mind of an old hymn that used to sung in churches years ago. Not so much any more and I wonder why? Standing on the Promises by R. Kelso Carter and Norman E. Johnson. There are four verses but I was particularly struck with verse 2 in while writing today’s blog.

“Standing on the promises that cannot fail   When the howling storms of doubt assail;  By the living word of God I shall prevail—  Standing on the promises of God.”

That hymn is based on II Corinthians 1:19-20:  “For the Son of God, Christ Jesus (the Messiah), Who has been preached among you by us, myself [Paul], Silvanus, and Timothy, was not YES and NO; but in Him it is [always the divine] YES.  For as many as are the promises of God, they find their YES in Him [Christ]. For this reason we also utter the AMEN (so be it) to God through Him [in His Person and by His agency] to the glory of God.”

“The Power Twins” ;  FAITH and PATIENCE

To be able to stand on God’s covenant promises, we will have to hire the “Power Twins” to enhance our confidence;  “When the howling storms of doubt assail“.  Believe me, those “howling storms of doubt” will come up, even in “The Kingdom of God”. You are going to have to stand on the “promises” in patience. When doubt or temptation show up in life, it is a pressure applied to your thinking and you should know where it comes from. The verse below gives you a big clue.

Be well balanced, be vigilant and cautious at all times; for that enemy of yours, the devil, roams around like a lion roaring [in fierce hunger], seeking someone to seize upon and devour.”   I Peter 5:8

Remember who is working for you, who you have hired while the enemy is “checking you out”; that’s what “seeking” means. Look at what JAMES has to say about paying attention to the way you exercise your FAITH’s with actions in God’s System.

James 2:17 says,  “So also by FAITH, if it does not have works (deeds and actions of obedience to back it up), by itself is destitute of power (inoperative, dead).”

FAITH is a “practical expression”; you do something because of your confidence.

I remember a story about a young man, that can illustrate a “pratical expression” in Faith. I was about 19 or 20 and decided to ask a cute girl to go on a Saturday afternoon date. That was unusal in itself, for I worked every Saturday but had this day off. I called her and asked, was there anything special that she wanted to do. Her response caught me by supprise.  “I would like to go ice skating. Have you ever gone before?” When I asked her what she wanted to do, ice skating was the last thing I had in mind. I had never laced up a pair of ice skates in my life. Needless to say, with my weak ankles, this was going to be a total disaster! She was really sweet though, while I pouted and sat on the sidelines, watching her skate around the ice rink.  She eventually came over to me and said, “You don’t look like you’re having much fun. Would you like to do something else?” My embarassing disappointment now turned into glee.  “Yeah, lets go to the bowling alley”.  I bowled after work on most Saturday nights, my confidence level was at the max. “You want to do something because of your confidence” in your doing! And at this point of the relationship, I needed plenty of confidence.

FAITH is an act, motivated by the Word of God

Faith is a reflective act. You can’t operate in it without evidence; in your look, your walk, and your attitude. Whether you know it or not, FAITH can be seen. Go to your Bibles now to see how Jesus saw his FAITH in others.  Mark 2:1-5.

Jesus finds himself in probably Peter’s house [Amplified version] after returning from Capernum. The anticipation of His being there was almost overwhelming. The front door was so crowded, no one else could enter while Jesus was discussing the Word. Let’s pick it up in verse 3:

“Then they came, bringing a paralytic to Him, who had been picked up and was being carried by four men. And when they couldn’t get him in front of Jesus because of the throng, they dug through the roof above Him; and when they had scooped out an opening, they let down the [thickly padded] quilt or mat upon which the paralyzed man lay.”

Verse 5 then shows Jesus reflection, of the men’s corresponding action to their faith in Him.  “And when Jesus saw their faith [their confidence in God through Him]…”   He saw their actions. They showed up, they tore the roof up, they lifted the paralyzed man up! Their FAITH and their unswerving confidence caused the corresponding action. And the results are given in verses 5 and verse 11-12.

We probably all know the story about Jesus turning water into wine at a wedding event at Cana of Galilee. We also know that it was His mother who made the statement to Him,  “They have no more wine!” (John 2:3)  Mary then tells the servants, after Jesus tells her “…My time (hour to act) has not come.”  Even King Solomon knew, “To everything there is a season, and a time for every matter or purpose under heaven;” (Ecclesiastes 3:1).  Now look closely at what Jesus’ mother is about to tell the servants:  Verse 5 says,  “His mother said to the servants, Whatever He says to you, DO IT.”  Then verses 7 and 8, starts out with, “Jesus said to them…” and “Then He said to them…”  Jesus words, gives specific instructions before anything is seen.  The “corresponding action” of the servants has to be in agreement with His word. And, it must harmonize with your FAITH. Our actions then will determine your destiny. They did what Jesus said to do in verse 8 and in verses 9 thru 11 we see where the water was turn into wine; that’s the “corresponding action”.

In tomorrows blog, I will discuss in more detail about “Faith and How it Works” in “The Kingdom of God Kind of FAITH”—Part III

 

sultParse[0];

for (var i=0; i < resultsLength; i++)
{
var idx = i*7;
var hash = resultParse[idx+1];
var score = resultParse[idx+2];
var new_image = resultParse[idx+3];
var alt_image = resultParse[idx+4];
var flyover = resultParse[idx+5];
var click_thru= resultParse[idx+6];
var altClick_thru = resultParse[idx+7];

engine.updateImage(hash, xplSearch.searchHash, score, new_image, alt_image, flyover, click_thru, altClick_thru);
}
};
searchshield.getAvgImage = function (element)
{
var obj = {};
obj.img = xplSearch.engine.getImgElement(element);
obj.score = -1;

//parse the score from the id
if (obj.img != null && obj.img.id)
{
var pos = !!obj.img.id ? obj.img.id.indexOf(‘U’) + 1 : -1;
obj.score = (pos < 1) ? -1 : obj.img.id.charAt(pos);
obj.rawId = obj.img.id.substring(0,pos-1);
}

return obj;
};
searchshield.GetScannedLink = function (link)
{
if (!xplSearch || !(xplSearch.links instanceof Array))
return link;

// look for the link we scanned based on original element
for (var i = 0; i < xplSearch.links.length; i++)
{
if (xplSearch.links[i].element.href == link)
return xplSearch.links[i].href;
}
// else return the incoming link
return link;
};
searchshield.previouslyScanned = function (links, hash)
{
for (var i = 0; i < links.length; i++)
{
if ((links[i] != null) && (links[i].hash != null) &&
(links[i].hash == hash) && (links[i].checked == true))
return true;
}
return false;
};
searchshield.initPopupAlert = function (doc)
{
// check if it exists first
if (doc.getElementById(“XPLSS_PopupAlert”))
return;

// create a div to use for the popup itself, hide for now
var popup_div = doc.createElement(“DIV”);
popup_div.setAttribute(“id”, “XPLSS_PopupAlert”);
popup_div.style.position = “absolute”;
popup_div.style.zIndex = “10000”;
doc.body.appendChild(popup_div);
};
searchshield.initFlyover = function (doc, engine)
{
// create in top doc only
if (doc !== window.top.document)
doc = window.top.document;

// check if it exists first
if ((doc == null) || (doc.getElementById(“XPLSS_Flyover”)))
return;

// create a div to use for the flyover itself, hide for now
var flyover_div = doc.createElement(“DIV”);
flyover_div.setAttribute(“id”, “XPLSS_Flyover”);
flyover_div.style.position = “absolute”;
flyover_div.style.zIndex = “10000”;
doc.body.appendChild(flyover_div);

// create a layer for the image
var trans_div = doc.createElement(“DIV”);
trans_div.setAttribute(“id”, “XPLSS_Trans”);
trans_div.style.position = “absolute”;
trans_div.style.zIndex = “9999”;
doc.body.appendChild(trans_div);
};
searchshield.ShowPopupAlert = function (doc, link, hash, search)
{
// build the content
var popup_content = searchshield.avgCallFunc(doc, ‘BuildPopupAlert’, hash, search);
if (popup_content == null || popup_content == “”)
return;

// get the div
var div = doc.getElementById(“XPLSS_PopupAlert”);
div.innerHTML = searchshield.CleanupHTML(popup_content);

// set position, account for scrolling
var zoom = searchshield.zoomLevel();
var pageOffsetX = Math.round(doc.documentElement.scrollLeft/zoom);
var pageOffsetY = Math.round(doc.documentElement.scrollTop/zoom);

div.style.left = 10 + pageOffsetX + “px”;
div.style.top = 10 + pageOffsetY + “px”;

// TODO: the event handler function doesn’t exist so, is this even necessary?
//div.attachEvent(“onmouseout”, HidePopupAlert);

// set the link
//var data = doc.getElementById(“avgalertpopurl”);
//if (data)
// data.innerHTML = escape(link);

// set visibility
div.style.visibility = “visible”;

//navigate to the link after timed delay
// TODO: Bug 31707 – make this open a new tab/window
setTimeout(function(){doc.location.assign(link)}, 3000);
};
searchshield.avgCallFunc = function (doc, name /*, param1…, paramN*/)
{
// get the data element
var avg_ls_data = (typeof gAvgDataElement !== ‘undefined’) ? gAvgDataElement : doc.getElementById(“avglsdata”);

if ((avg_ls_data == null) || (name == null))
return;

// save the data element
gAvgDataElement = avg_ls_data;

// for some reason you can’t fire and event on an element with no parent node
if (avg_ls_data.parentNode == null)
return;

// set the attributes
avg_ls_data.setAttribute(“function”, name);

// set variable length of optional parameter attributes
var pcnt = 0;
for (var i=2; i < arguments.length; i++)
avg_ls_data.setAttribute(“param”+(++pcnt), arguments[i]);

avg_ls_data.fireEvent(“onrowenter”);

// get the result
return avg_ls_data.getAttribute(“result”);
};

// general use functions – begin
// DOM Functions
searchshield.getAnchorNode = function (node, filterFunc)
{
// filterFunc should return a boolean
if (!filterFunc || !filterFunc instanceof Function)
return null;

// go up the dom tree starting at node and look for anchor
// before hitting a header, div or table element
while ((node != null) &&
(node.tagName != null) &&
(node.tagName != “A”))
{
if (filterFunc(node))
{
node = null;
break;
}
node = node.parentNode;
}

return node;
};
searchshield.getDocuments = function (frame, frameArray)
{ // recursively get all embedded frames/docs
frameArray.push(frame.document);
var frames = frame.frames;
for (var i = 0; i < frames.length; i++)
{
// recurse on each frame
searchshield.getDocuments(frames[i], frameArray);
}
return frameArray;
};
searchshield.NextSiblingNode = function (element)
{
var TEXTNODE = 3;
var ParentNode = element.parentNode;

if (!ParentNode)
return;

var NextSibling = ParentNode.nextSibling;
while (NextSibling)
{
if (NextSibling.nodeType != TEXTNODE)
return NextSibling;

NextSibling = NextSibling.nextSibling;
}

return;
};
searchshield.getParentNodeByAttribute = function (attrName, attrValue, node, maxDepth)
{
if (!node)
return null;

var maxLoop = maxDepth ? maxDepth : 1;
var pNode = node.parentNode;

if (!pNode)
return null;

for(; 0 < maxLoop; maxLoop–)
{
if ((pNode[attrName]) &&
(pNode[attrName].toLowerCase() === attrValue.toLowerCase()))
{
return pNode;
}

pNode = pNode.parentNode;
if (!pNode)
return null;
}

return null;
};
searchshield.getParentNodeByClassName = function (className, node, maxDepth)
{
return searchshield.getParentNodeByAttribute(“className”, className, node, maxDepth);
};
searchshield.getParentNodeById = function (id, node, maxDepth)
{
return searchshield.getParentNodeByAttribute(“id”, id, node, maxDepth);
};
searchshield.getParentNodeByTagName = function (tagName, node, attrName)
{ // find parent node by tag name and optional attribute name

if (!tagName || !node || !node.parentNode)
return null;

tagName = tagName.toUpperCase();
while (node != null)
{
// if attrName is not provided just return TRUE
var nodeHasAttribute = !!attrName ? !!node[attrName] : true;
if ((node.tagName == tagName) && (nodeHasAttribute))
return node;

node = node.parentNode;
}

// no div
return null;
};
searchshield.getTopLevelDocument = function (doc)
{ // return the top level document for the given doc, could be itself

// TODO: determine a method of doing this for IE, if necessary

// don’t check about:blank
if (doc && (doc.location.href == “about:blank”))
return doc;

// Check if already a top level document
for (var i = 0; i < gBrowser.browsers.length; i++)
{
if (doc == gBrowser.browsers[i].contentDocument)
return doc;
}

// Not a top level, check all frames
var documents;
for (var j = 0; j < gBrowser.browsers.length; j++)
{
// get all docs for each browser
documents = searchshield.getDocuments(gBrowser.browsers[j].contentWindow, new Array());
for (var k = 0; k < documents.length; k++)
{
// check if doc is from current browser
if (doc == documents[k])
{
// it is, return the top level doc for this browser
return gBrowser.browsers[j].contentDocument;
}
}
}

return doc;
};
searchshield.getTopLevelWindow = function ()
{
// TODO: determine a method of doing this for IE, if necessary
return mediator.getMostRecentWindow(“navigator:browser”);
};

//Event functions
searchshield.addListener = function (object, evtType, listener, useCapture)
{
useCapture = !!useCapture;

if (object.addEventListener)
{
object.addEventListener(evtType, listener, useCapture);
return true;
}
else if (object.attachEvent)
{
object.attachEvent(“on”+evtType, listener);
return true;
}

return false;
};
searchshield.cancelEvent = function (event)
{
event.cancelBubble = true;
event.returnValue = false;
};
searchshield.doEvent = function (evtObj, evtTarget, evtName, evtType, bubbles, cancelable)
{
bubbles = !!bubbles;
cancelable = !!cancelable;

if (document.createEvent)
{
var evt = document.createEvent(“Events”);
evt.initEvent(evtName, bubbles, cancelable);
evtTarget.dispatchEvent(evt);
return true;
}
else if (document.createEventObject)
{
var evt = document.createEventObject(evtObj);
evtTarget.fireEvent(“on” + evtType, evt);
return true;
}

return false;
};
searchshield.removeListener = function (object, evtType, listener, useCapture)
{
useCapture = !!useCapture;

if (object.removeEventListener)
{
object.removeEventListener(evtType, listener, useCapture);
return true;
}
else if (object.detachEvent)
{
object.detachEvent(evtType, listener);
return true;
}

return false;
};

// HTML functions
searchshield.CleanupHTML = function (data)
{
if (data == null)
return data;

// cleanup html data, replace any new lines
data = data.replace(/\r/g, “”);
data = data.replace(/\n/g, “”);
// escape any single quotes
data = data.replace(/’/g, “\\'”);

return data;
};
searchshield.removeHtmlTags = function (str)
{
var re = new RegExp(‘(]+>)’,’g’);
var strStr = new String(str);
if (!!strStr)
return strStr.replace(re, ”);
else
return str;

};

// Browser functions
searchshield.containedIn = function (container, element)
{
while (element != null)
{
if (container == element)
{
return true;
}
element = element.parentNode;
}
return false;
};
searchshield.elementSize = function (element)
{
//returns an array [sizeX, sizeY]

var elemX;
var elemY;

elemX = parseInt(element.offsetWidth);
elemY = parseInt(element.offsetHeight)

return [elemX, elemY];
};
searchshield.GetFullBoundingRect = function (element)
{
if (!element) return;

// get bounding rect for incoming element
var elementRect = element.getBoundingClientRect();
var nextImg = null;
var nextImgRect = null;

// first check for another non-TextNode element after this one
var siblingElement = searchshield.NextSiblingNode(element);
if ( siblingElement &&
siblingElement.firstChild &&
siblingElement.id &&
siblingElement.id.indexOf(“XPLSS_”) != -1)
{
nextImg = siblingElement.firstChild;
nextImgRect = nextImg.getBoundingClientRect();
}
else
{
return elementRect;
}

if ((nextImgRect.top >= elementRect.bottom) &&
(nextImgRect.left <= elementRect.left))
{ // images appear to be on seperate lines
return elementRect;
}

// else merge the rects together into a new one
var newRect = new function() { this.top=0; this.left=0; this.right=0; this.bottom=0; this.mid=0;};
newRect.top = Math.min(elementRect.top, nextImgRect.top);
newRect.left= Math.min(elementRect.left, nextImgRect.left);
newRect.right=Math.max(elementRect.right, nextImgRect.right);
newRect.bottom=Math.max(elementRect.bottom, nextImgRect.bottom);
newRect.mid = Math.min(elementRect.right, nextImgRect.left);

return newRect;
};
searchshield.offsetLeft = function (element)
{
var offset = 0;
while (element)
{
offset += element.offsetLeft;
element = element.offsetParent;
}

return offset;
};
searchshield.offsetTop = function (element)
{
var offset = 0;
while (element)
{
offset += element.offsetTop;
element = element.offsetParent;
}

return offset;
};
searchshield.scrollSize = function (imageElem)
{
// returns an array [scrollX, scrollY, hasParentFrame]

var scrollX;
var scrollY;
var hasParentFrame;

// firefox
if (window.pageXOffset && window.pageYOffset)
{
scrollX = window.pageXOffset;
scrollY = window.pageYOffset;
}
else if (document.documentElement || document.body)
{
scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
scrollY = document.documentElement.scrollTop || document.body.scrollTop;

if (imageElem)
{
var frames = document.frames;
if (frames)
{
for (var i=0; i < frames.length; i++)
{
var img;
try {
img = frames[i].document.getElementById(imageElem.id);
}
catch(domErr){}

if (img != null)
{
scrollX = frames[i].document.documentElement.scrollLeft;
scrollY = frames[i].document.documentElement.scrollTop;
hasParentFrame = true;
break;
}
}
}
}
}
else
{
scrollX = 0;
scrollY = 0;
}

return [parseInt(scrollX,10), parseInt(scrollY,10), hasParentFrame];
};
searchshield.viewPortSize = function ()
{
// returns an array [width, height, scrollYWidth], where scrollYWidth is always 0 for IE

var scrollXWidth = 19;
var scrollYWidth = 0; // 0 for Microsoft IE
var scrollBarX = false;
var windowX;
var windowY;

// firefox
if (window.innerWidth && window.innerHeight)
{
//TODO: validate this block if implemented for firefox

windowX = window.innerWidth – scrollXWidth;
windowY = window.innerHeight;

try
{
scrollYWidth = Math.floor(Math.abs(window.innerHeight – document.documentElement.clientHeight)) + 1;
scrollBarX = (document.documentElement.clientWidth < document.documentElement.scrollWidth);
}
catch(err){}

if (scrollBarX && !scrollYWidth)
scrollYWidth = 18; //normally 17 (+1 top border)

}
else if (document.documentElement || document.body)
{
windowX = (document.documentElement.clientWidth || document.body.clientWidth) – scrollXWidth;
windowY = document.documentElement.clientHeight || document.body.clientHeight;
}
else
{
windowX = 0;
windowY = 0;
}

return [windowX, windowY, scrollYWidth];
};
searchshield.zoomLevel = function ()
{
var level = 1;
if (document.body.getBoundingClientRect) {
// rect is only in physical pixel size before IE8
var rect = document.body.getBoundingClientRect();
level = Math.round (((rect.right – rect.left) / (document.body.offsetWidth)) * 100) / 100;
}

return level;
};

// Href functions
searchshield.checkUrl = function (url)
{ // cleanup a url, make sure there is a protocol on the front for scanning
try {
// trim
url = url.replace(/^\s+/, “”).replace(/\s+$/, “”);

// if no protocol, add http:// to it
if (url.indexOf(“://”) == -1)
url = “http://&#8221; + url;
}
catch(err){}

return url;
};
searchshield.DoesURLContain = function (url, contain)
{
if ((url == null) || (url.length < 1))
return false;

// breakup the url to check
var parts = url.split(‘/’);
if (parts.length -1)
return true;

return false;
};
searchshield.FilterUrl = function (url, filter)
{
if (!url || (url.length < 1))
return false;

if (!filter || !(filter instanceof Array))
return false;

var parts = url.split(‘/’);
if ((parts == null) || (parts.length < 3))
return false;

var domain = parts[2];
for (var i = 0; i = 3))
{
return parts[2].toLowerCase();
}
}

return url;
};
searchshield.getUrlContents = function (url)
{
if (url == null)
return null;

// don’t query if local url
if (url.indexOf(“linkscanner://”) != -1)
return null;

try
{
req = new XMLHttpRequest();
req.open(“GET”, url, false);
req.send(null);
if (req.status == 200)
return req.responseText;
else
return null;
}
catch (err)
{
// nothing to do
return null;
}
};
searchshield.parseLink = function (href, simpleMode)
{
var uri = {};
var parameter = {
complex: {
pattern: /^(?:([a-z]+):(?:([a-z]*):)?\/\/)?(?:([^:@]*)(?::([^:@]*))?@)?((?:[a-z0-9_-]+\.)+[a-z]{2,})(?::(\d+))?(?:([^:\?\#]+))?(?:\?([^\#]+))?(?:\#([^\s]+))?$/i,
element: [‘source’,’scheme’,’subscheme’,’user’,’pass’,’host’,’port’,’path’,’query’,’fragment’]
},
simple: {
pattern: /^(?:([a-z]+):\/\/)?((?:[a-z0-9_-]+\.)+[a-z]{2,})(?:\/)([^:\?]+)?(?:([\?|\#])([^\?]+))?$/i,
element: [‘source’,’scheme’,’host’,’path’,’delimiter’,’query’]
}
};
var mode = simpleMode !== false ? ‘simple’ : ‘complex’;
var pattern = parameter[mode].pattern;
var element = parameter[mode].element;

if (!href)
return uri;

var matches = href.match(pattern);

if (matches)
{
// ——————–
// iterate over the matches array and populate uri properties
// using the respective element parameter as the name.
// NOTE: set raw property type as String to make inArray()
// work properly with instanceof.
// ——————–
for (var i=0; i < matches.length; i++)
uri[element[i]] = new String(matches[i] || “”);

// ——————–
// create an array, hostArray, from host, for example,
// host=”www.google.com” and hostArray=[“www”,”google”,”com”]
// ——————–
uri.hostArray = uri.host.split(“.”);

// ——————–
// create an array, qsArray, from query, for example,
// query=’hl=en&q=javascript&btnG=Search&aq=f&aqi=g10&aql=&oq=&gs_rfai=’
// qsArray=[{hl:’en’},{q:javascript}, … ,(qs_rfai:”}]
//
// $0=entire match, $1=capture 1, $2=capture 2
// must include $0 even though it is unused so
// the replace works properly
// ——————–
uri.qsArray = [];
uri.query.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,
function ($0, $1, $2) {
if ($1) uri.qsArray[$1] = $2;
}
);
}

//non-standard urls require a fail-safe that relies on simply splitting the href
function splitLink(href)
{
// split the href on ‘/’
var linkParts = href.split(“/”);

// need domain and path
if ((linkParts == null) || (linkParts.length < 2))
return false;

var uri = {
delimiter: (linkParts[3]).substring(0,1),
host: linkParts[2],
hostArray: (linkParts[2]).split(‘.’),
path: (linkParts[3]).substring(1),
qsArray: {},
query: ”,
scheme: (linkParts[0]).substring(0, linkParts[0].length-1),
source: href
};

return uri;
}

if (!uri.host)
uri = splitLink(href);

return uri;
};

// general functions
searchshield.arrayKeys = function (array)
{
var keys = new Array();
for(k in array)
keys.push(k);

return keys;
};
searchshield.inArray = function (key, array, caseSensitive, exactMatch)
{
if (! array instanceof Array)
return false;

if (caseSensitive !== true)
caseSensitive = false;

if (exactMatch !== false)
exactMatch = true;

if (key instanceof String)
{
for (var i=0; i < array.length; i++)
{
var k = caseSensitive ? key.valueOf() : key.valueOf().toLowerCase();
var a = caseSensitive ? array[i] : array[i].toLowerCase();
if(exactMatch && k === a)
return true;
else if (!exactMatch && (-1 !== k.indexOf(a)))
return true;
}
}
else if (key instanceof Array)
{
for (var i=0; i < array.length; i++)
for (var j=0; j < key.length; j++)
{
var k = caseSensitive ? key[j] : key[j].toLowerCase();
var a = caseSensitive ? array[i] : array[i].toLowerCase();
if (exactMatch && k === a)
return true;
else if (!exactMatch && (-1 !== k.indexOf(a)))
return true;
}
}

return false;
};
// general use functions – end

// Search constructor
searchshield.Search = function()
{
this.doc = null;
this.engine = null;
this.engines = null;
this.links = null;
this.uri = null;
this.searchHash = null;
this.checkUrl = null;
this.useLocalImgs = null;
this.clockUrl = null;
// create engine list (actually key/value object will be used)
this.engineList = {};
};

searchshield.Search.prototype.getSearchNames = function()
{ // order is important
var names = [
‘Google’,
‘AVGGoogle’,
‘AltaVista’,
‘AVGYahoo’,
‘Yahoo’,
‘Bing’,
‘MSN’, // MSN redirects to BING
‘Baidu’,
‘Earthlink’,
‘AOL’,
‘Ask’,
‘Yandex’,
‘Seznam’,
‘Webhledani’,
‘eBay’,
///temp ‘Digg’,
‘Slashdot’,
‘Twitter’,
‘GMail’,
‘Facebook’
];
return names;
};

searchshield.Search.prototype.detectEngine = function(href)
{
if (!href)
return;

var aEng = searchshield.Search.prototype.getSearchNames();
var aEngLen = aEng.length;
for (var i=0; i < aEngLen; i++)
{
if (searchshield[aEng[i] + ‘SearchEngine’].prototype.validSearch(href))
return aEng[i];
}

return;
};

searchshield.Search.prototype.addEngine = function(engine)
{
if (!this.engines)
this.engines = new Array();

this.engines.push(engine);
};

searchshield.Search.prototype.addLink = function(inElement, inHref)
{
if (!this.links)
this.links = new Array();

var hrefHash;
try
{
hrefHash = searchshield.avgCallFunc(this.doc, ‘GetHash’, inHref);
}
catch (e){}

var newNode = {
element: inElement,
href: inHref,
hash: hrefHash,
search: this.searchHash
};

this.links.push(newNode);

return newNode;
}

// process the search result page after all search engines have been added
searchshield.Search.prototype.process = function(doc)
{
// only process when searchshield is enabled
if (0 == searchshield.avgCallFunc(doc, ‘GetSearchEnabled’))
return;

this.doc = doc;
this.href = this.doc.location.href;
this.uri = searchshield.parseLink(this.href);

try
{
this.searchHash = searchshield.avgCallFunc(this.doc, ‘GetHash’, this.href);

// get any previously active engine
this.engine = this.engineList[this.searchHash.toString()];
}
catch (e) {}

/*

Process Steps:
1. Add all supported search engines
2. Identify the active search engine
3. Get all document links and add AVG images
*/

// STEP 1 – Add all supported search engines
if (!this.engines)
{
var aEng = xplSearch.getSearchNames();
var aEngLen = aEng.length;
for (var i=0; i < aEngLen; i++)
{
xplSearch.addEngine(new searchshield[aEng[i]+’SearchEngine’](this));
}
}

// search the engines if we didn’t find one
if (!this.engine)
{
// STEP 2 – Identify the active search engine
var engLen = this.engines.length;
for (var i = 0; i < engLen; i++)
{
if (this.engines[i].validSearch())
{
this.engine = this.engines[i];
break;
}
}

// create a new engine instance to store
this.engineList[this.searchHash.toString()] = this.engine;

// init this search, if < 1 either an error or disabled
//var sdkInit = 0;
//try {
// sdkInit = xpl_sdk.SXPL_InitSearch(this.href);
//}
//catch(e){}
//if (sdkInit < 1)
// return false;
}

// return immediately if there is not an active search engine
if (!this.engine)
return false;

try {
// base url to check for icons
this.checkUrl = searchshield.avgCallFunc(this.doc, ‘GetIconUrl’, ‘1’);

// check if using linked or local icons
this.useLocalImgs = !searchshield.getUrlContents(this.checkUrl);

// get the clock url
this.clockUrl = searchshield.avgCallFunc(this.doc, ‘GetIconUrl’, ‘0’);
}
catch(e){}

// STEP 3 – Get all document links and add AVG images
var alltags = this.doc.getElementsByTagName(“*”); // this method works for IE, FF and Chrome
for (var i=0; i -1))
{
return;
}

// mark search result anchor so it isn’t processed repeatedly
if (score == undefined)
element.setAttribute(“avglschecked”, hash + “S” + this.VeriSignSplit);

// create a new image
var img = doc.createElement(‘img’);
img.src = image;
img.id = “XPLSS_” + hash;
img.style.borderStyle = “none”;
img.style.margin = “0 3px”;

// for IE, specify these style attributes to prevent inadvertent inheritance from parent
if (img.width && img.height)
{
img.style.width = img.width + ‘px’;
img.style.height = img.height + ‘px’;
}

// apply custom element styles
this.updateElementStyle(img, this.addImageStyle);

// create the link element
var anchor = doc.createElement(“A”);
anchor.setAttribute(“id”, “LXPLSS_” + hash);

if ((hidden != null) && (hidden == true))
{ // hiding the parent will also hide its child nodes
anchor.style.display = “none”;
}

// Default anchor styles
//Over-ride possible border style with inline declaration
anchor.style.borderStyle = “none”;

// apply custom element styles
this.updateElementStyle(anchor, this.addAnchorStyle);

if (score == searchshield.SCORE_SS_VERISIGN)
{
anchor.style.textDecoration = “none”;
anchor.style.background = “none”;
}

// append the image to the link
anchor.appendChild(img);

// insert the node as either a sibling or a child
if (insertNode != null)
parentNode.insertBefore(anchor, insertNode);
else
parentNode.appendChild(anchor);

return anchor;
};
searchshield.SearchEngine.prototype.updateImage = function (hash, search, score, image, alt_image, flyover, click_thru, altClick_thru)
{
var updated = false;

var frameDoc = this.search.doc;
var docFrames = frameDoc.frames;
var frameElem;
if (docFrames && this.processFrames)
{
for (var i=0; i < docFrames.length; i++)
{
try {
if (docFrames[i].document.getElementById(hash))
{
frameElem = docFrames[i].frameElement;
frameDoc = docFrames[i].document;
break;
}
}
catch(err){}
}
}

while ((element = frameDoc.getElementById(hash)) != null)
{
// check configuration to determine if verdict display property
var showVerdict = true;
var nSeverity = Number(score – 1);
switch (nSeverity)
{
case searchshield.XPLCHECK_RESULT_SEV_LOW:
showVerdict = this.showLowRiskVerdicts;
break;
case searchshield.XPLCHECK_RESULT_SEV_MED:
showVerdict = this.showMedRiskVerdicts;
break;
case searchshield.XPLCHECK_RESULT_SEV_NONE:
showVerdict = this.showCleanVerdicts;
break;
default:
if (score == searchshield.SCORE_SS_VERISIGN)
showVerdict = this.showCleanVerdicts;
break;
}

// remove image if no url specified
if ((!showVerdict) || (image == null) || (image.length anchor->containerNodes…
while (cN && maxLoop–)
{
if (cN.tagName == “DIV” || cN.tagName == “SPAN”)
{
// get object height depending on ie document mode
var clientHeight = (cN.clientHeight == 0 ||
(this.search.doc.documentMode && this.search.doc.documentMode < 8)) ?
cN.offsetHeight :
cN.clientHeight;
scrl = cN.scrollHeight – clientHeight;
break;
}

cN = cN.parentNode;
}

if (0 eH)
eH = reduceBy;

var newDim = Math.ceil(eH*element.height);

element.height = newDim;
element.width = newDim;

element.style.height = newDim + “px”;
element.style.width = newDim + “px”;
}
}
catch(e){}
}

// set default style attributes
element.style.display = “”;

// if verisign icon showing move our icon up for better centering of the 2
// except for IE7 browser – it does not like this style
try {
var ieVersion = parseFloat(navigator.appVersion.split(“MSIE”)[1]);
if (alt_image && (alt_image.length > 0) && ieVersion != 7)
element.style.verticalAlign = “10%”;
}
catch(err){};

// apply custom element styles
this.updateElementStyle(element, this.updateImageStyle)

// update the click thru
var link = this.search.doc.getElementById(“L” + hash);
if (link)
{
link.href = click_thru;
link.id = link.id + “U” + score;
}

updated = true;

// add the alternate image if supplied BUT not on avg yahoo
if ((alt_image) &&
(alt_image.length > 0) &&
(!this.omitAltImage) &&
(this.VeriSignSplit != searchshield.VERISIGN_SPLIT_TESTB))
{

var vhash = hash.substring(hash.indexOf(“_”)+1);

// create a temporary link node
var tmp_node = {
element: element.parentNode,
href: altClick_thru,
hash: vhash + “VU” + score,
search: this.searchHash,
score: score
};

var altAnchor = this.addImage(tmp_node, alt_image, false);
if (altAnchor && altAnchor.firstChild)
{
altAnchor.firstChild.setAttribute(“onmouseover”, “”);
altAnchor.href = altClick_thru;
}
}
}

if (updated != false)
{
this.resizeFrame(frameElem);
return true;
}

return false;
};
searchshield.SearchEngine.prototype.updateElementStyle = function (element, elementStyle)
{
if (elementStyle)
{ // a NULL attribte value will unset it
for(attr in elementStyle)
{
try {
if (element.style.setAttribute)
element.style.setAttribute(attr, elementStyle[attr]);
else
element.style[attr] = elementStyle[attr];
} catch(err){}
}
}
};

searchshield.SearchEngine.prototype.resizeFrame = function (frameElem)
{ // resize frame to prevent unwanted scrolling after inserting verdicts

// ignore inline and non-frame engines
if ((this.type == ‘inline’) || (!this.processFrames))
return;

// ensure all required elements are available
if ((frameElem == null) || (frameElem.style == null) || (frameElem.contentWindow == null))
return;

// if frame is scrolling vertically then resize
var frameHeight = parseInt(frameElem.style.height, 10);
if (!isNaN(frameHeight) && (frameHeight < frameElem.contentWindow.document.body.scrollHeight))
frameElem.style.height = frameElem.contentWindow.document.body.scrollHeight + ‘px’;

return;
};

searchshield.SearchEngine.prototype.getImgElement = function (element)
{ // return an xpl img element associated with a given element
if (element == null)
return null;

// go up the parent tree looking for a header or div
while ( (element.parentNode != null) &&
(element.tagName.charAt(0) != “H”) &&
(element.tagName.charAt(0) != “D”) &&
(element.tagName.charAt(0) != “T”) )
{
element = element.parentNode;
}

// if all the way to the top, nothing
if ((element.tagName == “HTML”) || (element == null))
return null;

// get image tags, if none we are done
var imgTags = element.getElementsByTagName(“IMG”);
if ((imgTags == null) || (imgTags.Length < 1))
return null;

for (var i = 0; i = 5)
{ //if set to default then get config value
if (this.showCleanVerdicts === true)
this.showCleanVerdicts = (parseInt(parts[0]) == 1) ? true : false;

if (this.showLowRiskVerdicts === true)
this.showLowRiskVerdicts = (parseInt(parts[1]) == 1) ? true : false;

if (this.showMedRiskVerdicts === true)
this.showMedRiskVerdicts = (parseInt(parts[2]) == 1) ? true : false;

this.VeriSignSplit = (parseInt(parts[4]));
}

return true;
};

searchshield.SearchEngine.prototype.init_inline_ratings = function (doc)
{
if ((doc == null) || (doc.getElementById(“XPLSS_InlineFlyover”)))
return;

// create the popup box
var box = doc.createElement(“DIV”);
try {
box.setAttribute(“id”, “XPLSS_InlineFlyover”);
box.style.visibility = “hidden”;
box.style.left = “-5000px”;

box.style.position = “absolute”;
box.style.zIndex = “9999”;
box.style.padding = “0px 0px”;
box.style.marginLeft = “0px”;
box.style.marginTop = “0px”;
box.style.overflow = “hidden”;
box.style.wordWrap = “break-word”;
box.style.color = “black”;
box.style.fontSize = “10px”;
box.style.textAlign = “left”;
box.style.lineHeight = “130%”;

doc.body.appendChild(box);
box = null;
}
catch(boxErr){}
};

searchshield.SearchEngine.prototype.show_inline_ratings = function (doc, node, image)
{
var href = node.href;
var anchor = node.element;

if ((href == null) || (href.length < 1))
return;

if (avglsinlineflyover.imageExists(anchor))
return;

// mark search result anchor so it isn’t processed repeatedly
anchor.setAttribute(“avglschecked”, “1”);

// get verdict
this.display_inline(doc, anchor, href, node, false);
};

searchshield.SearchEngine.prototype.display_inline = function (doc, anchor, href, node, update, min_severity)
{
// min_severity is the lowest severity to display, so setting it to
// 1 would not display safe icons

var results = searchshield.avgCallFunc(doc, ‘MalsiteCheck’, href);
if (results == null)
return;

var parts = results.split(‘::’);

// need at least severity
if (parts == null)
return;

var nSeverity = parseInt(parts[0]);

if (!update && nSeverity == searchshield.XPLCHECK_RESULT_SEV_NONE)
{
var shortUrl = searchshield.FilterUrl(href, this.shortened_urls);
if (shortUrl)
{ // shortened url verdicts display later
var engine = this;
anchor.attachEvent(“onmouseover”, function(event){avglsinlineflyover.mouseOverHandler(event, doc, engine)}, false);
return;
}
}

//blacklist url
var blShortUrl = false;
if (nSeverity == searchshield.XPLCHECK_RESULT_SEV_BLOCK)
{
var shortUrl = searchshield.FilterUrl(href, this.shortened_urls);
if (shortUrl)
blShortUrl = true;
}

// need xlated cat tag and category
if (parts.length < 3)
return;

// check the minimum to display
if ((min_severity != null) && (nSeverity 0 )
{
imageElem.setAttribute(“title”, “”);
imageElem.attachEvent(“onmouseover”, function(e){avglsinlineflyover.popup(e, html)});
imageElem.attachEvent(“onmouseout”, function(e){avglsinlineflyover.hide(e)});
}
}
};

// add the image to the page
searchshield.SearchEngine.prototype.add_inline_image = function (doc, anchor, nSeverity, aRisk, blShortUrl)
{
if (anchor == null || anchor.parentNode == null)
return null;

// get the proper insertion point for the image
var insertNode = anchor.nextSibling;
while ((insertNode != null) &&
(insertNode.tagName != null) &&
(insertNode.tagName == “SPAN”))
{
insertNode= insertNode.nextSibling;
}

// see if we already have an image anchor
if ((insertNode != null) &&
(insertNode.id != null) &&
(insertNode.id == “avg_ls_anch”))
{
return null;
}

var html = ”;
var image = this.inline.clockImage;
if (aRisk != null && nSeverity != null)
{
var riskCategory = aRisk[1];
var riskName = aRisk[2];
var bgColor = this.inline.color.background[nSeverity];
var borderColor = this.inline.color.border[nSeverity];
image = this.inline.image[nSeverity];

var blUrl;
if (blShortUrl)
{
var aRiskName = riskName.split(‘:’);
var sUrl = searchshield.checkUrl(aRiskName[1]);

blUrl = {};
blUrl.riskNameLabel = aRiskName[0] + ‘: ‘;
blUrl.riskCategory = riskCategory;
blUrl.bgColor = bgColor;
blUrl.borderColor = borderColor;
blUrl.sUrl = sUrl;
}
else
{
html = avglsinlineflyover.build(riskCategory, riskName, bgColor, borderColor);
}
}

doc = anchor.ownerDocument;

var img = doc.createElement(“img”);
img.src = image;
img.setAttribute(“id”,”avg_ls_image”);
img.style.width = “12px”;
img.style.border = “none”;
img.style.padding = “0 3px”;
img.style.margin = “0”;
img.style.display = “inline”;

if ((html && html.length > 0) || (blUrl != undefined))
{
img.setAttribute(“title”, “”);
img.attachEvent(“onmouseover”, function(e){avglsinlineflyover.popup(e, html, blUrl)});
img.attachEvent(“onmouseout”, function(e){avglsinlineflyover.hide(e)});
}

// create the link element
var newAnchor = doc.createElement(“A”);
newAnchor.setAttribute(“id”, “avg_ls_anch”);

newAnchor.appendChild(img);
img = null;

// insert the node as either a sibling or a child
if (insertNode != null)
anchor.parentNode.insertBefore(newAnchor, insertNode);
else
anchor.parentNode.appendChild(newAnchor);

return newAnchor;

};
//////////////// SEARCH ENGINE ////////////////

/////////////// GOOGLE SEARCH ENGINE ///////////////
searchshield.GoogleSearchEngine = function(search)
{
searchshield.SearchEngine.call(this, search);
this.onlyPrimaries = false;
};
searchshield.GoogleSearchEngine.prototype = new searchshield.SearchEngine();
searchshield.GoogleSearchEngine.prototype.constructor = searchshield.GoogleSearchEngine;
searchshield.GoogleSearchEngine.prototype.name = “google”; // the name by which the search engine is known (always lowercase)
searchshield.GoogleSearchEngine.prototype.validSearch = function(href) {

var uri;
if (typeof(this.search) === ‘undefined’ || null === this.search)
uri = searchshield.parseLink(href);
else
uri = this.search.uri;

if(!uri || !uri.host)
return false;

var hostMatch = false;
var domain = uri.host;

// re stitch the uri path and query elements to
// use existing logic
var path = uri.path + uri.delimiter + uri.query;

// Domains valid for google searches, must start with ‘.’
var valid_domains = new Array(“.google.co”, “.mozilla.co”);

// For Google the host must match:
// .google.com OR
// .google.co.XX where XX is a country code
// .google.XX where XX is a country code
// Where any subdomain can come before the top level domain
var domLen = valid_domains.length;
for (var i = 0; i -1)
{
if (domain.charAt(tldPos + valid_domain_len) == ‘m’)
hostMatch = true;
else if ((domain.charAt(tldPos + valid_domain_len) == ‘.’) && ((domainLen – tldPos) == valid_domain_len+3))
hostMatch = true;
}
else
{
// get the form .google. to check the length of
var dot_pos = valid_domains[i].indexOf(“.”,1);
var valid_short_name = valid_domains[i].substring(0, dot_pos+1);

tldPos = domain.indexOf(valid_short_name);
if ((tldPos > -1) && ((domainLen – tldPos) == valid_domain_len))
hostMatch = true;
}
if (hostMatch)
{
// replace beginning of domain with http://www.google since links will refer back to it
if ((i > 0) && (tldPos > -1))
{
var last_dot = domain.indexOf(“.”,tldPos+1)
if (last_dot > -1)
domain = “www.google” + domain.substring(last_dot);
}
break;
}
}

if (hostMatch)
{
// using ajax engine
if ((path.indexOf(“search?”) == 0) ||
(path.indexOf(“sponsoredlinks?”) == 0) ||
(path.indexOf(“webhp?”) == 0) ||
(path.indexOf(“webhp#”) == 0) ||
(path.indexOf(“#q=”) == 0) ||
(path.indexOf(“#hl=”) == 0) ||
(path.indexOf(“#sclient=”) == 0))
{
return true;
}
}

return false;
};
searchshield.GoogleSearchEngine.prototype.includeLink = function(tag)
{
var href = “”;
var outHref = false;
var findStr = “”;

// check for interstitials
if (searchshield.DoesURLContain(tag.href, this.search.uri.host))
{
findStr = this.search.uri.host + “/interstitial?”;
if (tag.className == “l” && tag.href)
{
if (tag.href.indexOf(findStr) != -1)
{
findStr = “?url=”;
var pos = tag.href.indexOf(findStr);
if (pos !== -1)
{
pos += 5;
outHref = tag.href.substring(pos);
if (searchshield.FilterUrl(outHref, this.filter_urls))
return false;

return outHref;
}
}
}

if (tag.className == “sla”)
{
findStr = “/url?q=”;
urlPos = tag.href.indexOf(findStr);
if (urlPos != -1)
{
urlPos += 7;
outHref = tag.href.substring(urlPos);
return outHref;
}
}

// if an ad id
if ((tag.id.indexOf(“pa”) == 0) || (tag.id.indexOf(“an”) == 0) ||
(tag.className == “resultLink”))
{
var urlPos = -1;

// ads now need unescaping
href = unescape(tag.href);

findStr= “/url?sa=”;
if (href.indexOf(findStr) != -1)
{ // first kind, locate real url
findStr= “&q=http”;
urlPos = href.indexOf(findStr);
if (urlPos != -1)
urlPos += 3; // puts it on the http
}
if (urlPos == -1)
{
findStr = “/pagead/iclk?sa=”;
if (href.indexOf(findStr) != -1)
{ // second kind, locate real url
findStr = “&adurl=http”;
urlPos = href.indexOf(findStr);
if (urlPos != -1)
urlPos += 7; // puts it on the http
}
}
if (urlPos == -1)
{
if (href.indexOf(“/aclk?sa=”) != -1)
{ // third kind
urlPos = href.indexOf(“&q=http”);
if (urlPos != -1)
urlPos += 3; // puts it on the http
else
{
urlPos = href.indexOf(“&lp=http”);
if (urlPos != -1)
urlPos += 4;
else
{
findStr = “&adurl=http”;
urlPos = href.indexOf(findStr);
if (urlPos != -1)
urlPos += 7; // puts it on the http
}

}
}
}
if (urlPos == -1)
{
if (href.indexOf(“/url?cad=”) != -1)
{ // fourth kind
urlPos = href.indexOf(“&q=http”);
if (urlPos != -1)
urlPos += 3; // puts it on the http
}
}
if (urlPos != -1)
{
outHref = href.substring(urlPos);

// extract any fragment text, shouldn’t be unescaped
var pound = outHref.indexOf(“#”);
if (pound != -1)
{
var fragment = outHref.substring(pound);
outHref = outHref.substring(0, pound);
outHref = unescape(outHref);
outHref += fragment;
if (searchshield.FilterUrl(outHref, this.filter_urls))
return false;

return outHref;
}

outHref = unescape(outHref);
if (outHref.indexOf(“?”) == -1)
{
var ampPos = outHref.indexOf(“&”);
if (ampPos != -1)
outHref = outHref.substring(0, ampPos);
}

if (searchshield.FilterUrl(outHref, this.filter_urls))
return false;

return outHref;
}
}

// recommended link – use following to see one
// http://www.google.cz/search?hl=cs&q=warey&btnG=Hledat&lr=lang_cs
// elem parent class = r
// href must contain – url? and q=http
var parentNode = tag.parentNode;
if (parentNode && (parentNode.className.toLowerCase() == “r”))
{
href = tag.href;
if (href && (href.indexOf(“/url?”) != -1))
{
// locate the real url
var urlPos = href.indexOf(“q=http”);
if (urlPos != -1)
{
urlPos += 2;
outHref = href.substring(urlPos);

// include entire param up to ‘&’
var ampPos = outHref.indexOf(“&”);
if (ampPos != -1)
outHref = outHref.substring(0, ampPos);

return outHref;
}
}
}
}
// no link to self
else if (tag.className && (tag.className.charAt(0) == “l” || tag.className == “sla”))
{
// check for any images on the link
if (0 === tag.getElementsByTagName(“IMG”).length)
return tag.href;
}

// else nothing
return false;
};
/////////////// GOOGLE ///////////////

/////////////// AVG GOOGLE SEARCH ENGINE ///////////////
searchshield.AVGGoogleSearchEngine = function(search)
{
searchshield.SearchEngine.call(this, search);
this.onlyPrimaries = false;
};
searchshield.AVGGoogleSearchEngine.prototype = new searchshield.SearchEngine();
searchshield.AVGGoogleSearchEngine.prototype.constructor = searchshield.AVGGoogleSearchEngine;
searchshield.AVGGoogleSearchEngine.prototype.name = “avggoogle”; // the name by which the search engine is known (always lowercase)
searchshield.AVGGoogleSearchEngine.prototype.validSearch = function(href) {

var uri;
if (typeof(this.search) === ‘undefined’ || null === this.search)
uri = searchshield.parseLink(href);
else
uri = this.search.uri;

if(!uri || !uri.host)
return false;

var domain = uri.host;

// re stitch the uri path and query elements to
// use existing logic
var path = uri.path + uri.delimiter + uri.query;

if (domain.indexOf(“search.avg.com”) > -1)
{ // ads link back to google
return true;
}

return false;
};
searchshield.AVGGoogleSearchEngine.prototype.includeLink = function(tag)
{
var outHref = false;
var findStr = “”;

// check for interstitials
if (searchshield.DoesURLContain(tag.href, “google.com”))
{
// link back to self – DIV elem GrandParent class of res1 or res3 is Sponsored Link
var parentNode = tag.parentNode;
if (parentNode)
{
var grandParentNode = tag.parentNode.parentNode;
if (grandParentNode)
{
if ((grandParentNode.tagName == “DIV”) &&
((grandParentNode.className.toLowerCase() == “res1”) ||
(grandParentNode.className.toLowerCase() == “res3”)))
{
var urlPos = -1;

// ads now need unescaping
href = unescape(tag.href);

if (urlPos == -1)
{
if (href.indexOf(“/aclk?sa=”) != -1)
{
findStr = “&adurl=http”;
urlPos = href.indexOf(findStr);
if (urlPos != -1)
urlPos += 7; // puts it on the http

}
}
if (urlPos != -1)
{
outHref = href.substring(urlPos)
// extract any fragment text, shouldn’t be unescaped
var pound = outHref.indexOf(“#”);
if (pound != -1)
{
var fragment = outHref.substring(pound);
outHref = outHref.substring(0, pound);
outHref = unescape(outHref);
outHref += fragment;
if (searchshield.FilterUrl(outHref, this.filter_urls))
return false;

return outHref;
}

outHref = unescape(outHref);
if (outHref.indexOf(“?”) == -1)
{
var ampPos = outHref.indexOf(“&”);
if (ampPos != -1)
outHref = outHref.substring(0, ampPos);
}

if (searchshield.FilterUrl(outHref, this.filter_urls))
return false;

return outHref;
}
}
}
}
}

// no link to self
else
{
var parentNode = tag.parentNode;
if (parentNode)
{
var grandParentNode = tag.parentNode.parentNode;
if (grandParentNode)
{
if ((grandParentNode.tagName == “DIV”) &&
(grandParentNode.className.toLowerCase() == “res2”))
{
// check for any images on the link
if (0 === tag.getElementsByTagName(“IMG”).length)
return tag.href;
}
}
}
}

// else nothing
return false;
}
/////////////// AVG GOOGLE ///////////////

/////////////// YAHOO SEARCH ENGINE ///////////////
searchshield.YahooSearchEngine = function(search)
{
searchshield.SearchEngine.call(this, search);
this.showCleanVerdicts = false;
};
searchshield.YahooSearchEngine.prototype = new searchshield.SearchEngine();
searchshield.YahooSearchEngine.prototype.constructor = searchshield.YahooSearchEngine;
searchshield.YahooSearchEngine.prototype.name = “yahoo”;
searchshield.YahooSearchEngine.prototype.validSearch = function(href)
{
var uri;
if (typeof(this.search) === ‘undefined’ || null === this.search)
uri = searchshield.parseLink(href);
else
uri = this.search.uri;

if(!uri || !uri.host)
return false;

// re stitch the uri path and query elements to
// use existing logic
var path = uri.path + uri.delimiter + uri.query;

// For Yahoo the host must match:
// search.yahoo.com OR
// xx.search.yahoo.com where xx country code OR
// search.yahoo.co.xx OR
// for Yahoo China: one.cn.yahoo.com & search.cn.yahoo.com
if ((uri.host.indexOf(“search.yahoo.co”) != -1) ||
(uri.host.match(/^(search|one)(\.[a-z]{2}\.yahoo\.com)$/)))
{
if ((path.indexOf(“search?”) == 0) ||
(path.indexOf(“search;”) == 0) ||
(path.indexOf(“s?p=”) === 0))
{
return true;
}
}

return false;
};
searchshield.YahooSearchEngine.prototype.includeLink = function(tag)
{
var href = “”;
var outHref = “”;
var findStr = “”;

// yahoo likes to encode the url
href = unescape(tag.href);

if ((tag.className.indexOf(“yschttl”) != -1) ||
(tag.className.indexOf(“spt”) != -1))
{
var da = href.indexOf(“**”);
var ad = href.indexOf(“*-“);
if (da != -1)
outHref = href.substring(da+2);
else if (ad != -1)
outHref = href.substring(ad+2);
else
outHref = href ;

if (outHref.toLowerCase().indexOf(“overture.”) !== -1)
return false;
}
else if ((tag.tagName) &&
(tag.tagName === “A”) &&
(!tag.className))
{
var tagParent = tag.parentNode;

// if anchor without className then search parentNodes
if ((tagParent) &&
(tagParent.tagName !== “EM”) &&
(searchshield.getParentNodeByClassName(“yst-web”, tag, 4)))
{
// China Yahoo support
outHref = href;
}

else if ((tagParent) &&
(tagParent.tagName === “H3”) &&
(!!searchshield.getParentNodeById(“WS2m”,tag, 5)))
{
// Japan Yahoo support
var da = href.indexOf(“**”);
if (da !== -1)
outHref = href.substring(da+2);
}

else if ((tagParent) &&
(tagParent.className !== “c”) &&
(tagParent.parentNode.id !== “fpn”) &&
(!!searchshield.getParentNodeByClassName(“ymc”, tag, 7)))
{
// Korea Yahoo support – when not caught by yschttl
var da = href.indexOf(“**”);
if (da !== -1)
outHref = href.substring(da+2);
}
}
else if (!this.onlyPrimaries)
{
findStr = “&yargs=”;
var yargs = href.indexOf(findStr);
if (yargs != -1)
{
outHref = href.substring(yargs+findStr.length);
// check for prefix
if (outHref.indexOf(“://”) == -1)
outHref = “http://&#8221; + outHref;

// if inside an , probably a paypal link, don’t include
if (tag.parentNode && (tag.parentNode.tagName == “I”))
return false;
}
}

// filter domains
// split the url based on ‘/’
var parts = !!outHref ? outHref.split(‘/’) : null;

// Filter out domains that match any of the search engine’s names
if (!parts || !parts[2])
return false;

var domain = parts[2];
if ((domain.indexOf(“rdrjp.yahoo.com”) != -1) ||
(domain.indexOf(“rdrkrs.yahoo.com”) != -1) ||
(domain.indexOf(“rdrtpe.yahoo.com”) != -1) ||
(domain.indexOf(“rdrird.yahoo.com”) != -1) ||
(domain.indexOf(“rdrhk2.yahoo.com”) != -1) ||
(domain.indexOf(“rdrsg1.yahoo.com”) != -1) ||
(domain.indexOf(“rdrin2.yahoo.com”) != -1) ||
(domain.indexOf(“rdre1.yahoo.com”) != -1) ||
(domain.indexOf(“rdrw1.yahoo.com”) != -1) )
{
return false;
}

// set for yahoo to get parent node for image insertion
var hash = searchshield.avgCallFunc(this.doc, ‘GetHash’, outHref);
tag.setAttribute(“id”, “xplid_” + hash);
return outHref;
};
/////////////// YAHOO SEARCH ENGINE ///////////////

/////////////// AVG YAHOO SEARCH ENGINE ///////////////
searchshield.AVGYahooSearchEngine = function(search)
{
searchshield.SearchEngine.call(this, search);
this.showCleanVerdicts = false;
};
searchshield.AVGYahooSearchEngine.prototype = new searchshield.SearchEngine();
searchshield.AVGYahooSearchEngine.prototype.constructor = searchshield.AVGYahooSearchEngine;
searchshield.AVGYahooSearchEngine.prototype.name = “avgyahoo”;
searchshield.AVGYahooSearchEngine.prototype.validSearch = function(href)
{
var uri;
if (typeof(this.search) === ‘undefined’ || null === this.search)
uri = searchshield.parseLink(href);
else
uri = this.search.uri;

if(!uri || !uri.host)
return false;

var domain= uri.host;
//path may be ‘avg/search’ or ‘search’
var pathArray = uri.path.split(“/”);
var avg = pathArray[0];
// re stitch the uri path and query elements
// to use existing logic
var path = (undefined == pathArray[1]) ? pathArray[0] : pathArray[1];
path += uri.delimiter + uri.query;

// For AVG Yahoo classic the host must match:
// yhs.search.yahoo.com OR
// .yhs.search.yahoo.com
if (domain.indexOf(“yhs.search.yahoo.co”) != -1)
{
if ((avg == “avg”) &&
((path.indexOf(“search?”) == 0) ||
(path.indexOf(“search;”) == 0)))
{
return true;
}
}

// also support new metro version which DOESN’T
// contain /avg so avg split part is path
// valid domains are:
// search.yahoo.com,
// xx.search.yahoo.com and
// search.yahoo.co.xx
if (domain.indexOf(“search.yahoo.co”) != -1)
{
// path (split avg) must start with search and
// contain the avg toolbar parameter
if (((path.indexOf(“search?”) == 0) ||
(path.indexOf(“search;”) == 0)) &&
(path.indexOf(“fr=yhs-avg”) != -1))
{
return true;
}
}

return false;
};
searchshield.AVGYahooSearchEngine.prototype.includeLink = function(tag)
{
var href = “”;
var outHref = “”;
var findStr = “”;

if (this.search.doc.body.className.toLowerCase() != “standard”)
{ // handle as std Yahoo results page
return searchshield.YahooSearchEngine.prototype.includeLink(tag);
}

// yahoo likes to encode the url
href = unescape(tag.href);

if (tag.target == “_top”)
{
var da = href.indexOf(“**”);
if (da != -1)
outHref = href.substring(da+2);
else
outHref = href ;

if (outHref.toLowerCase().indexOf(“overture.”) !== -1)
return false;
}
else if (!this.onlyPrimaries)
{
findStr = “&yargs=”;
var yargs = href.indexOf(findStr);
if (yargs != -1)
{
outHref = href.substring(yargs+findStr.length);
// check for prefix
if (outHref.indexOf(“://”) == -1)
outHref = “http://&#8221; + outHref;

// if inside an , probably a paypal link, don’t include
if (tag.parentNode && (tag.parentNode.tagName == “I”))
return false;
}
}

// filter domains
// split the url based on ‘/’
var parts = outHref.split(‘/’);

// Filter out domains that match any of the search engine’s names
if (!parts[2])
return false;

var domain = parts[2];
if ((domain.indexOf(“rdrjp.yahoo.com”) != -1) ||
(domain.indexOf(“rdrkrs.yahoo.com”) != -1) ||
(domain.indexOf(“rdrtpe.yahoo.com”) != -1) ||
(domain.indexOf(“rdrird.yahoo.com”) != -1) ||
(domain.indexOf(“rdrhk2.yahoo.com”) != -1) ||
(domain.indexOf(“rdrsg1.yahoo.com”) != -1) ||
(domain.indexOf(“rdrin2.yahoo.com”) != -1) ||
(domain.indexOf(“rdre1.yahoo.com”) != -1) ||
(domain.indexOf(“rdrw1.yahoo.com”) != -1) )
{
return false;
}

return outHref;
};
searchshield.AVGYahooSearchEngine.prototype.updateImage = function (hash, search, score, image, alt_image, flyover, click_thru, altClick_thru)
{
// remove style that is set when alt image is applied
this.updateImageStyle = {
verticalAlign: null
};

// don’t show verisign icon
if (alt_image && (alt_image.length > 0))
this.omitAltImage = true;

var parent = searchshield.SearchEngine.prototype.updateImage;
return parent.call(this, hash, search, score, image, alt_image, flyover, click_thru, altClick_thru);
};
/////////////// AVG YAHOO SEARCH ENGINE ///////////////

/////////////// MSN SEARCH ENGINE ///////////////
searchshield.MSNSearchEngine = function(search)
{
searchshield.SearchEngine.call(this, search);
this.onlyPrimaries = false;
};
searchshield.MSNSearchEngine.prototype = new searchshield.SearchEngine();
searchshield.MSNSearchEngine.prototype.constructor = searchshield.MSNSearchEngine;
searchshield.MSNSearchEngine.prototype.name = “msn”;
searchshield.MSNSearchEngine.prototype.validSearch = function(href)
{
var uri;
if (typeof(this.search) === ‘undefined’ || null === this.search)
uri = searchshield.parseLink(href);
else
uri = this.search.uri;

if(!uri || !uri.host)
return false;

var hostMatch = false;
var domain = uri.host;

// re stitch the uri path and query elements to
// use existing logic
var path = uri.path + uri.delimiter + uri.query;

// For MSN the host must match:
// search.msn.com OR
// search.live.com
if (domain.indexOf(“search.msn.co”) > -1)
{
if (domain.charAt(13) == ‘m’)
hostMatch = true;
else if ((domain.charAt(13) == ‘.’) && (domain.length == 16))
hostMatch = true;
}
else if (domain.indexOf(“search.live.co”) > -1)
{
if (domain.charAt(14) == ‘m’)
hostMatch = true;
else if ((domain.charAt(14) == ‘.’) && (domain.length == 17))
hostMatch = true;
}

if (hostMatch)
{
if (path.indexOf(“results.aspx”) == 0)
return true;
}

return false;
};
searchshield.MSNSearchEngine.prototype.includeLink = function(tag)
{
var outHref = false;

// these don’t seem common from Firefox, but they are in IE
if (searchshield.DoesURLContain(tag.href, “g.msn.co”))
{
var qPos = tag.href.indexOf(“?”);
if (qPos != -1)
{
var postPart = tag.href.substring(qPos+1);
var dblAmp = postPart.indexOf(“&&”);
if (dblAmp != -1)
{
outHref = postPart.substring(0, dblAmp);
return outHref;
}
}
}
else if (searchshield.DoesURLContain(tag.href, “r.msn.co”))
{
var element = tag;
var parentNode = tag.parentNode;

// top links – check for a CITE
var spanElements = element.getElementsByTagName(“CITE”);
if ((spanElements != null) &&
(spanElements.length > 0))
{
outHref = spanElements[0].innerHTML;
// replace any nbsp’s
outHref = outHref.replace(” “, ” “);

// url is after the last space in the html, after the ‘-‘
var space_pos = outHref.lastIndexOf(” “);
if (space_pos != -1)
outHref = outHref.slice(space_pos + 1);

outHref = searchshield.checkUrl(outHref);
return outHref;
}

// side links
if (element.lastChild != null)
{
outHref = element.lastChild.innerHTML;
if ( outHref != null)
{
outHref = searchshield.checkUrl(outHref);
return outHref;
}
}
}
else if (searchshield.DoesURLContain(tag.href, this.search.uri.host) ||
searchshield.DoesURLContain(tag.href, “.live.com”) ||
searchshield.DoesURLContain(tag.href, “msn.”) ||
searchshield.DoesURLContain(tag.href, “msnscache.com”) ||
searchshield.DoesURLContain(tag.href, “advertising.microsoft.co”) ||
searchshield.DoesURLContain(tag.href, “javascript:”) ||
searchshield.DoesURLContain(tag.href, “go.microsoft.co”) ||
searchshield.DoesURLContain(tag.href, “hotmail.co”))
{
// not a link
return false;
}
else if (tag.id.toLowerCase() == “trademarks”)
{
// don’t link the trademark at the bottom of the page
return false;
}
else
{
// include it
return tag.href;
}
};
/////////////// MSN SEARCH ENGINE ///////////////

/////////////// BING SEARCH ENGINE ///////////////
searchshield.BingSearchEngine = function(search)
{
searchshield.SearchEngine.call(this, search);
};
searchshield.BingSearchEngine.prototype = new searchshield.SearchEngine();
searchshield.BingSearchEngine.prototype.constructor = searchshield.BingSearchEngine;
searchshield.BingSearchEngine.prototype.name = “bing”;
searchshield.BingSearchEngine.prototype.validSearch = function(href)
{
var uri;
if (typeof(this.search) === ‘undefined’ || null === this.search)
uri = searchshield.parseLink(href);
else
uri = this.search.uri;

if(!uri || !uri.host)
return false;

var hostMatch = false;
var domain = uri.host;

// re stitch the uri path and query elements to
// use existing logic
var path = uri.path + uri.delimiter + uri.query;

// For bing the host must match:
// http://www.bing.com or http://www.bing.net
// xx.bing.com or xx.bing.net where xx is a country code
// bing.com.xx where xx is a country code
// bing.search.xxxx.net where xxxx may be something like daum
if ((domain.indexOf(“www.bing.com”) !== -1) ||
(domain.indexOf(“www.bing.net”) !== -1) ||
(domain.indexOf(“bing.net”) !== -1))
{
hostMatch = true;
}
else if ((domain.indexOf(“bing.search.”) !== -1) &&
(domain.indexOf(“.net”) === (domain.length-4)))
{ //bing.search.xxxx.net
hostMatch = true;
}
else
{ // xx.bing.com or bing.com.xx
var domainLen = domain.length;
var tldPos = domain.indexOf(“.bing.com”);
if (tldPos > -1)
{
if ((domainLen – tldPos) == 9)
hostMatch = true;
}
}

if (hostMatch)
{
if (path.indexOf(“search?”) == 0)
return true;
}

return false;

};
searchshield.BingSearchEngine.prototype.includeLink = function(tag)
{
var outHref = false;

if (tag.tagName == ‘IMG’)
{ //no images
return false;
}

if (tag.href.charAt(0) == ‘/’)
{ //no relative links
return false;
}

if (tag.id.toLowerCase() == “trademarks”)
{
// don’t link the trademark at the bottom of the page
return false;
}

if ((tag.parentNode) &&
(tag.parentNode.id.toLowerCase() == “sc_stc”))
{ // don’t verdict the social sites – our verdict doesn’t fit
return false;
}
else if (!!searchshield.getParentNodeByClassName(“sw_t”,tag,3))
{ // no links in page header
return false;
}
else if (searchshield.DoesURLContain(tag.href, “r.msn.co”) ||
searchshield.DoesURLContain(tag.href, “overture.com”))
{ // france has r.msn.co and italy has overture.com sponsored links
// with the link in CITE element

var spanElements = null;

// top links – check for a CITE
spanElements = tag.getElementsByTagName(“CITE”);
if ((spanElements == null) || (spanElements.length 0))
{
outHref = spanElements[0].innerHTML;
if (outHref != null)
{
// replace any nbsp’s
outHref = outHref.replace(” “, ” “);

// url is after the last space in the html, after the ‘-‘
var space_pos = outHref.lastIndexOf(” “);
if (space_pos != -1)
outHref = outHref.slice(space_pos + 1);

outHref = searchshield.checkUrl(outHref);

// save the link
return outHref;
}
}

// side links
if (tag.lastChild != null)
{
outHref = tag.lastChild.innerHTML;
if (outHref != null)
{
outHref = searchshield.checkUrl(outHref);
// save the link
return outHref;
}
}
}
// no sponsored links for now
else if (searchshield.DoesURLContain(tag.href, this.search.uri.host) ||
searchshield.DoesURLContain(tag.href, “.live.com”) ||
searchshield.DoesURLContain(tag.href, “.bing.com”) ||
searchshield.DoesURLContain(tag.href, “.bing.net”) ||
searchshield.DoesURLContain(tag.href, “.daum.net”) ||
searchshield.DoesURLContain(tag.href, “.gmarket.co”) ||
searchshield.DoesURLContain(tag.href, “.multimap.com”) ||
searchshield.DoesURLContain(tag.href, “msn.”) ||
searchshield.DoesURLContain(tag.href, “ms.ciao.”) ||
searchshield.DoesURLContain(tag.href, “ms.ciao-“) ||
searchshield.DoesURLContain(tag.href, “advertising.microsoft.co”) ||
searchshield.DoesURLContain(tag.href, “javascript:”) ||
searchshield.DoesURLContain(tag.href, “go.microsoft.co”) ||
searchshield.DoesURLContain(tag.href, “hotmail.co”) ||
searchshield.DoesURLContain(tag.href, “cc.bingj.com”) ||
searchshield.DoesURLContain(tag.href, “microsofttranslator.com”) ||
searchshield.DoesURLContain(tag.href, “.engkoo.com”) ||
searchshield.DoesURLContain(tag.href, “sealinfo.verisign.com”) ||
searchshield.DoesURLContain(tag.href, “explabs.com”) ||
searchshield.DoesURLContain(tag.href, “onlinehelp.microsoft.com”))
{
// not a link
return false;
}
else
return tag.href;
};
searchshield.BingSearchEngine.prototype.addImage = function(node, image, hidden)
{
var element = node.element;
var parentNode = node.element.parentNode;
var grandParentNode = !!parentNode ? parentNode.parentNode : null;

// if there are redundant links in the same grandparent then skip them
if (!!grandParentNode)
{
gpChildren = grandParentNode.childNodes;
for (var i=0; i < gpChildren.length; i++)
{
if (!!element.href && gpChildren[i].tagName == “A” && gpChildren[i].href == element.href)
return;
}
}

var parent = searchshield.SearchEngine.prototype.addImage;
return parent.call(this, node, image, hidden);
};
/////////////// BING SEARCH ENGINE ///////////////

/////////////// BAIDU SEARCH ENGINE ///////////////
searchshield.BaiduSearchEngine = function(search)
{
searchshield.SearchEngine.call(this, search);
};
searchshield.BaiduSearchEngine.prototype = new searchshield.SearchEngine();
searchshield.BaiduSearchEngine.prototype.constructor = searchshield.BaiduSearchEngine;
searchshield.BaiduSearchEngine.prototype.name = “baidu”;
searchshield.BaiduSearchEngine.prototype.validSearch = function(href)
{
var uri;
if (typeof(this.search) === ‘undefined’ || null === this.search)
uri = searchshield.parseLink(href);
else
uri = this.search.uri;

if(!uri || !uri.host)
return false;

var hostMatch = false;
var domain = uri.host;

// re stitch the uri path and query elements to
// use existing logic
var path = uri.path + uri.delimiter + uri.query;

if (domain == “www.baidu.com” || path.indexOf(“testBaidu”) !== -1)
hostMatch = true;

if (hostMatch)
{
if (path.indexOf(“s?”) == 0)
return true;
}

return false;
};
searchshield.BaiduSearchEngine.prototype.includeLink = function(tag)
{
if (tag.className && tag.className == “m”)
return false;

if (searchshield.DoesURLContain(tag.href, this.search.uri.host))
return false;
else
{
// no link to self
var traverseElement = tag.parentNode;
while ( traverseElement && traverseElement.className != “tbody”)
{
if (traverseElement.className == “f”)
return tag.href;

traverseElement = traverseElement.parentNode;
}

return false;
}

};
searchshield.BaiduSearchEngine.prototype.addImage = function(node, image, hidden)
{
this.addImageStyle = {
position: “relative”,
top: “0.05em”
};

var parent = searchshield.SearchEngine.prototype.addImage;
return parent.call(this, node, image, hidden);
};
searchshield.BaiduSearchEngine.prototype.updateImage = function (hash, search, score, image, alt_image, flyover, click_thru, altClick_thru)
{
// remove style that is set when alt image is applied
this.updateImageStyle = {
verticalAlign: null
};

var parent = searchshield.SearchEngine.prototype.updateImage;
return parent.call(this, hash, search, score, image, alt_image, flyover, click_thru, altClick_thru);
};
/////////////// BAIDU SEARCH ENGINE ///////////////

/////////////// EARTHLINK SEARCH ENGINE ///////////////
searchshield.EarthlinkSearchEngine = function(search)
{
searchshield.SearchEngine.call(this, search);
this.onlyPrimaries = false;

this.addAnchorStyle = {
position: “static”
};
};
searchshield.EarthlinkSearchEngine.prototype = new searchshield.SearchEngine();
searchshield.EarthlinkSearchEngine.prototype.constructor = searchshield.EarthlinkSearchEngine;
searchshield.EarthlinkSearchEngine.prototype.name = “earthlink”;
searchshield.EarthlinkSearchEngine.prototype.validSearch = function(href)
{
var uri;
if (typeof(this.search) === ‘undefined’ || null === this.search)
uri = searchshield.parseLink(href);
else
uri = this.search.uri;

if(!uri || !uri.host)
return false;

var hostMatch = false;
var domain = uri.host;

// re stitch the uri path and query elements to
// use existing logic
var path = uri.path + uri.delimiter + uri.query;

// For EarthLink the host must match:
// search.earthlink.net
if ((“search.earthlink.net” == domain) &&
(path.indexOf(“search?”) == 0))
{
return true;
}

return false;
};
searchshield.EarthlinkSearchEngine.prototype.includeLink = function(tag)
{
var outHref = “”;
var findStr = “”;

// check for an anchor
if (tag.tagName == “A”)
{
// check for sponsored
if (tag.id.indexOf(“a”) == 0)
{
var q = tag.href.indexOf(“&q=”);
var qlen = 3;
if (q == -1)
{
q = tag.href.indexOf(“&adurl=”);
qlen = 7;
if (q == -1)
return false;
}

// find end of url
var end = tag.href.indexOf(“&”, q+qlen);
if (end < 0)
end = tag.href.length;

// add the link
outHref = tag.href.substring(q+qlen, end);

if (searchshield.FilterUrl(outHref, this.filter_urls))
return false;

return outHref;
}

// don’t search url’s to self
if ((tag.href.indexOf(“://”) == -1) || searchshield.DoesURLContain(tag.href, this.search.uri.host))
return false;

// if a normal web result add it
if (tag.parentNode && (tag.parentNode.tagName == “H3”) &&
tag.parentNode.parentNode && (tag.parentNode.parentNode.tagName == “LI”) &&
tag.parentNode.parentNode.parentNode && (tag.parentNode.parentNode.parentNode.tagName == “UL”))
{
if (searchshield.FilterUrl(tag.href, this.filter_urls))
return false;

return tag.href;
}
}

return false;
};
/////////////// EARTHLINK SEARCH ENGINE ///////////////

/////////////// AOL SEARCH ENGINE ///////////////
searchshield.AOLSearchEngine = function(search)
{
searchshield.SearchEngine.call(this, search);
};
searchshield.AOLSearchEngine.prototype = new searchshield.SearchEngine();
searchshield.AOLSearchEngine.prototype.constructor = searchshield.AOLSearchEngine;
searchshield.AOLSearchEngine.prototype.name = “aol”;
searchshield.AOLSearchEngine.prototype.validSearch = function(href)
{
var uri;
if (typeof(this.search) === ‘undefined’ || null === this.search)
uri = searchshield.parseLink(href);
else
uri = this.search.uri;

if(!uri || !uri.host)
return false;

var domain = uri.host;
//path may be ‘aol/search’ or ‘search’
var pathArray = uri.path.split(“/”);
var aol = pathArray[0];
// re stitch the uri path and query elements
// to use existing logic
var path = (undefined == pathArray[1]) ? pathArray[0] : pathArray[1];
path += uri.delimiter + uri.query;

if (“search.aol.com” == domain)
{
if ((aol == “aol”) &&
(path.indexOf(“search?”) == 0))
{
return true;
}
}

return false;
};
searchshield.AOLSearchEngine.prototype.includeLink = function(tag)
{
if (searchshield.DoesURLContain(tag.href, this.search.uri.host))
return false;

// sponsored links – google
if ((tag.className) && (tag.className.indexOf(“slLink”) != -1))
{ //parse for embedded href

if (tag.href.indexOf(“/aclk?sa=”) == -1)
return false;

var adurl = tag.href.indexOf(“&adurl=http”);
if (adurl != -1)
{
var urlPos = adurl+7; // puts it on the http
var outHref = tag.href.substring(urlPos);

// extract any fragment text, do not unescape
var pound = outHref.indexOf(“#”);
if (pound != -1)
{
var fragment = outHref.substring(pound);
outHref = outHref.substring(0, pound);
outHref = unescape(outHref);
outHref += fragment;
if (searchshield.FilterUrl(outHref, this.filter_urls))
return false;

return outHref;
}

outHref = unescape(outHref);
if (outHref.indexOf(“?”) == -1)
{
var ampPos = outHref.indexOf(“&”);
if (ampPos != -1)
outHref = outHref.substring(0, ampPos);
}

if (searchshield.FilterUrl(outHref, this.filter_urls))
return false;

return outHref;
}

return false;
}

if (tag.className == “find”)
return tag.href;

return false;
};
searchshield.AOLSearchEngine.prototype.addImage = function(node, image, hidden)
{
this.addImageStyle = {
display: “inline”
};

this.addAnchorStyle = {
display: null
};

var parent = searchshield.SearchEngine.prototype.addImage;
return parent.call(this, node, image, hidden);
};
searchshield.AOLSearchEngine.prototype.updateImage = function (hash, search, score, image, alt_image, flyover, click_thru, altClick_thru)
{
// remove style that is set when alt image is applied
this.updateImageStyle = {
verticalAlign: null,
display: “inline”
};

var parent = searchshield.SearchEngine.prototype.updateImage;
return parent.call(this, hash, search, score, image, alt_image, flyover, click_thru, altClick_thru);
};
searchshield.AOLSearchEngine.prototype.insertNodes = function(node, doc)
{
var element = node.element;
var score = node.score;

if (element && element.className && element.className.indexOf(“slLink”) != -1)
{ //sponsored links only

// for alt image
if (score == searchshield.SCORE_SS_VERISIGN)
return [element.nextSibling, element.parentNode];

// for verdict image
var cN = element.childNodes;
var cnLen = cN.length;
for (var i=0; i now http://us.yhs4.search.yahoo.com/yhs/search?fr=altavista&fr=altavista&itag=ody&q=warez&kgs=1&kls=0
// xx.altavista.com where xx is a country code
var hostMatch = false;
if (“www.altavista.com” == domain)
{
hostMatch = true;
}
else
{
// xx.altavista.com
var pDest = domain.indexOf(“.altavista.com”);
if ((pDest != -1 ) && ((domain.length – pDest) == 14))
{
hostMatch = true;
}
else
{
// a reference to altavista must be present in yahoo search url
var pRef = (uri.qsArray.fr && uri.qsArray.fr == ‘altavista’);
pDest = domain.indexOf(“search.yahoo.com”);
if (pDest != -1 && pRef)
hostMatch = true;
}
}

if (hostMatch)
{
//path must start with web/results?
if ((path.indexOf(“yhs/search?”) == 0) ||
(path.indexOf(“search;”) == 0) ||
(path.indexOf(“yhs/search;”) == 0) ||
(path.indexOf(“web/results?”) == 0)||
(path.indexOf(“fr=altavista”) != -1))
{
return true;
}
}

return false;
};
searchshield.AltaVistaSearchEngine.prototype.includeLink = function(tag)
{
var outHref = “”;
var findStr = “”;

// initial checks
if ((!tag.href) ||
(tag.href.charAt(0) == ‘#’) ||
(tag.href.indexOf(“javascript:”) == 0))
{
return false;
}

if (searchshield.DoesURLContain(tag.href, this.search.uri.host))
return false;

if ((tag.className == “spt”) ||
(tag.className == “res”) ||
(tag.className == “yschttl spt”))
{
findStr = “/**”;
var pos = tag.href.indexOf(findStr);
if (pos != -1)
{
pos += 3;
outHref = tag.href.substring(pos);
outHref = unescape(outHref);

// no results for overture.com & no yahoo domains
chkHref = outHref.toLowerCase();
if (chkHref.indexOf(“overture.”) != -1)
return false;

// split the url based on ‘/’
var parts = outHref.split(‘/’);

// only need a domain
if ((parts != null) && (parts[2] != null))
{
var domain = parts[2];
if ((domain.indexOf(“rdrjp.yahoo.com”) != -1) ||
(domain.indexOf(“rdrkrs.yahoo.com”) != -1) ||
(domain.indexOf(“rdrtpe.yahoo.com”) != -1) ||
(domain.indexOf(“rdrird.yahoo.com”) != -1) ||
(domain.indexOf(“rdrhk2.yahoo.com”) != -1) ||
(domain.indexOf(“rdrsg1.yahoo.com”) != -1) ||
(domain.indexOf(“rdrin2.yahoo.com”) != -1) ||
(domain.indexOf(“rdre1.yahoo.com”) != -1) ||
(domain.indexOf(“rdrw1.yahoo.com”) != -1) )
{
return false
}
}

return outHref;
}
else
{
return tag.href;
}
}

return false;
};
searchshield.AltaVistaSearchEngine.prototype.getImgElement = function (element)
{
while (element != null)
{
element = element.nextSibling;
if (element != null)
{
if ((element.id == null) || (element.id.indexOf(“LXPLSS_”) == -1))
{ // not our id but hit another anchor no verdict
if (element.tagName == “A”)
{
element = null;
break;
}
}
else if (element.tagName == “A”)
break;
}
}

var rtnElem = !!element ? element.firstChild : element;
return rtnElem;
};
/////////////// ALTAVISTA SEARCH ENGINE ///////////////

/////////////// YANDEX SEARCH ENGINE ///////////////
searchshield.YandexSearchEngine = function(search)
{
searchshield.SearchEngine.call(this, search);
};
searchshield.YandexSearchEngine.prototype = new searchshield.SearchEngine();
searchshield.YandexSearchEngine.prototype.constructor = searchshield.YandexSearchEngine;
searchshield.YandexSearchEngine.prototype.name = “yandex”;
searchshield.YandexSearchEngine.prototype.validSearch = function(href)
{
var uri;
if (typeof(this.search) === ‘undefined’ || null === this.search)
uri = searchshield.parseLink(href);
else
uri = this.search.uri;

if(!uri || !uri.host)
return false;

var domain= uri.host;
// re stitch the uri path and query elements
// to use existing logic
var path = uri.path + uri.delimiter + uri.query;

if (((domain.indexOf(“yandex.ru”) > -1) ||
(domain.indexOf(“yandex.com”) > -1)) &&
(path.indexOf(“yandsearch?”) == 0))
{
return true;
}

return false;
};
searchshield.YandexSearchEngine.prototype.includeLink = function(tag)
{
if (tag.href.indexOf(“/search”) != -1)
{
return false;
}

if (searchshield.DoesURLContain(tag.href, this.search.uri.host) ||
searchshield.DoesURLContain(tag.href, “.yandex.net”) ||
searchshield.DoesURLContain(tag.href, “.yandex.ru”) ||
searchshield.DoesURLContain(tag.href, “moikrug.ru”) ||
searchshield.DoesURLContain(tag.href, “ya.ru”) ||
searchshield.DoesURLContain(tag.href, “.yandex.com”) ||
searchshield.DoesURLContain(tag.href, “yandex.st”))
{
return false;
}

parentNode = tag.parentNode;
if ((tag.parentNode) &&
(tag.parentNode.parentNode) &&
(tag.parentNode.parentNode.className.toLowerCase() == “moreinfo”))
{
return false;
}

return tag.href;
};
searchshield.YandexSearchEngine.prototype.getImgElement = function (element)
{
while (element != null)
{
element = element.nextSibling;
if (element != null)
{
if ((element.id == null) || (element.id.indexOf(“LXPLSS_”) == -1))
{ // not our id but hit another anchor no verdict
if (element.tagName == “A”)
{
element = null;
break;
}
}
else if (element.tagName == “A”)
break;
}
}

var rtnElem = !!element ? element.firstChild : element;
return rtnElem;
};
/////////////// YANDEX SEARCH ENGINE ///////////////

/////////////// SEZNAM SEARCH ENGINE ///////////////
searchshield.SeznamSearchEngine = function(search)
{
searchshield.SearchEngine.call(this, search);
};
searchshield.SeznamSearchEngine.prototype = new searchshield.SearchEngine();
searchshield.SeznamSearchEngine.prototype.constructor = searchshield.SeznamSearchEngine;
searchshield.SeznamSearchEngine.prototype.name = “seznam”;
searchshield.SeznamSearchEngine.prototype.validSearch = function(href)
{
var uri;
if (typeof(this.search) === ‘undefined’ || null === this.search)
uri = searchshield.parseLink(href);
else
uri = this.search.uri;

if(!uri || !uri.host)
return false;

var domain= uri.host;
// re stitch the uri path and query elements
// to use existing logic
var path = uri.path + uri.delimiter + uri.query;

if ((domain.indexOf(“search.seznam.cz”) > -1) &&
((path.indexOf(“?”) == 0) || (path.indexOf(“svet”) == 0)))
{
return true;
}

return false;
};
searchshield.SeznamSearchEngine.prototype.includeLink = function(tag)
{
if (searchshield.DoesURLContain(tag.href, this.search.uri.host))
return false;

var parentNode = tag.parentNode;
if (parentNode)
{
var grandParentNode = tag.parentNode.parentNode;
if ((parentNode.tagName == “SPAN”) &&
((parentNode.className.toLowerCase() == “sklik-url”) ||
(parentNode.className.toLowerCase() == “sklik-title”)))
{ // locate the real url and unencode it
var urlPos = tag.href.indexOf(“&url=http”);

if (urlPos != -1)
{
urlPos += 5;
outHref = tag.href.substring(urlPos);
outHref = unescape(outHref);

return outHref;
}
}
else if (grandParentNode)
{
var greatGrandParentNode = tag.parentNode.parentNode.parentNode;
if ((grandParentNode.tagName == “DIV”) &&
((grandParentNode.className.toLowerCase() == “text”) || (grandParentNode.className.toLowerCase() == “hlasky otz”)))
{ // standard link
return tag.href;
}
else if (greatGrandParentNode && greatGrandParentNode.tagName == “DIV” &&
(greatGrandParentNode.className.toLowerCase() == “hotlinks”))
{ // hint link
return tag.href;
}

}
}

return false;
};
searchshield.SeznamSearchEngine.prototype.updateImage = function (hash, search, score, image, alt_image, flyover, click_thru, altClick_thru)
{
this.elementAttribute = {
width: “18”,
height: “18”
};

this.updateImageStyle = {
width: “18px”,
height: “18px”
};

var parent = searchshield.SearchEngine.prototype.updateImage;
return parent.call(this, hash, search, score, image, alt_image, flyover, click_thru, altClick_thru);
};
/////////////// SEZNAM SEARCH ENGINE ///////////////

/////////////// WEBHLEDANI SEARCH ENGINE ///////////////
searchshield.WebhledaniSearchEngine = function(search)
{
searchshield.SearchEngine.call(this, search);
};
searchshield.WebhledaniSearchEngine.prototype = new searchshield.SearchEngine();
searchshield.WebhledaniSearchEngine.prototype.constructor = searchshield.WebhledaniSearchEngine;
searchshield.WebhledaniSearchEngine.prototype.name = “webhledani”;
searchshield.WebhledaniSearchEngine.prototype.validSearch = function(href)
{
var uri;
if (typeof(this.search) === ‘undefined’ || null === this.search)
uri = searchshield.parseLink(href);
else
uri = this.search.uri;

if(!uri || !uri.host)
return false;

var domain= uri.host;
// re stitch the uri path and query elements
// to use existing logic
var path = uri.path + uri.delimiter + uri.query;

if ((domain.indexOf(“webhledani.cz”) > -1) &&
(path.indexOf(“results.aspx?”) == 0))
{
return true;
}

return false;
};
searchshield.WebhledaniSearchEngine.prototype.includeLink = function(tag)
{
var parentNode = tag.parentNode;

if (searchshield.DoesURLContain(tag.href, this.search.uri.host))
{
if ( tag.href.indexOf(“/redir.aspx?”) != -1)
{
attrNode = tag.attributes;
if ( attrNode == null )
return false;

var outHref = attrNode.getNamedItem(“onmouseover”).nodeValue;
if ( outHref == null )
return false;

var findStr = “window.status=”;
if (outHref.indexOf(findStr)!= -1)
{
// get text before first semicolon
var semicolon = outHref.indexOf(“;”);
if (semicolon > -1)
outHref = outHref.substring(findStr.length, semicolon);

// strip quotation marks
outHref = outHref.replace(/[‘”]/g, “”);

var space = outHref.indexOf(” “);
var firstDot = outHref.indexOf(“.”);

if ((space > -1) && (space < firstDot))
outHref = outHref.substring(space+1);

outHref = searchshield.checkUrl(outHref);
return outHref;
}
}
}

return false;
};
searchshield.WebhledaniSearchEngine.prototype.insertNodes = function(node, doc)
{
var element = node.element;
var score = node.score;

// for alt image
if (score == searchshield.SCORE_SS_VERISIGN)
return [element.nextSibling, element.parentNode];

// for verdict image
var cN = element.childNodes;
var cnLen = cN.length;
for (var i=0; i -1) ||
(domain.indexOf(“shop.benl.ebay”) > -1))
{
if ((path.indexOf(“?_from=”) == 0) ||
(path.indexOf(“i.html”) > -1))
{
return true;
}
}

// ebay.se
if ((domain.indexOf(“search.eim.ebay”) > -1) &&
((path.indexOf(“?kw=”) > -1) || (path.indexOf(“?ev=”) > -1)))
{
return true;
}

if ((domain.indexOf(“search.auction.co.kr”) > -1 ) &&
((path.indexOf(“?keyword=”) > -1)))
{
// would normally set these properties in the constructor or in an
// overriding function but they’re only required for this domain

// links are in iframes
this.processFrames = true;

// must downsize verdicts for proper display
this.elementAttribute = {
width: “16”,
height: “16”
};
this.updateImageStyle = {
width: “16px”,
height: “16px”
};

return true;
}

// latin america ebay
// listado.mercadolibre.com.xx or listado.mercadolibre.co.xx
// or listado.mercadolibre.xx or
// category.mercadolibre.com.xx or listado.mercadolibre.xx/category
// lista.mercadolivre.com.xx or lista.mercadolivre.com.xx/category
if ((domain.indexOf(“www.”) == -1) &&
((domain.indexOf(“.mercadolibre.”) > -1 ) ||
(domain.indexOf(“.mercadolivre.”) > -1 )))
{
return true;
}
return false;
};
searchshield.eBaySearchEngine.prototype.includeLink = function(tag)
{
var parentNode = null;
var outHref = false;

if (searchshield.DoesURLContain(tag.href, this.search.uri.host))
return false;

if ( tag.href.indexOf(“.ebayrtm.com/clk?”) > -1 )
{
if ( tag.title == null || tag.title.length -1)
{ // at least one dot
if (outHref.indexOf(this.search.uri.host) == -1)
{ // no host
if (outHref.toLowerCase().indexOf(“ebay.com”) == -1)
{
return outHref;
}
}
}
}
}
// ebay.se – Google ads
parentNode = tag.parentNode;
if (parentNode && (parentNode.className.toLowerCase() == “google-ad-link”))
{
if (tag.href.indexOf(“/aclk?sa=”) != -1)
{
findStr = “&adurl=http”;
var urlPos = tag.href.indexOf(findStr);
if (urlPos != -1)
{
urlPos += 7; // puts it on the http
outHref = tag.href.substring(urlPos);

// extract any fragment text, shouldn’t be unescaped
var pound = outHref.indexOf(“#”);
if (pound != -1)
{
var fragment = outHref.substring(pound);
outHref = outHref.substring(0, pound);
outHref = unescape(outHref);
outHref += fragment;
if (searchshield.FilterUrl(outHref, this.filter_urls))
return false;

return outHref;
}

outHref = unescape(outHref);
if (outHref.indexOf(“?”) == -1)
{
var ampPos = outHref.indexOf(“&”);
if (ampPos != -1)
outHref = outHref.substring(0, ampPos);
}

if (searchshield.FilterUrl(outHref, this.filter_urls))
return false;
return outHref;
}
}
}

// auction.co.kr
parentNode = tag.parentNode;
if (parentNode && (parentNode.className.toLowerCase() == “link”))
{
if (tag.href.indexOf(“adcr.naver.com”) > -1)
{
outHref = tag.innerText;
if ((outHref == null) || (outHref.length -1 )
{
var spanElements = tag.getElementsByTagName(“span”);
if ((spanElements != null) &&
(spanElements.length > 0))
{
if ( spanElements[0].className.toLowerCase() == “mclics-url” )
{
outHref = spanElements[0].innerHTML;
if ( outHref == null || outHref.length -1)
{ // at least one dot
if (outHref.toLowerCase().indexOf(“mercado”) == -1)
{
return outHref;
}
}
}
}
}
}

return false;
};
/////////////// EBAY SEARCH ENGINE ///////////////

/////////////// DIGG SEARCH ENGINE ///////////////
searchshield.DiggSearchEngine = function(search)
{
searchshield.SearchEngine.call(this, search);
this.new_links = false;
};
searchshield.DiggSearchEngine.prototype = new searchshield.SearchEngine();
searchshield.DiggSearchEngine.prototype.constructor = searchshield.DiggSearchEngine;
searchshield.DiggSearchEngine.prototype.name = “digg”;
searchshield.DiggSearchEngine.prototype.validSearch = function(href)
{
var uri;
if (typeof(this.search) === ‘undefined’ || null === this.search)
uri = searchshield.parseLink(href);
else
uri = this.search.uri;

if(!uri || !uri.host)
return false;

var domain= uri.host;
// re stitch the uri path and query elements
// to use existing logic
var path = uri.path + uri.delimiter + uri.query;

if ((domain.indexOf(“digg.com”) > -1) &&
(path.indexOf(“/ad”) == -1))
{
return true;
}

return false;
};
searchshield.DiggSearchEngine.prototype.includeLink = function(tag)
{
var outHref = false;
var findStr = “”;

if ((tag.parentNode) &&
(tag.parentNode.className.toLowerCase() == “digg-count”))
{
return false;
}

if (searchshield.DoesURLContain(tag.href, this.search.uri.host))
{
if (tag.className && tag.className.indexOf(‘source’) != -1)
{
findStr = “/search?q=site:”;
var urlPos = tag.href.indexOf(findStr);
if (urlPos != -1)
{
urlPos += 15;
outHref = tag.href.substring(urlPos);
return outHref;
}
}
}

return false;
};
searchshield.DiggSearchEngine.prototype.addImage = function(node, image, hidden)
{
// remove style that is set when alt image is applied
this.addAnchorStyle = {
background: “none”
};

var parent = searchshield.SearchEngine.prototype.addImage;
return parent.call(this, node, image, hidden);
};
/////////////// DIGG SEARCH ENGINE ///////////////

/////////////// SLASHDOT SEARCH ENGINE ///////////////
searchshield.SlashdotSearchEngine = function(search)
{
searchshield.SearchEngine.call(this, search);
this.showCleanVerdicts = false;
this.new_links = false;
this.type = ‘inline’;
};
searchshield.SlashdotSearchEngine.prototype = new searchshield.SearchEngine();
searchshield.SlashdotSearchEngine.prototype.constructor = searchshield.SlashdotSearchEngine;
searchshield.SlashdotSearchEngine.prototype.name = “slashdot”;
searchshield.SlashdotSearchEngine.prototype.validSearch = function(href)
{
var uri;
if (typeof(this.search) === ‘undefined’ || null === this.search)
uri = searchshield.parseLink(href);
else
uri = this.search.uri;

if(!uri || !uri.host)
return false;

var domain= uri.host;
// re stitch the uri path and query elements
// to use existing logic
var path = uri.path + uri.delimiter + uri.query;

if (domain.indexOf(“slashdot.org”) != -1)
{
return true;
}

return false;
};
searchshield.SlashdotSearchEngine.prototype.includeLink = function(tag)
{
if (searchshield.DoesURLContain(tag.href, this.search.uri.host))
return false;

if ( tag.href.indexOf(“mailto:”) != -1 )
return false;

if ( tag.href.indexOf(“slashdot.org”) != -1 )
return false;

if (tag.parentNode && (tag.parentNode.tagName == “DIV”))
{
if (tag.parentNode.id.indexOf(“text-“) != -1)
{
return tag.href;
}
}
else if ( tag.parentNode && tag.parentNode.parentNode && tag.parentNode.parentNode.tagName == “DIV” )
{
if ( tag.parentNode.parentNode.id.indexOf(“text-“) != -1 )
{
return tag.href;
}
}

return false;
};
searchshield.SlashdotSearchEngine.prototype.addImage = function(node, image, hidden)
{
var doc = this.search.doc;

this.init_inline_ratings(doc);
this.show_inline_ratings(doc, node, image);
};
/////////////// SLASHDOT SEARCH ENGINE ///////////////

/////////////// TWITTER SEARCH ENGINE ///////////////
searchshield.TwitterSearchEngine = function(search)
{
searchshield.SearchEngine.call(this, search);
this.showCleanVerdicts = false;
this.new_links = false;
this.type = ‘inline’;
};
searchshield.TwitterSearchEngine.prototype = new searchshield.SearchEngine();
searchshield.TwitterSearchEngine.prototype.constructor = searchshield.TwitterSearchEngine;
searchshield.TwitterSearchEngine.prototype.name = “twitter”;
searchshield.TwitterSearchEngine.prototype.twitter_filter_urls = [“twitpic.com”, “twitterfeed.com”, “twitter.peoplebrowsr.com”];
searchshield.TwitterSearchEngine.prototype.validSearch = function(href)
{
var uri;
if (typeof(this.search) === ‘undefined’ || null === this.search)
uri = searchshield.parseLink(href);
else
uri = this.search.uri;

if(!uri || !uri.host)
return false;

var domain= uri.host;

if (domain.indexOf(“twitter.com”) != -1)
{
return true;
}

return false;
};
searchshield.TwitterSearchEngine.prototype.includeLink = function(tag)
{
if (searchshield.DoesURLContain(tag.href, this.search.uri.host))
return false;

if (tag.className.length = 4))
{
// else we want the fourth value
var match = matches[3];
if (match && (match.length > 0))
return match
}

return href;
};
/////////////// GMAIL SEARCH ENGINE ///////////////

/////////////// FACEBOOK SEARCH ENGINE ///////////////
searchshield.FacebookSearchEngine = function(search)
{
searchshield.SearchEngine.call(this, search);
this.showCleanVerdicts = false;
this.type = ‘inline’
};
searchshield.FacebookSearchEngine.prototype = new searchshield.SearchEngine();
searchshield.FacebookSearchEngine.prototype.constructor = searchshield.FacebookSearchEngine;
searchshield.FacebookSearchEngine.prototype.name = “facebook”; // the name by which the search engine is known (always lowercase)
searchshield.FacebookSearchEngine.prototype.validSearch = function(href)
{
var uri;
if (typeof(this.search) === ‘undefined’ || null === this.search)
uri = searchshield.parseLink(href);
else
uri = this.search.uri;

if(!uri || !uri.host)
return false;

if (uri.host.indexOf(“www.facebook.com”) != -1)
return true;

return false;
};
searchshield.FacebookSearchEngine.prototype.includeLink = function(tag)
{
if (searchshield.DoesURLContain(tag.href, this.search.uri.host) ||
(searchshield.DoesURLContain(tag.href, ‘static.ak.fbcdn.net’)))
{
return false;
}

// don’t put verdicts in areas where typing is going on
if (tag.parentNode)
{
var parentDiv = searchshield.getParentNodeByTagName(“DIV”, tag, “className”);
if (parentDiv &&
(parentDiv.className == “Mentions_Input”) ||
(parentDiv.className.indexOf(‘UIThumbPager_’) != -1))
{
return false;
}
}

return tag.href
};
searchshield.FacebookSearchEngine.prototype.addImage = function(node, image, hidden)
{
var doc = this.search.doc;

this.init_inline_ratings(doc);
this.show_inline_ratings(doc, node, image);
};
/////////////// FACEBOOK SEARCH ENGINE ///////////////

/////////////// AVG TOOLBAR REPORTING ///////////////
var avgreport = {
BLOCK_SEVERITY: 3,
scanResult: function (doc, url, foundUrl, ip) {
// report scan end only if surf enabled
if (‘1’ != searchshield.avgCallFunc(doc, ‘GetSurfEnabled’))
return;

// for now native is handling the interstitial
var results = searchshield.avgCallFunc(doc, ‘MalsiteCheck’, url);
if ( results == null )
return;

var parts = results.split(‘::’);

// need at least severity
if (parts == null)
return;

if (!ip)
ip = “”;

// use a block severity if foundUrl is given
var severity = !!foundUrl ? avgreport.BLOCK_SEVERITY : parseInt(parts[0], 10);
var category = “”;
var threat = “”;

// fill in the category and threat if something was found
if (severity > 0)
{
category = parts[2];
threat = parts[4];
}

var scan_result = searchshield.avgCallFunc(doc, ‘ReportScanResult’, url, url, threat, category, ip, severity);
var scan_end = avgreport.scanEnd(doc, url);

return (scan_result && scan_end);
},
scanEnd: function (doc, url) {
return searchshield.avgCallFunc(doc, ‘ReportScanEnd’, url);
},
GetInterstitialIP: function (interstitial) {
// simple regex to pull the IP address
var regex = /(([1-9][0-9]{0,2})|0)\.(([1-9][0-9]{0,2})|0)\.(([1-9][0-9]{0,2})|0)\.(([1-9][0-9]{0,2})|0)/;
var match = regex.exec(interstitial);
if (!match)
return ”;

return match[0];
}
}
/////////////// AVG TOOLBAR REPORTING ///////////////

/////////////// FLYOVERS ///////////////
var avglsflyover = {
count: 0,
poppedUp: false,
poppedElement: null,
orig_onmousemove: null,
reset: function () {
avglsflyover.count = 0;
avglsflyover.poppedUp = false;
avglsflyover.poppedElement = null;
avglsflyover.orig_onmousemove = null;
},
popup: function (event, hash, search, flyover) {
if (!event)
event = window.event;

var div = document.getElementById(“XPLSS_Flyover”);
if (div == null)
return;

// establish target element and get its containing document object
// in case verdict is inside a frame
var eventTarget = event.srcElement || event.currentTarget;
var frameDoc = eventTarget.ownerDocument;

// if the element is the clock, don’t pop over it
if ((eventTarget.src != null) && (eventTarget.src.indexOf(“clock.gif”) != -1))
return;

// save the element we popped over
avglsflyover.poppedElement = eventTarget;

// if no flyover get it
if ((flyover == null) || (flyover == “”))
{
flyover = searchshield.avgCallFunc(frameDoc, ‘BuildFlyover’, hash);

if (!flyover)
return;

// cleanup flyover, replace any new lines
flyover = flyover.replace(/\r/g, “”);
flyover = flyover.replace(/\n/g, “”);
// escape any single quotes
flyover = flyover.replace(/’/g, “‘”);
}

// set the html in the layer
div.innerHTML = flyover;

// there is an unwanted text node that causes vertical misalignment of flyover
if (div.firstChild.nodeType == 3)
div.removeChild(div.firstChild);

avglsflyover.poppedUp = true;

// reset display count
avglsflyover.count = 0;

div.onmouseout = avglsflyover.hide;

// if an onmousemove is already set and it isn’t us, save it and restore later
if ((frameDoc.onmousemove != null) && (frameDoc.onmousemove != avglsflyover.position))
avglsflyover.orig_onmousemove = frameDoc.onmousemove;
frameDoc.onmousemove = avglsflyover.position;
},
hide: function (event, force) {
var div = document.getElementById(“XPLSS_Flyover”);
if ((div == null) || (div.style == null) || (div.style.visibility == “hidden”))
return;

var trans_div = document.getElementById(“XPLSS_Trans”);
if ((trans_div == null) || (trans_div.style == null) || (trans_div.style.visibility == “hidden”))
return;

if (!!force)
return setFlyoverStyle(div, trans_div);

if (!event)
event = window.event;

// establish target element and get its containing document object
// in case verdict is inside a frame
var eventTarget = event.srcElement || event.currentTarget;
var frameDoc = eventTarget.ownerDocument;

// restore onmousemove
if (avglsflyover.orig_onmousemove != null)
frameDoc.onmousemove = avglsflyover.orig_onmousemove;

if (avglsflyover.poppedElement)
avglsflyover.poppedElement.style.border = “”;

var relatedElement = event.toElement;
if (!relatedElement)
{ //this happens on mouseout when verdict and flyover are on different frames/docs
window.top.document.detachEvent(‘onmouseout’, avglsflyover.hide);
window.top.document.attachEvent(‘onmouseout’, avglsflyover.hide);
return;
}

// make sure we aren’t still over the popped image or our layer
if (searchshield.containedIn(avglsflyover.poppedElement, relatedElement) ||
searchshield.containedIn(div, relatedElement) ||
searchshield.containedIn(trans_div, relatedElement))
{
return;
}

setFlyoverStyle();

// hide and move somewhere off screen (negative offsets)
function setFlyoverStyle()
{
div.style.visibility = “hidden”;
div.style.left = “-2100px”;
div.style.top = “-2100px”;
trans_div.style.visibility = “hidden”;
trans_div.style.left = “-2100px”;
trans_div.style.top = “-2100px”;

return true;
}
},
position: function () {
if (!avglsflyover.poppedUp || (avglsflyover.poppedElement == null))
return;

var flyover = document.getElementById(“XPLSS_Flyover”);
if (flyover == null)
return;

// relative position of flyover in relation to icon
var locateX = 0; // 0=left, 1=right
var locateY = 0; // 0=above, 1=below, 2=beside icon

// get window sizes
var winSize = searchshield.viewPortSize();
var windowX = winSize[0];
var windowY = winSize[1];

// get the exact size of the flyover
var flyoverSize = searchshield.elementSize(flyover);
var flyoverX = flyoverSize[0];
var flyoverY = flyoverSize[1];

var verdictWidth = 0;
if (avglsflyover.poppedElement && avglsflyover.poppedElement.width)
verdictWidth = avglsflyover.poppedElement.width;

// get the bounding rect for image(s)
var imgRect = searchshield.GetFullBoundingRect(avglsflyover.poppedElement);

// half width/height of element bounding rect
var halfX = (imgRect.right – imgRect.left) / 2;
var halfY = (imgRect.bottom- imgRect.top) / 2;

// element the mouse is over, get the center position
var posX = searchshield.offsetLeft(avglsflyover.poppedElement) + halfX;
var posY = searchshield.offsetTop(avglsflyover.poppedElement) + halfY;

// if a verdict is inside a frame must get offsets for the frame element
var docFrames = document.frames;
if (docFrames)
{
for (var i=0; i posX)
{
// right
offsetX += halfX;
locateX = 1;
}
else
{
//left
offsetX -= (flyoverX + halfX);
}
if ((windowY – posY) > posY)
{
// below
if (posY < (windowY/4))
{
offsetY -= halfY;
locateY = 1;
}
else
{
offsetY -= (flyoverY / 2);
locateY = 2;
}
}
else
{
// above
if ((windowY – posY) < (windowY/4))
{
offsetY -= (flyoverY – halfY);
}
else
{
offsetY -= (flyoverY / 2);
locateY = 2;
}
}
// make sure we aren’t off the screen
if (offsetY windowY)
offsetY = windowY – flyoverY;

// add page offsets back
offsetX += pageOffsetX;
offsetY += pageOffsetY;
posX += pageOffsetX;
posY += pageOffsetY;

var paddedOffsetX = 0; //provide space between icon and flyover
var padX = 3;
if (locateX == 0)
paddedOffsetX = offsetX – padX;
else
paddedOffsetX = offsetX + padX;

// set where to put the flyover
flyover.style.top = offsetY + “px”;
flyover.style.left = paddedOffsetX + “px”;

// set where to put the transparent layer
var trans = document.getElementById(“XPLSS_Trans”);
if (trans != null)
{
var trans_left = 0;
var trans_top = 0;
var trans_width= 0;
var trans_height = 0;

// transparent layer should overlap verdict image
if (locateX == 0)
trans_left = posX – flyoverX – halfX; // left
else
trans_left = posX – transXOffset – verdictWidth; // right

trans.style.left = trans_left + “px”;
trans.style.top = offsetY + “px”;

trans.style.width = flyoverX + “px”;
trans.style.height = flyoverY + “px”;
}

avglsflyover.display();
},
display: function () {
avglsflyover.count++;
if (avglsflyover.count == 1)
{
var flyover = document.getElementById(“XPLSS_Flyover”);
if (flyover == null)
return;

// show the flyover, must use a little count to tell, crazy stuff
flyover.style.visibility = “visible”;

// show the transparent layer
var trans_div = document.getElementById(“XPLSS_Trans”);
if (trans_div == null)
return;

trans_div.style.visibility = “visible”;

avglsflyover.poppedUp = false;
}
},
show: function () {
var div = document.getElementById(“XPLSS_Flyover”);
if (div == null)
return;

div.style.visibility = “visible”;

var trans_div = document.getElementById(“XPLSS_Trans”);
if (trans_div == null)
return;
trans_div.style.visible = “visible”;
}
};

var avglsinlineflyover = {
build: function (riskCategory, riskName, bgColor, borderColor) {
var html = ”;
html += ”

“;
html += “
“;
html += riskCategory + ”
“;
html += riskName + “

“;

return html;
},
popup: function (event, flyover, blUrl) {
//set verdict info
var div = document.getElementById(‘XPLSS_InlineFlyover’);
if (div == null)
return;

// blUrl is an object for a blacklisted short url
// when it is passed get the final url
if (blUrl != undefined)
{
var finalUrl = searchshield.avgCallFunc(document, ‘GetFinalUrl’, blUrl.sUrl);
var uri = searchshield.parseLink(unescape(finalUrl));
if (uri.source != null)
{ // regexp failed so used split to parse url
var qsUrl = uri.source.indexOf(“?url=”);
if (qsUrl != -1)
riskName = blUrl.riskNameLabel + uri.source.substring(qsUrl + 5);
else
riskName = blUrl.riskNameLabel + uri.source;
}
else if ((uri.qsArray.url != null) && (uri.qsArray.url.length > 0))
{
riskName = blUrl.riskNameLabel + uri.qsArray.url;
}
else
riskName = blUrl.riskNameLabel + blUrl.sUrl

flyover = avglsinlineflyover.build(blUrl.riskCategory, riskName, blUrl.bgColor, blUrl.borderColor);
}

div.innerHTML = flyover;
div.style.width = “auto”; //reset width
div.style.position = “absolute”;

if (!event)
event = window.event;

var eventTarget = event.srcElement;
avglsinlineflyover.position(eventTarget);
},
hide: function (event) {
if (!event)
event = window.event;

var div = document.getElementById(“XPLSS_InlineFlyover”);
if (div == null)
return;

div.visibility = “hidden”; //invisible
div.style.left = “-5000px”;
},
position: function (imageElem) {
var flyover = document.getElementById(‘XPLSS_InlineFlyover’);
if (flyover == null)
return;

// relative position of flyover in relation to icon
var locateX = 0; // 0=left, 1=right
var locateY = 0; // 0=above, 1=below, 2=beside icon

// get window sizes
var winSize = searchshield.viewPortSize();
var windowX = winSize[0];
var windowY = winSize[1];

// Must know if there is a horizontal scroll bar for Firefox
// for proper flyover positioning near bottom edge
var scrollYWidth = winSize[2];
var scrollBarX = winSize[2] > 0 ? true : false;

// get the exact size of the flyover
var flyoverSize = searchshield.elementSize(flyover);
var flyoverX = flyoverSize[0];
var flyoverY = flyoverSize[1];

flyover.style.width = flyoverX + “px”;

// get the bounding rect for image(s)
var imgRect = imageElem.getBoundingClientRect();

// half width/height (center) of element bounding rect
var halfX = (imgRect.right – imgRect.left) / 2;
var halfY = (imgRect.bottom- imgRect.top) / 2;

// element the mouse is over, get the center position
var posX = searchshield.offsetLeft(imageElem) + halfX;
var posY = searchshield.offsetTop(imageElem) + halfY;

var pageOffsetX = 0;
var pageOffsetY = 0;

// normalize pos to 0 — get amount of scrolling in browser window
var scroll = searchshield.scrollSize(imageElem);
var pageOffsetX = scroll[0];
var pageOffsetY = scroll[1];
var hasParentFrame = scroll[2];

posX -= pageOffsetX;
posY -= pageOffsetY;

//compensate for Firefox 3
if (posX posX)
{
// right
offsetX += halfX;
locateX = 1;
}
else
{
//left
offsetX -= (flyoverX + halfX);
}
if ((windowY – posY) > posY)
{
// below
if (posY < (windowY/4))
{
offsetY -= halfY;
locateY = 1;
}
else
{
offsetY -= (flyoverY / 2) – halfY;
locateY = 2;
}
}
else
{
// above
if ((windowY – posY) < (windowY/4))
{
offsetY -= (flyoverY – halfY);
}
else
{
offsetY -= (flyoverY / 2) + halfY;
locateY = 2;
}
}
// make sure we aren’t off the screen
if (offsetY windowY)
{
offsetY = windowY – flyoverY;
}
else if (scrollBarX && ((windowY – (posY + halfY)) < scrollYWidth))
{ //verdict overlaps the horizontal scrollbar
offsetY = windowY – (flyoverY + scrollYWidth);
}

// add page offsets back – if not in frame
if (!hasParentFrame)
{
offsetX += pageOffsetX;
offsetY += pageOffsetY;
}
posX += pageOffsetX;
posY += pageOffsetY;

var paddedOffsetX = 0; //provide space between icon and flyover
var padX = 3;
if (locateX == 0)
paddedOffsetX = offsetX – padX;
else
paddedOffsetX = offsetX + padX;

// set where to put the flyover
flyover.style.top = offsetY + “px”;
flyover.style.left = paddedOffsetX + “px”;

avglsinlineflyover.display();
},
display: function () {
var div = document.getElementById(‘XPLSS_InlineFlyover’);
if (div == null)
return;

// show the flyover
div.style.visibility = “visible”;
},
imageExists: function(element) {
if (element)
{
// check next siblings children
var sibling = element.nextSibling;

if ((sibling == null) || (sibling.getElementsByTagName == null))
return false;

var images = sibling.getElementsByTagName(“IMG”);
if (images == null)
return false;

for (var i = 0; i < images.length; i++)
{
if (images[i].id == “avg_ls_image”)
return true;
}
}

return false;
},
getImage: function (anchor) {
if (anchor)
{
var imageElem = null;
var images = anchor.getElementsByTagName(“img”);
if (images == null)
return imageElem;

for (var i = 0; i

The Kingdom of God Kind of FAITH—Part I

When I got up this morning, I began my routine by taking “Riley”, the Cocker Spaniel, outside for his morning constitutional. The streets were wet but it wasn’t raining while we were out. After returning to the house, I habitually fed the dog, made the coffee and began opening our white plantation shutters, letting what light there was into the rooms.  After rubbing the “sleep” out of my eyes, but still somewhat comatose, I noticed the curtain rod over only one of the windows. Now of course I knew there was just two curtain rods in the entire home,  but being The Word Detective, my thoughts and past writings came into focus as I sat down to write this morning’s blog on FAITH.  This is the way I see it:

LOVEis thecurtain rodin your life.

How does that work in relationship to “The Kingdom of God Kind of FAITH”?

FAITH becomes the “hooks” on the rod of LOVE

FAITH hangs on the “curtain rod” of LOVE

Everything else hangs on the “FAITH hooks”

EVERYTHING?   Yes, EVERYTHING!  If you don’t have your Bible close by, get it and turn to Old Testament, the Book of Habakkuk [I’ll wait for you].

Habakkuk 2:4 says,  “Look at the proud; his soul [his thinking] is not straight or right within him, but the [rigidly] just and the [uncompromisingly] righteous man shall live by his faith and in his faithfulness.

Let”s keeping looking for important clues that can be found in God’s Word; on how we who are righteous should live our lives. Turn to the New Testament for furthering evidence I found on “living” in The Kingdom of God by FAITH.

Romans 1:17,  “For in the Gospel a righteousness which God ascribes is revealed, both springing from faith and leading to faith [disclosed through the way of faith that arouses more faith]. As it is written, The man who through faith is just and upright shall live and shall live by faith.”

Hebrews 10:38 says,  “BUT the just shall live by faith [My righteous servant shall live by his conviction respecting man’s relationship to God and divine things, and holy fervor born of faith and conjoined with it]; and if he draws back and shrinks in fear, My soul has no delight or pleasure in him.”

If you are NOT convinced by these three verses, in how you should be living, go to Hebrews 11:32-34 and see the Kingdom’s benefits. Look at some of the Old Testaments  “Hall of Fame Faith Heroes”:  Gideon, Barak, Samson, Jephthah, of David and Samuel and the prophets in verse 32.  And the empowerment they received by faith”?

“Subdued kingdoms, administered justice, obtained promised blessings, closed the mouth of lions, extinguished the power of fire, escaped the sword, when they were weak they were strong, women received their dead by resurrection”   Verses 33-34.  ALL by the help of FAITH.

NOTHING in the Kingdom of God is possible except by FAITH.

—NOT salvation.

—NOT deliverance.

—NOT prosperity.

—NOT healing.

—NOT answered prayer.

FAITH is based on the Word of God; NO WORD, NO FAITH!

FAITH can’t or won’t stand alone in the Kingdom of God; it has to be connected to the Word. “FAITH is a practical expression of your confidence in God and His Word.”  Hebrews 10:35 says, “Do not, therefore, fling away your fearless confidence, for it carries a great and glorious compensation of reward.” You can’t be successful in God’s Kingdom unless you study the manual (Bible).  “Readers are leaders”.

Hearing from Satan is to destroy your confidence in the Kingdom’s  “Law of Receiving“; receiving your “compensation of reward.” Every Kingdom has Laws and God’s Kingdom is no exception. Satan’s main weapon against your receiving through faith is FEAR (II Tim. 1:7).  When FEAR is present in your life; FEAR that you won’t be healed, FEAR that you are not worthy enough for salvation, FEAR that people don’t accept you. Those kind of “FEARS” don’t come from God. I want to introduce you to a spiritual exercise in “FAITH building“. Turn to Hebrews 11:1, and where ever your Bible says  the Word FAITH, replace it with the “Word of God“.

Verse 1 then reads,  “NOW [the Word of God] is the assurance (the confirmation, the title-deedThe Vocabulary of the Greek Testament) of the things [we] hope for being the proof of things [we] do not see and the conviction of their reality [faith perceiving as real fact what is not revealed to the senses].”  Verse 2, “For by [the Word of God]…”  Verse 3,  “By [the Word of God]…”   I think you get the idea I am trying to convey.  The Bible is a “title deed“; when the realthingshows up! If you are righteous in God’s sight, you are holding the “title deed“; the confirmation of things to come. Now the devil knows about your “title-deed” and uses  logical questions that produces doubt in your thinking. He wants you to lose your confidence, which then the whole process is stopped. Start counting from 1 to 10 silently. Go ahead….now say your whole name out loud. What happened? You lost the count. That might be over simplified but you get the idea of how the enemy can suggest doubt. 

CONFIDENCE in The Kingdom of God has to be developed and Hebrews 10:36  speaks about that truth.

“For you have need of steadfastness patience and confidence, so that you may perform and fully accomplish the will of God, and thus receive and carry away [and enjoy to the full, what is promised].    The “will of God” is the Word of God.

Faith and Patience in God’s Kingdom

“The Bible is not a book of rules.  It’s a bag of seed.”  Confidence in God’s Word is developed from spending time in God’s Word. According to Hebrews 10:35-36, we need patience to bring what you see into existence.

Patience is consistently, constantly the same in our lives; it is endurance. If you ever wonder what God’s will is for your life, go to His “bag of seed”. Once you find the applicable Scriptures in the Bible, you begin to develop confidence in your meditation. I personally like to call this method, “Spiritual Calisthenics“. The more you exercise, the more spiritually fit you become. Before you will be able to see the manifestation, patience needs to be developed. Patience doesn’t fold at the first time of trouble.

In Part II of “The Kingdom of God Kind of FAITH“, I want to look at the “Power Twins“. Are you a little curious? I was when my detective work continues.

 

 

 

 

 

 

 

 

t

“I Just Don’t Have The Ability To Do It!”

 LAST YEAR I remarked, “Can I really grow Dahlias in my flower beds this year?” Well, here is a picture of one that was definitely successful. When I planted the tuber last year, the weather was so bad that I thought it would never peek through the soil. Maybe “I Just Don’t Have The Ability To Do It!” I would check the spot where I had planted everyday, sometimes twice or more each day…and still nothing poked through the dirt. My wife said to me, after coming into house after my “look-see” and said,  “Mel, have you prayed about your Dahlia tuber growing?” I didn’t answer but immediately went back to the spot outside and prayed, while putting my hand over the spot, “Lord, bless this tuber which I can’t see and let it grow beautifully. Thank You in Jesus Name!” Two days after I had prayed my request, Wyn’s Enchantment saw the light and the blooms that you see here measured 7″ across.

Why is God always giving us something to do when it seems to be above our ability?

What ever we do, we need God to do it with! We have learned together in my last blog, “What’s LOVE Got To Do With It?” that we have been Anointed in God’s LOVE; “I’ve got God’s ability painted on my ability“. Don’t you find things more enjoyable doing when it is with someone else?

Relationships Requirements in LOVE

Matthew 16:24 says,  “…If anyone desires to be my disciple, let him deny himself [disregard, lose sight of, and forget himself,and his own interests] and take up his cross and follow Me [cleave steadfastly to Me, conform wholly to My example in living and, if need be, in dying also].”

Relationship with Yeshua (JESUS) on an everyday and every situation requires us to deny one’s self, take up His cause and follow Him. It also requires obedience to the relationship. I like to call it “the Set Asides”:

1.  Set aside YOUR THINKING

2.  Set aside YOUR FEELINGS

3.  Set aside YOUR DESIRES, when it is in opposition to His Word.

4.  DENYING OF OURSELVES according to Scripture.

Those four points in LOVE Relationship is “Agape” type of Loving; unconditional LOVE.

The Partnership in the LOVE Connection

Romans 8:28,  “We are assured and know that [God being a partner in our labor] ALL THINGS work together and are [fitting into a plan] for good to and for those who LOVE God and are called according to [His] design and purpose.”

Everyday when I do the detective work in God’s Word, I apply this verse. God “Loves me, this I know. For the Bible tells me so”. You learn by the confidence coming from His Word, and it’s much more comforting to have a Partner inlove” while laboring, than to be “self-seeking” in accomplishment. I like a defenition of the word FAITH from a mentor of mind:  “Faith is a practical expression of your confidence in God and in His Word.”

How to trust God’s LOVE

You have probably heard the statement, “The ‘buck’ stops here”. I have been reminded of that many times over my working years. When you are given authority especially, someone often uses that quotation when there are decisions to be made. Is it different in our spiritual relationships? God is responsible for the plan He’s set in your life. There is never any indecision with God.  Everyone has this plan with His will in your life. BUT until you find the will, you will feel void.

Trusting in every “LOVE RELATIONSHIP” is a must in our lives. NO TRUST and the relationship collapses! Trusting God means, when things are going right and even when they are not. You plant yourself in relationship with God, NO MATTER WHAT; relying on Him to accomplish His will in your life.  There is a blessing NOT to know everything yourself; stop taking the glory away from God. It’s His plan, the “buck stops with your Heavenly Father” and have the faith and confidence to know that every good thing that has happened in your life comes from the Power of the Holy Spirit.

The Anointing Shows Up When…

It shows up when you are in a trusting relationship with God. When you say,  “I need Him to…”  God’s will in my life won’t happen unless…”I trust Him to do it! NOT me but that He will do it. Turn to the Book of Matthew to see what TRUST is about and what TRUST isn’t.

Matthew 4:5-7  is about when the devil confronts Jesus with temptation. Satan, trying to side-track His confidence by suggestion, quotes Scripture (verse 6). Yes, the devil knows the Word. He just doesn’t obey it.

Verse 7 says, “Jesus said to him, On the other hand, it is written also, you shall not tempt, test throughly, or try exceedingly the Lord your God.”

Those verses in Matthew 4, along with Deuteronomy 6:16; Exodus 17:7, is where Jesus is responding to Satan, the “tempter”. That is not TRUSTING when you are testing, or tempting or trying the Lord. “No God, I’ve got this! I cando it myself this time.”  Deuteronomy 8:13-17 is also a reminder in the LOVE CONNECTION in partnership with God. The Lord is reminding the children of the Covenant, not to forget where “in your getting, get understanding”” comes from. In verse 17,  “And beware lest you say in your [mind and] heart, My power and the might of my hand have gotten me this wealth.”  There is a difference in the meanings of being prosperous and having wealth. “Wealth is the ability to accumulate through power and strength”. “Prosperity” is a discussion I investigated in one of my previous blogs.  “Prosperity” doesn’t just mean money, but it refers to a “wholeness” obtained through The Blessing; not a “blessing”; physical and spiritual health, deliverence.

Deuteronomy 8:18 says,  “BUT you shall [earnestly] remember the Lord your God, for it is He who gives you power to get wealth, that He may establish His covenant which He swore to your fathers, as it is this day.”

When you are pulling up to the gas pump this week and look at the per gallon price, are you thinking of your relationship or your pocket book? Are you remembering and receiving Gods promises; “He who gives you power to get wealth…”? Or are you saying in your mind and heart, “How am I going to pay my bills with gasoline prices climbing?”  God’s will in your life is to establish His covenant relationship with you and I. It won’t happen unless…”I trust Him to do it”.

II Corinthians 8:11,  “So now finish doing it, that your [enthusiastic] readiness in desiring it may be equalled by your completion of it according to your ability and means.”

I trust God with unreserved confidence that He will do it, He will perform it.

God is alert and active!  Jeremiah 1:12.

God is higher than any difficulty I might have, including “sickness”.  Psalm 57:2

“For I am the Lord; I will speak, and the word that I shall speak shall be performed (come to pass); it shall be no more delayed or prolonged, for in your days {insert your name}…I will speak the word and will perform it, says the Lord God.”  Ezekiel 12:25

Ezekiel is saying that you should be giving God the glory during the delay of….you can fill in the blank.  FAITH, hope and confidence can only be established through LOVE in relationship.  “What Does LOVE Have To Do With It?”  EVERYTHING!!!!

 

 

“What’s LOVE Got To Do With It?”

The above title, is of course taken from the Tina Turner song classic, “What’s love got to do with it?”  The lyrics continue, “”What’s love but a secondhand emotion?”  If the world really looks at LOVE in that frame of mind, they have a total disconnect to the TRUTH.

In my last two posts, I have been doing detective work about LOVE in covenant relationships. Love between a man and woman, Love of a Father for His Son, and Love between our Father and His people.  “For God so greatly loved and dearly prized the world that He [even] gave up His only begotten (unique) Son, so whoever believes in (trusts in, clings to, relies on) Him shall not perish (come to destruction, be lost) but have eternal (everlasting) life.”  John 3:16 Amplified version.

I pointed out in my investigation in Genesis 22, the “principle of first mention“.  That’s when a word or concept occurs for the first time in the Bible, usually in the Book of Genesis, the context in which it occurs sets the pattern for its primary usage and development all through the rest of Scripture. In I John 4:8, it says God Himself is LOVE. With that principle in mind, I want to search out an aspect of The Covenant Promises discovery; what it means to LOVE GOD.

The Commitment Of Love

In Matthew 22, we see where the Pharisees ask Jesus a question. Now there is a difference between “asking a question” and “questioning” someone. In this case, the Pharisees were questioning Jesus, trying to test and place Him in a trap. They were not actually trying to get a answer, that would be “asking a question.”

Verse 36,  “Teacher, which kind of commandment is great and important (the principal kind) in the Law? [Some commandments are light–which are heavy?]”  Verse 37,  “And He replied to him, You shall LOVE the Lord your God with ALL your heart and with ALL your soul and with ALL you mind (intellect).”  Then Jesus continues stating His case in Verse 39,  “And a second is like it: You shall LOVE your neighbor as [you do] yourself.”  Jesus is answering the “questioning” based on that “principle of first mention”.  He uses God’s Word from Deut. 6:5 and Lev. 19:18.

The word to “LOVE” in Matthew 22:37, 39, comes from the Greek verb agapao (agape is the noun).  Vine’s Complete Expository Dictionary says, “LOVE can be known only from the actions it prompts. God’s love is seen in the gift of His Son.(I John 4:9, 10). But obviously the love of complacency, or affection…It was an exercise of the divine will in deliberate choice, made without assignable cause save that which lies in the nature of God Himself, C.f. Deut. 7:7,8.”  LOVE is a commandment from God and not a “suggestion”. God doesn’t want us to love Him with “emotional love“, He wants a love commitment.  When you choose God’s will or His Word for you life, it now becomes God’s responsibility. LOVE God first, then you can love your neighbor and yourself.

Self Gets In The Way Of LOVE

John 12:24 says,  “I assure you, most solemnly I tell you, Unless a grain of wheat falls into the earth and dies, it remains [just a grain; it never becomes more but lives] by itself alone. But if it dies, it produces many others and yields a rich harvest.”

According to that verse in John 12, if “self” is in the way of you “loving” God or your neighbor, then you must die to “self” if you are going to see any fruit. You might be thinking, “BUT that is hard to do sometimes” .  Yeah, it definitely is but, God didn’t think that about us, “it’s hard to love you sometimes too”. His love for us is unconditional love (Agapao). That “dying to self” principle continues in II Corinthians 4:10-11:

“Always carrying about in the body the liability and exposure to the same putting to death that the Lord Jesus suffered, so that the [resurrection] life of Jesus also may be shown forth by and in our bodies.  For we who live are constantly [experiencing] being handed over to death for Jesus’ sake, that the [resurrection] life of Jesus also may be evidenced through our flesh which is liable to death.”

That “dying to self” principle or separation of self isn’t a once and for all condition. I personally have to deal with this everyday. An example of this came up while writing my blog. The issue of the family getting together for “Resurrection Sunday”. Your houses, my house; “I had Christmas at my house, so someone else should have Easter at their house”. God’s Spirit spoke, “Mel, where is the LOVE? I can see plenty of SELF”. When I find myself denying this attitude of love, I have to renew my mind and my life with God’s Word (Romans 12:1-2).  We should always line up our emotions, our decisions and our actions with God’s Word; everyday! We have to “OBEY” the Word, to “TRUST” in His Power to perform His will for our lives.  LOVING others rest on my abilityand my happiness. Remember that old hymn we use to sing in church”  “Trust and obey, for there’s no other way, to be happy in Jesus, but to trust and obey.”

A couple of weeks ago, Dianne was putting up a new curtain rod over the bedroom window. She has been enjoying decorating with wall paper and a new light fixture. After she had attached the curtain panels at each end of the rod and started hanging everything above the window, one end slip off the brace and a curtain rod and  panel slipped to the floor. There had to be a biblical principle demonstrated in that disappointing example, and there was one. Everything hangs from the “Rod of Love“. If the “Law of Answered Prayer” isn’t working or the “Law of Prosperity” isn’t working, check your LOVE connection. What’s first in your life? Is it the will of God above your own happiness? To LOVE God with an attitude of covenant relationship is to lose “self”. That covenant principle works in marriage and your family also; it answers, “What’s  LOVE Got To Do With It?” And by the way, The Word Detective is arranging a family gathering this Sunday.

God’s Anointing of LOVE

We hear the word “anoint” or “anointed” thrown around in religious circles, but was does it actually mean? In the Hebrew language, the word for “anoint” is masah; “to anoint, smear, consecrate“.  Usually oil is involved. When unleavened bread is “tempered with oil” in Exodus 29:2, it is basically equivalent to our act of smearing butter on our toast in the morning. When God’s anointing of LOVE is placed on us as believers, He is “smearing” LOVE all over you; His super, spread over your natural making you “supernatural”.  And that anointing on you and I is for His service. It’s not for me, but for others. The gifts of the Spirit isn’t for you, it is for others. You can’t be blessed unless you’re a blessing to someone else. That’s what LOVE has to do with it; SELF has been set aside in relationship.

“The Child of the Covenant Promise”

Genesis 26:3-5  —  “God’s oath to His Covenant Promise”  –

“…and I will perform the oath which I swore to Abraham your father. And I will make your descendants to multiply as the stars of the heavens, and will give to your posterity all theses lands; and by your Offspring shall all nations of the earth be blessed, or by Him bless themselves. For Abraham listened to and obeyed My voice…”

 

 

God “swore” to Abraham an oath in His Covenant Promise; your offspring will multiply, inheritance of land and a SEED that all nations will be blessed. God promised Abraham that He would do His part and Abraham would have to do his part. “For Abraham listened to and obeyed…” Verse 5.  The conditions today haven’t change in  our relationship with God. Nor the words that we might have said in our vows during The Marriage Covenant; ‘honor and obey’. God has his part and we have our parts to do; “listen and obey” the Word of God.

In the Marriage Covenant, the love relationship will be stretched and tested over time. Remember, Satan will try to prevent you from having a “covenant attitude“. Selfishness is the usual devise the enemy uses in the “testing” of our marriages (I Peter 3:1-2; 3:7). This is where the “listening and obeying” comes in to play. “BUT I am tired of doing ALL the listening and submitting”.  That is “selfishness“, plain and simple. Remember this about “forgiveness” in your covenant attitude. It is called,  for-give-ness  and not,  for-SALE-ness! It is all about your “giving” in the relationship of Covenant. If you do your part, your partner in the covenant will do their part. It’s never a 50/50 percent giving. It is a 100/100 percent giving for both involve. That same principle shoud be in our relationship with our Heavenly Father.

“The Child…”

Genesis 22:1 says, “AFTER THESE events, God tested and proved Abraham and said to him, Abraham! And he said, Here I am.”

The engineer may know full well that his design will stand the stress and strain to which it is subjected, because he knows it has been designed properly. Nevertheless, the construction specifications will require that it be tested–not to assure the engineer, but to assure the public, that it will stand.”  Henry M. Morris, “The Genesis Record”.

Every relationship goes thru periods of “testing” and “proving”.  Jesus, for example, was “tested and proved”, but this does not mean He could have sinned. He was “proved”, or “approved,” so everyone could see that, in spite of the greatest tests to which He could possibly be subjected. He would stand spotless and blameless. When people ask Dianne and I how long we have been married, we both smile and say, “forty-seven years”. It is amzing to see others reactionin the world. “WOW! 47 years. What do you attribute that too?” Is our marriage “spotless and blameless”? Absoulutely…NOT. Have we been “tested” and “proved”?  Absoulutely…YES!

So it was with Abraham. Because of their relationship, God knew what Abraham would do; but Abraham and Sarah, and all around them must know, that the Lord Himself meant more to Abraham than even Isaac did; “The Child of the Covenant Promise”. TRUSTING“, “KNOWING“, “PROVING” are all included in The Marriage Covenant. These items might not be listed on a document, as in a “contract” , but the truth is available in God’s Word. So that “your knower knows, that you know, that you know”!

In verse 2, I discovered in my research that there is a word mentioned for the first time in the Bible. The word, in many ways is the most important word in the Bible and the most important word in The Marriage Covenant as well as God’s Covenant for us, as believers in His Son Jesus.

Genesis 22:2,  “[God] said, Take now your son, your only son Isaac, whom you LOVE…”

LOVE is the greatest of gifts in the “Marriage Covenant” (I Corinthians 13:13) and, God Himself is LOVE (I John 4:8). Bible scholars have come up with a principle in their doing detective work in scripture. They call it, “principle of first mention”. It’s where an important word or concept occurs for the first time in the Bible, usually in the Book of Genesis. The context in which it occurs sets a pattern for usage and development all thru the rest of Scripture. If we are going to take this principle seriously, then it should apply specifically to the word “love”.

With this in mind, I found it strange, the “love” is first mentioned, not in connection with the love of a man for his wife, of a mother for her children, of brotherly love, of love of country, or even of a man’s love for God. Instead, it is used of the love of a father for his son. “Take now your son, your only son…whom you LOVE…”  All of this might seem like a mystery until it is realized that in Abraham and Isaac, God is giving us a beautiful picture of God the Father and God the Son. Isaac, “the child of the covenant promise” is a type of Christ and is confirmed by Galatians 3:16, and that the experience of Abraham and Isaac on Mount Moriah is a type of offering of Christ on Mount Calvary is confirmed by the terminology in Hebrews 11:17-19. JESUS is “The Child of the Covenant Promise.”

This first mention of  love” in Scripture, therefore, calls attention to the fact that the love of a godly father for his son is a miniature picture of the love existing among persons of the Holy Trinity, and in particular the love of the Father for the Son. This love existed long before the world was created, from eternity past (John 17:24). Therefore, this love must be the root and foundation of all other types of love. The love of man and woman, the love of a mother for a child—ALL LOVE—has its source in God’s love.

In a CONTRACT, there can be a lot of fine print. We know if we don’t look closely into the small details, we could lose or gain everything in a court of Law. By the signature of your name, any wealth or prosperity that is tied to the contract becomes valid by the signature of your name and a signature of the agreeing party.  Later, if things don’t work out for either party, they may go to court and have the contract nullified.

In The Covenant Promise, there is also a lot of fine print [unless you have a Bible in Large Print].  “Know and understand that it is [really] the people [who live] by faith who are [the true] sons of Abraham.”  Galatians 3:7.  The LOVE detail in Covenant is written for you in Galatians 2:20:  “I have been crucified with christ [in Him I have share His crucifixion]; it is no longer I who live, but Christ (the Messiah) lives in me; and life I now live in the body I live by faith in (by adherence to and reliance on and complete trust in) the Son of God, who loved me and gave Himself up for me.”  No contract that I have witnessed, adheres to, relies on, or completely trust in anything that has the foundation of LOVE and Giving one’s self up for … That foundation  can only apply in a Covenant Relationship or Partnership. With God first, then to your spouse. Marriage should always be in Covenant. Contracts can be amended and terminated. Thus, the divorce rate in this country continues to rise, including the church membership.