
function tourexplain(element,arg)
{var x=findPosX(element);var y=findPosY(element);if(document.getElementById('CloudShareExplain')!=null)
{document.body.removeChild(document.getElementById('CloudShareExplain'));}
if(arg!=0)
{if(document.getElementById('CloudShareExplain')==null)
{var d=document.body.ownerDocument.createElement('div');d.setAttribute('id','CloudShareExplain');d.className="explain";d.style.top=(y+25)+"px";d.style.left=(x+25)+"px";d.innerHTML='Loading<img src="http://cloudshare.eu/includes/period_ani.gif" alt="..." />';document.body.appendChild(d);var req=new sack();req.requestFile="http://cloudshare.eu/?action=tour&cmd="+arg;req.onCompletion=function()
{var resp=req.response;d.innerHTML=unescape(resp);delete resp;};req.runAJAX('t=1');delete req;}}}
function placearrow(x,y,explain,link)
{var d=document.body.ownerDocument.createElement('div');d.style.position="absolute";d.style.top=y+"px";d.style.left=x+"px";d.style.zIndex="10002";if(link.length>0)
{d.style.cursor="pointer";}
d.innerHTML='<img src="http://cloudshare.eu/includes/tourarrow.png" alt="" '+(link.length>0?'onclick="'+link+';"':'')+' onmouseover="tourexplain(this, '+explain+');" onmouseout="tourexplain(this, 0);" />';document.body.appendChild(d);}
function init()
{if(arguments.callee.done)return;arguments.callee.done=true;if(_timer)clearInterval(_timer);var param=gup('action');if(0==1)
{if(param=="tour")
{placearrow(85,20,0+""+1,'location.href=\'http://cloudshare.eu/profile\'');}
else if(param=="profile")
{placearrow(215,145,0+""+2,'location.href=\'http://cloudshare.eu/profile/personal\'');}
else if(param=="personal")
{placearrow(725,175,0+""+3,'');placearrow(470,430,0+""+4,'');placearrow(745,640,0+""+5,'');placearrow(610,840,0+""+6,'selectall(\'category\');');placearrow(530,1045,0+""+7,'');placearrow(320,1970,0+""+8,'');}}
else if(0==2)
{if(param=="tour")
{placearrow(85,20,0+""+1,'location.href=\'http://cloudshare.eu/profile\'');}
else if(param=="profile")
{placearrow(205,215,0+""+2,'location.href=\'http://cloudshare.eu/profile/promote\'');}
else if(param=="promote")
{placearrow(550,165,0+""+3,'');placearrow(500,500,0+""+4,'');placearrow(460,770,0+""+5,'');}}
else if(0==3)
{if(param=="tour")
{placearrow(140,20,0+""+1,'location.href=\'http://cloudshare.eu/advertise\'');}
else if(param=="advertise")
{placearrow(585,335,0+""+2,'');placearrow(270,965,0+""+3,'');}}}
if(document.addEventListener)
{document.addEventListener("DOMContentLoaded",init,false);}
if(/WebKit/i.test(navigator.userAgent))
{var _timer=setInterval(function()
{if(/loaded|complete/.test(document.readyState))
{init();}},10);}