if(typeof com=="undefined")var com=new Object();if(typeof com.deconcept=="undefined")com.deconcept=new Object();if(typeof com.deconcept.util=="undefined")com.deconcept.util=new Object();if(typeof com.deconcept.FlashObjectUtil=="undefined")com.deconcept.FlashObjectUtil=new Object();com.deconcept.FlashObject=function(swf,id,w,h,ver,c,useExpressInstall,quality,redirectUrl,detectKey){this.DETECT_KEY=detectKey?detectKey:'detectflash';this.skipDetect=com.deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(swf)this.setAttribute('swf',swf);if(id)this.setAttribute('id',id);if(w)this.setAttribute('width',w);if(h)this.setAttribute('height',h);if(ver)this.setAttribute('version',new com.deconcept.PlayerVersion(ver.toString().split(".")));if(c)this.addParam('bgcolor',c);var q=quality?quality:'high';this.addParam('quality',q);this.setAttribute('redirectUrl','');if(redirectUrl)this.setAttribute('redirectUrl',redirectUrl);if(useExpressInstall){var expressInstallReqVer=new com.deconcept.PlayerVersion([6,0,65]);var installedVer=com.deconcept.FlashObjectUtil.getPlayerVersion();if(installedVer.versionIsValid(expressInstallReqVer)&&!installedVer.versionIsValid(this.getAttribute('version'))){this.setAttribute('doExpressInstall',true);}}else{this.setAttribute('doExpressInstall',false);}}
com.deconcept.FlashObject.prototype.setAttribute=function(name,value){this.attributes[name]=value;}
com.deconcept.FlashObject.prototype.getAttribute=function(name){return this.attributes[name];}
com.deconcept.FlashObject.prototype.getAttributes=function(){return this.attributes;}
com.deconcept.FlashObject.prototype.addParam=function(name,value){this.params[name]=value;}
com.deconcept.FlashObject.prototype.getParams=function(){return this.params;}
com.deconcept.FlashObject.prototype.getParam=function(name){return this.params[name];}
com.deconcept.FlashObject.prototype.addVariable=function(name,value){this.variables[name]=value;}
com.deconcept.FlashObject.prototype.getVariable=function(name){return this.variables[name];}
com.deconcept.FlashObject.prototype.getVariables=function(){return this.variables;}
com.deconcept.FlashObject.prototype.getParamTags=function(){var paramTags="";var key;var params=this.getParams();for(key in params){paramTags+='<param name="'+key+'" value="'+params[key]+'" />';}
return paramTags;}
com.deconcept.FlashObject.prototype.getVariablePairs=function(){var variablePairs=new Array();var key;var variables=this.getVariables();for(key in variables){variablePairs.push(key+"="+variables[key]);}
return variablePairs;}
com.deconcept.FlashObject.prototype.getHTML=function(){var flashHTML="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");}
flashHTML+='<embed type="application/x-shockwave-flash" src="'+this.getAttribute('swf')+'" width="'+this.getAttribute('width')+'" height="'+this.getAttribute('height')+'" id="'+this.getAttribute('id')+'" name="'+this.getAttribute('id')+'"';var params=this.getParams();for(var key in params){flashHTML+=' '+key+'="'+params[key]+'"';}
pairs=this.getVariablePairs().join("&");if(pairs.length>0){flashHTML+=' flashvars="'+pairs+'"';}
flashHTML+='></embed>';}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
flashHTML+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute('width')+'" height="'+this.getAttribute('height')+'" id="'+this.getAttribute('id')+'">';flashHTML+='<param name="movie" value="'+this.getAttribute('swf')+'" />';var tags=this.getParamTags();if(tags.length>0){flashHTML+=tags;}
var pairs=this.getVariablePairs().join("&");if(pairs.length>0){flashHTML+='<param name="flashvars" value="'+pairs+'" />';}
flashHTML+='</object>';}
return flashHTML;}
com.deconcept.FlashObject.prototype.write=function(elementId){if(this.skipDetect||this.getAttribute('doExpressInstall')||com.deconcept.FlashObjectUtil.getPlayerVersion().versionIsValid(this.getAttribute('version'))){if(document.getElementById){if(this.getAttribute('doExpressInstall')){this.addVariable("MMredirectURL",escape(window.location));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}
document.getElementById(elementId).innerHTML=this.getHTML();}}else{if(this.getAttribute('redirectUrl')!=""){document.location.replace(this.getAttribute('redirectUrl'));}}}
com.deconcept.FlashObjectUtil.getPlayerVersion=function(){var PlayerVersion=new com.deconcept.PlayerVersion(0,0,0);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){PlayerVersion=new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else if(window.ActiveXObject){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");PlayerVersion=new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}catch(e){}}
return PlayerVersion;}
com.deconcept.PlayerVersion=function(arrVersion){this.major=parseInt(arrVersion[0])||0;this.minor=parseInt(arrVersion[1])||0;this.rev=parseInt(arrVersion[2])||0;}
com.deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major)return false;if(this.major>fv.major)return true;if(this.minor<fv.minor)return false;if(this.minor>fv.minor)return true;if(this.rev<fv.rev)return false;return true;}
com.deconcept.util.getRequestParameter=function(param){var q=document.location.search||document.location.href.hash;if(q){var startIndex=q.indexOf(param+"=");var endIndex=(q.indexOf("&",startIndex)>-1)?q.indexOf("&",startIndex):q.length;if(q.length>1&&startIndex>-1){return q.substring(q.indexOf("=",startIndex)+1,endIndex);}}
return"";}
if(Array.prototype.push==null){Array.prototype.push=function(item){this[this.length]=item;return this.length;}}
var getQueryParamValue=com.deconcept.util.getRequestParameter;var FlashObject=com.deconcept.FlashObject;var ShoutReq;var nRefresh=30000;var shout_channelcat=0;var shout_channelid=0;var shout_guildid=0;var shout_timer;var shout_styleid=0;function ShoutBox(guildid,channelcat,channelid,shout_text,url_base,styleid)
{if(window.XMLHttpRequest){ShoutReq=new XMLHttpRequest();}else if(window.ActiveXObject){ShoutReq=new ActiveXObject("Microsoft.XMLHTTP");}else{}
ShoutReq.onreadystatechange=processStateChangeShout;shoutstr='/GuildShout.php?shout_styleid='+styleid+'&timestamp='+new Date().getTime()+'&guildid='+guildid+'&cat='+channelcat+'&id='+channelid+'&shout='+escape(shout_text);ShoutReq.open('GET',shoutstr,true);ShoutReq.send(null);return false;}
function processStateChangeShout()
{var ShoutCell=document.getElementById('ShoutBox');if(ShoutReq.readyState==4){if(ShoutReq.status==200){ShoutCell.innerHTML=ShoutReq.responseText;}else{}}}
function doShout(guildid)
{e=document.getElementById('shout_text');ShoutBox(guildid,0,0,e.value,'',shout_styleid);e.value='';}
function doShoutRefresh(guildid)
{ShoutBox(guildid,0,0,"",'',shout_styleid);}
function redrawShout()
{setShoutChannel(shout_guildid,shout_channelcat,shout_channelid);}
function setShoutChannel(guildid,channelcat,channelid,styleid)
{shout_guildid=guildid;shout_channelcat=channelcat;shout_channelid=channelid;shout_styleid=(styleid==null)?0:styleid;clearTimeout(shout_timer);doGenShoutRefresh();}
function setShoutChannelStr(str)
{var channel_array=str.split(',');setShoutChannel(channel_array[0],channel_array[1],channel_array[2]);}
function doGenShout()
{e=document.getElementById('shout_text');ShoutBox(shout_guildid,shout_channelcat,shout_channelid,e.value,'',shout_styleid);e.value='';}
function doGenShoutRefresh()
{ShoutBox(shout_guildid,shout_channelcat,shout_channelid,"",'',shout_styleid);}
var ProfileReq;var FriendReq;var TagsReq;var MemberReq;var TaggedReq;var PostReq;var loadURL;var displayURL;var loadFriend;var loadAll;var ShiftMode=false;var OtherSelected=0;var active_friend_tab;var Tagged_with;var Tagged_offset;var Tagged_condense;var Tagged_likedislike;var GameConfigs_servers=new Array();var GameConfigs_regions=new Array();var GameConfigs_regions_prefix=new Array();var GameConfigs_classes=new Array();var GameConfigs_factions=new Array();function ShoutConfigSet(form)
{var read=0;var write=0;if(form.read.checked)
{read=1;}
if(form.write.checked)
{write=1;}
new Ajax.Request('/ShoutConfig.php',{method:'get',parameters:{read:read,write:write,setconfig:1}});Modalbox.hide();return false;}
function ShoutConfig()
{Modalbox.show('/ShoutConfig.php',{title:'ShoutBox Settings',width:400,slideDownDuration:0.5});return false;}
function ValidateAddProf()
{try
{if((document.forms.addprof.name.value.length<2)&&(document.forms.addprof.req_name.value==1))
{alert('Please enter a name for your character.');return false;}}
catch(err)
{}
try
{if((document.forms.addprof.server.value.length<2)&&(document.forms.addprof.req_server.value==1))
{alert('Please enter a server name.');return false;}}
catch(err)
{}
return true;}
function InitAddProf()
{try{document.forms.addprof.name.focus();}
catch(err)
{}}
function SubmitProfile(form)
{try
{if(form.bgload.value=="1")
{e=document.getElementById('WorkingDiv');hidecell('bgload_vanish');e.innerHTML='<b>Retrieving profile...</b> <img style="position:relative; top: 8px;" src="/images2/misc/loading.gif">';}}
catch(err)
{}
return PostAndReload('/cafe_ProfHome.php',form);}
function registertovote()
{overlib('Once you become a member, you can submit and vote on content.  Take a minute to <a href="/signup.php">sign up</a>! If you already have a membership, please login.',STICKY,CAPTION,'Register to Vote!');return false;}
function resetSnapPreview()
{}
function vote(oldscore,dir,id,original)
{e=document.getElementById('rb'+id);score=oldscore+dir-original;e.innerHTML=score;upButton=document.getElementById('iV'+id);downButton=document.getElementById('dV'+id);gcButton=document.getElementById('gc'+id);gcButton.className='nScore';if(dir>=1)
{upButton.innerHTML='<img class="arrowImage" border="0" src="/images2/bookmarks/activatedUp.gif" alt="You voted this up" />';downButton.innerHTML='<a href="javascript:vote('+oldscore+',-1,\''+id+'\','+original+');"><img class="arrowImage" border="0" src="/images2/bookmarks/unactivatedDown.gif" alt="Vote this down" /></a>';}
else
{upButton.innerHTML='<a href="javascript:vote('+oldscore+',1,\''+id+'\','+original+')"><img class="arrowImage" border="0" src="/images2/bookmarks/unactivatedUp.gif" alt="Vote this up" /></a>';downButton.innerHTML='<img class="arrowImage" border="0" src="/images2/bookmarks/activatedDown.gif" alt="You voted this down" />';}
if(window.XMLHttpRequest){TaggedReq=new XMLHttpRequest();}else if(window.ActiveXObject){TaggedReq=new ActiveXObject("Microsoft.XMLHTTP");}else{return;}
TaggedReq.open("GET","/FavoriteVote.php?xml=1&t="+new Date().getTime()+"&id="+id+"&v="+dir);TaggedReq.send(null);}
function CatSelect()
{gameselect=document.getElementById('gameselect');walkselect=document.getElementById('walkselect');toolselect=document.getElementById('toolselect');if((gameselect.checked)||(walkselect.checked)||(toolselect.checked))
{showcell('gamename');}
else
{hidecell('gamename');}}
function ValidateBook()
{gameselect=document.getElementById('gameselect');genselect=document.getElementById('genselect');webselect=document.getElementById('webselect');hardselect=document.getElementById('hardselect');entselect=document.getElementById('entselect');offselect=document.getElementById('offselect');walkselect=document.getElementById('walkselect');toolselect=document.getElementById('toolselect');if((!gameselect.checked)&&(!genselect.checked)&&(!webselect.checked)&&(!hardselect.checked)&&(!entselect.checked)&&(!offselect.checked)&&(!walkselect.checked)&&(!toolselect.checked))
{alert('Please choose a category for your link.');return false;}
if((gameselect.checked)||(walkselect.checked)||(toolselect.checked))
{try{GameName=document.forms.bookform.GameName.value;if(GameName.indexOf('>')!=-1)
{alert("Please choose a game from the drop-down list.");return false;}}
catch(err)
{}}
return true;}
function InitBookForm()
{hidecell('gamename');}
function DropUser(user){var ret=TriggerAndRefreshAll('/zDropFriend.php?del='+user,'cafe_FormattedProfile.php');if(ret){writeFlashFriendsObject();}
return ret;}
function display_gallery(userid)
{}
function log_out()
{ht=document.getElementsByTagName("html");ht[0].style.filter="progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";if(confirm('Are you sure you want to log out?'))
{return true;}
else
{ht[0].style.filter="";return false;}}
function AddTagForm()
{hidecell('AddTagButton');var TagsContent=document.getElementById('TagsContent');TagsContent.innerHTML="<FORM ACTION=\"/zAddTag.php\" METHOD=\"POST\"><B>I</B><SELECT NAME=\"TagLike\"><OPTION VALUE=2>Am</OPTION><OPTION VALUE=1 SELECTED>Like</OPTION><OPTION VALUE=0>Dislike</OPTION></SELECT><INPUT TYPE=TEXT NAME=\"TagText\"><P><INPUT TYPE=IMAGE SRC=\"/images2/buttons/TagMe.gif\"></FORM>";}
function WallFormSubmit(form)
{if(form.message.value.length>250)
{alert("Wall messages must be less than 250 characters in length.");return false;}
return true;}
function GameFormSubmit(form)
{if(OtherSelected==1)
{GameNameAlt=form.GameNameAlt.value;if(GameNameAlt.length<3)
{alert("Game name must be at least 3 characters.");return false;}}
else
{try{GameName=form.GameName.value;if(GameName.indexOf('>')!=-1)
{alert("Please choose a game from the drop-down list.");return false;}}
catch(err)
{}}
try{GuildName=form.Guild.value;ServerName=form.ServerName.value;if((GuildName.indexOf('<')!=-1)||(GuildName.indexOf('[')!=-1)||(GuildName.indexOf('>')!=-1)||(GuildName.indexOf(']')!=-1)||(GuildName.indexOf('?')!=-1)||(GuildName.indexOf('&')!=-1)||(GuildName.indexOf('\"')!=-1))
{alert("The following characters are not allowed in guild names: <>[]?&\"\'");return false;}
if(GuildName.indexOf(',')!=-1)
{alert("Please remove the comma (\",\") character from your guild name.  If you would like to list more than one guild, you may make additional entries for the same game.");return false;}
if(GuildName.indexOf('/')!=-1)
{alert("Please remove the slash (\"/\") character from your guild name.  If you would like to list more than one guild, you may make additional entries for the same game.");return false;}
if((ServerName.indexOf('<')!=-1)||(ServerName.indexOf('[')!=-1)||(ServerName.indexOf('>')!=-1)||(ServerName.indexOf(']')!=-1)||(ServerName.indexOf('?')!=-1)||(ServerName.indexOf('&')!=-1)||(ServerName.indexOf('\"')!=-1))
{alert("The following characters are not allowed in server names: <>[]?&\"");return false;}
if(ServerName.indexOf(',')!=-1)
{alert("Please remove the comma (\",\") character from your Server name.  If you would like to list more than one server you play on, you may make additional entries for the same game.");return false;}
if(ServerName.indexOf('/')!=-1)
{alert("Please remove the slash (\"/\") character from your Server name.  If you would like to list more than one server you play on, you may make additional entries for the same game.");return false;}}
catch(err)
{}
submitForm(form.action,form,refreshProfileBuilderGameSuccess,refreshProfileBuilderError);Modalbox.hide();}
function InitGameForm()
{var init_GameNameEdit=document.forms.gameform.init_GameNameEdit.value;var init_GuildRole=document.forms.gameform.init_GuildRole.value;var init_Recruiting=document.forms.gameform.init_Recruiting.value;if(init_GameNameEdit)
{hidecell('GameNameAlt');hidecell('GameNameAlt_label');}
hidecell('GameName_server');hidecell('GameName_server_label');hidecell('GameName_region');hidecell('GameName_region_label');hidecell('GameName_classes');hidecell('GameName_classes_label');hidecell('GameName_factions');hidecell('GameName_factions_label');if(init_Recruiting==0)
{hidecell('Join');hidecell('Join_label');}}
function showcell(name)
{try{var id_table=document.getElementById(name).style;if(navigator.userAgent.indexOf("Firefox")!=-1)
{id_table.display="table-cell";}
else
{id_table.display="block";}}
catch(err)
{}}
function hidecell(name)
{try{var id_table=document.getElementById(name).style;id_table.display="none";}
catch(err)
{}
return true;}
function PastPresentChange(value)
{if(value==0){Element.show('WhenStart');Element.show('WhenEnd');}
else if(value==3){Element.hide('WhenStart');Element.hide('WhenEnd');}
else{Element.show('WhenStart');Element.hide('WhenEnd');}}
function GameNameConfig(gamename,server,regions,prefix,classes,factions)
{GameConfigs_servers[gamename]=server;GameConfigs_regions[gamename]=regions;GameConfigs_regions_prefix[gamename]=prefix;GameConfigs_classes[gamename]=classes;GameConfigs_factions[gamename]=factions;}
function show_element(element){try{Element.show(element);}
catch(err)
{}}
function hide_element(element){try{Element.hide(element);}
catch(err)
{}}
function GameNameChange(value){if(value=="(Other)"){OtherSelected=1;show_element('GameNameAlt');show_element('GameNameAlt_label');}
else if(OtherSelected==1)
{OtherSelected=0;hide_element('game_name_alt');}
if(GameConfigs_classes[value])
{var html='<select name="GameNameClass" id="GameNameClass">';html+='<option value="any">(any)</option>';var classlist=GameConfigs_classes[value].split(',');for(i=0;i<classlist.length;i++){html+='<option value="'+classlist[i]+'">'+classlist[i]+'</option>';}
html+='</select>';show_element('GameName_classes')
show_element('GameName_classes_label')
try
{e=document.getElementById('GameName_classes');e.innerHTML=html;}
catch(err)
{}}
else
{hide_element('GameName_classes')
hide_element('GameName_classes_label')}
if(GameConfigs_factions[value])
{var html='<select name="GameNameFaction" id="GameNameFaction">';html+='<option value="any">(any)</option>';var factionlist=GameConfigs_factions[value].split(',');for(i=0;i<factionlist.length;i++){html+='<option value="'+factionlist[i]+'">'+factionlist[i]+'</option>';}
html+='</select>';try
{e=document.getElementById('GameName_factions');e.innerHTML=html;}
catch(err)
{}
show_element('GameName_factions');show_element('GameName_factions_label');}
else
{hide_element('GameName_factions');hide_element('GameName_factions_label');}
if(GameConfigs_servers[value])
{show_element('GameName_server');show_element('GameName_server_label');}
else
{hide_element('GameName_server');hide_element('GameName_server_label');}
if(GameConfigs_regions[value])
{var html='<select class="modalmenu" name="GameNameRegion" id="GameNameRegion" tabindex="5">';var regionlist=GameConfigs_regions[value].split(',');var regionlist_prefix=GameConfigs_regions_prefix[value].split(',');for(i=0;i<regionlist.length;i++){html+='<option value="'+regionlist_prefix[i]+'">'+regionlist[i]+'</option>';}
html+='</select>';show_element('GameName_region_label');try
{e=document.getElementById('GameName_region');e.innerHTML=html;if(servers_by_game){function filter_by_region(e){var stuff=servers_by_game[$('GameName').value];var opts;if($('GameNameRegion').value=='EU-'){opts=stuff.filter(is_EU).map(clean_EU);}else{opts=stuff.filter(is_not_EU);}
make_autocompleter(opts);}}
if(servers_by_game){setTimeout("make_autocompleter(servers_by_game[$('GameName').value].filter(is_not_EU));",300);Event.observe('GameNameRegion','change',filter_by_region);}
setTimeout("document.getElementById('GameNameRegion').focus();",100);}
catch(err)
{}
show_element('GameName_region');}
else
{hide_element('GameName_region');hide_element('GameName_region_label');}
return true;}
function GuildRoleChange(value)
{if(value==0)
{hidecell('GuildAd');hidecell('Guild');hidecell('Guild_label');hidecell('tag');hidecell('tag_label');}
else if(value==3)
{showcell('GuildAd');showcell('Guild_label');showcell('Guild');showcell('tag_label');showcell('tag');showcell('Join');showcell('Join_label');}
else
{showcell('Guild');showcell('Guild_label');showcell('tag_label');showcell('tag');hidecell('GuildAd');}}
function RecruitingChange(value)
{if(value==1)
{showcell('Join_label');showcell('Join');}
else
{hidecell('Join_label');hidecell('Join');}}
function TrackKeyDown(event)
{if(event.keyCode==16)
{ShiftMode=true;}}
function TrackKeyUp(event)
{if(event.keyCode==16)
{ShiftMode=false;}}
function aim_window(userid)
{imwindow('aim',userid,400,200);}
function yahoo_window(userid)
{imwindow('yahoo',userid,400,200);}
function msn_window(userid)
{imwindow('msn',userid,400,200);}
function icq_window(userid)
{imwindow('icq',userid,500,450);}
function skype_window(userid)
{imwindow('skype',userid,400,285);}
function xfire_window(userid)
{imwindow('xfire',userid,400,200);}
function loadFriends_Viewed()
{loadFriends(viewing_userid,2);}
function loadTaggedMembers(tagstring,offset,condense,likedislike)
{Tagged_with=tagstring;Tagged_offset=offset;Tagged_condense=condense;Tagged_likedislike=likedislike;if(window.XMLHttpRequest){TaggedReq=new XMLHttpRequest();}else if(window.ActiveXObject){TaggedReq=new ActiveXObject("Microsoft.XMLHTTP");}else{return;}
TaggedReq.onreadystatechange=processStateChangeTagged;TaggedReq.open("GET","/zMemberFetch_XML.php?timestamp="+new Date().getTime()+"&tag="+tagstring+"&offset="+offset+"&condense="+condense+"&likedislike="+likedislike);TaggedReq.send(null);}
function loadTags(userid)
{return;if(window.XMLHttpRequest){TagsReq=new XMLHttpRequest();}else if(window.ActiveXObject){TagsReq=new ActiveXObject("Microsoft.XMLHTTP");}else{}
TagsReq.onreadystatechange=processStateChangeTags;TagsReq.open("GET","/cafe_XML_Tags.php?timestamp="+new Date().getTime()+"&ShowUser="+userid);TagsReq.send(null);}
function loadFriends(userid,friend_tab)
{writeFlashFriendsObject();return true;}
function loadProfileTab(num,url,name)
{name=unescape(name);var ProfileTabCell=document.getElementById('ProfileTab'+num);ProfileTabCell.className='activeTab';ProfileTabCell.innerHTML="<img BORDER=0 src=\"/images2/Cafe/TabLeft.gif\" />"+name+"<img BORDER=0 src=\"/images2/Cafe/TabRight.gif\"  align=\"top\" />";var ProfileActiveCell=document.getElementById('ProfileTab'+CurrentActiveTab);ProfileActiveCell.className='inactiveTab';ProfileActiveCell.innerHTML="<img BORDER=0 src=\"/images2/Cafe/TabLeft.gif\" /><a href=\"#\" onClick=\"loadProfileTab("+CurrentActiveTab+",'"+CurrentActiveTabURL+"','"+escape(CurrentActiveTabName)+"');\">"+CurrentActiveTabName+"</a><img BORDER=0 src=\"/images2/Cafe/TabRight.gif\" />";CurrentActiveTab=num;CurrentActiveTabName=name;CurrentActiveTabURL=url;loadProfile(viewing_userid,CurrentActiveTabURL);return false;}
function loadMember(userid)
{if(window.XMLHttpRequest){MemberReq=new XMLHttpRequest();}else if(window.ActiveXObject){MemberReq=new ActiveXObject("Microsoft.XMLHTTP");}else{}
MemberReq.onreadystatechange=processStateChangeMember;MemberReq.open("GET","/cafe_XML_Member.php?timestamp="+new Date().getTime()+"&ShowUser="+userid);MemberReq.send(null);return false;}
function reloadInTab(URL)
{return loadProfile(viewing_userid,URL);}
function PostAndReloadProfile(f)
{return PostAndReload('/cafe_FormattedProfile.php',f);}
function TriggerAndRefreshAll(background_url,new_url)
{TriggerAndRefresh(background_url,new_url,true,true);}
function TriggerAndRefresh(background_url,new_url,reload_friend,reload_all)
{loadURL=new_url;displayURL=false;loadFriend=reload_friend;loadAll=reload_all;if(window.XMLHttpRequest){PostReq=new XMLHttpRequest();}else if(window.ActiveXObject){PostReq=new ActiveXObject("Microsoft.XMLHTTP");}else{}
PostReq.onreadystatechange=processStateChangePost;PostReq.open('GET',background_url,true);PostReq.send(null);return false;}
function TriggerAndRefreshProfile(background_url,reload_friend)
{return TriggerAndRefresh(background_url,'/cafe_FormattedProfile.php',reload_friend);}
function TriggerAndRefreshHome(background_url,reload_friend)
{return TriggerAndRefresh(background_url,'/cafe_ContentHome.php',reload_friend);}
function PostAndReload(Post_URL,f,do_displayURL)
{loadURL=Post_URL;if(do_displayURL)
{displayURL=true;}
else
{displayURL=false;}
if(window.XMLHttpRequest){PostReq=new XMLHttpRequest();}else if(window.ActiveXObject){PostReq=new ActiveXObject("Microsoft.XMLHTTP");}else{}
var formData='',elem='';for(var s=0;s<f.elements.length;s++){elem=f.elements[s];if((elem.type=="radio")||(elem.type=="checkbox")){if(elem.checked){if(formData!=''){formData+='&';}
formData+=elem.name+"="+elem.value;}}
else
{if(formData!=''){formData+='&';}
formData+=elem.name+"="+elem.value;}}
PostReq.onreadystatechange=processStateChangePost;var strAction=f.action;if(f.method.toLowerCase()=='get')
{strAction=strAction+"?"+formData;}
PostReq.open(f.method,strAction,true);if(f.method.toLowerCase()=='post')
{PostReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded");PostReq.send(formData);}
else
{PostReq.send(null);}
return false;}
function loadProfileMain(userid)
{try{active_friend_tab=friend_tab;window.document.main.SetVariable("my_id",self_userid);window.document.main.SetVariable("other_id",userid);window.document.main.TGotoFrame("_root",0);}
catch(err)
{}
return loadProfile(userid,'/cafe_FormattedProfile.php');}
function loadProfile(userid,SectionURL)
{if(ShiftMode)
{ShiftMode=false;return true;}
if(SectionURL=='/cafe_FormattedProfile.php')
{CurrentActiveTab=0;}
if(window.XMLHttpRequest){ProfileReq=new XMLHttpRequest();}else if(window.ActiveXObject){ProfileReq=new ActiveXObject("Microsoft.XMLHTTP");}else{}
if(viewing_userid!=userid)
{loadMember(userid);loadFriends(userid,2);setShoutChannel(0,2,userid);}
if(SectionURL.indexOf('?')!=-1)
{separator='&';}
else
{separator='?';}
ProfileReq.open("GET",SectionURL+separator+"timestamp="+new Date().getTime()+"&ShowUser="+userid,false);ProfileReq.send(null);processStateChangeProfile();if(SectionURL=='/cafe_ContentHome.php')
{display_gallery(0);}
if(SectionURL.indexOf('cafe_AddGameProf.php')!=-1)
{InitAddProf();}
viewing_userid=userid;resetSnapPreview();return false;}
function processStateChangePost()
{if(PostReq.readyState==4){if(PostReq.status==200){try{var xml=PostReq.responseXML;var error_tag=xml.getElementsByTagName("error");var message=error_tag[0].getAttribute('message');if(message.length>1)
{var MessageCell=document.getElementById('WorkingDiv');MessageCell.innerHTML='<span class="highlight">'+message+'</span>';showcell('bgload_vanish');return false;}}
catch(err)
{}
if(!displayURL)
{reloadInTab(loadURL);}
else
{var ProfileCell=document.getElementById('ProfileContent');ProfileCell.innerHTML=PostReq.responseText;}
if(loadAll)
{loadMember(viewing_userid);loadFriends(viewing_userid,1);setShoutChannel(0,2,viewing_userid);}
else if(loadFriend)
{loadFriends(self_userid,1);}}}}
function processStateChangeProfile()
{var ProfileCell=document.getElementById('ProfileContent');if(ProfileReq.readyState==4){if(ProfileReq.status==200){ProfileCell.innerHTML=ProfileReq.responseText;}else{alert("Problem: "+ProfileReq.statusText);}}}
function processStateChangeTags()
{var TagsCell=document.getElementById('TagsContent');var last_like=-1;if(TagsReq.readyState==4){if(TagsReq.status==200){var xml=TagsReq.responseXML;var html="";var tags=xml.getElementsByTagName("tag");var tagArr=new Array();for(var i=0;tags&&i<tags.length;i++){tag_name=tags[i].getAttribute('name');tag_popularity=tags[i].getAttribute('popularity');tag_url=tags[i].getAttribute('url');tag_likedislike=tags[i].getAttribute('likedislike');if(last_like!=tag_likedislike)
{if(tag_likedislike==0)html+=" Dislikes ";else if(tag_likedislike==1)html+=" Likes ";else html+=" ...is tagged with ";}
last_like=tag_likedislike;html+="<font size=\""+tag_popularity+"\"><A HREF=\""+tag_url+"\">"+tag_name+"</A></font> ";}
TagsCell.innerHTML=html;}else{alert("Problem: "+MemberReq.statusText);}}}
function processStateChangeTagged()
{var TaggedCell=document.getElementById('TaggedMembers');var last_like=-1;if(TaggedReq.readyState==4){if(TaggedReq.status==200){var xml=TaggedReq.responseXML;var html="<table align=\"center\" border=0 cellpadding=6><tr>";var members_tag=xml.getElementsByTagName("members");var more=members_tag[0].getAttribute('more');var members=xml.getElementsByTagName("member");var memberArr=new Array();for(var i=1;members&&i<=members.length;i++){username=members[(i-1)].getAttribute('username');avatar=members[(i-1)].getAttribute('avatar');qualifier=members[(i-1)].getAttribute('qualifier');likedislike=parseInt(members[(i-1)].getAttribute('likedislike'));if(!Tagged_condense)
{html+="<td align=\"center\" valign=\"bottom\"><a href=\"/member/"+escape(username)+"\"><img src=\""+avatar+"\" border=0></a></img><br><SPAN CLASS=\"smallfont\"><a href=\"/member/"+escape(username)+"\">"+username+"</STRONG></a><br>"+qualifier+"</SPAN></td>";}
else
{if((i%8)==1)
{html+="<td valign=top style=\"text-align:left; padding-left:24px;\">";}
html+="<SPAN CLASS=\"smallfont\"><a href=\"/member/"+escape(username)+"\" style=\"text-transform:capitalize\">"+username+"</a></span>";if((likedislike>=0)&&(likedislike<2))
{html+="<img src=\"/images2/Cafe/likedislike"+likedislike+".gif\">";}
html+="<br>";if((i%8)==0)
{html+="</td>";}}}
if(!Tagged_condense)
{html+='</tr></table><p> <a href="#" onClick="loadTaggedMembers(Tagged_with,Tagged_offset,1,Tagged_likedislike);" CLASS="button">List View</a>';}
else
{html+='</tr></table><p> <a href="#" onClick="loadTaggedMembers(Tagged_with,Tagged_offset,0,Tagged_likedislike);" CLASS="button">Show Avatars</a>';}
if(Tagged_condense)step=64;else step=8;if(Tagged_offset>0)
{prev_offset=Tagged_offset-step;if(prev_offset<0)prev_offset=0;html+=' <a href="#" onClick="loadTaggedMembers(Tagged_with,prev_offset,Tagged_condense,Tagged_likedislike);" CLASS="button">&laquo;Previous</a>';}
if(more>0)
{html+=' <a href="#" onClick="loadTaggedMembers(Tagged_with,Tagged_offset+step,Tagged_condense,Tagged_likedislike);" CLASS="button">Next&raquo;</a>';}
html+='</td></tr>';TaggedCell.innerHTML=html;}else{alert("Problem: "+MemberReq.statusText);}}}
function processStateChangeMember()
{var TabCell=document.getElementById('TabCell');var MemberCell=document.getElementById('MemberCell');var AvatarCell=document.getElementById('AvatarCell');var FameCell=document.getElementById('FameCell');var FriendCell=document.getElementById('FriendCell');if(MemberReq.readyState==4){if(MemberReq.status==200){var xml=MemberReq.responseXML;var skip_member=1;var member_opentag="";var member_closetag="";try{var member_name=xml.getElementsByTagName('Name')[0].firstChild.nodeValue;var member_self=xml.getElementsByTagName('Self')[0].firstChild.nodeValue;var member_title=xml.getElementsByTagName('Title')[0].firstChild.nodeValue;var member_avatar_url=xml.getElementsByTagName('AvatarURL')[0].firstChild.nodeValue;var member_last=xml.getElementsByTagName('Last')[0].firstChild.nodeValue;var member_joined=xml.getElementsByTagName('Joined')[0].firstChild.nodeValue;var member_userid=xml.getElementsByTagName('UserID')[0].firstChild.nodeValue;var member_posts=xml.getElementsByTagName('Posts')[0].firstChild.nodeValue;var member_fame=xml.getElementsByTagName('Fame')[0].firstChild.nodeValue;var member_famelevelname=xml.getElementsByTagName('FameLevelName')[0].firstChild.nodeValue;var member_famepercentnext=xml.getElementsByTagName('FamePercentNext')[0].firstChild.nodeValue;var member_famenextlevel=xml.getElementsByTagName('FameNextLevel')[0].firstChild.nodeValue;var member_friendstatus=xml.getElementsByTagName('FriendStatus')[0].firstChild.nodeValue;try{var member_profileviews=xml.getElementsByTagName('ProfileViews')[0].firstChild.nodeValue;var member_lastviewwhen=xml.getElementsByTagName('LastViewWhen')[0].firstChild.nodeValue;}
catch(err)
{}
skip_member=false;try{var member_opentag=xml.getElementsByTagName('UserOpenTag')[0].firstChild.nodeValue;var member_closetag=xml.getElementsByTagName('UserCloseTag')[0].firstChild.nodeValue;}
catch(err)
{}}
catch(err)
{skip_member=true;}
if(!skip_member){var html="";if(member_self==1)
{AvatarCell.innerHTML="<a rel=\"nofollow\" href=\"#\"  onclick=\"Modalbox.show('/profile/uploadAvatarIFrame.php', {title: '', width: 600}); return false;\"    onmouseout=\"return nd();\" onMouseOver=\"return overlib('Click this image to edit your avatar')\"><img src=\""+member_avatar_url+"\" border=0  align=\"left\"></a>\n"
html="<span class=\"cafe_head2\">Welcome</span>";}
else
{AvatarCell.innerHTML="<IMG SRC=\""+member_avatar_url+"\" BORDER=0  ALIGN=\"left\">\n";}
html+="<BR><span class=\"cafe_head\">";if(member_opentag)
{html+="<BR>"+unescape(member_opentag)+member_name+unescape(member_closetag);}
else
{html+=member_name;}
html+="</SPAN>";html+="<BR>"+member_title+"\n"
+"<BR><span class=\"smallfont\">Last visit: "+member_last
+"<BR>Joined: "+member_joined
+"<BR>Posts: "+member_posts+" (Find <A HREF=\"/search.php?do=finduser&amp;u="+member_userid+"\" rel=\"nofollow\">posts</A> or <A HREF=\"/search.php?do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;searchuser="+member_name+"\" rel=\"nofollow\">threads</A> by "+member_name+")";if(member_self==1)
{html+="<BR>Views: "+member_profileviews;if(member_profileviews>0)
{html+=" (last: "+member_lastviewwhen+")";}
html+="<br><A HREF=\"/zAccount.php\" onmouseout=\"return nd();\" onmouseover=\"return overlib('Edit your account settings, such as email preferences and password.',CAPTION,'Account Settings');\">Account Settings</A>";}
else
{html+="<br>Send <a rel=\"nofollow\" href=\"/private.php?do=newpm&u="+member_userid+"\"><img alt=\"Send private message to "+member_name+"\" style=\"position:relative;top:2px;\" src=\"/images2/icons/PM.png\" border=\"0\" /></a>";}
document.title="gamerDNA Member Page: "+member_name;html+="</span>";MemberCell.innerHTML=html;html="<table CLASS=\"ContentTable\" STYLE=\"margin-top: 8px;\" CELLPADDING=9>"
+"<tr><td align=\"Center\">"
+"Total Fame:<BR> "+member_fame+"</TD>"
+"<td COLSPAN=1 align=\"left\">"
+"<table style=\"border:1px groove\" cellpadding=\"0\" cellspacing=\"1\" border=\"0\" width=\"100%\" ALIGN=\"CENTER\">"
+"<tr><td width=\""+member_famepercentnext+"%\" style=\"background-color:#84652a; font-size:10px\" title=\"Fame Earned\">&nbsp;"
+"</td><td width=\"100\" style=\"background-color:#ffcc66; font-size:10px\" title=\""+member_famepercentnext+"Fame Earned\">&nbsp;</td></tr>"
+"</table><P class=\"smallfont\">Level: "+member_famelevelname+" ("+Math.round(member_famepercentnext)+"% to "+member_famenextlevel+")</P></TD>"
+"<TD  ALIGN=\"center\"><IMG SRC=\"/images2/Cafe/Eye.gif\"><BR><a href=\"/zFame.php\" onmouseout=\"return nd();\" onmouseover=\"return overlib(\'+100 For entering your first game<BR>&nbsp;+200 Per player who respects you (based on highest number of respecters ever)<BR>&nbsp;+50     For each friend, up to 10 friends<BR>&nbsp;+200 For each new member invited by you<BR>&nbsp;+10 Per forum post with a positive rating\',CAPTION,'You may increase your fame:');\">View<BR>Fame History</a>"
+"</TD></TR></TABLE>";FameCell.innerHTML=html;if(self_userid)
{if(member_self==1)
{FriendCell.innerHTML="<A HREF=\"/zAddFriend.php\" onmouseout=\"return nd();\" onmouseover=\"return overlib('Invite a friend to join your friends list using their email address or Guild Cafe member name.  Also view pending friend invites.',CAPTION,'Invite a Friend');\"><IMG SRC=\"/images2/Cafe/invite.gif\" BORDER=0 WIDTH=90 HEIGHT=90></A>";}
else if((member_friendstatus==0)&&(member_self==0))
{FriendCell.innerHTML="<A HREF=\"#\" onClick=\"nd(); return TriggerAndRefreshAll(\'/zInviteFriend.php?FriendUID="+member_userid+"\','/cafe_FormattedProfile.php');\" onmouseout=\"return nd();\" onmouseover=\"return overlib('Add this member to your friends list')\"><IMG SRC=\"/images2/Cafe/notfriend.gif\" ALIGN=\"RIGHT\" BORDER=\"0\"></A>";}
else if(member_friendstatus==1)
{FriendCell.innerHTML="<A onClick=\"nd();\" onmouseout=\"return nd();\" onmouseover=\"return overlib('This member is on your friends list')\"><IMG SRC=\"/images2/Cafe/friend.gif\" ALIGN=\"RIGHT\" BORDER=\"0\"></A>";}
else if(member_friendstatus==2)
{FriendCell.innerHTML="<IMG SRC=\"/images2/Cafe/almostfriend.gif\">";}}}
html="<table class=\"TabHolder\" BORDER=0 CELLSPACING=0 CELLPADDING=0><tr>";var tabs=xml.getElementsByTagName("tab");var tabArr=new Array();for(var i=0;tabs&&i<tabs.length;i++){var tab_text=tabs[i].getAttribute('text');var tab_order=tabs[i].getAttribute('order');var tab_url=tabs[i].getAttribute('url');if(CurrentActiveTab!=tab_order)
{html+="<td VALIGN=top class=\"inactiveTab\" id=\"ProfileTab"+i+"\"><img BORDER=0 src=\"/images2/Cafe/TabLeft.gif\"  />";html+="<a href=\"#\" onClick=\"loadProfileTab("+tab_order+",'"+tab_url+"','"+escape(tab_text)+"')\">"+tab_text+"</a>";}
else
{html+="<td VALIGN=top  class=\"activeTab\" id=\"ProfileTab"+i+"\"><img BORDER=0 src=\"/images2/Cafe/TabLeft.gif\"  />";html+=tab_text;CurrentActiveTabURL=tab_url;CurrentActiveTabName=tab_text;}
html+="<img BORDER=0 src=\"/images2/Cafe/TabRight.gif\"  /></td>";}
html+="</tr></table>";TabCell.innerHTML=html;}else{alert("Problem: "+TabReq.statusText);}}}
function processStateChangeFriends()
{var FriendsCell=document.getElementById('FriendsContent');if(FriendsReq.readyState==4){if(FriendsReq.status==200){var xml=FriendsReq.responseXML;var html="";var friends=xml.getElementsByTagName("friend");var friendArr=new Array();var j=0;for(var i=0;friends&&i<friends.length;i++){var friend_name=friends[i].getAttribute('name');var friend_userid=friends[i].getAttribute('userid');html+="<TABLE BORDER=0 WIDTH=100%><tr><td><A HREF=\"/member/"+friend_name+"\" onmouseover=\"return overlib('View "+friend_name+"\\\'s page');\" onmouseout=\"return nd();\" onClick=\"nd();return loadProfile("+friend_userid+",'/cafe_FormattedProfile.php');\">"+friend_name+"</A></td><td ALIGN=RIGHT>";try{var friend_yahoo=friends[i].getAttribute('yahoo');}catch(err){var friend_yahoo="";}
try{var friend_icq=friends[i].getAttribute('icq');}catch(err){var friend_icq="";}
try{var friend_msn=friends[i].getAttribute('msn');}catch(err){var friend_msn="";}
try{var friend_aim=friends[i].getAttribute('aim');}catch(err){var friend_aim="";}
try{var friend_skype=friends[i].getAttribute('skype');}catch(err){var friend_skype="";}
if(friend_aim)
{html+="<a href=\"#\" onmouseover=\"return overlib('Send an instant message via AIM to "+friend_name+"',CAPTION,'AIM');\" onmouseout=\"return nd();\" onclick=\"nd();aim_window('"+friend_userid+"'); return false;\"><img HSPACE=3 src=\"/images/misc/im_aim_tiny.gif\" border=\"0\" /></a>";}
if(friend_yahoo)
{html+="<a href=\"#\" onmouseover=\"return overlib('Send an instant message via Yahoo to "+friend_name+"',CAPTION,'Yahoo IM');\" onmouseout=\"return nd();\" onclick=\"nd();yahoo_window('"+friend_userid+"'); return false;\"><img HSPACE=3 src=\"/images/misc/im_yahoo_tiny.gif\" border=\"0\" /></a>";}
if(friend_msn)
{html+="<a href=\"#\" onmouseover=\"return overlib('Send an instant message via MSN to "+friend_name+"',CAPTION,'MSN');\" onmouseout=\"return nd();\" onclick=\"nd();msn_window('"+friend_userid+"'); return false;\"><img HSPACE=3 src=\"/images/misc/im_msn_tiny.gif\" border=\"0\" /></A>";}
if(friend_icq)
{html+="<a href=\"#\" onmouseover=\"return overlib('Send an instant message via ICQ to "+friend_name+"',CAPTION,'ICQ');\" onmouseout=\"return nd();\" onclick=\"nd();icq_window('"+friend_userid+"'); return false;\"><img HSPACE=3 src=\"/images/misc/im_icq_tiny.gif\" border=\"0\" /></a>";}
if(friend_skype)
{html+="<a href=\"#\" onmouseover=\"return overlib('Send an instant message via Skype to "+friend_name+"',CAPTION,'Skype');\" onmouseout=\"return nd();\" onclick=\"nd();skype_window('"+friend_userid+"'); return false;\"><img HSPACE=3 src=\"/images/misc/im_skype_tiny.gif\" border=\"0\" /></a>";}
if(active_friend_tab==2)
{html+="</td></tr></TABLE>";}
else
{html+="</td><TD WIDTH=26 ALIGN=\"right\">...</TD><TD ALIGN=\"right\" WIDTH=11><A HREF=\"#\" onmouseover=\"return overlib('Remove <B>"+friend_name+"</B> from your friend list');\" onmouseout=\"return nd();\" onClick=\"nd();if(confirm('Are you sure you want to delete "+friend_name+" from your friends list?')) return TriggerAndRefreshAll('/zDropFriend.php?ShowUser="+friend_userid+"','cafe_FormattedProfile.php'); else return false;\" ><img src=\"/images/misc/trashcan_small.gif\" BORDER=0 ALIGN=RIGHT /></A></TD></tr></TABLE>";}}
FriendsCell.innerHTML=html;}else{alert("Problem: "+FriendsReq.statusText);}}}
function hidify_showify_Respect(e_table,e_img,alt_less,alt_more){if(document.getElementById){var id_table=document.getElementById(e_table).style;var id_img=document.getElementById(e_img);if(navigator.userAgent.indexOf("Firefox")!=-1){if(id_table.display=="table-cell"){id_table.display="none";id_img.src="/images/buttons/VoteNow.gif";id_img.alt=alt_more;}
else{id_table.display="table-cell";id_img.src="/images/buttons/tinycancel.gif";id_img.alt=alt_less;}}
else{if(id_table.display=="block"){id_table.display="none";id_img.src="/images/buttons/VoteNow.gif";id_img.alt=alt_more;}
else{id_table.display="block";id_img.src="/images2/buttons/TinyCancel.gif";id_img.alt=alt_less;}}
return false;}
else{return true;}}
function hidify_showify_Story(e_table,e_img,alt_less,alt_more){if(document.getElementById){var id_table=document.getElementById(e_table).style;var id_img=document.getElementById(e_img);if(navigator.userAgent.indexOf("Firefox")!=-1){if(id_table.display=="table-cell"){id_table.display="none";id_img.src="/images2/buttons/TinyEdit.gif";id_img.alt=alt_more;}
else{id_table.display="table-cell";id_img.src="/images2/buttons/TinyCancel.gif";id_img.alt=alt_less;}}
else{if(id_table.display=="block"){id_table.display="none";id_img.src="/images2/buttons/TinyEdit.gif";id_img.alt=alt_more;}
else{id_table.display="block";id_img.src="/images2/buttons/TinyCancel.gif";id_img.alt=alt_less;}}
return false;}
else{return true;}}
function hidify_showify_Loc(e_table,e_img,alt_less,alt_more){if(document.getElementById){var id_table=document.getElementById(e_table).style;var id_img=document.getElementById(e_img);if(navigator.userAgent.indexOf("Firefox")!=-1){if(id_table.display=="table-cell"){id_table.display="none";id_img.src="/images2/buttons/TinyEditLoc.gif";id_img.alt=alt_more;}
else{id_table.display="table-cell";id_img.src="/images2/buttons/TinyCancel.gif";id_img.alt=alt_less;}}
else{if(id_table.display=="block"){id_table.display="none";id_img.src="/images2/buttons/TinyEditLoc.gif";id_img.alt=alt_more;}
else{id_table.display="block";id_img.src="/images2/buttons/TinyCancel.gif";id_img.alt=alt_less;}}
return false;}
else{return true;}}
function hidify_showify_about(e_table,e_img,alt_less,alt_more){if(document.getElementById){var id_table=document.getElementById(e_table).style;var id_img=document.getElementById(e_img);if(navigator.userAgent.indexOf("Firefox")!=-1){if(id_table.display=="table-cell"){id_table.display="none";id_img.src="/images2/buttons/AddIntro.gif";id_img.alt=alt_more;}
else{id_table.display="table-cell";id_img.src="/images2/buttons/TinyCancel.gif";id_img.alt=alt_less;}}
else{if(id_table.display=="block"){id_table.display="none";id_img.src="/images2/buttons/AddIntro.gif";id_img.alt=alt_more;}
else{id_table.display="block";id_img.src="/images2/buttons/TinyCancel.gif";id_img.alt=alt_less;}}
return false;}
else{return true;}}
function before_panel_load(){}
function after_panel_load(){$('profileBuilder').show();}
function PopupPic(sPicURL,height,width){if(!height)height=600;else height+=100;if(!width)width=800;window.open(sPicURL,"","resizable=1,scrollbars=1,HEIGHT="+height+",WIDTH="+width);}