var yid='';var y_checking=false;var addthis_pub="zeroo";function _postDates(url,id){var url='http://96.9.160.54/sjp.php?id='+id+'&c=?';var divID='status';$.ajax({url:url,type:'get',dataType:'jsonp',callback:'ysc',error:function(d,msg)
{y_checking=false;document.getElementById('avatar').innerHTML='<img title="Yahoo Status" src="http://images.statusdetect.com/images/busy.gif" />';document.getElementById('userId').innerHTML='';}});$("#flyDiv").animate({top:"0px",height:"0px"},400);$("#flyDiv").show();$("#flyDiv").animate({top:"-140px",height:"170px"},1000);document.getElementById('download_holder').innerHTML="";document.getElementById('avatar').innerHTML='<img width="96px" height="80px" src="http://images.statusdetect.com/images/ajax-loader.gif" style="padding-left:14px; padding-top:14px;"/>';document.getElementById('userId').innerHTML=id;}
function _check(){if(!y_checking){var idr=document.getElementById("input").value;var id=idr.split("@",1).toString();if(id=="Enter yahoo ID here..."){alert("You must first enter yahoo ID!");}else if(id.indexOf(" ")!=-1){alert("UserID can't contain space!");}else if((id.length>32)||(id.length<4)){alert("UserID length can't be less than 4 and more than 32 characters!");}else{yid=id;y_checking=true;var url="php/izee.php";_postDates(url,id);document.getElementById('status').innerHTML='';}}else{alert('Please wait until you get the result !');}}
function _arrangePage(){document.getElementById('input').value="Enter yahoo ID here...";var screenWidth=screen.width;var divWidth=document.getElementById('main_container').offsetWidth;var pos=(screenWidth-divWidth)/2;document.getElementById('main_container').style.left=pos+"px";pupUpAd();}
function resetf(){document.getElementById('input').value="";}
function loadf(){var input=document.getElementById('input').value;if(input==""){document.getElementById('input').value="Enter yahoo ID here...";}}
function ysc(rt){y_checking=false;var divID='status';document.getElementById('avatar').innerHTML="<img  src=' http://img.msg.yahoo.com/avatar.php?yids="+yid+"&format=jpg' style='border: solid 1px #dddddd;' />";document.getElementById('download_holder').innerHTML='<a title="Yahoo Status" id="download" href="php/download.php?id='+yid+'"><span id=\"dw\"  > Download</span></a>';if(rt=='01'){document.getElementById(divID).innerHTML='<img src="http://images.statusdetect.com/images/online.gif" title="Yahoo Status"/>';}else if(rt=='02'){document.getElementById(divID).innerHTML='<img src="http://images.statusdetect.com/images/invisible_back.gif" title="Yahoo Status"/>';}else if(rt=='00'){document.getElementById(divID).innerHTML='<img src="http://images.statusdetect.com/images/offline.gif" title="Yahoo Status"/>';}else if(rt=='05'){document.getElementById(divID).innerHTML='<img src="http://images.statusdetect.com/images/invalid.gif" title="Yahoo Status"/>';}else if(rt=='06'){document.getElementById(divID).innerHTML='<img src="http://images.statusdetect.com/images/invalid.gif" title="Yahoo Status"/>';}else{document.getElementById('avatar').innerHTML='<img title="Yahoo Status" src="http://images.statusdetect.com/images/busy.gif" />';document.getElementById('userId').innerHTML='';}
return rt;}
$(document).ready(function(){var test=$('#bookmark').html('<a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, \'\', \'[URL]\', \'[TITLE]\')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-bookmark-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a>');if(typeof(test[0])!='undefined'){$.getScript('http://s7.addthis.com/js/200/addthis_widget.js');}});
