/*
* Vodafone UI elements
* Files contains vdfCarousel, vfTabs, vdfAccordion 
*/
(function(g){g.fn.vdfCarousel=function(j){g.fn.vdfCarousel.defaults={sCarousel:"ul.carousel",iCarouselAutoInterval:5000,iCarouselElemsWidth:350,sCloseButton:null,eCloseButton:null,sOpenButton:null,eOpenButton:null,eCarouselNavigationDrop:"h2.panelheader",sCarouselNavigationContainer:'<span class="panel carouselNavigation"></span>',eCarouselNavigationContainer:".panel.carouselNavigation",eCarouselNavigationDots:"a.dot",eCarouselNavigationArrows:"a.dir",sMainNavigationArrows:'<a title="previous item" class="dir left" href="#">left</a><a title="next item" class="dir right" href="#">right</a>',sMainNavigationDots:'<a title="###" class="dot" href="#">###</a>'};var i=g.extend({},g.fn.vdfCarousel.defaults,j);return this.each(function(k){var l=g(this);var m=new h(l,i,k)})};function h(j,r,n){var k,i;var q=j.attr("id");if(q===""){q="carousel1_"+n+Math.floor(Math.random()*70);j.attr("id",q)}this.id=q;this.options=jQuery.extend(true,{},r);this.options.eContainsCarousel=j;this.options.eCarouselContainer=j.find(this.options.sCarousel);var l="#"+this.options.eContainsCarousel.attr("id")+" ul.carousel li.carouselElement";c(l,0,this.options);this.options.iCarouselElemsWidth=g(l).width();var o=this.options.iCarouselElemsWidth;g(l).each(function(t){g(this).css("width",o)});k=this.options.eCarouselContainer.find("li.carouselElement");i=k.length;if(i<=1){return false}g(k[0]).clone().removeClass("focused").addClass("ignoreTabbing").insertAfter(k[i-1]);g(k[i-1]).clone().addClass("ignoreTabbing").insertBefore(k[0]);this.options.eCarouselContainer.css({left:-this.options.iCarouselElemsWidth,width:this.options.iCarouselElemsWidth*(i+2)+100});var s=this.options.eCarouselContainer.attr("id");if(s===""){s="carousel1_"+n+Math.floor(Math.random()*140);this.options.eCarouselContainer.attr("id",s)}k.each(function(t){g(this).attr("id",s+"_"+t)});g(this.options.eCarousel).attr({role:"slider","aria-valuemax":i,"aria-valuemin":"1","aria-valuenow":"1","aria-activedescendant":"carouselElemId0"});var m=j.find(this.options.eCarouselNavigationDrop);if(m.length>0){f(m,i,this.options);var p=this;j.find(this.options.eCarouselNavigationDots).click(function(v){var w=g(this);var t=w.text();var u=null;b(p.options,t,u,i);return false});j.find(this.options.eCarouselNavigationArrows).click(function(u){var w=g(this);var v=w.text();var t=null;b(p.options,t,v,i);return false});if(this.options.eCloseButton){this.options.eCloseButton.click(function(t){g(this).css("visibility","hidden");g(p.options.eContainsCarousel).animate({height:["toggle","swing"],opacity:"toggle"},{duration:200,queue:true,complete:function(){g(p.options.eOpenButton).css("visibility","visible").show()}});return false})}if(this.options.eOpenButton){this.options.eOpenButton.click(function(t){g(this).css("visibility","hidden");g(p.options.eContainsCarousel).animate({height:["toggle","swing"],opacity:"toggle"},{duration:200,queue:true,complete:function(){g(p.options.eCloseButton).css("visibility","visible")}});return false})}}return this}var f=function(o,m,k){o.prepend(k.sCarouselNavigationContainer);o.find(k.eCarouselNavigationContainer).prepend(k.sMainNavigationArrows);if(k.sMainNavigationDots!==null){var n='<span class="dotContainer">';for(var l=0;l<m;l++){var j=k.sMainNavigationDots.replace(/###/g,l+1);if(l===0){j=j.replace(/dot/g,"dot activeDot")}n+=j}n+="</span>";o.find(k.eCarouselNavigationContainer).prepend(n)}if(k.sCloseButton!==null){k.eCloseButton=g(k.sCloseButton);o.find(k.eCarouselNavigationContainer).append(k.eCloseButton)}if(k.sOpenButton!==null){k.eOpenButton=g(k.sOpenButton);k.eOpenButton.insertBefore(k.eContainsCarousel)}g(k.eCarouselNavigationContainer).attr("role","menu");g(k.eCarouselNavigationContainer+" a").attr({role:"menuitem","aria-haspopup":"false","aria-controls":g(k.eCarouselContainer).attr("id")})};var e=false;var b=function(j,l,n,i){if(e===false){e=true;g("ul.carousel li.ignoreTabbing").css("visibility","visible");var m=0;if(l!==null){m=-(j.iCarouselElemsWidth*l)}if(n!==null){var o=parseInt(j.eCarouselContainer.css("left"),10);switch(n){case"left":m=o+j.iCarouselElemsWidth;break;case"right":m=o-j.iCarouselElemsWidth;break}}var p=parseInt(Math.abs(m/j.iCarouselElemsWidth),10);p=(p===i+1)?1:p;a(j,p-1);var k="#"+j.eContainsCarousel.attr("id")+" ul.carousel li.carouselElement";c(k,p,j);j.eCarouselContainer.animate({left:m},{duration:400,queue:true,complete:function(){d(j,i);e=false}})}return false};var c=function(j,k,i){g(j).each(function(l){g(this).removeClass("focused").removeAttr("tabindex").attr("tabindex","-1");g(this).find("a","input").attr("tabindex","-1");if(l===parseInt(k,10)){g(this).addClass("focused").removeAttr("tabindex").attr("tabindex","1");g(this).find("a","input").removeAttr("tabindex");i.eCarouselContainer.attr({"aria-activedescendant":"carouselElemId"+(l-1),"aria-valuenow":l})}})};var d=function(j,i){var k=parseInt(j.eCarouselContainer.css("left"),10);if(k===0){j.eCarouselContainer.css("left",-j.iCarouselElemsWidth*i)}if(k<=-(j.iCarouselElemsWidth*i+j.iCarouselElemsWidth)){j.eCarouselContainer.css("left",-j.iCarouselElemsWidth)}g("ul.carousel li.ignoreTabbing").css("visibility","hidden")};var a=function(k,l){var i=k.eContainsCarousel.find(k.eCarouselNavigationDots);var j=i.length-1;i.each(function(m){g(this).removeClass("activeDot");if(m===l||(l===-1&&m==j)){g(this).addClass("activeDot")}})}})(jQuery);(function(b){b.fn.vfTabs=function(c){return this.each(function(e,f){var d=new a(f,e,c);jQuery.data(f,"tabObject",d)})};function a(c,z,j){var w=this;var o={sActiveState:"activeTabElement",sTabContainerSelect:".tabbedContent",sTabListClass:"tabList",iSetHeight:false,bUpdateFromHash:true,eTabbedContentItem:null,eTabList:null,aTabBoxHeights:[],aTabListItems:[],aTabBoxes:[],iPreviousItem:0,iNumber:z,sTabID:""};w.oProperties=b.extend({},o,j);$eTabbedContentItem=jQuery(c);w.oProperties.sTabID=$eTabbedContentItem.attr("id");if(w.oProperties.sTabID==""){w.oProperties.sTabID="tabsItem"+z;$eTabbedContentItem.attr("id",w.oProperties.sTabID)}w.oProperties.eTabbedContentItem=$eTabbedContentItem;var m=function(l,k){jQuery(k).bind("click",w.oProperties,function(i){jQuery(this).trigger("tabActionEvent",[l,w.oProperties]);return w.selectItem.call(this,l)})};w.selectItem=function(l,k){var C=k==true?k:false;jQuery(w.oProperties.eTabList).find("."+w.oProperties.sActiveState).removeClass(w.oProperties.sActiveState);var B;if(C===false){B=jQuery(this)}else{B=b(w.oProperties.aTabListItems[l])}B.addClass(w.oProperties.sActiveState);B.children("a").addClass(w.oProperties.sActiveState);w.oProperties.aTabBoxes.hide();A(l,C);w.oProperties.iPreviousItem=l;return false};var A=function(l,i){var k=w.oProperties.aTabBoxes[l];var B=w.oProperties.aTabBoxHeights[l];if(w.oProperties.iSetHeight===false){jQuery(k).css({height:w.oProperties.aTabBoxHeights[w.oProperties.iPreviousItem],display:""}).animate({height:B},200,function(){jQuery(k).css("height","auto");if(i!==true){jQuery("body").trigger("tabOpenedEvent",[w,l])}})}else{jQuery(k).css({display:"",height:w.oProperties.iSetHeight+"px"});if(i!==true){jQuery("body").trigger("tabOpenedEvent",[w,l])}}return false};var t=$eTabbedContentItem.attr("class").match(/tabbedContentHeight_[A-Za-z0-9]*/);if(t){w.oProperties.iSetHeight=t[0].replace("tabbedContentHeight_","")}w.oProperties.eTabList=jQuery('<ul id="tabList_'+w.oProperties.sTabID+'" class="'+w.oProperties.sTabListClass+' JSTabs"></ul>');var u=$eTabbedContentItem.find(".tabLead:not(#"+w.oProperties.sTabID+" "+w.oProperties.sTabContainerSelect+" .tabLead), .tabHeader:not(#"+w.oProperties.sTabID+" "+w.oProperties.sTabContainerSelect+" .tabHeader)");for(var s=0,y=u.length;s<y;s++){var q=u[s];var e=jQuery('<li id="tab_'+q.id+'"><a href="#'+q.id+'"><span>'+q.innerHTML+"</span></a></li>");if(s===0){e.addClass("firstTab")}else{if(s===u.length-1){e.addClass("lastTab")}}w.oProperties.eTabList.append(e);jQuery(q).hide()}w.oProperties.eTabList.addClass("contains"+u.length+"Tabs");$eTabbedContentItem.prepend(w.oProperties.eTabList);var g="ul."+w.oProperties.sTabListClass+" li:not(#"+w.oProperties.sTabID+" ul."+w.oProperties.sTabListClass+" ul."+w.oProperties.sTabListClass+" li), div.tabContentBox:not(#"+w.oProperties.sTabID+" div.tabContentBox div.tabContentBox)";var d=$eTabbedContentItem.find(g);var h=d.length/2;w.oProperties.aTabListItems=d.slice(0,h);w.oProperties.aTabBoxes=d.slice(h);for(var x=0,v=w.oProperties.aTabBoxes.length;x<v;x++){if(w.oProperties.iSetHeight){w.oProperties.aTabBoxHeights[x]=w.oProperties.iSetHeight}else{w.oProperties.aTabBoxHeights[x]=jQuery(w.oProperties.aTabBoxes[x]).outerHeight()}}var f=0;if(w.oProperties.bUpdateFromHash){var r=location.hash;var n=w.oProperties.aTabListItems.length;for(var p=0;p<n;p++){if(("#"+w.oProperties.aTabListItems[p].id)==r){f=p;p=n}}}w.selectItem.call(w.oProperties.aTabListItems[f],f);w.oProperties.aTabListItems.each(m);return w}})(jQuery);(function(d){d.fn.vdfAccordion=function(f){d.fn.vdfAccordion.defaults={headerSelect:".accordionHeader",contentSelect:"div.accordionContent",activeState:"active",inactiveState:"inactive",openState:"accordOpen",closePrevious:true};var e=d.extend({},d.fn.vdfAccordion.defaults,f);return this.each(function(){var g=d(this);var h=new a(g,e)})};function a(k,s){var q=[];var r,p;var o=false;var n=function(){if(o){d(r[o.index]).removeClass(s.activeState).addClass(s.inactiveState);o.content.removeClass(s.openState);c(o.content,o.height)}};var f=function(i,j){d(j).removeClass(s.inactiveState).addClass(s.activeState);var t=d(p[i]);var u=q[i];if(s.closePrevious===false){o={index:i,content:t,height:u}}if(t.css("display")==="none"){if(s.closePrevious){n()}t.addClass(s.openState);b(t,u);o={index:i,content:t,height:u}}else{n()}};r=k.find(s.headerSelect);p=k.find(s.contentSelect);for(var m=0,l=p.length;m<l;m++){q[m]=d(p[m]).height()}var g=false;var e;var h=d(r[0]).find("a");if(h.length===0){g=true;e=d('<a href="#"></a>')}r.each(function(j,t){var i=d(t);if(g){i.wrapInner(e)}i.click(function(u){f(j,this);return false});if(i.hasClass(s.activeState)){f(j,t)}});return this}var b=function(e,f){e.css("height",0).animate({opacity:100,height:f},200,function(){e.css({height:"",display:"block"})});return false};var c=function(e){jQuery(e).css("overflow","hidden").animate({opacity:0,height:0},400,function(){jQuery(e).css("display","none")});return false}})(jQuery);
/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
var swfobject=function(){var aq="undefined",aD="object",ab="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",aE="application/x-shockwave-flash",ac="SWFObjectExprInst",ax="onreadystatechange",af=window,aL=document,aB=navigator,aa=false,Z=[aN],aG=[],ag=[],al=[],aJ,ad,ap,at,ak=false,aU=false,aH,an,aI=true,ah=function(){var a=typeof aL.getElementById!=aq&&typeof aL.getElementsByTagName!=aq&&typeof aL.createElement!=aq,e=aB.userAgent.toLowerCase(),c=aB.platform.toLowerCase(),h=c?/win/.test(c):/win/.test(e),j=c?/mac/.test(c):/mac/.test(e),g=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,d=!+"\v1",f=[0,0,0],k=null;if(typeof aB.plugins!=aq&&typeof aB.plugins[ab]==aD){k=aB.plugins[ab].description;if(k&&!(typeof aB.mimeTypes!=aq&&aB.mimeTypes[aE]&&!aB.mimeTypes[aE].enabledPlugin)){aa=true;d=false;k=k.replace(/^.*\s+(\S+\s+\S+$)/,"$1");f[0]=parseInt(k.replace(/^(.*)\..*$/,"$1"),10);f[1]=parseInt(k.replace(/^.*\.(.*)\s.*$/,"$1"),10);f[2]=/[a-zA-Z]/.test(k)?parseInt(k.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof af.ActiveXObject!=aq){try{var i=new ActiveXObject(X);if(i){k=i.GetVariable("$version");if(k){d=true;k=k.split(" ")[1].split(",");f=[parseInt(k[0],10),parseInt(k[1],10),parseInt(k[2],10)]}}}catch(b){}}}return{w3:a,pv:f,wk:g,ie:d,win:h,mac:j}}(),aK=function(){if(!ah.w3){return}if((typeof aL.readyState!=aq&&aL.readyState=="complete")||(typeof aL.readyState==aq&&(aL.getElementsByTagName("body")[0]||aL.body))){aP()}if(!ak){if(typeof aL.addEventListener!=aq){aL.addEventListener("DOMContentLoaded",aP,false)}if(ah.ie&&ah.win){aL.attachEvent(ax,function(){if(aL.readyState=="complete"){aL.detachEvent(ax,arguments.callee);aP()}});if(af==top){(function(){if(ak){return}try{aL.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}aP()})()}}if(ah.wk){(function(){if(ak){return}if(!/loaded|complete/.test(aL.readyState)){setTimeout(arguments.callee,0);return}aP()})()}aC(aP)}}();function aP(){if(ak){return}try{var b=aL.getElementsByTagName("body")[0].appendChild(ar("span"));b.parentNode.removeChild(b)}catch(a){return}ak=true;var d=Z.length;for(var c=0;c<d;c++){Z[c]()}}function aj(a){if(ak){a()}else{Z[Z.length]=a}}function aC(a){if(typeof af.addEventListener!=aq){af.addEventListener("load",a,false)}else{if(typeof aL.addEventListener!=aq){aL.addEventListener("load",a,false)}else{if(typeof af.attachEvent!=aq){aM(af,"onload",a)}else{if(typeof af.onload=="function"){var b=af.onload;af.onload=function(){b();a()}}else{af.onload=a}}}}}function aN(){if(aa){Y()}else{am()}}function Y(){var d=aL.getElementsByTagName("body")[0];var b=ar(aD);b.setAttribute("type",aE);var a=d.appendChild(b);if(a){var c=0;(function(){if(typeof a.GetVariable!=aq){var e=a.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");ah.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}else{if(c<10){c++;setTimeout(arguments.callee,10);return}}d.removeChild(b);a=null;am()})()}else{am()}}function am(){var g=aG.length;if(g>0){for(var h=0;h<g;h++){var c=aG[h].id;var l=aG[h].callbackFn;var a={success:false,id:c};if(ah.pv[0]>0){var i=aS(c);if(i){if(ao(aG[h].swfVersion)&&!(ah.wk&&ah.wk<312)){ay(c,true);if(l){a.success=true;a.ref=av(c);l(a)}}else{if(aG[h].expressInstall&&au()){var e={};e.data=aG[h].expressInstall;e.width=i.getAttribute("width")||"0";e.height=i.getAttribute("height")||"0";if(i.getAttribute("class")){e.styleclass=i.getAttribute("class")}if(i.getAttribute("align")){e.align=i.getAttribute("align")}var f={};var d=i.getElementsByTagName("param");var k=d.length;for(var j=0;j<k;j++){if(d[j].getAttribute("name").toLowerCase()!="movie"){f[d[j].getAttribute("name")]=d[j].getAttribute("value")}}ae(e,f,c,l)}else{aF(i);if(l){l(a)}}}}}else{ay(c,true);if(l){var b=av(c);if(b&&typeof b.SetVariable!=aq){a.success=true;a.ref=b}l(a)}}}}}function av(b){var d=null;var c=aS(b);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=aq){d=c}else{var a=c.getElementsByTagName(aD)[0];if(a){d=a}}}return d}function au(){return !aU&&ao("6.0.65")&&(ah.win||ah.mac)&&!(ah.wk&&ah.wk<312)}function ae(f,d,h,e){aU=true;ap=e||null;at={success:false,id:h};var a=aS(h);if(a){if(a.nodeName=="OBJECT"){aJ=aO(a);ad=null}else{aJ=a;ad=h}f.id=ac;if(typeof f.width==aq||(!/%$/.test(f.width)&&parseInt(f.width,10)<310)){f.width="310"}if(typeof f.height==aq||(!/%$/.test(f.height)&&parseInt(f.height,10)<137)){f.height="137"}aL.title=aL.title.slice(0,47)+" - Flash Player Installation";var b=ah.ie&&ah.win?"ActiveX":"PlugIn",c="MMredirectURL="+af.location.toString().replace(/&/g,"%26")+"&MMplayerType="+b+"&MMdoctitle="+aL.title;if(typeof d.flashvars!=aq){d.flashvars+="&"+c}else{d.flashvars=c}if(ah.ie&&ah.win&&a.readyState!=4){var g=ar("div");h+="SWFObjectNew";g.setAttribute("id",h);a.parentNode.insertBefore(g,a);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}aA(f,d,h)}}function aF(a){if(ah.ie&&ah.win&&a.readyState!=4){var b=ar("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(aO(a),b);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.replaceChild(aO(a),a)}}function aO(b){var d=ar("div");if(ah.win&&ah.ie){d.innerHTML=b.innerHTML}else{var e=b.getElementsByTagName(aD)[0];if(e){var a=e.childNodes;if(a){var f=a.length;for(var c=0;c<f;c++){if(!(a[c].nodeType==1&&a[c].nodeName=="PARAM")&&!(a[c].nodeType==8)){d.appendChild(a[c].cloneNode(true))}}}}}return d}function aA(e,g,c){var d,a=aS(c);if(ah.wk&&ah.wk<312){return d}if(a){if(typeof e.id==aq){e.id=c}if(ah.ie&&ah.win){var f="";for(var i in e){if(e[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){g.movie=e[i]}else{if(i.toLowerCase()=="styleclass"){f+=' class="'+e[i]+'"'}else{if(i.toLowerCase()!="classid"){f+=" "+i+'="'+e[i]+'"'}}}}}var h="";for(var j in g){if(g[j]!=Object.prototype[j]){h+='<param name="'+j+'" value="'+g[j]+'" />'}}a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+f+">"+h+"</object>";ag[ag.length]=e.id;d=aS(e.id)}else{var b=ar(aD);b.setAttribute("type",aE);for(var k in e){if(e[k]!=Object.prototype[k]){if(k.toLowerCase()=="styleclass"){b.setAttribute("class",e[k])}else{if(k.toLowerCase()!="classid"){b.setAttribute(k,e[k])}}}}for(var l in g){if(g[l]!=Object.prototype[l]&&l.toLowerCase()!="movie"){aQ(b,l,g[l])}}a.parentNode.replaceChild(b,a);d=b}}return d}function aQ(b,d,c){var a=ar("param");a.setAttribute("name",d);a.setAttribute("value",c);b.appendChild(a)}function aw(a){var b=aS(a);if(b&&b.nodeName=="OBJECT"){if(ah.ie&&ah.win){b.style.display="none";(function(){if(b.readyState==4){aT(a)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.removeChild(b)}}}function aT(a){var b=aS(a);if(b){for(var c in b){if(typeof b[c]=="function"){b[c]=null}}b.parentNode.removeChild(b)}}function aS(a){var c=null;try{c=aL.getElementById(a)}catch(b){}return c}function ar(a){return aL.createElement(a)}function aM(a,c,b){a.attachEvent(c,b);al[al.length]=[a,c,b]}function ao(a){var b=ah.pv,c=a.split(".");c[0]=parseInt(c[0],10);c[1]=parseInt(c[1],10)||0;c[2]=parseInt(c[2],10)||0;return(b[0]>c[0]||(b[0]==c[0]&&b[1]>c[1])||(b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]))?true:false}function az(b,f,a,c){if(ah.ie&&ah.mac){return}var e=aL.getElementsByTagName("head")[0];if(!e){return}var g=(a&&typeof a=="string")?a:"screen";if(c){aH=null;an=null}if(!aH||an!=g){var d=ar("style");d.setAttribute("type","text/css");d.setAttribute("media",g);aH=e.appendChild(d);if(ah.ie&&ah.win&&typeof aL.styleSheets!=aq&&aL.styleSheets.length>0){aH=aL.styleSheets[aL.styleSheets.length-1]}an=g}if(ah.ie&&ah.win){if(aH&&typeof aH.addRule==aD){aH.addRule(b,f)}}else{if(aH&&typeof aL.createTextNode!=aq){aH.appendChild(aL.createTextNode(b+" {"+f+"}"))}}}function ay(a,c){if(!aI){return}var b=c?"visible":"hidden";if(ak&&aS(a)){aS(a).style.visibility=b}else{az("#"+a,"visibility:"+b)}}function ai(b){var a=/[\\\"<>\.;]/;var c=a.exec(b)!=null;return c&&typeof encodeURIComponent!=aq?encodeURIComponent(b):b}var aR=function(){if(ah.ie&&ah.win){window.attachEvent("onunload",function(){var a=al.length;for(var b=0;b<a;b++){al[b][0].detachEvent(al[b][1],al[b][2])}var d=ag.length;for(var c=0;c<d;c++){aw(ag[c])}for(var e in ah){ah[e]=null}ah=null;for(var f in swfobject){swfobject[f]=null}swfobject=null})}}();return{registerObject:function(a,e,c,b){if(ah.w3&&a&&e){var d={};d.id=a;d.swfVersion=e;d.expressInstall=c;d.callbackFn=b;aG[aG.length]=d;ay(a,false)}else{if(b){b({success:false,id:a})}}},getObjectById:function(a){if(ah.w3){return av(a)}},embedSWF:function(k,e,h,f,c,a,b,i,g,j){var d={success:false,id:e};if(ah.w3&&!(ah.wk&&ah.wk<312)&&k&&e&&h&&f&&c){ay(e,false);aj(function(){h+="";f+="";var q={};if(g&&typeof g===aD){for(var o in g){q[o]=g[o]}}q.data=k;q.width=h;q.height=f;var n={};if(i&&typeof i===aD){for(var p in i){n[p]=i[p]}}if(b&&typeof b===aD){for(var l in b){if(typeof n.flashvars!=aq){n.flashvars+="&"+l+"="+b[l]}else{n.flashvars=l+"="+b[l]}}}if(ao(c)){var m=aA(q,n,e);if(q.id==e){ay(e,true)}d.success=true;d.ref=m}else{if(a&&au()){q.data=a;ae(q,n,e,j);return}else{ay(e,true)}}if(j){j(d)}})}else{if(j){j(d)}}},switchOffAutoHideShow:function(){aI=false},ua:ah,getFlashPlayerVersion:function(){return{major:ah.pv[0],minor:ah.pv[1],release:ah.pv[2]}},hasFlashPlayerVersion:ao,createSWF:function(a,b,c){if(ah.w3){return aA(a,b,c)}else{return undefined}},showExpressInstall:function(b,a,d,c){if(ah.w3&&au()){ae(b,a,d,c)}},removeSWF:function(a){if(ah.w3){aw(a)}},createCSS:function(b,a,c,d){if(ah.w3){az(b,a,c,d)}},addDomLoadEvent:aj,addLoadEvent:aC,getQueryParamValue:function(b){var a=aL.location.search||aL.location.hash;if(a){if(/\?/.test(a)){a=a.split("?")[1]}if(b==null){return ai(a)}var c=a.split("&");for(var d=0;d<c.length;d++){if(c[d].substring(0,c[d].indexOf("="))==b){return ai(c[d].substring((c[d].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(aU){var a=aS(ac);if(a&&aJ){a.parentNode.replaceChild(aJ,a);if(ad){ay(ad,true);if(ah.ie&&ah.win){aJ.style.display="block"}}if(ap){ap(at)}}aU=false}}}}();
/*
 * Vodafone Modal layer plugin
 * Originally for the VF Total Comms project
 * Author: Ryan Mitchell (2010) (http://www.sapient.com)
 * Version 1.2
 * 
 */
(function(e){var g="body";var k=false;e.fn.vfModalLayer=function(o){e(".modalLayer").live("click",a);e("#mask, .ModalLayer .closeBtn, .ModalLayer .link_close, .ModalLayer a.cancel").live("click",function(p,q){e(g).data("activeModal").hide();return false});e("#modalContainer form.ajaxForm").live("submit",b);if(o){h=o}return this};var a=function(o){var z=this;var r="modalType_ajax";var q,w,u,x;var t=true;var y=true;var v="ajax";w=jQuery(z).attr("class").match(/modalStyle_[A-Za-z0-9]*/);if(w){w=w[0].replace("_","")}else{w="modalStyleClassic"}var s=h;u=e(g).data(r);if(u){t=false;u.Message(x,v,s,t,z)}else{var p={sModalType:r,sModalClassString:w};u=new m(p);if(y===false){x=q.html();u.Message(x,v,s,t,z)}else{jQuery.ajax({url:z.href,type:"GET",success:function(A){x=A},error:function(B,D,C){var A="<h3>Sorry! We are not able to process your request now, please try later.</h3>";x='<div class="closeOverlay"><span class="link_close"><a href="#">Close</a></span></div>';x+='<div class="modalWidthElement" style="width:450px">'+A+"</div>"},complete:function(A,B){u.Message(x,v,s,t,z)}})}}return false};var m=function(r){var q={};var o="";this.eModalElement=null;this.Message=function(s,t,w,v,u){if(v){q.data=s;q.from=t;if(q.from!=="ajax"){e(q.from).empty()}this.updateContent(s)}this.show(w,v,u)};this.updateContent=function(s){this.eModalElement.find(".modalLayerContent").empty();this.eModalElement.find(".modalLayerContent").html(s)};this.show=function(v,u,t){e(g).data("activeModal",this);n();var s=this.eModalElement;s.removeAttr("style");if(typeof(this.animations[o])=="object"){this.animations[o].show.call(this,u,t,v)}else{this.animations.modalStyleClassic.show.call(this,u,t,v)}s.focus();if(u){}return false};this.hide=function(){var t=this;var s=function(){t.eModalElement.hide();var u=t.eModalElement.attr("id");if(u=="modalType_ajax"){t.eModalElement.remove();e(g).data(o,null)}jQuery(g).trigger("modalClosedEvent",[u])};j();if(typeof(this.animations[this.sModalType])=="object"){this.animations[this.sModalType].hide.call(this,s)}else{this.animations.modalStyleClassic.hide.call(this,s)}return false};this.animations={modalStyleClassic:{show:function(u,t,v){var s=this.eModalElement;f();s.fadeIn(300,function(){jQuery(g).trigger("modalOpenEvent",[s.attr("id")]);if(v){v.call(this,u,t)}})},hide:function(t){var s=this.eModalElement;s.animate({width:"0px",height:"0px",top:"50%",left:"50%",opacity:0},100,t)}},modalStyleClassic2:{show:function(x,y,G){var B=this;var t=B.eModalElement;t.css({display:"block",visibility:"hidden"});var s=t.find(".modalWidthElement");var C=0;var A=t.outerHeight();if(s[0]){C=jQuery(s[0]).outerWidth()}else{C=t.outerWidth()}var z=100;var E=150;var u=jQuery(g).width();var w=(u-E)/2;var v=(u-C)/2;var F=k.height();var D=(F-A)/2;t.css({left:w,width:E,height:z,top:F/2,overflow:"hidden",visibility:"visible"}).animate({left:v,width:C},300);window.setTimeout(function(){e(g).data("activeModal").animations.modalStyleClassic.show2.call(B,A,D,x,y,G)},600)},show2:function(t,s,w,v,x){var y=this;var u=y.eModalElement.attr("id");y.eModalElement.animate({height:t,top:s},300,function(){jQuery(this).css("overflow","auto");jQuery(g).trigger("modalOpenEvent",[u]);if(x){x.call(this,w,v)}})},hide:function(t){var s=this.eModalElement;t()}}};if(k===false){k=jQuery('<div id="modalContainer"></div>');var p=window.innerHeight?window.innerHeight:jQuery(window).height();k.height(p);e(g).append(k)}o=r.sModalClassString;this.eModalElement=e(d(r.sModalType,o));k.append(this.eModalElement);e(window).resize(i);if(e("#mask").length===0){k.append(l(o))}e(g).data(o,this)};var d=function(r,p){var o=p==="modalStyleManufacturors"?'<a class="closeBtn" href="#">close</a>':"";var q=r?r:"ModalLayer";return'<div id="'+q+'" class="ModalLayer '+p+'" tabindex="-1">'+o+'<div class="modalLayerContent"></div></div>'};var c=function(o){this.eModalElement.addClass(o)};var l=function(o){var p;if(o==="modalStyleManufacturors"){p=jQuery('<div id="mask"></div>')}else{p=jQuery('<div id="mask" class="MaskClassic"></div>')}return p};var n=function(){jQuery("#modalContainer").css("visibility","visible");if(jQuery("body").hasClass("browserIE6")){ie6Fix.hideSelectBoxes(true)}};var j=function(){jQuery("#modalContainer").css("visibility","hidden");if(jQuery("body").hasClass("browserIE6")){ie6Fix.hideSelectBoxes(false)}};var f=function(){var o=e(g).data("activeModal");if(o){var q=e(o.eModalElement);var p=k.height();var r=p/2-q.height()/2;if(q.css("position")==="absolute"){r=30;r+=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop}if(r<0){r=0}q.css("top",r);q.css("left",e("#mask").width()/2-q.width()/2)}};var i=function(){var o=window.innerHeight?window.innerHeight:jQuery(window).height();k.height(o)};var b=function(s,r){var p=e(s.currentTarget);var o=p.serialize();var q=p.attr("action");sLoadingBoxHTML='<div class="loadingBox">The form is being submmitted, please wait.</div>';e(g).data("activeModal").updateContent(sLoadingBoxHTML);e.post(q,o,function(t){e(g).data("activeModal").updateContent(t)});return false};var h=function(){}})(jQuery);(function(e){e.noConflict();var g="body";var f="js/";var b=e(document.documentElement);b.addClass("jsEnabled jsLoading");var h=(function(k){k.sId="MUmyAccount";var j=null;var p=null;var n=-1;k.initScript=function(q){j=q;p=j.find("#MUmyAccountOptions");j.live("mouseenter",function(){l()}).live("mouseleave",function(){o()}).delegate("a","focusin",function(){var r=p.css("display").toUpperCase();if(r=="NONE"){l()}clearTimeout(n)}).delegate("a","focusout",function(){m(this)})};var l=function(){p.stop(true,true).slideDown()};var m=function(){clearTimeout(n);n=setTimeout(o,500)};var o=function(){p.stop(true,true).slideUp()};return k}(h||{}));var i=(function(o){o.sId="primaryNavigation";var t=false;var p=null;var v=[];var k=[];var j=null;var n=-1;var u="jsActive";var l=-1;o.initScript=function(w){p=w;v=w.find("> li > a");k=w.find(".megaItems");p.delegate("#"+o.sId+" > li","mouseenter",function(){k.hide();s(this,e(this).find(".megaItems"))}).live("mouseleave",function(){r(this)}).delegate("a","focus",function(){clearTimeout(l);var x=e(this);if(x.hasClass("menuLayerLink")){k.hide();s(this.parentNode,x.siblings(".megaItems"))}}).delegate("a","blur",function(){m(k)})};var s=function(x,w){clearTimeout(n);v.removeClass(u);e(x).children("a").addClass(u);w.show();j=w};var m=function(){clearTimeout(l);l=setTimeout(q,500)};var r=function(){n=setTimeout(function(){q()},500)};var q=function(){k.stop(true,true).hide();j=null;v.removeClass(u)};return o}(i||{}));var a={_sDisplayTitleWhenEmpty:".displayTitleWhenEmpty, #searchQuery",init:function(j){var k;if(j){k=e(j).find(this._sDisplayTitleWhenEmpty)}else{k=e(this._sDisplayTitleWhenEmpty)}k.each(function(m,l){if(l.value===""||l.value==l.title){l.value=l.title}e(l).bind("focus.resetField",a.resetField).bind("blur.resetField",a.resetField)})},resetField:function(l){var k=l.target;var j=k.title;switch(l.type){case"focus":if(k.value==j){k.value=""}break;case"blur":if(k.value===""){k.value=j}break}}};var c={sGridClass:"gridView",sListClass:"listView",init:function(){e(".gridViewSwitch, .listViewSwitch").live("click",function(){var j=e(this);c.changeView(j,j.hasClass("gridViewSwitch"));return false})},changeView:function(n,j){var l=n.parents(".multiRowContainerModule");var k="";if(j){if(l.hasClass(c.sGridClass)===false){k=c.sGridClass}}else{if(l.hasClass(c.sListClass)===false){k=c.sListClass}}if(k!==""){var m=l.find(".multiRowContainerModuleList");m.animate({opacity:"0"},{duration:0});l.removeClass(c.sGridClass).removeClass(c.sListClass).addClass(k);m.animate({opacity:"1"},{duration:600})}}};var d=function(){b.removeClass("jsLoading");var q=e("#"+h.sId);if(q.length!==0){h.initScript(q)}var p=e("#"+i.sId);if(p.length!==0){i.initScript(p)}var v=e("#rightcontent");if(v[0]){var s={headerSelect:".panelheader",contentSelect:".panelheader + *",closePrevious:false};v.vdfAccordion(s)}e("input.modalLayer,a.modalLayer").vfModalLayer();var k=jQuery("div.tabbedContent");if(k[0]){k.vfTabs()}var j=e("div.containsCarousel");if(j.length>0){j.vdfCarousel()}var o=e("div#heroCarousel");if(o.length>0){var u={iCarouselElemsWidth:950,eCarouselNavigationDrop:"div.hero.panelBackground",sCarouselNavigationContainer:'<span class="hero carouselNavigation"></span>',eCarouselNavigationContainer:".hero.carouselNavigation",sMainNavigationArrows:'<a title="previous item" class="dir left" href="#">left</a><a title="next item" class="dir right" href="#">right</a>',sMainNavigationDots:'<a title="###" class="dot" href="#">###</a>',sCloseButton:'<a title="close" class="panelCloseBtn" href="#">close panel</a>',sOpenButton:'<a title="open panel" class="hero panelOpenBtn" href="#">open</a>'};o.vdfCarousel(u)}a.init();var n=e(".multiRowContainerModule");if(n.length>0){c.init()}e(".disabletoggle").live("click",function(){var y=e(this);var x="."+y.attr("id");if(y.attr("checked")===true){e(x).removeClass("disabled");e(x).children("input").removeAttr("disabled")}else{e(x).addClass("disabled");e(x).children("input").attr("disabled","disabled")}});var m=e("#phoneSelectorPanel");if(m.length>0){var t="content-assets/apps-and-extras/";var r=0;var w=3;var l=function(){r++;if(r>=w){vdf.init()}};if(typeof(Prototype)=="undefined"){jQuery.getScript(t+prototypePlusExtentions.min.js,l)}jQuery.getScript(t+VF014513_UPDATE_PhoneData_JSON.js,l);jQuery.getScript(t+vdf.add-apps-extras.js,l)}};e(document).ready(d)})(jQuery);
