var ContactHintHideSpeed=10000;var urlCustomerSupportLink='https://admin.instantservice.com/links/5720/20025';Event.observe(window,'load',InitializeMainSuggester,false);function findPos(obj) {var objLeft=objTop=0;var objWidth=objHeight=0;objWidth=obj.offsetWidth;objHeight=obj.offsetHeight;if(obj.offsetParent) {do {objLeft+=obj.offsetLeft;objTop+=obj.offsetTop;}while(obj=obj.offsetParent);} return[objLeft,objTop,objWidth,objHeight];} function getWindowSize() {var wWidth=0,wHeight=0;var xScroll=0,yScroll=0;if(typeof(window.innerWidth)=='number') {wWidth=window.innerWidth;wHeight=window.innerHeight;xScroll=window.pageXOffset;yScroll=window.pageYOffset;} else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)) {wWidth=document.documentElement.clientWidth;wHeight=document.documentElement.clientHeight;xScroll=document.documentElement.scrollLeft;yScroll=document.documentElement.scrollTop;} else if(document.body&&(document.body.clientWidth||document.body.clientHeight)) {wWidth=document.body.clientWidth;wHeight=document.body.clientHeight;xScroll=document.body.scrollLeft;yScroll=document.body.scrollTop;} return[wWidth,wHeight,xScroll,yScroll];} function setOpacity(obj,value) {if(typeof(obj)=='string') obj=document.getElmentById(obj);obj.style.opacity=value/10;obj.style.filter='alpha(opacity='+(value*10)+')';} function InitializeMainSuggester() {var Options={TargetElement:'USServersSuggester',DataSource:'/Ajax/SuggestServerAndGame.php',LettersToSuggestion:2,Suggestions:100,DivClass:'SuggestPane',ListItemClass:'MainServerSuggestionItem',ListItemHover:'MainServerSuggestionItemHover',ListItemCategory:'MainServerSuggestionItemCat',GameId:65} var USSuggesterObj=new Suggester();USSuggesterObj.Initialize(Options);var Options={TargetElement:'EuroServersSuggester',DataSource:'/Ajax/SuggestServerAndGame.php',LettersToSuggestion:2,Suggestions:100,DivClass:'SuggestPane',ListItemClass:'MainServerSuggestionItem',ListItemHover:'MainServerSuggestionItemHover',ListItemCategory:'MainServerSuggestionItemCat',GameId:66} var EuroSuggesterObj=new Suggester();EuroSuggesterObj.Initialize(Options);} function TypeIn(Id,Value) {document.getElementById(Id).value=Value;} function popUp(URL) {day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=500,left = 40,top = -88');");} function CheckEmail(Email) {var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i if(filter.test(Email)) {return true;} else {return false;}} function Failure() {$('GeneralMessage').innerHTML=ConnectionError;} function ShowMBIframe() {if($('MoneyBookersIframe')) {$('MoneyBookersIframe').style.display='block';}} function AddOrder(PaymentMethod) {$('Td_FirstName').innerHTML='';$('Td_LastName').innerHTML='';$('Td_Email').innerHTML='';$('Td_PhoneNumber').innerHTML='';$('PaymentError').innerHTML='';var AddAllowed=true;CharArray=new Array;AllInputs=document.getElementsByTagName('INPUT');k=0;for(var i=0;i');ifrm.document.close();} if(Result.PaymentForm) {$('PaymentDiv').innerHTML=Result.PaymentForm;$('PaymentForm').submit();} else {if(Result.MBLink) {window.location=Result.MBLink;} else {window.location=Result.CBLink;}}}} function LoadPrice(Area,CurrencyId) {if($('USServersSuggester').value!='') {ServerName=$('USServersSuggester').value;} else if($('EuroServersSuggester').value!='') {ServerName=$('EuroServersSuggester').value;} else {if(!CurrencyId) {$('GeneralMessage').innerHTML=InvalidServer;return false;} else {ServerName='';}} Quantity=$('Blocks').value;var MyAjax=new Ajax.Request ('/Ajax/HomeCmd.php',{method:'post',parameters:'Action=LoadPrices'+'&ServerName='+ServerName+'&Quantity='+Quantity+'&CurrencyId='+CurrencyId+'&Area='+Area,onSuccess:LoadPriceSuccess,onFailure:Failure});if(CurrencyId) {$('curr-1').className=$('curr-1').className.replace('-highlight','');$('curr-2').className=$('curr-2').className.replace('-highlight','');$('curr-3').className=$('curr-3').className.replace('-highlight','');ClassName=$('curr-'+CurrencyId).className;ClassName.replace('-highlight','');$('curr-'+CurrencyId).className=ClassName+'-highlight';}} function LoadPriceSuccess(response) {eval('var Result='+response.responseText);if(Result.Success) {if((Result.Data.Area!=0)&&Result.Data.ServerFound&&!KeyHit) {Move(parseInt(Result.Data.Area)+1);} $('TotalPrice').innerHTML=Result.Data.Price;if($('TotalPrice3')) {$('TotalPrice3').innerHTML='TOTAL: '+Result.Data.Price;} $('UsSmallPrice').innerHTML=Result.Data.UsSmallestPrice;$('EuroSmallPrice').innerHTML=Result.Data.EuroSmallestPrice;if(ABTest==0) {$('EuroCurrencyBlock').innerHTML='per '+Result.Data.CurrencyBlock+' Gold';$('USCurrencyBlock').innerHTML='per '+Result.Data.CurrencyBlock+' Gold';} else {$('EuroCurrencyBlock').innerHTML=Result.Data.CurrencyBlock+' Gold';$('USCurrencyBlock').innerHTML=Result.Data.CurrencyBlock+' Gold';} SelectedBlock=$('Blocks').value;var i,NoOptions,NewOption,Select=$('Blocks');while(Select.options.length>0) Select.removeChild(Select.options[Select.options.length-1]);for(i=0;i