String.prototype.ReplaceAll=function(c,d){var a=this;var b=a.indexOf(c);while(b!=-1){a=a.replace(c,d);b=a.indexOf(c)}return a};String.prototype.RemovePTag=function(){var b=this;var c=b.indexOf("<p>");while(c!=-1){b=b.replace("<p>","");c=b.indexOf("<p>")}var a=b.indexOf("</p>");while(a!=-1){b=b.replace("</p>","");a=b.indexOf("</p>")}return b};String.prototype.replaceSpecialCharacters=function(){var a=this;a=a.replace("$","");a=a.replace("&","");a=a.replace("^","");a=a.replace("*","");a=a.replace("!","");a=a.replace("@","");a=a.replace("#","");a=a.replace("%","");a=a.replace("(","");a=a.replace(")","");a=a.replace("+","");a=a.replace("-","");a=a.replace("=","");a=a.replace("[","");a=a.replace("]","");a=a.replace("'","");a=a.replace(";","");a=a.replace("{","");a=a.replace("}","");a=a.replace("<","");a=a.replace(">","");a=a.replace(".","");a=a.replace("|","");a=a.replace(":","");a=a.replace("/","");a=a.replace("~","");return a};String.prototype.replaceDoubleQuotes=function(){var a=this;var b=a.indexOf('"');while(b!=-1&&b<a.length){a=a.replace('"',"&#34;");b=a.indexOf('"')}return a};String.prototype.replaceSingleQuotes=function(){var a=this;var b=a.indexOf("'");while(b!=-1&&b<a.length){a=a.replace("'","&#39;");b=a.indexOf("'")}return a};replaceAllSpecialCharaters=function(b){var a=b;if(typeof a=="string"){a=a.ReplaceAll("&#39;","");a=a.ReplaceAll("#39","");a=a.ReplaceAll("&#34;","");a=a.ReplaceAll("&quot;","");a=a.ReplaceAll("&amp;","");a=a.replaceSpecialCharacters();a=a.ReplaceAll(" ","")}return a};function HideDIV(a){document.getElementById(a).style.display="none"}function DisplayDIV(a){document.getElementById(a).style.display="block"}function ProductDetails(d,a,c,b){this.productImage=d;this.productDetails=a;this.productDetails_onHover=c;this.callToActionButton=b}function PlanDetails(d,c,a,b){this.title=d;this.image=c;this.details=a;this.control=b}function CarouselDetails(e,c,a,d,b){this.productImage=e;this.productName=c;this.productDetail=a;this.callToActionButton=d;this.rating=b}function PromotionDetails(c,d,b,a){this.image=c;this.paragraph=d;this.button=b;this.imageText=a}function stripe(n){var f=false;var b=arguments[1]?arguments[1]:"#fff";var a=arguments[2]?arguments[2]:"#eee";var o=document.getElementsByTagName("table");if(!o){return}for(var p=0;p<o.length;p++){f=false;var d=o[p];var q=o[p].getElementsByTagName("tbody");for(var l=0;l<q.length;l++){if(d.className!=""&&d.className.indexOf("staticfullWidth")==-1){continue}var m=q[l].getElementsByTagName("tr");for(var k=0;k<m.length;k++){if(!m[k].style.backgroundColor){d.className="staticfullWidth";d.cellSpacing="0";d.cellPadding="0";d.border="1px solid #DBDBDB";if(k>=0){var g;if(m[k].getElementsByTagName("th").length>0){g=m[k].getElementsByTagName("th")}else{g=m[k].getElementsByTagName("td")}for(var e=0;e<g.length;e++){var c=g[e];if(k==0){if(!n){c.className="firstrow_even"}}if(!c.className){c.className=f?"odd":"even"}}}}f=!f}}}}function accordionSliding(b){var a="#"+b;jQuery(a).accordion({header:"span.button",active:".selected",alwaysOpen:false,autoheight:false,animated:"easeslide"})}function MobDetails(e,b,d,a,c){this.title=e;this.rating=b;this.image=d;this.details=a;this.control=c}function displayRating(a){if(a!=undefined&&a!=""){ratingStars='<div name="ratingDiv" class="ratingDiv"><form class="ratingForm">';for(i=1;i<11;i++){j=i/2;if(j!=a){ratingStars+='\t<input class="star {split:2}" type="radio" value="'+(j)+'" disabled="disabled" style="display:none;"/>'}else{ratingStars+='\t<input class="star {split:2}" type="radio" value="'+(j)+'" disabled="disabled" checked style="display:none;"/>'}}ratingStars+="</form> </div>";return ratingStars}}function addThisScript(){$('<script type="text/javascript">var addthis_config = {"data_track_clickback":true};<\/script><script src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=yasserghallab" type="text/javascript"><\/script>').appendTo("head")}function linkToFile(d,c){var b='href="/stellent/';var a='href="'+c+"/stellent/";return(ReplaceAll(d,b,a))}function ReplaceAll(e,c,d){var a=e;var b=a.indexOf(c);while(b!=-1){a=a.replace(c,d);b=a.indexOf(c)}return a}function setMegaDropdownMenuColWidth(d,c,a){var b="";if(d==5){if(c==1){b="822px"}else{b="812px"}document.getElementById("megamenu"+a).style.width=b}else{if(d==4){if(c==1){b="662px"}else{b="652px"}document.getElementById("megamenu"+a).style.width=b}else{if(d==3){if(c==1){b="502px"}else{b="492px"}document.getElementById("megamenu"+a).style.width=b}else{if(d==2){if(c==1){b="342px"}else{b="332px"}document.getElementById("megamenu"+a).style.width=b}}}}}var addThisApi=false;function insert_AddthisButtons(addthisButtons){var validObjectFormat=addthisButtons.substring(11,addthisButtons.length-8);var addThisObj=eval("("+validObjectFormat+")");if(addthisButtons!=""){if(addThisObj.email=="EMAIL"||addThisObj.twitter=="TWITTER"||addThisObj.facebook=="FACEBOOK"){addThisApi=true;var divs="";var email="EMAIL";var twitter="TWITTER";var facebook="FACEBOOK";if(document.documentElement.lang=="ar"){email="&#1575;&#1585;&#1587;&#1604; &#1604;&#1589;&#1583;&#1610;&#1602;";twitter="\u062A\u0648\u064A\u062A\u0631";facebook="&#1601;&#1610;&#1587; &#1576;&#1608;&#1603;"}divs+='<div class="addthis_toolbox">';divs+='<div class="hover_effect">                      ';if(addThisObj.email=="EMAIL"){divs+='<a class="addthis_button_email">'+email+"</a> |"}if(addThisObj.twitter=="TWITTER"){divs+='<a class="addthis_button_twitter">'+twitter+"</a> |"}if(addThisObj.facebook=="FACEBOOK"){divs+='<a class="addthis_button_facebook">'+facebook+"</a> |"}divs=divs.slice(0,-1);divs+=" ";divs+="</div>";divs+="</div>";document.write(divs)}}}function addLikeIt(a,f,e){var h=false;var g="";var b="";if(e){g="button_count";b='"overflow: hidden; border: 0px none; width: 82px; height: 25px;"'}else{g="standard";b='" overflow:hidden; border: 0px none; width:450px; height:35px;"'}if(a==""){var a=window.location.href}else{var c=document.domain;if(a.indexOf("http://")<=-1){a="http://"+c+"/"+a}}if(f!="undefinied"&&f!=""){b=f}var d="";if(e){d="<iframe style="+b+' src="http://www.facebook.com/plugins/like.php?href='+escape(a)+"&amp;layout="+g+"&amp;show_faces="+h+'&amp;action=like&amp;colorscheme=light&amp;height=25&amp;width=82" scrolling="no" frameborder="0" id="likebuttonId"></iframe>'}else{d="<iframe style="+b+' src="http://www.facebook.com/plugins/like.php?href='+escape(a)+"&amp;layout="+g+"&amp;show_faces="+h+'&amp;action=like&amp;colorscheme=light&amp;height=35&amp;width=450" scrolling="no" frameborder="0" allowTransparency="true" id="IframeId"></iframe>'}document.write(d)}function addFacebookLike(b){var a="";if(b=="ar"){b="ar_AR"}else{b="en_US"}a='<div style="min-height:100px;"><script src="http://connect.facebook.net/'+b+'/all.js#xfbml=1"><\/script><fb:like></fb:like></div>';document.write(a)}function addFacebookComments(b){var a="";if(b=="ar"){b="ar_AR"}else{b="en_US"}a='<div style="min-height:500px;"><div id="fb-root"></div>';a+='<p><script type="text/javascript"  src="http://connect.facebook.net/'+b+'/all.js#appId=149949098395363&xfbml=1"><\/script>';a+="</p>";a+='<script language="JavaScript">pageurl=location.href.replace("http:\\/\\/","").replace(/\\//g,"_");';a+='document.write("<fb:comments xid=\\"");';a+="document.write(pageurl);";a+='document.write("\\" migrated=\\"1\\" numposts=\\"3\\" width=\\"540\\" publish_feed=\\"true\\"></fb:comments>");';a+="<\/script></div>";document.write(a)}$(function(){document.buffer="";document.write_old=document.write;document.write=function(a){this.buffer+=a};document.clearBuffer=function(){this.buffer=""};document.getBuffer=function(){return this.buffer}});function Hash(){this.length=0;this.items=new Array();for(var a=0;a<arguments.length;a+=2){if(typeof(arguments[a+1])!="undefined"){this.items[arguments[a]]=arguments[a+1];this.length++}}this.removeItem=function(b){var c;if(typeof(this.items[b])!="undefined"){this.length--;var c=this.items[b];delete this.items[b]}return c};this.getItem=function(b){return this.items[b]};this.setItem=function(b,d){var c;if(typeof(d)!="undefined"){if(typeof(this.items[b])=="undefined"){this.length++}else{c=this.items[b]}this.items[b]=d}return c};this.hasItem=function(b){return typeof(this.items[b])!="undefined"};this.clear=function(){for(var b in this.items){delete this.items[b]}this.length=0}}function getAllImgs(){var b;var c="";var a=0;b=new Hash();$("img").each(function(){a++;b.setItem(a,$(this).attr("src"))});return b}function convertImgsSrcToLink(){var c=0;var b;b=new Hash();b=getAllImgs();for(var d in b.items){if(d=="RemoveAt"){continue}c++;if(c>b.length){break}else{var a='<link rel="image_src" href="'+b.items[d]+'"/>'}$(a).appendTo("head")}}function getImageHref(a){imageHref=$(a).attr("href");return imageHref}function createSpriteIcon(iconInfo,shiftX,shiftY){iconInfo=(typeof(iconInfo)=="string")?eval(iconInfo):iconInfo;var style="display: block; ";style+="position: absolute; ";style+="left: "+((shiftX==null)?"0":shiftX)+"px; ";style+="top: "+((shiftY==null)?"0":shiftY)+"px; ";style+="width: "+iconInfo.size+"px; ";style+="height: "+iconInfo.size+"px; ";style+="background: url('"+iconInfo.url+"') no-repeat scroll;";style+="background-position: "+iconInfo.offsetX+"px "+iconInfo.offsetY+"px;";document.write('<div style="'+style+'"></div>')}function createOptionSelector(f,h,e){var b=$("#"+h);var k=$("#"+f);k.append('<option value="">'+(document.documentElement.lang=="ar"?"&#1576;&#1585;&#1580;&#1575;&#1569; &#1575;&#1604;&#1575;&#1582;&#1578;&#1610;&#1575;&#1585;":"Please Select")+"</option>");for(var c=0;c<e.length;c++){var a=h+"_"+c;var d='<option value="'+a+'">';d+=e[c].text;d+="</option>";k.append(d);var g='<p id="'+a+'" style="display: none;">';e[c].value=e[c].value.substring(0,29);g+=e[c].value;g+="</p>";b.append(g)}k.change((function(l){return function(){var m=$(this).val();if(m!=""){$("#"+m).siblings().hide();$("#"+m).show()}else{$("#"+l+" p").hide()}}})(h))}function equalHeight(b){tallest=0;b.each(function(){thisHeight=$(this).height();if(thisHeight>tallest){tallest=thisHeight}});nineColumnTallest=$(".linkList-container").height()+45;if(nineColumnTallest>tallest){tallest=nineColumnTallest}$(".nineColumn").height(tallest);$(".supercol").height(tallest-39);var a=$("#leftNavHeader").height();a=a+2;b.height(tallest);$(".mod7Col").height(tallest);$(".mod2Col").height(tallest);$(".mod10Col").height(tallest);$(".mod3ColSidebar").height(tallest);$(".mod7Col div.modBody").height(tallest-37);$(".mod2Col div.modBody").height(tallest-a);$(".mod10Col div.modBody").height(tallest-37)}var equalHeightScript=true;$(document).ready(function(){if(equalHeightScript){equalHeight($(".column"));calcHeightRegLayout($(".columnReg"))}});function calcHeightRegLayout(a){tallest=0;a.each(function(){thisHeight=$(this).height();if(thisHeight>tallest){tallest=thisHeight}});a.height(tallest);$(".threeColumnReg .mod3ColSidebar").height(tallest)}function equalInnerHeight(a){tallest=0;tallest=$(".supercol").height();a.height(tallest)}var submitForm=function(a){a.submit()};var getElementsByClassName=function(b,a,c){if(document.getElementsByClassName){getElementsByClassName=function(k,n,h){h=h||document;var d=h.getElementsByClassName(k),m=(n)?new RegExp("\\b"+n+"\\b","i"):null,e=[],g;for(var f=0,l=d.length;f<l;f+=1){g=d[f];if(!m||m.test(g.nodeName)){e.push(g)}}return e}}else{if(document.evaluate){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{getElementsByClassName=function(t,w,s){w=w||"*";s=s||document;var h=t.split(" "),v=[],d=(w==="*"&&s.all)?s.all:s.getElementsByTagName(w),r,o=[],q;for(var n=0,e=h.length;n<e;n+=1){v.push(new RegExp("(^|\\s)"+h[n]+"(\\s|$)"))}for(var g=0,u=d.length;g<u;g+=1){r=d[g];q=false;for(var f=0,p=v.length;f<p;f+=1){q=v[f].test(r.className);if(!q){break}}if(q){o.push(r)}}return o}}}return getElementsByClassName(b,a,c)};var onIFrameLoad=function(){$("#iframeloading").hide();$("#framediv").show()};var autoadjust=function(c){try{var b=(c.contentDocument)?c.contentDocument:c.contentWindow.document;var a=0;if(c.Document&&c.Document.body.scrollHeight){a=c.Document.body.scrollHeight}else{if($.browser.mozilla&&b.documentElement.offsetHeight){a=b.documentElement.offsetHeight}else{a=b.documentElement.scrollHeight}}$("iframe#"+c.id).height(a);c.height=a}catch(d){$("iframe#"+c.id).height("3000");c.height="3000px"}};var calcHeight=function(){var a=$("iframe#vfeBodyFrame")[0];autoadjust(a)};function adjuctModuleHeight(a){var b=$("#"+a).height();b=b+2;$("#"+a).height(b);b=$("#nutshell").height();b=b+2;$("#nutshell").height(b)}function adjuctGiftsGuide(){tallestColumn=799;$(".column").height(tallestColumn);$(".mod7Col").height(tallestColumn);$(".mod2Col").height(tallestColumn);$(".mod7Col div.modBody").height(tallestColumn-37);$(".mod2Col div.modBody").height(tallestColumn-37)}function addPageScript(b){var a="";if(b=="BusinessPages"){a='<script type="text/javascript">';a+="var google_conversion_id = 973603391;";a+='var google_conversion_language = "en";';a+='var google_conversion_format = "3";';a+='var google_conversion_color = "666666";';a+='var google_conversion_label = "scgbCMnrygIQv4Sg0AM";';a+="var google_conversion_value = 0;";a+="<\/script>";a+='<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">';a+="<\/script>";a+="<noscript>";a+='<div style="display:inline;">';a+='<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/973603391/?label=scgbCMnrygIQv4Sg0AM&amp;guid=ON&amp;script=0"/>';a+="</div>";a+="</noscript>"}else{if(b=="PersonalServices"){a='<script type="text/javascript">';a+="var google_conversion_id = 972847619;";a+='var google_conversion_language = "en";';a+='var google_conversion_format = "3";';a+='var google_conversion_color = "666666";';a+='var google_conversion_label = "Lg5dCM287gIQg_TxzwM";';a+="var google_conversion_value = 0;";a+="<\/script>";a+='<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">';a+="<\/script>";a+="<noscript>";a+='<div style="display:inline;">';a+='<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/972847619/?label=Lg5dCM287gIQg_TxzwM&amp;guid=ON&amp;script=0"/>';a+="</div>";a+="</noscript>"}else{if(b=="PostPaid"){a='<script type="text/javascript">';a+="var google_conversion_id = 971845016;";a+='var google_conversion_language = "en";';a+='var google_conversion_format = "3";';a+='var google_conversion_color = "666666";';a+='var google_conversion_label = "6dueCNiG_gIQmNu0zwM";';a+="var google_conversion_value = 0;";a+="<\/script>";a+='<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">';a+="<\/script>";a+="<noscript>";a+='<div style="display:inline;">';a+='<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/971845016/?label=6dueCNiG_gIQmNu0zwM&amp;guid=ON&amp;script=0"/>';a+="</div>";a+="</noscript>"}else{if(b=="Prepaid"){a='<script type="text/javascript">';a+="var google_conversion_id = 976121450;";a+='var google_conversion_language = "en";';a+='var google_conversion_format = "3";';a+='var google_conversion_color = "666666";';a+='var google_conversion_label = "khUxCI623wIQ6ty50QM";';a+="var google_conversion_value = 0;";a+="<\/script>";a+='<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">';a+="<\/script>";a+="<noscript>";a+='<div style="display:inline;">';a+='<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/976121450/?label=khUxCI623wIQ6ty50QM&amp;guid=ON&amp;script=0"/>';a+="</div>";a+="</noscript>"}else{if(b=="Roaming"){a='<script type="text/javascript">';a+="var google_conversion_id = 980529884;";a+='var google_conversion_language = "en";';a+='var google_conversion_format = "3";';a+='var google_conversion_color = "666666";';a+='var google_conversion_label = "csyNCOyS5AIQ3OXG0wM";';a+="var google_conversion_value = 0;";a+="<\/script>";a+='<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">';a+="<\/script>";a+="<noscript>";a+='<div style="display:inline;">';a+='<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/980529884/?label=csyNCOyS5AIQ3OXG0wM&amp;guid=ON&amp;script=0"/>';a+="</div>";a+="</noscript>"}else{if(b=="BlackBerry"){a='<script type="text/javascript">';a+="var google_conversion_id = 972484127;";a+='var google_conversion_language = "en";';a+='var google_conversion_format = "3";';a+='var google_conversion_color = "666666";';a+='var google_conversion_label = "5D3SCLHFhAMQn9zbzwM";';a+="var google_conversion_value = 0;";a+="<\/script>";a+='<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">';a+="<\/script>";a+="<noscript>";a+='<div style="display:inline;">';a+='<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/972484127/?label=5D3SCLHFhAMQn9zbzwM&amp;guid=ON&amp;script=0"/>';a+="</div>";a+="</noscript>"}else{if(b=="Iphone"){a='<script type="text/javascript">';a+="var google_conversion_id = 977055770;";a+='var google_conversion_language = "en";';a+='var google_conversion_format = "3";';a+='var google_conversion_color = "666666";';a+='var google_conversion_label = "bLiMCIa33wIQmuDy0QM";';a+="var google_conversion_value = 0;";a+="<\/script>";a+='<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">';a+="<\/script>";a+="<noscript>";a+='<div style="display:inline;">';a+='<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/977055770/?label=bLiMCIa33wIQmuDy0QM&amp;guid=ON&amp;script=0"/>';a+="</div>";a+="</noscript>"}else{if(b=="ADSL"){a='<script type="text/javascript">';a+="var google_conversion_id = 975404577;";a+='var google_conversion_language = "en";';a+='var google_conversion_format = "3";';a+='var google_conversion_color = "666666";';a+='var google_conversion_label = "ct2mCIfW2wIQofyN0QM";';a+="var google_conversion_value = 0;";a+="<\/script>";a+='<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">';a+="<\/script>";a+="<noscript>";a+='<div style="display:inline;">';a+='<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/975404577/?label=ct2mCIfW2wIQofyN0QM&amp;guid=ON&amp;script=0"/>';a+="</div>";a+="</noscript>"}else{if(b=="MobileInternet"){a='<script type="text/javascript">';a+="var google_conversion_id = 973599551;";a+='var google_conversion_language = "en";';a+='var google_conversion_format = "3";';a+='var google_conversion_color = "666666";';a+='var google_conversion_label = "BTeZCPmDywIQv-af0AM";';a+="var google_conversion_value = 0;";a+="<\/script>";a+='<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">';a+="<\/script>";a+="<noscript>";a+='<div style="display:inline;">';a+='<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/973599551/?label=BTeZCPmDywIQv-af0AM&amp;guid=ON&amp;script=0"/>';a+="</div>";a+="</noscript>"}else{if(b=="Music_Entertainment"){a='<script type="text/javascript">';a+="var google_conversion_id = 973494885;";a+='var google_conversion_language = "en";';a+='var google_conversion_format = "3";';a+='var google_conversion_color = "666666";';a+='var google_conversion_label = "PnH7COOv6AIQ5bSZ0AM";';a+="var google_conversion_value = 0;";a+="<\/script>";a+='<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">';a+="<\/script>";a+="<noscript>";a+='<div style="display:inline;">';a+='<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/973494885/?label=PnH7COOv6AIQ5bSZ0AM&amp;guid=ON&amp;script=0"/>';a+="</div>";a+="</noscript>"}else{if(b=="USB"){a='<script type="text/javascript">';a+="var google_conversion_id = 973455184;";a+='var google_conversion_language = "en";';a+='var google_conversion_format = "3";';a+='var google_conversion_color = "666666";';a+='var google_conversion_label = "IJKUCJiD9AIQ0P6W0AM";';a+="var google_conversion_value = 0;";a+="<\/script>";a+='<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">';a+="<\/script>";a+="<noscript>";a+='<div style="display:inline;">';a+='<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/973455184/?label=IJKUCJiD9AIQ0P6W0AM&amp;guid=ON&amp;script=0"/>';a+="</div>";a+="</noscript>"}}}}}}}}}}}document.write(a)}function createTabs(h,g,c,k,a){var e="";var b="";var d="";var f=1;c=replaceAllSpecialCharaters(c);if(g.length>0){e='<ul class="tabs if-not-js-hide">';for(i=g.length-1;i>-1;i--){b=g[i];d=b;d=replaceAllSpecialCharaters(d);d=d.ReplaceAll("'","");d=d+c;if(i==g.length-1){e+='<li class="first-tab active">'}else{e+='<li class="">'}e+='<a href="#tab_'+d+(f)+'"><span>'+g[i]+"</span></a>";e+="</li>";f++}e+="</ul>";e+='<div class="tab-container clearfix">';f=1;for(j=h.length-1;j>-1;j--){tabContent=h[j];b=g[j];d=b;d=replaceAllSpecialCharaters(d);d=d.ReplaceAll("'","");d=d+c;if(j==0){e+='<div id="tab_'+d+(f)+'" class="tab-content" style="display:block;">'}else{e+='<div id="tab_'+d+(f)+'" class="tab-content" style="display:none;">'}e+=linkToFile(tabContent,a);e+="</div>";f++}e+="</div>"}if(k){return e}else{document.write(e)}}jQuery.fn.minitabs=function(){var a="#"+this.attr("id");$(a+">DIV>DIV").hide();$(a+">UL>LI:first").addClass("active").show();$(a+">DIV>DIV:first").show();$(a+">UL>LI").click(function(){$(a+">UL>LI").removeClass("active");$(this).addClass("active");var c=$(a+">DIV>DIV");c.hide();var b=$(this).find("a").attr("href");b=b.substring(b.indexOf("#tab_"),b.length);$(b).fadeIn();return false})};function createPlanCarousel(o,d,l,c,f,k){var m;l=replaceAllSpecialCharaters(l);if(k==1){firstDivClass='<div class="staticlist-nocarousel" id="'+l+'" >'}else{if(d==3){firstDivClass='<div class="tabbed-images-4" id="'+l+'" >'}}for(var g=o.length-1;g>-1;g=g-d){var n=new Array(d);x=g;if(k==1){m=firstDivClass+'<div class="slide-show-image" style="display:block;width:495px;">'}else{if(g==o.length-1){m=firstDivClass+'<div class="slide-show-image" style="display:block;width:495px;">'}else{m=m+'<div class="slide-show-image" style="display:none;width:495px;">'}}for(var e=d-1;e>-1;e--){if(x>=0){if(e==0||x==0){m=m+'<div class="resultLast">'}else{m=m+'<div class="result">'}var p;p=o[x].control;var b=p.substring(p.indexOf("href=")+"href=".length,p.indexOf("target"));b=b.ReplaceAll('"',"");p=p.substring(p.indexOf("<span>")+"<span>".length,p.indexOf("</"));if(b==" "){b="#"}var h="";if(p!=""){h='<a href="'+b+'" class="buttonLight"><span>'+p+"</span></a>"}var q=o[x].title;var a=o[x].details;m+='<div class="phone-thumbnail"><h2>'+q+"</h2>"+o[x].image+"</div>";m+='<div class="phone-text">'+linkToFile(a,f)+"</div>"+h;m=m+"</div>"}x--}m=m+"</div>"}m=m+"</div>";document.write(m)}function createProductCarousel(l,g,c,d){var h;g=replaceAllSpecialCharaters(g);empty="";if(l.length==1){empty='<div style="height:20px;"></div>'}if(c){firstDivClass='<div class="tabbed-images-4"  style="overflow:hidden;" id="'+g+'">'}else{firstDivClass='<div class="images" id="'+g+'">'}for(var e=l.length-1;e>-1;e--){if(e==l.length-1){h=empty+firstDivClass+'<div class="slide-show-image" style="display:block;width:335px;">'}else{h=h+'<div class="slide-show-image" style="display:none;width:335px;">'}if(c){h+='<div class="phones" style="display:block;">'}var k=l[e].productDetails_onHover;var a=(l[e].productDetails);var n=$(l[e].productImage);var m="";var b="";var f="";n.filter("img").each(function(){m=$(this).attr("src")});if(m==""||m==null){n.filter("a").each(function(){b=$(this).attr("href");f=$(this).attr("target");m=$(this).find("img").attr("src")})}if(k!=""){h+='<div class="phone-rollover clearfix" onmouseover="HideDIV(\''+g+"phoneDetails"+e+"');DisplayDIV('"+g+"phoneDetailsonHover"+e+"')\" onmouseout=\"HideDIV('"+g+"phoneDetailsonHover"+e+"');DisplayDIV('"+g+"phoneDetails"+e+"')\">";h+='<div class="phone-image" id="phone-image'+e+'">';if(b!=""&&b!=null){if(f!=""&&f!=null){h+='<a target="'+f+'" href="'+b+'">'}else{h+='<a href="'+b+'">'}}h+='<img src="'+m+'" class="main-image">';if(b!=""&&b!=null){h+="</a>"}h+="</div>";h+='<div class="phone-details" id="'+g+"phoneDetails"+e+'">'+linkToFile(a,d)+"</div>";h+='<div class="phone-details" style="display: none;" id="'+g+"phoneDetailsonHover"+e+'">'+k+l[e].callToActionButton+"</div>";h+="</div>"}else{h+='<div class="phone-image" id="phone-image'+e+'">';if(b!=""&&b!=null){if(f!=""&&f!=null){h+='<a target="'+f+'" href="'+b+'">'}else{h+='<a href="'+b+'">'}}h+='<img src="'+m+'" class="main-image">';if(b!=""&&b!=null){h+="</a>"}h+="</div>";h+='<div class="phone-details" id="'+g+"_phoneDetails"+e+'">'+linkToFile(a,d)+"</div>"}if(c){h+="</div>"}h=h+"</div>"}h=h+"</div>";document.write(h)}function createCarousel(n,e,l,c,h){var m;l=replaceAllSpecialCharaters(l);if(e==3){if(c){firstDivClass='<div class="three-image-carousel" id="'+l+'" style="overflow: hidden;">'}else{firstDivClass='<div class="plans-images" id="'+l+'" style="overflow: hidden;width:340px;float:left;">'}}else{firstDivClass='<div class="six-image-carousel-1" id="'+l+'"style="display: block; position: relative; overflow: hidden;">'}for(var k=n.length-1;k>-1;k=k-e){var o=new Array(e);x=k;if(c||e==6){if(k==n.length-1){m=firstDivClass+'<div class="carousel-show-image" style="display:block">'}else{m=m+'<div class="carousel-show-image" style="display:none">'}}else{if(k==n.length-1){m=firstDivClass+'<div class="slide-show-image" style="display:block; width:330px;">'}else{m=m+'<div class="slide-show-image" style="display:none; width:330px;">'}}for(var g=e-1;g>-1;g--){if(c){if(g==e-1){m=m+'<div class="carousel-image first-image">'}else{m=m+'<div class="carousel-image">'}}else{m=m+'<div class="carousel-image">'}if(x>=0){var f="";if(n[x]!=undefined&&n[x].rating!=""){f=displayRating(n[x].rating)}if(n[x].productDetail!=""){var d=n[x].productImage;d=d.substring(d.indexOf(">")+1,d.indexOf("</"));var p=n[x].productName;var b=p.substring(p.indexOf("href=")+"href=".length,p.indexOf("target"));b=b.ReplaceAll('"',"");if(b==" "){b="#"}p=p.substring(p.indexOf(">")+1,p.indexOf("</"));m=m+'<div class="bubbleInfo"><a class="trigger" href="'+b+'" title="">'+d+f+'<div class="pageDirection">'+p+"<div></a>";var a=n[x].productDetail;a=a.RemovePTag();m=m+'<div class="popup"><div class="popup-top"></div><div class="popup-content clearfix">'+n[x].productImage;if(f!=""&&f!=undefined&&f!="undefined"){m+=f}m+='<p class="app">'+n[x].productName+'</p><p class="popup-text"><div class="pageDirection">'+linkToFile(a,h)+'</div></p><p class="popup-button">'+n[x].callToActionButton+"</p></div></div></div>"}else{m+=n[x].productImage;if(f!=""&&f!=undefined){m+=f}m+='<div class="pageDirection">'+n[x].productName+"</div>"}}x--;m=m+"</div>"}m=m+"</div>"}m=m+"</div>";document.write(m);$(function(){$(".bubbleInfo").each(function(){var y=0;var w=20;var t=20;var s=null;var v=false;var u=false;var r=$(".trigger",this);var q=$(".popup",this).css("opacity",0);$([r.get(0),q.get(0)]).mouseover(function(){if(s){clearTimeout(s)}if(v||u){return}else{v=true;q.css({display:"block"}).animate({top:"-="+y+"px",opacity:1},w,"swing",function(){v=false;u=true})}}).mouseout(function(){if(s){clearTimeout(s)}s=setTimeout(function(){s=null;q.animate({top:"-="+y+"px",opacity:0},w,"swing",function(){u=false;q.css("display","none")})},t)})})})}function createPromotionsCarousel(f,b){var a=' <div id="promoPaging"><div class="six-image-carousel-1" id="'+b+'" style="overflow: hidden; display: block; position: relative;">';for(var e=1;e<f.length;e=e+6){if(e==1){a+='<div class="carousel-show-image marginTop promotions" style="display:block">'}else{a+='<div class="carousel-show-image marginTop promotions" style="display:none">'}a+='<span class="Hline"></span>';for(var d=e;d<e+6&&d<f.length;d++){a+='<div class="mod46Col internet">\n<div class="modBody modHeight220 clearfix">\n<div class="modCopy"><div id="promoImages"><div id="promoImage'+d+'" class="promo"></div></div><div class="desc" id="desc'+d+'"></div><div class="promoteD" id="promoteD'+d+'">'+f[d].paragraph+"</div>"+f[d].button;a+="</div></div></div>"}a+="</div>"}a+="</div></div> ";$("#promoImages").ready(function(){for(var g=1;g<7;g++){imageID="promoImage"+g;imgTextID="desc"+g;if(f[g]!=null){document.getElementById(imageID).innerHTML=f[g].image;if(f[g].imageText!=undefined&&f[g].imageText!=""){document.getElementById(imgTextID).innerHTML='<a></a><div class="block promoBG"></div><a href="#" class="promoTxt">'+f[g].imageText+"</a><a></a>"}else{document.getElementById(imgTextID).style.display="none"}}}});$(function(){$(".pagginge .next2").click(function(){c("next")})});$(function(){$(".pagginge .previous2").click(function(){c("prev")})});$(function(){$(".paggination a").each(function(){$(this).click(function(){c("pagingNumbers")})})});function c(l){var g=$(".paggination .firstPagging").html();if(l=="prev"){g=g-1}var h=g*6;var m=h-5;for(var k=m;k<h+1&&k<f.length;k++){imageID="promoImage"+k;imgTextID="desc"+k;if(document.getElementById(imageID)!=null&&document.getElementById(imageID).innerHTML==""){document.getElementById(imageID).innerHTML=f[k].image;if(f[k].imageText!=undefined&&f[k].imageText!=""){document.getElementById(imgTextID).innerHTML='<div class="block promoBG"></div><a href="#" class="promoTxt">'+f[k].imageText+"</a>"}}}}document.write(a)}function create_2RowCarousel(d,a,e){var b='<div class="images" style="overflow: hidden;" id="'+a+'">';for(var c=d.length-1;c>-1;c=c-2){b+='<div class="slide-show-image" style="display: block; position: absolute; top: 0px; left: 0px; z-index: 5; opacity: 1;" >';if(d[c].image!=""&&d[c].image!=undefined){b+='<div class="phone-image">'+d[c].image+"</div>"}b+='<div class="phone-details">';if(d[c].paragraph!=""&&d[c].paragraph!=undefined){b+=linkToFile(d[c].paragraph,e)}if(d[c].button!=""&&d[c].button!=undefined){b+=d[c].button}if(d[c-1]!=undefined){b+='</div><span class="Hline"></span>';if(typeof(d[c-1].image)!="undefined"&&d[c-1].image!=""){b+='<div class="phone-imageEven">'+d[c-1].image+"</div>"}b+='<div class="phone-detailsEven">';if(d[c-1].paragraph!=undefined&&d[c-1].paragraph!=""){b+=linkToFile(d[c-1].paragraph,e)}if(d[c-1].button!=""&&d[c-1].button!=undefined){b+=d[c-1].button}b+="</div>"}else{b+="</div>"}b+="</div>"}b+="</div>";document.write(b)}function createCarouselNav(c,b,a){b=replaceAllSpecialCharaters(b);if(c){if(a){navigation='<a class="next if-not-js-none" href="#"><img class="next2" id="'+b+'_next" src="../framework/skins/vodafone/img/arrows/next.png"/></a><a class="previous if-not-js-none" href="#"><img class="previous2" id="'+b+'_previous" src="../framework/skins/vodafone/img/arrows/previous.png" alt="" /></a>'}else{navigation='<a class="next if-not-js-none" href="#"><img class="next" id="'+b+'_next" src="../framework/skins/vodafone/img/arrows/next.png"/></a><a class="previous if-not-js-none" href="#"><img class="previous" id="'+b+'_previous" src="../framework/skins/vodafone/img/arrows/previous.png" alt="" /></a>'}}else{navigation=""}document.write(navigation)}function registerModuleNavigation(e,f,b,d,h){f=(f);f=replaceAllSpecialCharaters(f);if(e){var g="#"+f;var c=g+"_next";var k=g+"_previous";var a=f+"nav";$(function(){$(g).each(function(){var l="";if(d){var m=(10*b)+3;l=$('<div class="nav3" id='+a+' style="width:'+m+'"></div>').insertBefore(this)}else{if(h){var m=(10*b)+10}else{var m=(10*b)+5}l=$('<div class="nav" id='+a+' style="width:'+m+'"></div>').insertBefore(this)}$(this).cycle({fx:"scrollHorz",speed:500,timeout:0,pager:l,next:c,prev:k})})})}}function TabControl(a){this.serial=TabControl.nextSerial++;TabControl.instances[this.serial]=this;this.tabs=new Array();this.tabIndex=-1;this.renderContentItemCallback=a;this.maxTabsPerScreen=6;this.renderAll=false;function b(d,c){this.tabTitle=d;this.tabText=c;this.loaded=false;this.squareIndex=-1;this.content=new Array();this.addContentItem=function(e){this.content[++this.squareIndex]=e}}this.createNewTab=function(d,c){var e=new b(d,c);this.tabs[++this.tabIndex]=e;return e};this.render=function(){var d='<div id="wrap">';d+='<div class="jcarousel-skin-tango">';d+='<div class="jcarousel-container jcarousel-container-horizontal" style="position: relative; display: block;">';d+='<div class="jcarousel-clip jcarousel-clip-horizontal" style="overflow: hidden; position: relative;">';d+='<ul id="mycarousel" class="tabs jcarousel-skin-tango" style="overflow: hidden; position: relative; top: 0px; left: 0px; margin: 0px; padding: 0px; width: 1500px !important;">';for(var e=0;e<this.tabs.length;e++){d+=(e==0)?'<li class="first-tab">':"<li>";d+='<a href="#tab_'+this.serial+"_"+e+'"';if(!this.renderAll){d+=' onclick="TabControl.instances['+this.serial+"].renderTab("+e+');"'}d+=">";d+=this.tabs[e].tabTitle;d+="</a>";d+="</li>"}d+="</ul>";d+="</div>";d+="</div>";d+="</div>";d+="</div>";var c=1;for(var e=0;e<this.tabs.length;e++){d+='<div style="DISPLAY: block" id="tab_'+this.serial+"_"+e+'" class="tab-content">';d+='<span class="Hline"></span>';d+='<div class="pointsTxt';if(c>this.maxTabsPerScreen){c=1}d+=(c>1)?c:"";c++;d+='">';d+=this.tabs[e].tabText;d+="</div>";d+='<span class="Hline"></span>';if(this.renderAll||e==0){this.tabs[e].loaded=true;for(var f=0;f<this.tabs[e].content.length;f++){if(this.renderContentItemCallback!=null){d+=this.renderContentItemCallback(this.tabs[e].content[f])}}}d+="</div>"}document.write(d);$(document).ready(function(){jQuery("#mycarousel").jcarousel({});$(".tab-content").hide();$("ul.tabs li:first").addClass("active").show();$(".tab-content:first").show();$("ul.tabs li").click(function(){$("ul.tabs li").removeClass("active");$(this).addClass("active");$(".tab-content").hide();var g=$(this).find("a").attr("href");$(g).fadeIn();return false})})};this.renderTab=function(c){if(!this.tabs[c].loaded){var e="";for(var f=0;f<this.tabs[c].content.length;f++){if(this.renderContentItemCallback!=null){e+=this.renderContentItemCallback(this.tabs[c].content[f])}}var d="#tab_"+this.serial+"_"+c;$(d).append(e);this.tabs[c].loaded=true}}}TabControl.instances=new Array();TabControl.nextSerial=0;function PhotoGallery(a,b,c){this.imageInfo=a;this.image=b;this.imageThumb=c}function addAttrsToTag(a,d){var c="";a=$(a);var b=0;for(var e in d.items){if(e=="RemoveAt"){continue}b++;if(b>d.length){break}else{a.attr(e,d.items[e])}}return a}function convertObjectToString(a){return $('<span style="display:none"></span>').append($(a)).html()}function Hash(){this.length=0;this.items=new Array();for(var a=0;a<arguments.length;a+=2){if(typeof(arguments[a+1])!="undefined"){this.items[arguments[a]]=arguments[a+1];this.length++}}this.removeItem=function(b){var c;if(typeof(this.items[b])!="undefined"){this.length--;var c=this.items[b];delete this.items[b]}return c};this.getItem=function(b){return this.items[b]};this.setItem=function(b,d){var c;if(typeof(d)!="undefined"){if(typeof(this.items[b])=="undefined"){this.length++}else{c=this.items[b]}this.items[b]=d}return c};this.hasItem=function(b){return typeof(this.items[b])!="undefined"};this.clear=function(){for(var b in this.items){delete this.items[b]}this.length=0}}function createHorizPhotoGallery(k){var b="";var h;var a,m,d;b+='<ul class="ad-thumb-list">';for(var f=k.length-1;f>-1;f--){var g=$(k[f].image);if(g.is("a")){a=g.children(":first-child").attr("src");m=g.children(":first-child").attr("title");d=g.attr("href");if(d==null||d==""){d="#"}}else{a=g.attr("src");m=g.attr("title");d="#"}if(k[f].imageThumb!=null){imageGallery=k[f].imageThumb;g=$(imageGallery);if(g.is("a")){g=g.children(":first-child")}if(g.attr("title")==null||g.attr("title")==""){g.attr("title",m);var c=$("<div></div>");c.append(g);imageGallery=c.html()}}else{imageGallery=k[f].image}h=new Hash();h.setItem("longdesc",k[f].imageInfo);h.setItem("height","35");h.setItem("width","50");h.setItem("ad-href",d);var e=imageGallery;var l;if($(imageGallery).is("a")){e=$(imageGallery).children(":first-child");hyperLinkTag=$(imageGallery).parent().find("a").html("");h.setItem("ad-href",hyperLinkTag.attr("href"));l=addAttrsToTag(e,h);hyperLinkTag.attr("href",a);hyperLinkTag.append(l);l=convertObjectToString(hyperLinkTag)}else{l=addAttrsToTag(e,h);l="<a href="+a+">"+convertObjectToString(l)+"</a>"}b+="<li>";b+=l;b+="</li>"}b+="</ul>";document.write(b)}$(function(){$("img.image1").data("ad-desc",'Whoa! This description is set through elm.data("ad-desc") instead of using the longdesc attribute.<br>And it contains <strong>H</strong>ow <strong>T</strong>o <strong>M</strong>eet <strong>L</strong>adies... <em>What?</em> That aint what HTML stands for? Man...');$("img.image1").data("ad-title","Title through $.data");$("img.image4").data("ad-desc","This image is wider than the wrapper, so it has been scaled down");$("img.image5").data("ad-desc","This image is higher than the wrapper, so it has been scaled down");var a=$(".ad-gallery").adGallery();$("#switch-effect").change(function(){a[0].settings.effect=$(this).val();return false});$("#toggle-slideshow").click(function(){a[0].slideshow.toggle();return false})});function selectServicePage(a){$("ul.linkList li").removeClass("active");$("ul.linkList li a#"+a).parent().addClass("active");loadServicePage(a)}function loadServicePage(a){$(".linkList-container").empty().html('<img src="../framework/skins/vodafone/img/arrows/loader.gif" class="loaderimg" />');$.get("/vodafoneportalWeb/placeholder.ucm",{docName:servicePages[a].content,tmpName:"VFE_REG_TEMP_SERVICES_TABSLIST"},function(b){$("#s_container").empty().append(b);stripe()})}jQuery.fn.pager=function(c,a){var b={numberOfAllItems:1,numberOfItemsPerPage:1,numberOfpages:1,myModuleName:"",navId:"navId",navClass:"navPaging",navAttach:"prepend",highlightClass:"firstPagging",prevText:"",nextText:"",linkText:null,linkWrap:null,height:null};if(a){jQuery.extend(b,a)}return this.each(function(){var o=$(this);var u;var k=0;var g="_"+b.myModuleName;var d=b.navId+g;var r="#"+b.navId+g;var m="'_"+b.myModuleName+"'";var p=3;function t(){u=$(c,o).not(r).size();if(b.height==null){b.height=e()}if(u>1){h();q();f()}s();if(b.linkWrap!=null){l()}}function h(){var y='<div id="'+d+'" class="'+b.navClass+'">';y+='<div class="pagginge">';y+='<a href="#" rel="next" class="next2">';y+='<img class="next61 if-not-js-hide" src="../framework/skins/vodafone/img/arrows/next.png" alt="" /></a>';y+='<div class="paggination">';for(var w=0;w<u;w++){var v=w+1;if(v>=p&&v<u){if(v==p){y+='<a href="#" rel="'+v+'"  id="paging_'+v+g+'" onclick="displayPages('+v+",false,"+m+","+b.numberOfpages+');">'}else{y+='<a href="#" rel="'+v+'" style="display:none" id="paging_'+v+g+'" onclick="displayPages('+v+",false,"+m+","+b.numberOfpages+');">'}y+=(b.linkText==null)?v:b.linkText[v-1];y+="</a> "}else{if(v==b.numberOfpages){y+='<a href="#" rel="'+v+'" id="paging_'+v+g+'" onclick="displayPages('+v+",true,"+m+","+b.numberOfpages+');">';y+=(b.linkText==null)?v:b.linkText[v-1];y+="</a> "}else{y+='<a href="#" rel="'+v+'" id="paging_'+v+g+'" onclick="displayPages('+v+",false,"+m+","+b.numberOfpages+');">';y+=(b.linkText==null)?v:b.linkText[v-1];y+="</a> "}}}y+="</div>";y+='<a href="#" rel="prev" class="previous2">';y+='<img class="next61 if-not-js-hide" src="../framework/skins/vodafone/img/arrows/previous.png" alt="" /></a>';y+="<p></p>";y+="</div>";y+="</div>";switch(b.navAttach){case"before":$(o).before(y);break;case"after":$(o).after(y);break;case"prepend":$(o).prepend(y);break;default:$(o).append(y);break}}function q(){$(o).find(c).not(r).hide();var v=$(o).find(c).not(r).get(k);$(v).show()}function f(){$(o).find(r).find("a").removeClass(b.highlightClass);var v=$(o).find(r).find("a").get(k+1);$(v).addClass(b.highlightClass);if(k>(b.numberOfpages-p)){toggleDots(true,g)}else{toggleDots(false,g)}if(k==0){numberOfStartItem=(k+1)}else{numberOfStartItem=((k+1)*b.numberOfItemsPerPage)-(b.numberOfItemsPerPage-1)}numberofEndItem=((k+1)*b.numberOfItemsPerPage);if(document.documentElement.lang=="ar"){msg='<p class="show-how-many if-not-js-hide">&#1575;&#1592;&#1607;&#1575;&#1585; '+numberOfStartItem+"-"+(numberofEndItem>b.numberOfAllItems?b.numberOfAllItems:numberofEndItem)+" &#1593;&#1606;&#1575;&#1589;&#1585; &#1605;&#1606; "+b.numberOfAllItems+"</p>"}else{msg='<p class="show-how-many if-not-js-hide">Showing '+numberOfStartItem+"-"+(numberofEndItem>b.numberOfAllItems?b.numberOfAllItems:numberofEndItem)+" items of "+b.numberOfAllItems+"</p>"}$(o).find(r).find("p").replaceWith(msg)}function s(){if($.browser.msie){$(o).find(c).not(r).css({height:b.height})}else{$(o).find(c).not(r).css({minHeight:b.height})}}function e(){var v=0;$(o).find(c).not(r).each(function(){if(this.offsetHeight>v){v=this.offsetHeight}});v=v+"px";return v}function n(){var v=$(r).get(0);return v.offsetHeight}function l(){$(o).find(r).find("a").wrap(b.linkWrap)}t();$(this).find(r).find("a").click(function(){if($(this).attr("rel")=="next"){if(k+1<u){k=k+1}displayPages(k+1,false,g,b.numberOfpages)}else{if($(this).attr("rel")=="prev"){if(k>0){k=k-1}displayPages(k+1,true,g,b.numberOfpages)}else{var v=$(this).attr("rel");k=v-1}}q();f();return false})})};function displayPages(f,g,c,e){var b=2;if(g==true){if(f>1){$("a[id $= "+c+"]").hide()}for(var d=(f+1);d>(f-b);d--){$("#paging_"+d+c).show()}$("#paging_"+e+c).show()}else{$("a[id $= "+c+"]").hide();for(var a=f-1;a<(f+b);a++){$("#paging_"+a+c).show()}$("#paging_"+e+c).show()}if((f)==1){$("#paging_3"+c).show()}else{if((f)==e){$("#paging_"+(e-2)+c).show()}}if((f)<=e&&(f)>=3){$("#paging_1"+c).show();toggleFirstPageDots(false,c)}else{toggleFirstPageDots(true,c)}}function toggleDots(a,b){if(a){$("span.myLastPage"+b).html(" ")}else{if(!a){$("span.myLastPage"+b).html("...")}}}function toggleFirstPageDots(a,b){if(a){$("span.myFirstPage"+b).html(" ")}else{if(!a){$("span.myFirstPage"+b).html("...")}}}function createTvCommercials(h,c){var f="";f+='<div id="tvCommercialsPagingId">';for(var e=h.length-1;e>-1;e=e-c){var k=new Array(c);x=e;if(e==h.length-1){f+='<div style="display: block;" class="show-list">'}else{f+='<div style="display: none;" class="show-list">'}f+='<div class="list-item3 clearfix">';for(var d=c-1;d>-1;d--){if(x>=0){f=f+'<div class="moreTV">';f=f+'<div class="moreTVbg">';var g="";var l="";var b=h[x].image;if(b!=""){g=getImageHref(b);if(g==" "||g==""){g="#"}if(g!=null){var a="onclick=\"showYouTube('"+g+"');\"";l=b.substring(0,b.indexOf("href"))+a+b.substring(b.indexOf("target"));l=l.substring(0,l.indexOf("</a>"))+'<span class="PlayYT"></span></a>'}else{l=b}}f+=h[x].paragraph;f+=l;f+="</div></div>"}else{break}x--}f+="</div></div>"}f+="</div>";document.write(f)}function showYouTube(a){$(".commercialObject").html(" ");$(".commercialObject").html('<object id="viewer" width="640" height="385"><param name="movie" value="'+a+'" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed id="embeddedPlayer" src="'+a+'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385" /></object>');$("input[id='search-support']").attr("value",a);window.scroll(0,370);return false}(function(J,m,X){var K={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,fastIframe:true,photo:false,href:false,title:false,rel:false,opacity:0.2,preloading:true,current:"image {current} of {total}",previous:"previous",next:"next",close:"| close",open:false,returnFocus:true,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true,top:false,bottom:false,left:false,right:false,fixed:false,data:false},y="colorbox",T="cbox",r=T+"Element",W=T+"_open",e=T+"_load",V=T+"_complete",u=T+"_cleanup",ac=T+"_closed",k=T+"_purge",v=J.browser.msie&&!J.support.opacity,ae=v&&J.browser.version<7,ab=T+"_IE6",R,af,ag,d,H,q,b,Q,c,aa,N,l,h,p,t,Y,s,S,A,C,ad,ah,n,g,a,w,I,o,E,Z,M,G,B,L;function P(ak,ai,aj){aj=m.createElement("div");if(ak){aj.id=T+ak}aj.style.cssText=ai||"";return J(aj)}function O(ai,aj){return Math.round((/%/.test(ai)?((aj==="x"?aa.width():aa.height())/100):1)*parseInt(ai,10))}function D(ai){return ad.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(ai)}function U(ai){ad=J.extend({},J.data(w,y));for(ai in ad){if(J.isFunction(ad[ai])&&ai.substring(0,2)!=="on"){ad[ai]=ad[ai].call(w)}}ad.rel=ad.rel||w.rel||"nofollow";ad.href=ad.href||J(w).attr("href");ad.title=ad.title||w.title;if(typeof ad.href==="string"){ad.href=J.trim(ad.href)}}function F(ai,aj){if(aj){aj.call(w)}J.event.trigger(ai)}function z(){var aj,al=T+"Slideshow_",am="click."+T,an,ak,ai;if(ad.slideshow&&c[1]){an=function(){Y.text(ad.slideshowStop).unbind(am).bind(V,function(){if(I<c.length-1||ad.loop){aj=setTimeout(L.next,ad.slideshowSpeed)}}).bind(e,function(){clearTimeout(aj)}).one(am+" "+u,ak);af.removeClass(al+"off").addClass(al+"on");aj=setTimeout(L.next,ad.slideshowSpeed)};ak=function(){clearTimeout(aj);Y.text(ad.slideshowStart).unbind([V,e,u,am].join(" ")).one(am,an);af.removeClass(al+"on").addClass(al+"off")};if(ad.slideshowAuto){an()}else{ak()}}else{af.removeClass(al+"off "+al+"on")}}function f(aj){if(!M){w=aj;U();c=J(w);I=0;if(ad.rel!=="nofollow"){c=J("."+r).filter(function(){var ak=J.data(this,y).rel||this.rel;return(ak===ad.rel)});I=c.index(w);if(I===-1){c=c.add(w);I=c.length-1}}if(!E){E=Z=true;af.show();if(ad.returnFocus){try{w.blur();J(w).one(ac,function(){try{this.focus()}catch(ak){}})}catch(ai){}}R.css({opacity:+ad.opacity,cursor:ad.overlayClose?"pointer":"auto"}).show();ad.w=O(ad.initialWidth,"x");ad.h=O(ad.initialHeight,"y");L.position();if(ae){aa.bind("resize."+ab+" scroll."+ab,function(){R.css({width:aa.width(),height:aa.height(),top:aa.scrollTop(),left:aa.scrollLeft()})}).trigger("resize."+ab)}F(W,ad.onOpen);C.add(p).hide();A.html(ad.close).show()}L.load(true)}}L=J.fn[y]=J[y]=function(ai,ak){var aj=this;ai=ai||{};if(!aj[0]){if(aj.selector){return aj}aj=J("<a/>");ai.open=true}if(ak){ai.onComplete=ak}aj.each(function(){J.data(this,y,J.extend({},J.data(this,y)||K,ai));J(this).addClass(r)});if((J.isFunction(ai.open)&&ai.open.call(aj))||ai.open){f(aj[0])}return aj};L.init=function(){aa=J(X);af=P().attr({id:y,"class":v?T+(ae?"IE6":"IE"):""});R=P("Overlay",ae?"position:absolute":"").hide();ag=P("Wrapper");d=P("Content").append(N=P("LoadedContent","width:0; height:0; overflow:hidden"),h=P("LoadingOverlay").add(P("LoadingGraphic")),p=P("Title"),t=P("Current"),s=P("Next"),S=P("Previous"),Y=P("Slideshow").bind(W,z),A=P("Close"));ag.append(P().append(P("TopLeft"),H=P("TopCenter"),P("TopRight")),P(false,"clear:left").append(q=P("MiddleLeft"),d,b=P("MiddleRight")),P(false,"clear:left").append(P("BottomLeft"),Q=P("BottomCenter"),P("BottomRight"))).children().children().css({"float":"left"});l=P(false,"position:absolute; width:9999px; visibility:hidden; display:none");J("body").prepend(R,af.append(ag,l));d.children().hover(function(){J(this).addClass("hover")},function(){J(this).removeClass("hover")}).addClass("hover");ah=H.height()+Q.height()+d.outerHeight(true)-d.height();n=q.width()+b.width()+d.outerWidth(true)-d.width();g=N.outerHeight(true);a=N.outerWidth(true);af.css({"padding-bottom":ah,"padding-right":n}).hide();s.click(function(){L.next()});S.click(function(){L.prev()});A.click(function(){L.close()});C=s.add(S).add(t).add(Y);d.children().removeClass("hover");R.click(function(){if(ad.overlayClose){L.close()}});J(m).bind("keydown."+T,function(aj){var ai=aj.keyCode;if(E&&ad.escKey&&ai===27){aj.preventDefault();L.close()}if(E&&ad.arrowKey&&c[1]){if(ai===37){aj.preventDefault();S.click()}else{if(ai===39){aj.preventDefault();s.click()}}}})};L.remove=function(){af.add(R).remove();J("."+r).removeData(y).removeClass(r)};L.position=function(aj,ai){var al=0,ak=0;aa.unbind("resize."+T);af.hide();if(ad.fixed&&!ae){af.css({position:"fixed"})}else{al=aa.scrollTop();ak=aa.scrollLeft();af.css({position:"absolute"})}if(ad.right!==false){ak+=Math.max(aa.width()-ad.w-a-n-O(ad.right,"x"),0)}else{if(ad.left!==false){ak+=O(ad.left,"x")}else{ak+=Math.round(Math.max(aa.width()-ad.w-a-n,0)/2)}}if(ad.bottom!==false){al+=Math.max(m.documentElement.clientHeight-ad.h-g-ah-O(ad.bottom,"y"),0)}else{if(ad.top!==false){al+=O(ad.top,"y")}else{al+=Math.round(Math.max(m.documentElement.clientHeight-ad.h-g-ah,0)/2)}}af.show();aj=(af.width()===ad.w+a&&af.height()===ad.h+g)?0:aj||0;ag[0].style.width=ag[0].style.height="9999px";function am(an){H[0].style.width=Q[0].style.width=d[0].style.width=an.style.width;h[0].style.height=h[1].style.height=d[0].style.height=q[0].style.height=b[0].style.height=an.style.height}af.dequeue().animate({width:ad.w+a,height:ad.h+g,top:al,left:ak},{duration:aj,complete:function(){am(this);Z=false;ag[0].style.width=(ad.w+a+n)+"px";ag[0].style.height=(ad.h+g+ah)+"px";if(ai){ai()}setTimeout(function(){aa.bind("resize."+T,L.position)},1)},step:function(){am(this)}})};L.resize=function(ai){if(E){ai=ai||{};if(ai.width){ad.w=O(ai.width,"x")-a-n}if(ai.innerWidth){ad.w=O(ai.innerWidth,"x")}N.css({width:ad.w});if(ai.height){ad.h=O(ai.height,"y")-g-ah}if(ai.innerHeight){ad.h=O(ai.innerHeight,"y")}if(!ai.innerHeight&&!ai.height){var aj=N.wrapInner("<div style='overflow:auto'></div>").children();ad.h=aj.height();aj.replaceWith(aj.children())}N.css({height:ad.h});L.position(ad.transition==="none"?0:ad.speed)}};L.prep=function(aj){if(!E){return}var am,ak=ad.transition==="none"?0:ad.speed;N.remove();N=P("LoadedContent").append(aj);function ai(){ad.w=ad.w||N.width();ad.w=ad.mw&&ad.mw<ad.w?ad.mw:ad.w;return ad.w}function al(){ad.h=ad.h||N.height();ad.h=ad.mh&&ad.mh<ad.h?ad.mh:ad.h;return ad.h}N.hide().appendTo(l.show()).css({width:ai(),overflow:ad.scrolling?"auto":"hidden"}).css({height:al()}).prependTo(d);l.hide();J(o).css({"float":"none"});if(ae){J("select").not(af.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(u,function(){this.style.visibility="inherit"})}am=function(){var at,av,aq,ap,ar=c.length,ao,an;if(!E){return}function au(){if(v){af[0].style.removeAttribute("filter")}}an=function(){clearTimeout(B);h.hide();F(V,ad.onComplete)};if(v){if(o){N.fadeIn(100)}}p.html(ad.title).add(N).show();if(ar>1){if(typeof ad.current==="string"){t.html(ad.current.replace("{current}",I+1).replace("{total}",ar)).show()}s[(ad.loop||I<ar-1)?"show":"hide"]().html(ad.next);S[(ad.loop||I)?"show":"hide"]().html(ad.previous);at=I?c[I-1]:c[ar-1];aq=I<ar-1?c[I+1]:c[0];if(ad.slideshow){Y.show()}if(ad.preloading){ap=J.data(aq,y).href||aq.href;av=J.data(at,y).href||at.href;ap=J.isFunction(ap)?ap.call(aq):ap;av=J.isFunction(av)?av.call(at):av;if(D(ap)){J("<img/>")[0].src=ap}if(D(av)){J("<img/>")[0].src=av}}}else{C.hide()}if(ad.iframe){ao=J("<iframe/>").addClass(T+"Iframe")[0];if(ad.fastIframe){an()}else{J(ao).one("load",an)}ao.name=T+(+new Date());ao.src=ad.href;if(!ad.scrolling){ao.scrolling="no"}if(v){ao.frameBorder=0;ao.allowTransparency="true"}J(ao).appendTo(N).one(k,function(){ao.src="//about:blank"})}else{an()}if(ad.transition==="fade"){af.fadeTo(ak,1,au)}else{au()}};if(ad.transition==="fade"){af.fadeTo(ak,0,function(){L.position(0,am)})}else{L.position(ak,am)}};L.load=function(ak){var aj,al,ai=L.prep;Z=true;o=false;w=c[I];if(!ak){U()}F(k);F(e,ad.onLoad);ad.h=ad.height?O(ad.height,"y")-g-ah:ad.innerHeight&&O(ad.innerHeight,"y");ad.w=ad.width?O(ad.width,"x")-a-n:ad.innerWidth&&O(ad.innerWidth,"x");ad.mw=ad.w;ad.mh=ad.h;if(ad.maxWidth){ad.mw=O(ad.maxWidth,"x")-a-n;ad.mw=ad.w&&ad.w<ad.mw?ad.w:ad.mw}if(ad.maxHeight){ad.mh=O(ad.maxHeight,"y")-g-ah;ad.mh=ad.h&&ad.h<ad.mh?ad.h:ad.mh}aj=ad.href;B=setTimeout(function(){h.show()},100);if(ad.inline){P().hide().insertBefore(J(aj)[0]).one(k,function(){J(this).replaceWith(N.children())});ai(J(aj))}else{if(ad.iframe){ai(" ")}else{if(ad.html){ai(ad.html)}else{if(D(aj)){J(o=new Image()).addClass(T+"Photo").error(function(){ad.title=false;ai(P("Error").text("This image could not be loaded"))}).load(function(){var am;o.onload=null;if(ad.scalePhotos){al=function(){o.height-=o.height*am;o.width-=o.width*am};if(ad.mw&&o.width>ad.mw){am=(o.width-ad.mw)/o.width;al()}if(ad.mh&&o.height>ad.mh){am=(o.height-ad.mh)/o.height;al()}}if(ad.h){o.style.marginTop=Math.max(ad.h-o.height,0)/2+"px"}if(c[1]&&(I<c.length-1||ad.loop)){o.style.cursor="pointer";o.onclick=function(){L.next()}}if(v){o.style.msInterpolationMode="bicubic"}setTimeout(function(){ai(o)},1)});setTimeout(function(){o.src=aj},1)}else{if(aj){l.load(aj,ad.data,function(an,am,ao){ai(am==="error"?P("Error").text("Request unsuccessful: "+ao.statusText):J(this).contents())})}}}}}};L.next=function(){if(!Z&&c[1]&&(I<c.length-1||ad.loop)){I=I<c.length-1?I+1:0;L.load()}};L.prev=function(){if(!Z&&c[1]&&(I||ad.loop)){I=I?I-1:c.length-1;L.load()}};L.close=function(){if(E&&!M){M=true;E=false;F(u,ad.onCleanup);aa.unbind("."+T+" ."+ab);R.fadeTo(200,0);af.stop().fadeTo(300,0,function(){af.add(R).css({opacity:1,cursor:"auto"}).hide();F(k);N.remove();setTimeout(function(){M=false;F(ac,ad.onClosed)},1)})}};L.element=function(){return J(w)};L.settings=K;G=function(ai){if(!((ai.button!==0&&typeof ai.button!=="undefined")||ai.ctrlKey||ai.shiftKey||ai.altKey)){ai.preventDefault();f(this)}};if(J.fn.delegate){J(m).delegate("."+r,"click",G)}else{J("."+r).live("click",G)}J(L.init)}(jQuery,document,this));var defaults={title:"",message:"",okLabel:"ok",yesLabel:"yes",noLabel:"no",width:"600px",height:"375px",top:"100",left:"200",type:"message",iframe:false};function showOverlay(a){if(!a){return}setDefaults(a);$.colorbox({width:a.width,height:a.height,html:getOverlayContent(a),top:a.top,left:a.left,iframe:a.iframe,scrolling:false})}function triggerIframeFunc(d,c){var a=$(d);var b=a[0].document||a[0].contentWindow.document;b[c]()}function confirmResult(a){$("#confirmOverlayInput").val(a);$.colorbox.close()}function setDefaults(a){if(a){if(isNullOrEmpty(a.title)){a.title=defaults.title}if(isNullOrEmpty(a.message)){a.message=defaults.message}if(isNullOrEmpty(a.type)){a.type=defaults.type}if(isNullOrEmpty(a.width)){a.width=defaults.width}if(isNullOrEmpty(a.top)){a.top=defaults.top}if(isNullOrEmpty(a.left)){a.left=defaults.left}if(isNullOrEmpty(a.height)){a.height=defaults.height}}}function isNullOrEmpty(a){if(!a||a==""){return true}return false}function getOverlayContent(b){var a="<div class='modal modalAppDetails modalChatLarge grid' id='chatApp'><div class='addtitleChat'><img src='/vodafoneportalWeb/framework/skins/vodafone/img/overlay/imgBen.jpg' class='imgModal' /><span class='spanModal'>"+b.title+"</span></div><div class='modalDetails'><div class='FBHandL'><p>"+b.message+"</p><br/>";if(b.type=="confirm"){a+=getButtonDiv(b.yesLabel)+getButtonDiv(b.noLabel)}else{if(b.type=="alert"){a+=getButtonDiv(b.okLabel)}}return a}function getButtonDiv(a){return"<a class='buttonDark paddLeft' href='#' title=''><span>"+a+"</span></a>"};
