(function(){var d_fn=new function(){};var d=window.d=d_fn.property={getId:function(id){return"#"+id.replace(/\./g,"\\.")},trim:function(value){return value.replace(/(^\s*)|(\s*$)/g,"")},getCookie:function(name){var allcookies=document.cookie;if(allcookies){var cookieArray=allcookies.split(";");for(var i=0;i<cookieArray.length;i++){if(cookieArray[i].indexOf("=")!=-1){var cookieName=cookieArray[i].split("=")[0];var cookieValue=cookieArray[i].split("=")[1];if(name==this.trim(cookieName)){return this.trim(cookieValue)}}}}},setCookie:function(cookieName,cookieValue,days){var expireDate=new Date();expireDate.setTime(expireDate.getTime()+days*24*60*60*1000);document.cookie=cookieName+"="+cookieValue+";expires="+expireDate.toGMTString()+";path=/"},validate:function(value){return{isemail:/^[a-zA-Z0-9_\.]+@[a-zA-Z0-9_]+(\.[a-zA-Z0-9]+)+$/.test(value),isidn:/^[^\^\(\)\$\*\s\+\\\[\]\{\}\?\&\%\#\:\;\=\~\!\@\<\>]{1,63}$/.test(value),isdomainname:/^[^\^\(\)\$\*\s\+\\\[\]\{\}_\?\&\%\#\:\;\=\~\!\@\<\>]{1,63}\.[a-zA-Z]{2,6}(\.[a-zA-Z]{2})?$/.test(value),istld:/^[a-zA-Z]{2,6}(\.[a-zA-Z]{2})?$/.test(value),isip:/^((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)$/.test(value),isphone:/^\+\d{2}\.\d{5,15}$/.test(value),isdate:/^\d{4}-\d{2}-\d{2}$/.test(value),isdns:/^([0-9a-zA-Z_]{1,20}\.)*\w{1,63}\.[a-zA-Z]{2,6}(\.[a-zA-Z]{2})?$/.test(value),isurl:/^(https|http|ftp|rtsp|mms):\/\/([0-9a-zA-Z_\-]{1,20}\.)*[0-9a-zA-Z\-]{1,63}\.[a-zA-Z]{2,6}(\.[a-zA-Z]{2})?$/.test(value),isnumber:/^\d+$/.test(value),isfloat:/^\d+(\.d+)?$/.test(value)}},getHotPrice:function(){if($("#hot_tlds").size()>0){var need_get_price=true;if(d.getCookie("hot_price")){try{var price_cookie=eval("("+d.getCookie("hot_price")+")");for(var key in price_cookie){$("#hotprice_"+key).html("€ "+price_cookie[key])}$("#hot_tlds_price").html(message.registration);need_get_price=false}catch(err){need_get_price=true}}if(need_get_price){setTimeout(function(){$("#hot_tlds_price").html("<img src='page/images/loading.gif' title='Getting price' alts=''/>");var result="";$.ajax({url:"ajax/registration_price.html",type:"POST",dataType:"json",timeout:"5000",data:{tlds:["com","net","cm","me","de"]},success:function(data){result=data.ajaxResult["result"];if(result=="success"){var priceJson="{";var prices=data.ajaxResult["prices"];for(var key in prices){$("#hotprice_"+key).html("€ "+prices[key]);priceJson+="'"+key+"':'"+prices[key]+"',"}priceJson=priceJson.substring(0,priceJson.length-1);priceJson+="}";d.setCookie("hot_price",priceJson)}},complete:function(){if(result=="success"){$("#hot_tlds_price").html(message.registration)}else{$("#hot_tlds_price").html("")}}})},4000)}}},setLanguage:function(lang){url="ajax/setlanguage.html";parame={request_locale:lang};jQuery.post(url,parame,function(){d.setCookie("request_locale",lang);location.reload()},"json")}}})();$(document).ready(function(){$(".js-hover").hover(function(){$(this).css("background-color","#fceab4")},function(){$(this).css("background-color","")})});