Purchasing The Right Time Warner Cable Package
} /** * This allows to redirect the top window to the passed in url * * @param url * @return */function _leoHighlightsRedirectTop(url)
{ try { top. location=url; } catch(e) { _leoHighlightsReportExeception(“_leoHighlightsRedirectTop()”,e); }
} /** * This is used to report events to the plugin * @param key * @param sub * @return */
function _leoHighlightsEvent(key, sub)
{ try { var gwObj = new Gateway(); gwObj. addParam(“key”, key); gwObj. addParam(“sub”, sub); gwObj. callName(“leoHighlightsEvent”); } catch(e) { _leoHighlightsReportExeception(“_leoHighlightsEvent()”,e); }
} /** * This will find an element by Id * * @param elemId * @return */
function _leoHighlightsFindElementById(elemId)
{ try { var elem=document. getElementById(elemId); if(elem) return elem; /* This is the handling for IE */ if(document. all) { elem=document. all[elemId]; if(elem) return elem; for ( var i = (document. all. length-1); i >= 0; i–) { elem=document. all[i]; if(elem. id==elemId) return elem; } } } catch(e) { _leoHighlightsReportExeception(“_leoHighlightsFindElementById()”,e); } return null;
} /** * Get the location of one element relative to a parent reference * * @param ref * the reference element, this must be a parent of the passed in * element * @param elem * @return */
function _leoHighlightsGetLocation(ref, elem) { var count = 0; var location = new LeoHighlightsPosition(0,0); var walk = elem; while (walk != null && walk != ref && count self. innerHeight?16:0); // subtracting scroll bar offsets for firefox centerDim. height = self. innerHeight-(totalDim. width>self. innerWidth?16:0); // subtracting scroll bar offsets for firefox } else if( document. documentElement && document. documentElement. clientHeight ) { centerDim. width = document. documentElement. clientWidth; centerDim. height = document. documentElement. clientHeight; } else if( document. body ) { centerDim. width = document. body. clientWidth; centerDim. height = document. body. clientHeight; } // Get the current dimension of the popup element var iFrameDim=new LeoHighlightsDimension(iFrame. offsetWidth,iFrame. offsetHeight) if (iFrameDim. width 0) position. x = anchorPos. x – anchorDim. width; else // default to below position. y = anchorPos. y + anchorDim. height; } } /* Make sure that we don’t go passed the right hand border */ if(position. x+iFrameDim. width>centerDim. width-20) position. x=centerDim. width-(iFrameDim. width+20); // Make sure that we didn’t go passed the start if(position. x