var GHP={};GHP.addLoadEvent=function(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){if(b){b()}a()}}};GHP.getElementsByClassName=function(b,a,c){if(document.getElementsByClassName){GHP.getElementsByClassName=function(j,m,h){h=h||document;var d=h.getElementsByClassName(j),l=(m)?new RegExp("\\b"+m+"\\b","i"):null,e=[],g;for(var f=0,k=d.length;f<k;f+=1){g=d[f];if(!l||l.test(g.nodeName)){e.push(g)}}return e}}else{if(document.evaluate){GHP.getElementsByClassName=function(p,s,o){s=s||"*";o=o||document;var g=p.split(" "),q="",m="http://www.w3.org/1999/xhtml",r=(document.documentElement.namespaceURI===m)?m:null,h=[],d,f;for(var k=0,l=g.length;k<l;k+=1){q+="[contains(concat(' ', @class, ' '), ' "+g[k]+" ')]"}try{d=document.evaluate(".//"+s+q,o,r,0,null)}catch(n){d=document.evaluate(".//"+s+q,o,null,0,null)}while((f=d.iterateNext())){h.push(f)}return h}}else{GHP.getElementsByClassName=function(s,w,r){w=w||"*";r=r||document;var h=s.split(" "),v=[],d=(w==="*"&&r.all)?r.all:r.getElementsByTagName(w),q,n=[],p;for(var j=0,e=h.length;j<e;j+=1){v.push(new RegExp("(^|\\s)"+h[j]+"(\\s|$)"))}for(var g=0,u=d.length;g<u;g+=1){q=d[g];p=false;for(var f=0,o=v.length;f<o;f+=1){p=v[f].test(q.className);if(!p){break}}if(p){n.push(q)}}return n}}}return GHP.getElementsByClassName(b,a,c)};

GHP.getStyle=function(a,b){var c="";
if(document.defaultView&&document.defaultView.getComputedStyle)
{
c=document.defaultView.getComputedStyle(a,"").getPropertyValue(b)
}
else
{
	//try
	//{
	if(a.currentStyle)
		{
			b=b.replace(/\-(\w)/g,function(d,e)
			{
				return e.toUpperCase()
			}
			);
			c=a.currentStyle[b]
		}
	//}catch(e){}
}
return c
};


GHP.Easing={Bounce:{easeOut:function(e,a,g,f){if((e/=f)<(1/2.75)){return g*(7.5625*e*e)+a}else{if(e<(2/2.75)){return g*(7.5625*(e-=(1.5/2.75))*e+0.75)+a}else{if(e<(2.5/2.75)){return g*(7.5625*(e-=(2.25/2.75))*e+0.9375)+a}else{return g*(7.5625*(e-=(2.625/2.75))*e+0.984375)+a}}}},easeIn:function(e,a,g,f){return g-Easing.Bounce.easeOut(f-e,0,g,f)+a},easeInOut:function(e,a,g,f){if(e<f/2){return Easing.Bounce.easeIn(e*2,0,g,f)*0.5+a}else{return Easing.Bounce.easeOut(e*2-f,0,g,f)*0.5+g*0.5+a}}},Elastic:{easeIn:function(g,e,l,k,f,j){f=f||null;j=j||null;if(g==0){return e}if((g/=k)==1){return e+l}if(!j){j=k*0.3}if(!f||f<Math.abs(l)){f=l;var h=j/4}else{var h=j/(2*Math.PI)*Math.asin(l/f)}return -(f*Math.pow(2,10*(g-=1))*Math.sin((g*k-h)*(2*Math.PI)/j))+e},easeOut:function(g,e,l,k,f,j){f=f||null;j=j||null;if(g==0){return e}if((g/=k)==1){return e+l}if(!j){j=k*0.3}if(!f||f<Math.abs(l)){f=l;var h=j/4}else{var h=j/(2*Math.PI)*Math.asin(l/f)}return(f*Math.pow(2,-10*g)*Math.sin((g*k-h)*(2*Math.PI)/j)+l+e)},easeInOut:function(g,e,l,k,f,j){f=f||null;j=j||null;if(g==0){return e}if((g/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(!f||f<Math.abs(l)){f=l;var h=j/4}else{var h=j/(2*Math.PI)*Math.asin(l/f)}if(g<1){return -0.5*(f*Math.pow(2,10*(g-=1))*Math.sin((g*k-h)*(2*Math.PI)/j))+e}return f*Math.pow(2,-10*(g-=1))*Math.sin((g*k-h)*(2*Math.PI)/j)*0.5+l+e}},Expo:{easeIn:function(e,a,g,f){return(e==0)?a:g*Math.pow(2,10*(e/f-1))+a},easeOut:function(e,a,g,f){return(e==f)?a+g:g*(-Math.pow(2,-10*e/f)+1)+a},easeInOut:function(e,a,g,f){if(e==0){return a}if(e==f){return a+g}if((e/=f/2)<1){return g/2*Math.pow(2,10*(e-1))+a}return g/2*(-Math.pow(2,-10*--e)+2)+a}},Sine:{easeIn:function(e,a,g,f){return -g*Math.cos(e/f*(Math.PI/2))+g+a},easeOut:function(e,a,g,f){return g*Math.sin(e/f*(Math.PI/2))+a},easeInOut:function(e,a,g,f){return -g/2*(Math.cos(Math.PI*e/f)-1)+a}}};GHP.Tween=function(d,g,c,a,f,b,e){this.el=d;this.prop=g;this.begin=parseInt(this.el.style[g],10);this.finish=a;this.duration=f;this.change=this.finish-this.begin;this.type=b;this.onComplete=e||(function(){})};GHP.Tween.prototype={begin:0,finish:0,duration:500,change:0,time:0,start:function(){var a=this;this.timer=setInterval(function(){a.step()},24)},step:function(){this.el.style[this.prop]=this.type(this.time++,this.begin,this.change,this.duration)+"px";if(this.time>this.duration){this.stop();this.onComplete()}},stop:function(){clearInterval(this.timer)}};GHP.accordionInit=function(){var k=document.getElementById("services");var j;var h={enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46};var l=[];function n(){var q=GHP.getElementsByClassName("open","div",k);j=q[0];l=GHP.getElementsByClassName("bar");var r=GHP.getElementsByClassName("content_holder","div",k);for(var p=0;p<l.length;p++){l[p].onclick=c}}var b=function(){for(var q=0,p=l.length;q<p;q++){l[q].onkeydown=function(s){s=s||window.event;var r=s.which||s.keyCode;if(r===9){return false}}}};var a=function(){for(var q=0,p=l.length;q<p;q++){l[q].onkeydown=null}};function c(){var q;if(this.parentNode){q=this.parentNode}else{q=this.parent}var s=GHP.getElementsByClassName("content_holder","div",q);if(j!=s[0]){var u;if(j.parent){u=j.parent}else{u=j.parentNode}var r=GHP.getElementsByClassName("open_plus","span",u);r[0].className="closed_plus sprite sprite_plus";o(GHP.getElementsByClassName("content_holder","div",q)[0])}return false}var g=[];function o(u){j=u;b();j.className=j.className.replace("hidden","");var w;if(j.parentNode){w=j.parentNode}else{w=j.parent}var q=GHP.getElementsByClassName("holder");for(var s=0;s<g.length;s++){g[s].stop()}for(var s=0;s<q.length;s++){if(m(q[s].id)<m(w.id)){var v=parseInt(q[s].style.left,10);var r=new GHP.Tween(q[s],"left",v,s*43,40,GHP.Easing.Sine.easeInOut,function(){f()});g.push(r);r.start()}else{if(m(q[s].id)==m(w.id)){var y=GHP.getElementsByClassName("closed_plus","span",q[s]);y[0].className="open_plus sprite sprite_open";var v=parseInt(q[s].style.left,10);var r=new GHP.Tween(q[s],"left",v,s*43,40,GHP.Easing.Sine.easeInOut,function(){f()});g.push(r);r.start()}else{var x=(737+(s-1)*43+40)-1;var v=parseInt(q[s].style.left,10);var r=new GHP.Tween(q[s],"left",v,x,40,GHP.Easing.Sine.easeInOut,function(){f()});g.push(r);r.start()}}}e(j,true)}function e(r,p){if(p){var q=1;r.style.visibility="visible";if(d()){r.style.filter=(q==1)?"":"alpha(opacity="+q*100+")"}r.style.opacity="1"}else{var q=0;r.style.opacity="0";r.style.visibility="hidden";if(d()){r.style.filter=(q==1)?"":"alpha(opacity="+q*100+")"}}}function m(p){if(p=="about"){return 0}else{if(p=="tv"){return 1}else{if(p=="internet"){return 2}else{if(p=="phone"){return 3}else{if(p=="bundles"){return 4}}}}}}function d(){return(!window.ActiveXObject)?false:((window.XMLHttpRequest)?((document.querySelectorAll)?6:5):4)}function f(){var p=GHP.getElementsByClassName("content_holder","div");for(var q=0;q<p.length;q++){if(p[q]!=j){if(!p[q].className.match("hidden")){p[q].className=p[q].className+" hidden"}e(p[q],false)}else{a()}}}n()};GHP.Marquee=function(a){this.container=a;this.items=GHP.getElementsByClassName("marquee_item","div",this.container);this.selectors=GHP.getElementsByClassName("marquee_selector","a",this.container);this.selectorTexts=GHP.getElementsByClassName("marquee_selector_text","span",this.container);this.bubble=GHP.getElementsByClassName("marquee_selector_bubble","div",this.container)[0];this.bubbleWidth=parseInt(GHP.getStyle(this.bubble,"width"),10);this.bubbleStart=parseInt(GHP.getStyle(this.bubble,"left"),10);this.bindClicks();this.start()};GHP.Marquee.prototype={items:[],speed:12000,_cur:0,_timer:null,start:function(){var a=this;this._timer=setInterval(function(){a.next()},this.speed)},stop:function(){clearInterval(this._timer);return this},next:function(){var a=this._cur+1;if(this.canGo(a)){this.go(a)}else{this.first()}return this},prev:function(){var a=this._cur-1;if(this.canGo(a)){this.go(a)}else{this.last()}return this},first:function(){this.go(0);return this},last:function(){this.go(this.items.length-1);return this},_doGo:function(d){var g=this.current();g.style.left="-1000em";g.style.top="-1000em";for(var b=0,a=this.items.length;b<a;b++){var e=this.selectorTexts[b].parentNode.parentNode||this.selectorTexts[b].parent.parent;e.className=e.className.replace("selected","");if(b!==d&&b!==d-1){this.addBar(this.selectorTexts[b])}else{this.removeBar(this.selectorTexts[b])}}this.setCurrent(d);var f=this.current();f.style.left="0";f.style.top="0";this.selectors[d].className="marquee_selector selected";this.bubble.style.left=d*this.bubbleWidth+this.bubbleStart-d+"px"},addBar:function(a){a.className="marquee_selector_text"},removeBar:function(a){a.className="marquee_selector_text no_bar"},go:function(a){if(this.canGo(a)){this._doGo(a)}return this},canGo:function(a){if(a>=0&&a<this.items.length){return true}return false},current:function(){return this.items[this._cur]},setCurrent:function(a){this._cur=a;return this},bindClicks:function(){var c=this;for(var b=0,a=this.selectors.length;b<a;b++){(function(d){c.selectors[d].onclick=function(){c.stop();c.go(d);return false}})(b)}}};function ClickLink(b){href=document.location.href.toLowerCase();if(href.indexOf("business")>-1){cookieVal="business"}else{if(href.indexOf("wireless")>-1){cookieVal="wireless"}else{cookieVal="residential"}}var c=" ";try{c=b.innerHTML.toLowerCase()}catch(a){}if("wireless,business,residential".indexOf(c)>-1){cookieVal=c}deleteCookie("BusinessUnit");setCookie("BusinessUnit",cookieVal,60);return true}function isNNumeric(c){var a=(navigator.appName.indexOf("Netscape")!=-1);var b=(a)?c.which:c.keyCode;if(a){if(b==0){return true}}if((b>47&&b<58)||(b==8)||(b==9)){return true}else{if(c.returnValue){c.returnValue=false;return false}else{if(c.preventDefault){c.preventDefault();return false}}this.event.returnValue=false;return false}}function getTNQueryString(e,b,n,m,h){var f;var k;var p;var o;var l="https://"+document.domain;if(h!=1){k=document.getElementById(e).value;p=document.getElementById(b).value;o=document.getElementById(n).value;f="false"}else{k=e;p=b;o=n;f="true"}var a=l+"/ForyourHome/GoFlow/MyVerizon/RegistrationBridge.aspx";if(m=="BDSL"){a=l+"/ForyourSmallBiz/Broadband/Ordering/BB_Loopqualframe.aspx"}else{if(m=="CFIOS"||m=="FIOSTV"){a=l+"/FiOSForHome/Channels/FiOS/olo_loopqualframe.aspx"}}var c="";var q=0;q=validatePhoneNumber(k,p,o,f);if(q){var j=a+"?txtAreaCode="+k+"&txtPrefix="+p+"&txtPhoneNumber="+o+"&crossoverind=yes";if(m=="BDSL"){j=a+"?txtnpa="+k+"&txtnxx="+p+"&txtline="+o;j+="&appName=HSI"}else{if(m=="CFIOS"){j=a+"?txtAreaCode="+k+"&txtPrefix="+p+"&txtPhoneNumber="+o}else{if(m=="FIOSTV"){j=a+"?txtAreaCode="+k+"&txtPrefix="+p+"&txtPhoneNumber="+o+"&hdnFlow=TV&exmarket=N"}else{if(m=="CDSL"){j=j+"&Client=VZDOTNET&FlowRoute=VZNET-NDSL&getstarted=1herohsilq";setCookie("Source","CHSI",null)}else{if(m=="HSI"){j=j+"&Client=VZDOTNET&FlowRoute=VZNET-NDSL&getstarted=1spoffhsilq";setCookie("Source","CHSI",null)}}}}}document.location.href=j;this.event.returnValue=false;return true}else{var d=0;var g="Please Enter a Valid Phone Number";if(k==""||k.length!=3){d++}if(p==""||p.length!=3){d++}if(o==""||o.length!=4){d++}if(d>0){alert(g);document.getElementById(e).className="redfield";document.getElementById(b).className="redfield";document.getElementById(n).className="redfield";if(focusedElement!=null&&h!=1){focusedElement.focus()}else{document.getElementById(e).focus()}return false}}}var isSearch="false";function CaptureEnterKeySearch1(b){isSearch="true";var a=(b.which)?b.which:b.keyCode;if(a==13){return CaptureEnterKey1(b)}return true}var focusedElement;function CaptureEnterKey1(g,a,h,c,b){var d=(navigator.appName.indexOf("Netscape")!=-1);var f=(d)?g.which:g.keyCode;if("activeElement" in document){focusedElement=document.activeElement}else{focusedElement=g?g.explicitOriginalTarget:null}if((isNNumeric(g)=="true")&&(isSearch=="false")){return true}else{if(f==13){if(g.returnValue){g.returnValue=false;return false}else{if(g.preventDefault){if(isSearch!="true"){getTNQueryString(a,h,c,b)}else{SearchClick();isSearch="false"}g.preventDefault();return false}}g.cancel=true;if(isSearch!="true"){getTNQueryString(a,h,c,b)}else{SearchClick();isSearch="false"}this.event.returnValue=false;return false}}}function NautoTab(b,a,g){if(!isNNumeric(g)){return false}clearTimeout(tMainPromo);var d=(navigator.appName.indexOf("Netscape")!=-1);var f=(d)?g.which:g.keyCode;var c=(d)?[0,8,9]:[0,8,9,16,17,18,37,38,39,40,46];a=(d)?a-1:a;if(b.value.length>=a&&!containsElement(c,f)&&bAutotab){b.value=b.value.slice(0,a);b.form[(getIndex(b)+1)%b.form.length].focus()}bAutotab=true;return true}bAutotab=true;function stopAutoTab(){bAutotab=false}function containsElement(a,d){var c=false,b=0;while(!c&&b<a.length){if(a[b]==d){c=true}else{b++}}return c}function getIndex(a){var b=-1,c=0,d=false;while(c<a.form.length&&b==-1){if(a.form[c]==a){b=c}else{c++}}return b}function validatePhoneNumber(f,b,g,d){var a=new Array([f,3],[b,3],[g,4]);var e=1;for(var c=0;c<a.length;c++){if(isNaN(a[c][0])||String(a[c][0]).length!=a[c][1]||a[c][0]==""||a[c][0]==null){if(d=="true"){flashMain.alert(c)}e=0;break}}return e}var myimages=new Array();function preloadimages(){for(i=0;i<preloadimages.arguments.length;i++){myimages[i]=new Image();myimages[i].src=preloadimages.arguments[i]}}function WriteFlash(f,c,k,a,j,h,d){try{var b=new SWFObject(f,c,a,j,"9","#FFFFFF");b.addParam("menu",d.menu);b.addParam("scale",d.scale);b.addParam("wmode",d.wmode);b.addVariable("order",h.order);b.addVariable("thexml",h.thexml);b.addVariable("year",h.year);b.addVariable("month",h.month);b.addVariable("day",h.day);b.addVariable("hour",h.hour);b.addVariable("minute",h.minute);b.addVariable("second",h.second);b.write(k)}catch(g){onFlashError()}}function SearchClick(){var a=document.getElementById("searchField").value;if((a.length==0)||(a.toLowerCase()=="type a question or keyword")){alert("Please type a question or keyword");document.getElementById("searchField").focus();return}href=document.location.href.toLowerCase();if(href.indexOf("business")>-1){document.location.href="http://search.verizon.com/?tp=c&rv=b&q="+a}else{if(href.indexOf("wireless")>-1){document.location.href="http://search.vzw.com/?q="+a}else{document.location.href="http://search.verizon.com/?tp=r&rv=r&q="+a}}}var height=0;var width=0;function open_popup(c,b,a){if(typeof(c)!="string"){window.open(c.link,c.title,"menubar="+c.menubar+",resizable="+c.resizeable+",width="+c.width+",height="+c.height)}else{if((a>0)&&(b>0)){window.open(c,"Popup","width="+b+",height="+a+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes")}else{window.open(c,"Popup","width=562,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes")}}}function open_msg_popup(a){window.open(a,"Popup","width=1050,height=650,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes")}function deleteCookie(a){if(getCookie(a).length>0){document.cookie=a+"=;path=/;domain=.verizon.com;expires=Thu, 01-Jan-1970 00:00:01 GMT;"}}function getCookie(a){if(document.cookie.length>0){cStart=document.cookie.indexOf(a+"=");if(cStart!=-1){cStart=cStart+a.length+1;cEnd=document.cookie.indexOf(";",cStart);if(cEnd==-1){cEnd=document.cookie.length}return unescape(document.cookie.substring(cStart,cEnd))}}return""}function setCookie(b,d,a){var e=new Date();var c=document.domain;e.setDate(e.getDate()+a);document.cookie=b+"="+escape(d)+";path=/;domain=.verizon.com"+((a==null)?";":";expires="+e.toGMTString())}function SetHttpsURL(a){url=document.getElementById(a).href;if(url.indexOf("http://")!=-1){url=url.replace("http://","https://")}if(setOnClick){ClickLink()}document.getElementById(a).href=url}function onFlashError(){setCookie("isFlashEnabled","false",null);document.location.href=document.location.href}function createPopUp(a){try{window.open(a.link,a.title,"menubar="+a.menubar+",resizable="+a.resizeable+",width="+a.width+",height="+a.height)}catch(a){alert(a)}}function giveFocus(){if(navigator.appName=="Microsoft Internet Explorer"){document.getElementById("flashMovie").blur();document.getElementById("flashMovie").focus()}}var count=0;var index=0;var t;var tDelay;var textScroll="";var links="";var scrollList=new Array();function timedCount(){textScroll=scrollList[index];objScroller=document.getElementById("scrollAnchor");objScroller.innerHTML=textScroll.substring(0,count);objScroller.href=links[index].href;try{hbxName=links[index].name;hbxName=hbxName.substring(hbxName.indexOf("=")+1,hbxName.length)}catch(a){hbxName=""}hbxName='javascript:_hbLink("'+hbxName+'");';objScroller.onclick=new Function(hbxName);count=count+1;if(count>textScroll.length+1){waitTime(2);count=0;index=index+1;if(index>scrollList.length-1){index=0}tDelay=setTimeout("cancelDelay()",6000);return}t=setTimeout("timedCount()",50)}function sNext(){stopCount();index++;if(index>scrollList.length-1){index=0}count=0;timedCount()}function sPrevious(){stopCount();index--;if(index==-1){index=scrollList.length-1}count=0;timedCount()}var date;function waitTime(a){stopCount();date=new Date();date.setMinutes(a+date.getMinutes())}function cancelDelay(){var a=new Date();if(a<=date){clearTimeout(tDelay);t=setTimeout("timedCount()",50)}else{tDelay=setTimeout("cancelDelay()",6000)}}function stopCount(){clearTimeout(t);clearTimeout(tDelay)}function pausePlay(){pauseButton=document.getElementById("pauseplay");if(pauseButton.className.indexOf("sprite_ticker_play")!=-1){stopCount();timedCount();pauseButton.className="tick-pause-play sprite sprite_ticker_pause"}else{stopCount();pauseButton.className="tick-pause-play sprite sprite_ticker_play"}}function startScroller(){links=document.getElementById("scrollerLinks").getElementsByTagName("a");for(var a=0;a<links.length;a++){scrollList[scrollList.length]=links[a].innerHTML}if(scrollList.length>0){timedCount()}}function seturl(){var a=document.getElementById("verizon_prods");_hbLink(a.options[a.selectedIndex].getAttribute("hbx"));document.location.href=a.options[a.selectedIndex].getAttribute("url")}var imgPlay="/content/verizonglobalhome/images/hero_btnplay.gif";var imgPause="/content/verizonglobalhome/images/hero_btnpause.gif";var promoNumber=1;function findPromos(){try{for(var a=1;a<10;a++){pObj=document.getElementById("promo"+a);var c=pObj.id;promoNumber=a}}catch(b){}}function show_feat(b,c){for(var a=1;a<promoNumber+1;a++){document.getElementById("promo"+a).style.display="none";document.getElementById("pausePromo"+a).src=imgPause}document.getElementById(b).style.display="block";if(c==null){var a=b.substring(b.length,b.length-1);iMainPromo=parseInt(a,10)-1;clearTimeout(tMainPromo);timeMainPromo();cName="pausePromo"+(iMainPromo+1);if(iMainPromo==promoNumber){cName="pausePromo1"}document.getElementById(cName).src=imgPause}}function clearTMainPromo(){cName="pausePromo"+iMainPromo;imgObj=document.getElementById(cName);if(imgObj.src.indexOf("play")!=-1){document.getElementById(cName).src=imgPause;timeMainPromo();document.getElementById(cName).alt="Pause"}else{document.getElementById(cName).src=imgPlay;clearTimeout(tMainPromo);document.getElementById(cName).alt="Play"}}var tMainPromo;var iMainPromo=0;function timeMainPromo(){iMainPromo++;if(iMainPromo==(promoNumber+1)){iMainPromo=1}show_feat("promo"+iMainPromo+"","Y");tMainPromo=setTimeout("timeMainPromo()",12000)}function DeleteSignOutCookies(){cookieNames=new Array("dotcomsid","SMSESSION","foryourhome","vzreg","vzUserType","RegistrationApp","VZBP","BPSPANISH");for(var a=0;a<cookieNames.length;a++){deleteCookie(cookieNames[a])}};
