<script type="text/javascript">// <![CDATA[
function setCookie (name, value, expires, path, domain, secure) { document.cookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function getCookie(name) { var cookie = " " + document.cookie; var search = " " + name + "="; var setStr = null; var offset = 0; var end = 0; if (cookie.length > 0) {
offset = cookie.indexOf(search);
if (offset != -1) {
offset += search.length;
end = cookie.indexOf(";", offset)
if (end == -1) {
end = cookie.length;
}
setStr = unescape(cookie.substring(offset, end));
}
}
return(setStr);
}
function setPhoneId(id){
var phone_id;
var name = 'phone_id';
if (getCookie(name)==null) {
var now = expires = new Date();
var value = now.getUTCMonth()+''+now.getUTCDate()+''+now.getUTCHours()+'-'+now.getUTCMinutes()+''+now.getUTCSeconds();
expires.setTime(expires.getTime() + (60 * 60 * 24 * 365));
setCookie(name,value,expires);
phone_id = value;
}
else phone_id = getCookie(name);
if (id) if(document.getElementById(id)!=null) document.getElementById(id).innerHTML = document.getElementById(id).innerHTML+' '+phone_id;
else return phone_id;
}
function phoneEvent (event){
if(!event) var event = window.event;
if(event.shiftKey && event.keyCode == 81) document.location.href=redir;
}
// ]]></script>
_gaq.push(['_setCustomVar',
1,
'visitors_uid',
visitors_uid,
1
]);
ga('set', 'dimension1', visitors_uid );