function setcurrency(v) {
	get_xml({'url':'/inc/setcurrency.php','post':{'currency':v}},function(s,x) {
		$('#setcurrency').css({'display':'none'});
		if (!x)
			return alert(s.error);
		x=eval('('+x+')');
		updateprices(x.exchange,x.code);
	})	
}
function updateprices(exchange,rate) {
	var dp=(rate=='JPY' || rate=='HUF' || rate=='TWD') ? 0 : 2;
	rate=' '+rate;
	var pre='';
	if (rate==' USD') {
		pre='$';
		rate='';
	} else if (rate==' GBP') {
		pre='&pound;';
		rate='';
	} else if (rate==' AUD') {
		pre='A$';
		rate='';
	} else if (rate==' JPY') {
		pre='&yen;';
		rate='';
	} else if (rate==' EUR') {
		pre='&euro;';
		rate='';
	}
	$('.price').each(function() {
		var n=number_format((parseFloat($(this).attr('rel'))*parseFloat(exchange)),dp);
		$(this).html('<b>'+pre+n+'</b>'+rate);
	});
}
$('.price').click(function(e) {
	$('#setcurrency').css({'top':(e.pageY-20)+'px','left':(e.pageX-102)+'px','display':'block'});
});
$('.price').addClass('editprice');
$('#setcurrency > img').click(function() {
	$(this).parent().css({'display':'none'});
});
function get_xml(s,c) {
	var p=typeof(s.post);
	var post="";
	if (p!='undefined') {
		if (p=='object') {
			post=[];
			for (k in s.post) {
				post.push(encodeURIComponent(k)+'='+encodeURIComponent(s.post[k]));	
			}
			post=post.join('&');
		} else
			post=s.post;
	}
	var p=typeof(s.get);
	var get="";
	if (p!='undefined') {
		if (p=='object') {
			get=[];
			for (k in s.get) {
				get.push(encodeURIComponent(k)+'='+encodeURIComponent(s.get[k]));	
			}
			get=get.join('&');
		} else
			get=s.get;
	}
	var url=s.url.replace(/[&\?]*$/,'');
	if (get!='')
		url+=((url.match(/\?/)) ? '&' : '?')+get;
	var x=false;
	if (window.XMLHttpRequest) {
		x=new XMLHttpRequest();
		if (x.overrideMimeType)
			x.overrideMimeType('text/xml');
	} else if (window.ActiveXObject) {
		try {
			x=new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				x=new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
		}
	}
	if (!x) {
		s['error']='Unable to connect';
		this.callback=c(s,x);
		return;
	}
	x.open(((post!='') ? 'POST' : 'GET'),url,true);
	x.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); 
	var cb=c;
	var ss=s;
	x.onreadystatechange=function() { got_xml(ss,x,cb) };
	x.send(post);
}
function got_xml(s,x,cb) {
	if (x.readyState==4) {
		if (x.status!=200) {
			s.error='Unable to connect, error '+x.status;
			x=false;
		} else
			x=x.responseText;
		this.callback=cb(s,x);
	}
}
function urlencode(t) {
	return encodeURIComponent(t);
}
function editcookie(t) {
	var c=getprev(t);
	var url="/inc/editcookie.php?site="+urlencode(ccsite)+"&cookie="+urlencode(c.name)+"&value="+urlencode(c.value)+"&c="+urlencode(cccook);
	var x=getxml();
	if (!x) {
		alert("Error connecting");
		return false;
	}
	t.style.visibility="hidden";
	x.open('GET',url,true);
	x.setRequestHeader('Content-Type','application/x-www-form-urlencoded');        
	x.onreadystatechange=function() { ccgot(x,t); };
	x.send("");
}
function ccgot(x,t) {
	if (x.readyState==4) {
		if (x.status==200) {
			alert("Set - "+x.responseText);
		} else {
			t.style.visibility="visible";
			alert("Not Set");
		}
	}
}
function recick() {
	if (document.reci.getbacklinks.value=="")
		return false==alert('Please enter your URL');
	if (document.reci.reciprocal.value=="")
		return false==alert('Please enter at least one address to check');
	return true;
}
function addcookie() {
	var n=prompt("Please enter cookie name","")
	if (n=="")
		return false;
	var v='<div>'+n+' = <input name="'+n+'" type="text" value="" onkeydown="cchange(this)">';
	v+='<input type="button" onclick="editcookie(this)" value="Set"></div>';
	document.getElementById("cookies").innerHTML=document.getElementById("cookies").innerHTML+v;
}
function cchange(t) {
	getnext(t).style.visibility="visible";
}

var IE=document.all ? true : false


function dtr(t,o) {
    t.style.opacity=o;                      
    t.style.MozOpacity=o;                   
    t.style.filter='alpha(opacity='+(opacity*100)+')'; 	
}

function xana(u) {
	window.open(u);
}

function checkdomain(strURL,tld,optbuy,pr) {
var x=getxml();
if (!x)
	return false
if (!pr)
	var pr=""
else
	pr="&pr=1"
x.open('GET', '/inc/checkavail.php?domain='+strURL+'&ob='+optbuy+pr, true);
x.setRequestHeader('Content-Type','application/x-www-form-urlencoded');        
x.onreadystatechange = function() { cbcheckdomain(x,tld); };
x.send("");
}
function getxml() {
var x=false;
if (window.XMLHttpRequest) {
	x=new XMLHttpRequest();
	if (x.overrideMimeType)
		x.overrideMimeType('text/xml');
} else if (window.ActiveXObject) {
	try {
		x=new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
			x=new ActiveXObject("Microsoft.XMLHTTP");
		} catch (e) {}
	}
}
if (!x)
	return false;
return x;
}
function cbcheckdomain(r,gtld) {
	if (r.readyState== 4 && r.status==200) {
		document.getElementById(gtld).innerHTML=r.responseText;
	}
}
function getprev(idno) {
	var i=idno.previousSibling;
	while(i!=null && i.innerHTML == null) {
		i=i.previousSibling;
	}
	return i;
}
function getfirstnode(h,tag) {
tag=tag.toUpperCase();
h=h.childNodes;
for(var i=0;i<h.length; i++) {
	if (typeof(h[i].tagName)!='undefined' && h[i].tagName==tag) {
		return h[i];
	}
}
return null;
}
function getnext(idno) {
	var i=idno.nextSibling;
	while(i!=null && i.innerHTML==null) {
		i=i.nextSibling;
	}
	return i;
}


function domainname(th) {
	th=th.parentNode;
	th=th.parentNode;
	return getfirstnode(th,"td");
}
function getdomain(a) {
	var b=getnext(a);
	var d=a.innerHTML;
	var wlist=(typeof(watchlist)!="undefined")?true:false;
	var e=getnext(getnext(getnext(b))).innerHTML;
	if (e=='')
		return false;
	b.innerHTML='<img src="/images/loading.gif">';
	var x=getxml();
	if (!x) {
		b.innerHTML='<div class="tinyerr"></div>';
		return false;
	}
	x.open('GET','/inc/'+((wlist)?'checkwatch':'checkdomain')+'.php?domain='+d,true);
	x.setRequestHeader('Content-Type','application/x-www-form-urlencoded');        
	x.onreadystatechange=function() { domaingot(x,b); };
	x.send("");
}
function getwhois(d) {
	window.open('/inc/checkavail.php?whois='+d,'','width=400,height=400,status=no,menubar=no,copyhistory=no,directories=no,location=no,toolbar=no,scrollbars=yes');
	return false;
}
function hllink(d) {
	d.className="jlhover";
}
function ullink(d) {
	d.className="jl";
}
function urlreplace(key,value) {
	key=escape(key);
	value=escape(value);
	var kvp=document.location.search.substr(1).split('&');
	var i=kvp.length;
	var x;
	while (i--) {
		x=kvp[i].split('=');
		if (x[0]==key) {
			x[1]=value;
			kvp[i]=x.join('=');
			break;
		}
	}
    if (i<0)
		kvp[kvp.length]=[key,value].join('=');
    document.location.search=kvp.join('&'); 
}
function findpos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
	do {
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		} while (obj = obj.offsetParent);
	}
	return [curleft,curtop];
}
jQuery('textarea').click(function() {
	var targetOffset = jQuery(this).offset().top;
	jQuery('html,body').animate({scrollTop: targetOffset-100},1000);						 
});
function gethform(haction,htype) {
	var v=document.hform;
	if (typeof(v)=="undefined" || v==null) {
		v=document.createElement("form");
		v.setAttribute("method","post");
		v.style.display='none';
		v.style.visibility='hidden';
		v.setAttribute("name","hform");
		var n=document.createElement("textarea");
		n.setAttribute("name","snippet");
		v.appendChild(n);
		n=document.createElement("input");
		n.setAttribute("name","sname");
		v.appendChild(n);		
		n=document.createElement("input");
		n.setAttribute("name","stype");
		v.appendChild(n);
		document.getElementsByTagName('body')[0].appendChild(v);
	}
	v.stype.value=(typeof(htype)=="undefined") ? "txt" : htype;
	v.action=haction;
	return v;
}
function inarray(v,t) {
	for (i in v) {
		if (v[i]==t)
			return true;
	}
	return false;
}
function xanq(t) {
	xana(t.parentNode.title);	
}
function insertAfter(p,n,r) {
	if (r.nextSibling==null)
		p.appendChild(n);
	else
  		p.insertBefore(n,r.nextSibling);
}
function gotpral(x,t,b) {
	if (x.readyState==4) {
		var c=((b==1) ? "Pagerank" : "Alexa")
		if (x.status==200) {
			t.innerHTML=c+' : '+x.responseText;
			if (b==1)
				t.setAttribute("rel","");
		} else {
			t.setAttribute("id",'red');
			t.innerHTML=c+' : Error';
		}
	}
}
function quote(s,last) {
	return '"'+s.replace(/"/g,'""')+'"'+((typeof(last)=="undefined") ? "," : "\r\n");	
}
var clightbox='';
var lightboxsettings={};
/* Possible
width
height
save
timer
white
*/
function lightbox(id,settings,cb) {
	if (typeof(settings)=='undefined')
		settings={};
	var to=settings.timer,width=settings.width,height=settings.height,white=settings.white;
	lightboxsettings=settings;
	if (typeof(width)=="undefined")
		var width=400;
	if (typeof(height)=="undefined")
		var height=220;
	var h=document.getElementById("previewpane");
	var m=document.getElementById("previewbox");
	clightbox=id;
	if (white) {
		m.style.background='#fff';
		h.style.background='#ddd';
		m.style.borderColor='#f1f1f1';
	} else {
		m.style.background='#000';
		m.style.borderColor='#111';
		h.style.background='#000';
	}
	document.body.style.overflow='hidden';
	document.body.setAttribute("onkeydown","if (event.keyCode==27) { closelightbox() }");
	m.style.width=width+"px";
	m.style.height=height+"px";
	m.style.marginLeft=-(width/2)-50+"px";
	m.style.marginTop=-(height/2)-50+"px";
	var html='';
	if (typeof(id)=='object' && id.length)
		html=id[0];
	else if (id!='')
		html=document.getElementById(id).innerHTML;
	html='<div><img src="http://www.seoheap.com/images/close'+((white) ? 'white' : '')+'.png" onclick="closelightbox()"/><div class="content">'+html+'</div></div>';
	m.innerHTML=html;
	h.style.top=(document.all?document.documentElement.scrollTop:window.pageYOffset)+'px';
    h.style.display='block';
	m.style.display="block";
	if (typeof(cb)!='undefined')
		this.callback=cb();
	if (typeof(to)!="undefined" && to>0)
		setTimeout("closelightbox()",to);
}
function lightboxurl(url,width,height,scrolling) {
	if (typeof(scrolling)=='undefined')
		scrolling=false;
	if (typeof(width)=="undefined")
		var width=600;
	if (typeof(height)=="undefined")
		var height=500;
	lightbox(['<iframe src="'+url+'" width="'+(width*0.98)+'px" height="'+(height*0.98)+'px" frameborder="0" style="background:#fff"'+((scrolling==false) ? ' scrolling="no"' : '')+'></iframe>'],{'white':true,'width':width,'height':height});
}
function closelightbox(save) {
	if ((typeof(lightboxsettings.save)!='undefined' || save) && typeof(clightbox)!='Array' && clightbox!='')
		document.getElementById(clightbox).innerHTML=jQuery("#previewbox .content").html();
	document.getElementById("previewpane").style.display='none';
	document.getElementById("previewbox").style.display='none';
	document.body.setAttribute("onkeydown",'');
	document.body.style.overflow='auto';
	clightbox='';
	lightboxsettings={};
}
function getsapr() {
	var t=document.getElementById("saprdiv");
	lightbox('saprdiv');
	if (t.childNodes[0].tagName=="IMG") {
		var h=jQuery("#previewbox .content")[0];
		var x=getxml();
		if (!x) {
			alert("Error connecting");
			return false;
		}
		x.open('GET','/inc/getpral.php?url='+urlencode(fopage)+'&t=1&hash='+prcode,true);
		x.setRequestHeader('Content-Type','application/x-www-form-urlencoded');        
		x.onreadystatechange=function() { gotsapr(x,t,h); };
		x.send("");
	}
}
function getpral(t,b) {
var c=(b==1) ? "Pagerank" : "Alexa";
var x=getxml();
if (!x) {
	alert("Error connecting");
	return false;
}
var a=getprev(t.parentNode).innerHTML;
t.innerHTML=c+' : <img src="/images/loading.gif" style="width:12px;height:12px"/>';
t.setAttribute("onclick","");
var v=t;
if (b==2)
	v=getprev(v);
x.open('GET','/inc/getpral.php?url='+a+'&t='+b+'&hash='+urlencode(v.getAttribute('rel')),true);
x.setRequestHeader('Content-Type','application/x-www-form-urlencoded');        
x.onreadystatechange=function() { gotpral(x,t,b); };
x.send("");		
}
function dp(n,d) {
	var a=Math.pow(10,d);
	return (Math.round(n*a)/a).toString();
}
function gotsapr(x,t,h) {
	if (x.readyState==4) {
		if (x.status==200) {
			var j='<h2>PageRank Information</h2>';
			j+='<div class="saprout">';
			var pr=parseInt(x.responseText);
			j+='<p>PageRank</p><p>'+x.responseText+"</p>";
			j+='<p>Total Links</p><p>'+tlinks+"</p>";
			j+='<p>Follow Links</p><p>'+flinks+"</p>";
			//var o=((Math.pow(pr+1,3)*4)/olinks)/5324;
			//j+='<p>Strength</p><p>'+(Math.round((o)*100000)/1000)+"</p>";
			var prl=(Math.round((pr/flinks)*900)/1000);
			j+='<p>PR per link</p><p>'+(Math.round((pr/flinks)*900)/1000)+"</p>";
			j+='<p>PR for 2 links</p><p>'+(Math.round((pr/(flinks+1))*900)/500)+"</p>";
			j+='<br id="clr"/><br/><p>Total PR for internal links</p><p>'+(Math.round((pr/flinks)*ilinks*900)/1000)+"</p>";
			j+='<p>Total PR for external links</p><p>'+(Math.round((pr/flinks)*olinks*900)/1000)+"</p>";
			j+='</div>';
			if (prl>0) {
				var i=document.getElementById("prleak").getElementsByTagName("p");
				var r;
				for (var n=0,k=i.length; n<k; n++) {
					if ((n % 2)==0)
						r=dp(parseInt(i[n].getAttribute('rel'))*prl,3);
					else
						i[n].innerHTML=r;
				}
				j+='<div onclick="lightbox(\'prleak\')" style="cursor:pointer;float:right">PR Leakage</div>'	
			}
			t.innerHTML=j;
			h.innerHTML=j;
		} else {
			h.innerHTML="Error";
		}
	}	
}
function postform(t,c) {
	var v=getprev(t).childNodes[1];
	var url=v.value+"?";
	var f;
	v=getnext(v)
	var m=v.value;
	for (var i=0; i<c; i++) {
		v=getnext(v);
		f=v.childNodes[1];
		url+=f.title+"="+urlencode(f.value)+"&";
	}
	url="/?q=siteanalysis&s="+urlencode(url.slice(0,-1))+((m=="POST") ? "&post=1" : "");
	document.location=url;
}
function setcookie(n,v,e) {
var t=new Date();
t.setTime(t.getTime());
if (e)
	e=e*86400000;
var d=new Date(t.getTime()+e);
document.cookie=n+"="+escape(v)+((e) ? ";expires="+d.toGMTString() : "")+";path=/;domain=.seoheap.com";
}
var ser=['com','co.uk','es','at','co.jp','co.in','de','ca','ad','ae','com.af','com.ag','com.ai','am','it.ao','com.ar','as','com.au','az','ba','com.bd','be','bg','com.bh','bi','bj','com.bn','com.bo','com.br','bs','co.bw','com.by','com.bz','cd','cf','cg','ch','ci','co.ck','cl','cn','com.co','co.cr','com.cu','cz','dj','dk','dm','com.do','dz','com.ec','ee','com.eg','com.et','fi','com.fj','fm','fr','ga','ge','gg','com.gh','com.gi','gl','gm','gp','gr','com.gt','gy','com.hk','hn','hr','ht','hu','co.id','ie','co.il','im','is','it','je','com.jm','jo','co.ke','com.kh','ki','kg','co.kr','com.kw','kz','la','com.lb','li','lk','co.ls','lt','lu','lv','com.ly','co.ma','md','me','mg','mk','mn','ms','com.mt','mu','mv','mw','com.mx','com.my','co.mz','com.na','com.nf','com.ng','com.ni','nl','no','com.np','nr','nu','co.nz','com.om','com.pa','com.pe','com.ph','com.pk','pl','pn','com.pr','ps','pt','com.py','com.qa','ro','ru','rw','com.sa','com.sb','sc','se','com.sg','sh','si','sk','com.sl','sn','sm','st','com.sv','td','tg','co.th','com.tj','tk','tl','tm','to','com.tr','tt','com.tw','co.tz','com.ua','co.ug','com.uy','co.uz','com.vc','co.ve','vg','co.vi','com.vn','vu','ws','rs','co.za','co.zm','co.zw','cat'];
function trim(str) {
	return str.replace(/^[\s\t]*(.*?)[\s\t]*$/g,"$1");
}
function toHex8(b) {
	return (b<16?"0":"")+b.toString(16);
}
function ch(b,h) {
	if (typeof(h)=='undefined')
		var h="Mining PageRank is AGAINST GOOGLE'S TERMS OF SERVICE. Yes, I'm talking to you, scammer.";
	for (var c=16909125,d=0,j=b.length; d<j; d++) {
		c^=h.charCodeAt(d%h.length)^b.charCodeAt(d);
		c=c>>>23 | c<<9;
	}
	return c.toString(16);
}
function malert(s) {
	alert(s);
	return false;
}
function dohint(t,n) {
	if (typeof(n)=='undefined')
		n=t.getAttribute('name');
	r=document.getElementById("hint"+n);
	x=document.getElementById("hint");
	y=document.getElementById("hintar");
	if (r && r.innerHTML!='') {
		p=findpos(t);
		x.style.top=(p[1]-138)+'px';
		x.style.left=(p[0]+18)+'px';
		y.style.top=(p[1]-130)+'px';
		y.style.left=(p[0]+10)+'px';
		x.innerHTML=r.innerHTML;
		x.style.display='block';
		y.style.display='block';
	} else {
		hidehint();
	}
}
function hidehint() {
	document.getElementById("hint").style.display='none';
	document.getElementById("hintar").style.display='none';	
}
function jsonfetch(u,f,v) {
	var x=getxml();
	s=true;
	p='';
	if (u.charAt(0)=='%') {
		// Post
		u=u.substr(1).split('?');
		p=u[1];
		u=u[0];
	}	
	if (u.charAt(0)=='*') {
		//No error
		u=u.substr(1);
		s=false;
	}
	ss=true;
	if (u.charAt(0)=='!') {
		// Async
		u=u.substr(1);
		ss=false;
	}
	if (!x) {
		if (f)
			this.callback=f(false,v);
		if (s)
			alert('Unable to connect');
		return false;
	}
	if (p!='') {
		x.open('POST',u,true);
		x.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		x.setRequestHeader("Content-Length",p.length);
		x.setRequestHeader("Connection","close");
		ss=true;
	} else {
		x.open('GET',u,ss);
		if (!document.all)
			x.overrideMimeType("text/plain");
	}
	if (ss)
		x.onreadystatechange=function() { jsongot(x,f,v,s); };
	x.send(p);
	if (!ss)
		this.callback=jsongot(x,f,v,s);
}
function jsongot(x,v,f,s) {
	if (x.readyState==4) {
		if (x.status!=200) {
			if (s)
				alert('Unable to connect');
			x=false;
		} else
			x=eval('('+x.responseText+')');
		if (f)
			this.callback=f(x,v);
	}
}
function sendmessage(t) {
	t=t.parentNode;
	u=t.getElementsByTagName('input');
	w=t.getElementsByTagName('textarea');
	u='%*http://www.seoheap.com/inc/message.php?e='+urlencode(u[0].value)+'&m='+urlencode(w[0].value);
	t=t.getElementsByTagName('h2')[0];
	t.innerHTML='<img src="http://www.seoheap.com/images/loading2.gif"/>';
	jsonfetch(u,t,function(x,v) {
		if (x)
			x=(x[0]=='Sent');
		if (x)
			setTimeout("closelightbox()",{'timer':2500});
		v.innerHTML=(x ? 'Sent' : 'Not Sent');
	});	
}
function getdate(t,sep) {
	sep=((typeof(sep)=='undefined') ? '/' : sep);
	t=t.getElementsByTagName('select');
	return t[0].value+sep+t[1].value+sep+t[2].value;
}
function replaceurl(u,v) {
	if (u=='')
		u=location.href.toString();
	n=u.split('?');
	if (n.length==1)
		n[1]='';
	w=n[1].split('&');
	b='';
	for (k in w) {
		c=w[k].split('=');
		if (typeof(v[c[0]])!='undefined')
			c[1]=(v[c[0]]==null) ? null : urlencode(v[c[0]]);
		v[c[0]]=null;
		if (c[1]!=null)
			b+=c[0]+'='+c[1]+'&';
		w[k]=null;
	}
	for (k in v) {
		if (v[k]!=null)
			b+=urlencode(k)+'='+urlencode(v[k])+'&';
	}
	b=b.replace(/&$/,'');
	if (b!='')
		n[0]+='?'+b;
	return n[0];
}
function uasort(arr,sorter) {
    var val=[],key=[],tmpk,tmp,k='',i=0,out={};
    var srt=function(key,val) {
        for (var i=val.length-2;i>=0;i--) {
            for (var j=0;j<=i;j++) {
                if ((sorter(val[j+1],val[j]))<0) {
                    tmp=val[j];
                    val[j]=val[j+1];
                    val[j+1]=tmp;
                    tmpk=key[j];
                    key[j]=key[j+1];
                    key[j+1]=tmpk;
                }
            }
        }
    };
    for (k in arr) {
        if (arr.hasOwnProperty(k)) {
            val.push(arr[k]);
            key.push(k);
        }
    }
    try {
        srt(key,val);
    } catch (e) {
        return false;
    }
    for (i=0;i<val.length;i++) {
        out[key[i]]=val[i];
    }
    return out;
}
function number_format(number,decimals,dec_point,thousands_sep) {
    number=(number+'').replace(',','').replace(' ','');
    var n=!isFinite(+number) ? 0 : +number,prec=!isFinite(+decimals) ? 0 : Math.abs(decimals),
	sep=(typeof(thousands_sep)==='undefined') ? ',' : thousands_sep,dec=(typeof(dec_point)==='undefined') ? '.' : dec_point,s='',
	toFixedFix=function(n,prec) {
		var k=Math.pow(10,prec);
		return ''+Math.round(n*k)/k;
	};
    s = (prec ? toFixedFix(n, prec) : ''+Math.round(n)).split('.');
    if (s[0].length > 3)
        s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,sep)
	if ((s[1] || '').length<prec) {
		s[1]=(s[1] || '');
		s[1]+=new Array(prec-s[1].length+1).join('0');
	}
	return s.join(dec);
}
function rol(t) {
  try {
	s='';
	t.href.replace(/^https?:\/\/([^\/]+)/i,function (m,k,a) { s=k; });
	if (s=='')
		return true;
	v=location.href.toString();
	v=v.replace(/^https?:\/\/[^\/]+\/?([^\&\/]*).*?$/,'$1');
    var pageTracker=_gat._getTracker("UA-8003491-5");
    pageTracker._trackEvent('Outbound Links',s,v);
	setTimeout('location.href="'+t.href+'"',100);
	return false;
  }catch(err){}
  return true;
}
var a=document.body;
if (a!=null) {
	a=a.getElementsByTagName("a");
	for (k in a) {
		if (a[k].onclick==null && typeof(a[k])!='undefined' && a[k].href!=null) {
			if (!(a[k].href.match(/^https?:\/\/(www\.)?(dev\.)?seoheap\.com/i)) && (a[k].href.match(/^http/i)))
				a[k].setAttribute('target','_blank');
		}
	}
}
jQuery('.hover').each(function() {
	if (jQuery(this).attr('onclick'))
		return;
	jQuery(this).click(function() {
		document.location=jQuery(this).find('a')[0].href;						   
	});
});
document.writeln(unescape('%3Cdiv%20id%3D%22contactus%22%3E%0A%3Ch2%3EContact%20Us%3C/h2%3E%0A%3Ctable%3E%0A%3Ctr%3E%3Ctd%20style%3D%22text-align%3Aright%3Bvertical-align%3Amiddle%22%3EEmail%3C/td%3E%3Ctd%3E%3Cinput%20type%3D%22text%22%20style%3D%22width%3A300px%22/%3E%3C/td%3E%3C/tr%3E%0A%3Ctr%3E%3Ctd%3EMessage%3C/td%3E%3Ctd%3E%3Ctextarea%20style%3D%22height%3A110px%3Bmin-height%3A110px%3B%22%3E%3C/textarea%3E%3C/td%3E%3C/tr%3E%0A%3C/table%3E%0A%3Cinput%20type%3D%22button%22%20onclick%3D%22sendmessage%28this%29%22%20value%3D%22Send%20Message%22/%3E%0A%3C/div%3E'));

