$(document).ready(function() {
$('.allcat').mouseover(function(){
$(this).addClass('allcaton');
});
$('.allcat').mouseout(function(){
$(this).removeClass('allcaton');
});
if ($(document).height() < screen.height)
{
$('.content').css("min-height", $(document).height()-363+'px');
}
});
$(window).resize(function() {
if ($(document).height() < screen.height)
{
$('.content').css("min-height", $(document).height()-363+'px');
}
});
jQuery.fn.extend({
inputInit: function(msg)
{
$(this).focus(function() { if (!$(this).next().html() || ($(this).next().tagName() != 'span'))
{
$(this).after(''+msg+'');
$(this).next().hide();
$(this).next().animate({width:'toggle'},200);
} else
{
if ($(this).next().css('display') == 'none') $(this).next().animate({width:'toggle'},200);
}
$(this).blur(function()
{
$(this).inputRemove();
});
})},
inputMsg: function(msg)
{
$(this).next().html(''+msg+'');
},
inputRemove: function()
{
if ($(this).next().children('img').length == 0) $(this).next().hide();
},
inputLoading: function()
{
if (!$(this).next().html() || ($(this).next().tagName() != 'span')) $(this).focus();
$(this).inputRemoveLoading();
$(this).next().append('
');
$(this).next().css("padding-right", "4px");
},
inputOk: function()
{
if (!$(this).next().html() || ($(this).next().tagName() != 'span')) $(this).focus();
$(this).inputRemoveLoading();
if (!$(this).next().html() || ($(this).next().tagName() != 'span')) $(this).focus();
$(this).next().append('
');
$(this).next().css("padding-right", "4px");
$(this).next().find('font').hide();
},
inputError: function()
{
if (!$(this).next().html() || ($(this).next().tagName() != 'span')) $(this).inputInit();
$(this).inputRemoveLoading();
if (!$(this).next().html() || ($(this).next().tagName() != 'span')) $(this).focus();
$(this).next().append('
');
$(this).next().css("padding-right", "4px");
$(this).next().find('font').show();
},
inputRemoveLoading: function()
{
$(this).next().children('img').remove();
$(this).next().css("padding-right", "30px");
}
});
$.fn.tagName = function() {return this.get(0).tagName.toLowerCase();}
// LOAD COLORBOX
document.write('');
function chartObjShow(obj)
{
vz = (obj.vz.checked)?obj.vz.value:0;
v = (obj.v.checked)?obj.v.value:0;
a = (obj.a.checked)?obj.a.value:0;
if (!a) $('#legenda').hide(); else $('#legenda').show();
if (!v) $('#legendv').hide(); else $('#legendv').show();
if (!vz) $('#legendvz').hide(); else $('#legendvz').show();
var chart = new FusionCharts("/charts/ScrollLine2D.swf", "gCID", $('#gCID').attr('width'), $('#gCID').attr('height'), "0", "0");
chart.setDataURL("/xml/xml.php?args=chart=ScrollLine2D|noanimation=1|vz="+vz+"|a="+a+"|v="+v);
chart.render("chartdiv");
}
function datePickerCompare()
{
if ($("#datePickerTo").datepicker("getDate") > $("#datePickerFrom").datepicker("getDate"))
{
alert("Invalid date interval");
return false;
}
return true;
}
$.convertMenu = function(){
if ($('#menu'))
{
$('#menu li').each(function(i,obj)
{
$(obj).html("
"+$(obj).html()+"
");
// $(obj).click(function() {location.href = this.getElementsByTagName('a')[0].href});
$(obj).mouseover(function() {this.className = 'on';})
$(obj).mouseout(function() {this.className = '';})
}
);
}
}
$.convertSelect = function()
{
if (!$('#categories')) return;
$('#catselect').html('in the category');
$('#catselect').append('');
k=1;
$('#categories *').each(function(i, obj)
{
if (obj.tagName == 'OPTGROUP')
{
if (i!=0) $('#categori').append(NODE);
if (k++<4) h = "180px"
else h="130px";
if (k == $('#categories *').size()) h=0;
if (k == 8) h="";
NODE = $('').css('height',h).append(''+obj.label+'');
}
if (obj.tagName == 'OPTION')
{
LI = $('')
.append('')
.append(''+obj.text+'')
$(NODE).append(LI);
}
}
);
if (typeof NODE != "undefined")
{
$('#categori').append(NODE);
$('#categori').append('');
$('#categori').hide();
$('#catselect').click(function() { showCat(this); });
}
}
$.inputs = function()
{
if ($('div.inputcontainer'))
$('div.inputcontainer').each(function(i, INPUTOBJ)
{
INPUTOBJINPUT = $(INPUTOBJ).children('input')[0];
INPUTOBJSPAN = $(INPUTOBJ).children('span')[0];
INPUTREQUIREDIMAGE = $('
');
INPUTDIV = $('');
INPUTHINT = $('
');
$(INPUTHINT).tipsy({fallback: INPUTOBJSPAN.innerHTML,gravity:'w',html: true });
$(INPUTDIV).append(INPUTOBJINPUT);
$(INPUTDIV).append(INPUTHINT);
$(INPUTOBJ).empty();
$(INPUTOBJ).append(INPUTDIV);
if ($(INPUTOBJINPUT).attr('name') != 'website') $(INPUTOBJ).append(INPUTREQUIREDIMAGE);
$(INPUTOBJINPUT).restorable();
}
);
}
$.fn.restorable = function(){
$(this).data("originalValue", $(this).val());
$(this).focus(function(){
if($(this).val() == $(this).data("originalValue")){
$(this).val("");
};
});
$(this).blur(function(){
if($(this).val() == ""){
$(this).val($(this).data("originalValue"));
}
});
return this;
}
jQuery(document).ready(function()
{
$.convertMenu();
$.convertSelect();
$.inputs();
// OTHER STUFF
if (jQuery('.pickadate').length > 0)
{
$('.pickadate').mouseover(function() {$(this).css('border', '1px solid #ccc')});
$('.pickadate').mouseout(function() {$(this).css('border', '1px solid #eee')});
$('.pickadate').toggle(
function()
{
$('.calendars').show();
$(this).css('background', 'url(/img/site/goup.gif) right no-repeat');
},
function()
{
$('.calendars').hide();
$(this).css('background', 'url(/img/site/godown.gif) right no-repeat');
}
);
}
if (jQuery('.pickadatestable').length > 0)
{
$('.pickadatestable').mouseover(function() {$(this).css('border', '1px solid #ccc')});
$('.pickadatestable').mouseout(function() {$(this).css('border', '1px solid #eee')});
$('.pickadatestable').toggle(
function()
{
$('.calendars').show();
$(this).css('background', 'url(/img/site/goup.gif) right no-repeat');
},
function()
{
$('.calendars').hide();
$(this).css('background', 'url(/img/site/godown.gif) right no-repeat');
}
);
}
// CONVERT CHECKBOX
$('.checkstyle').wrap('').after('
');
$.each($('.checkstyle'), function()
{
$(this.parentNode).children('img').click(function()
{
if ($(this.parentNode).children('input').attr("checked"))
{
$(this.parentNode).children('img').attr("src", "/img/site/checkbox.gif");
$(this.parentNode).children('input').attr("checked", 0);
}
else
{
$(this.parentNode).children('img').attr("src", "/img/site/checkbox-on.gif");
$(this.parentNode).children('input').attr("checked", 1);
}
return false;
});
if ($(this).attr("checked")) $(this.parentNode).children('img').attr("src", "/img/site/checkbox-on.gif");
$(this).click(function()
{
if ($(this).attr("checked")) $(this.parentNode).children('img').attr("src", "/img/site/checkbox-on.gif");
else $(this.parentNode).children('img').attr("src", "/img/site/checkbox.gif");
});
$(this).hide();
});
// $('.ui-state-highlight').corner('5px');
}
);
var RecaptchaOptions = {
theme : 'clean'
};
function matchPass(obj)
{
if (obj.value != $('#opass').attr('value')) return false;
return true;
}
function checkIfEmailExists(obj)
{
$(obj).parent().parent().children('img').attr('src', '/img/site/inputloading.gif');
obj.id = 'checkIfEmailExists';
$.ajax(
{
type:'post',
url:'/?p=index&ajax=1',
data: {check: 'email', value: obj.value},
success: function(response)
{
if (response == 1)
{
obj = $('#checkIfEmailExists');
$(obj).parent().parent().children('img').attr('src', '/img/site/inputerror.gif');
$(obj).parent().parent().children('img').attr('width', '42');
$(obj).parent().parent().children('img').attr('height', '31');
}
else
{
obj = $('#checkIfEmailExists');
$(obj).parent().parent().children('img').attr('src', '/img/site/inputok.gif');
}
}
});
return 2;
}
function checkIfUrlExists(obj)
{
$(obj).parent().parent().children('img').attr('src', '/img/site/inputloading.gif');
obj.id = 'checkIfUrlExists';
$.ajax(
{
type:'post',
url:'/?p=index&ajax=1',
data: {check: 'website', value: obj.value},
success: function(response)
{
if (response == 1)
{
obj = $('#checkIfUrlExists');
$(obj).parent().parent().children('img').attr('src', '/img/site/inputerror.gif');
$(obj).parent().parent().children('img').attr('width', '42');
$(obj).parent().parent().children('img').attr('height', '31');
}
else
{
obj = $('#checkIfUrlExists');
$(obj).parent().parent().children('img').attr('src', '/img/site/inputok.gif');
}
}});
return 2;
}
function checkFieldV2(obj, args)
{
checks = args.split("|");
for (j=0;j document.body.offsetHeight){ // all but Explorer Mac
xScroll = document.body.scrollWidth;
yScroll = document.body.scrollHeight;
} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
xScroll = document.body.offsetWidth;
yScroll = document.body.offsetHeight;
}
var windowWidth, windowHeight;
if (self.innerHeight) { // all except Explorer
if(document.documentElement.clientWidth){
windowWidth = document.documentElement.clientWidth;
} else {
windowWidth = self.innerWidth;
}
windowHeight = self.innerHeight;
} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
windowWidth = document.documentElement.clientWidth;
windowHeight = document.documentElement.clientHeight;
} else if (document.body) { // other Explorers
windowWidth = document.body.clientWidth;
windowHeight = document.body.clientHeight;
}
// for small pages with total height less then height of the viewport
if(yScroll < windowHeight){
pageHeight = windowHeight;
} else {
pageHeight = yScroll;
}
// for small pages with total width less then width of the viewport
if(xScroll < windowWidth){
pageWidth = xScroll;
} else {
pageWidth = windowWidth;
}
return [pageWidth,pageHeight];
}
function expand(object)
{
if ($(object).parent().parent().find('.url p').css("display") == 'none')
{
$(object).parent().parent().find('.url p').show();
$(object).parent().parent().find('.url span').show();
$(object).parent().parent().find('.vz p').show();
}
else
{
$(object).parent().parent().find('.url p').hide();
$(object).parent().parent().find('.url span').hide();
$(object).parent().parent().find('.vz p').hide();
}
return false;
}
function selectCat(obj)
{
$('#selcat').attr('value',obj.getElementsByTagName('input')[0].value);
obj.className = '';
DIV = $('#categori').clone();
$('#catselect').empty().append(obj.innerHTML).append(DIV);
if ($.browser.msie) showCat();
return false;
}
function showCat(obj)
{
if ($('#catselect div')[0].style.display == 'none')
{
$('#catselect div')[0].style.display = '';
$('#catselect').attr('class', 'caton');
jQuery('embed').css("visibility", "hidden");
jQuery('object').css("visibility", "hidden");
}
else
{
$('#catselect div')[0].style.display = 'none';
$('#catselect').attr('class', 'cat');
jQuery('embed').css("visibility", "visible");
jQuery('object').css("visibility", "visible");
}
}
function slideMenu(object)
{
divObj = object.parentNode.parentNode.getElementsByTagName('div')[2];
divObj.id = Math.floor(Math.random()*121);
if (divObj.style.display == '' || divObj.style.display == 'block')
{
jQuery(object).children().attr("src", "/img/stat/slideup.gif");
jQuery('#'+divObj.id).slideUp('slow', function()
{
jQuery('#'+divObj.id).hide();
}
);
}
else
{
jQuery(object).children().attr("src", "/img/stat/slidedown.gif");
jQuery('#'+divObj.id).slideDown('slow', function()
{
jQuery('#'+divObj.id).show();
}
);
}
return false;
}
function setSelect(id, value)
{
$.each($('#'+id+' option'), function()
{
if ($(this).attr("value") == value) $(this).attr("selected", 1);
}
);
}
function setChecked(id, value)
{
if ($('#'+id).val() == value) $('#'+id).attr("checked", 1);
}
function form_set_select(sel_name, form_name, sel_index){
jQuery('form').each(function(i, obj)
{
if(jQuery(obj).attr("name") == form_name)
{
jQuery(obj).children().each(function(item,opt)
{
if (jQuery(opt).attr("name") == 'fk_cat')
{
jQuery(opt).find('option').each(function(item,val)
{
if(jQuery(val).attr("value") == sel_index) jQuery(opt).attr("selectedIndex", item);
});
}
});
}
});
if ((form_name != "") && (typeof eval("document." + form_name + "." + sel_name) == "object")) {
sel_length = eval("document." + form_name + "." + sel_name + ".length");
for (optionCounter = 0; optionCounter < sel_length; optionCounter++)
if (eval("document." + form_name + "." + sel_name + ".options[optionCounter].value == '" + sel_index + "'")) eval("document." + form_name + "." + sel_name + ".selectedIndex = optionCounter");
}
}
var CHECK;
function colorTable(table)
{
var rows = table.getElementsByTagName('tr');
k=0;
for (i=1;iPlease wait ... loading ...

');
$('#loading .ui-widget-overlay').css("width", $(document).width()+'px');
$('#loading .ui-widget-overlay').css("height", $(document).height()+'px');
$('#loading .ui-widget-overlay').css("zIndex", "1001");
$('#loading .ui-widget-overlay').css("position", "fixed");
$('#loading .ui-widget-overlay').css("top", "0");
$('#loading .ui-widget-overlay').css("left", "0");
$('#loading .loadMessage').css("position", "fixed");
$('#loading .loadMessage').css("left", ($(document).width()/2-100)+'px');
$('#loading .loadMessage').css("top", ($(window).height()/2-100)+'px');
$('#loading .loadMessage').css("zIndex", "1002");
$('#loading .loadMessage').css("padding", "30px");
$('#loading .loadMessage').css("text-align", "center");
}
else $('#loading').remove();
}
function goLoading(id, remove)
{
if (remove == 1)
{
if ($('formloading')) $('formloading').setStyle({display:'none'});
$(id).setStyle({display:''});
}
else
{
if (!$('formloading'))
{
loading = new Element('img', {src:'/img/site/formloading.gif', alt:'Loading', id:'formloading'});
$(id).parentNode.appendChild(loading);
} else $('formloading').setStyle({display:''});
$(id).setStyle({display:'none'});
}
}
function errorForm(MSG)
{
$('sc').setStyle({display:'none'});
$('error').innerHTML =MSG;
Effect.Appear('error', {duration: 0.5,
afterFinish: function()
{
Effect.Fade('error', {duration: 0.5, delay:2});
}
});
}
function textlimit(text, id, max, obj)
{
len = text.length;
if (len > max)
{
text = text.substr(0, max);
obj.value = text;
len = max;
}
$('#'+id).html(max-len);
}
function checkField(obj, args, errorspanid)
{
ret = validateInput(args, obj);
if (!ret)
{
jQuery('#'+errorspanid).html('
');
return false;
}
else
{
jQuery('#'+errorspanid).html('
');
return true;
}
}
function showLangMenu(obj)
{
if (obj.getElementsByTagName('ul')[0].style.display == '')
{
obj.getElementsByTagName('ul')[0].style.display = 'none';
}
else
{
obj.getElementsByTagName('ul')[0].style.display = '';
}
return false;
}
var fastSelectTimeout;
function fastSelect()
{
if ($('#fastselect').css("display") == 'block')
{
$('#fastselect').hide();
clearTimeout(fastSelectTimeout);
return false;
}
POS = findInputPos($('#selb')[0]);
$('#fastselect').css("display",'block');
off = ($('#fastselect').attr('offsetWidth')-8);
$('#fastselect').css("left",(POS[0]-off)+'px');
jQuery('#fastselect ul').mouseover(function()
{
if (fastSelectTimeout) clearTimeout(fastSelectTimeout);
});
jQuery('#fastselect ul').mouseout(function()
{
if (fastSelectTimeout) clearTimeout(fastSelectTimeout);
fastSelectTimeout = setTimeout(function() {
jQuery('#fastselect').hide();
}, 2000);
});
$('#fastselect').click(function()
{
$('#fastselect').hide();
});
fastSelectTimeout = setTimeout(function() {
$('#fastselect').hide();
}, 2000
);
return false;
}
function slideFeedback()
{
if (!jQuery('#feedbackform')) return;
if ($('#feedbackform').css("top") == '0px')
{
jQuery('embed').css("visibility", "visible");
jQuery('object').css("visibility", "visible");
if ($.browser.msie && $.browser.version.substr(0,1)<7) jQuery('#feedbackform').animate({top: -363},300);
else jQuery('#feedbackform').animate({top: -360},300);
}
else
{
jQuery('#feedbackform').animate({top: 0},300,'linear');
jQuery('embed').css("visibility", "hidden");
jQuery('object').css("visibility", "hidden");
}
return false;
}
function sendFeedback(formobj)
{
if (!checkField(formobj.email,'email','emailicon'))
{
alert('Enter a valid e-mail address');
return false;
}
if (!checkField(formobj.text,'minlen=20','descicon'))
{
alert('The message must contain minimum 20 characters');
return false;
}
vaca = $('#topicar').attr('value');
$.ajax({
type: "POST",
url:'/remote/forms.php',
data: {
cmd: "feedback",
email: formobj.email.value,
pass: formobj.text.value,
domain: formobj.domain.value,
topic:vaca,
browser:$('feedBackInfo').innerHTML
},
success: function(result)
{
}
});
$('#feedmsg').html('FeedBack:
Thank You!
Message successfully sent.
You will hear from us shortly');
$('#feedBackInfo').hide();
return false;
}
function refreshThumb(id)
{
$('.regenerate').html('
');
$('.regenerate').css('left', '28px');
$.post('/remote/forms.php', {cmd:'regenerate', id:id}, function() {
$('.regenerate').html('');
$('.thumb').attr("src", "http://static.gtop.ro/thumbs/"+id+".gif?rand=12739812");
alert('Thumbnail regenerated');
});
return false;
}
jQuery(window).resize(function() {
if (jQuery('#feedbackform'))
{
if ($.browser.msie && $.browser.version.substr(0,1)<7) {
$('#feedbackform').css("top", "-363px");
}
}
});
jQuery(document).ready(function() {
if (jQuery.browser.msie && jQuery.browser.version.substr(0,1)<7) {
$('#feedbackform').css("top", "-363px");
jQuery('#feedback').css('top', '-1px');
}
if (jQuery('#uptimeStats').length > 0)
{
$('#uptimeStats').tipsy({fallback: "Website uptime",gravity:'w' });
$('#placeStats').tipsy({fallback: "Ranking spot",gravity:'w' });
$('#twentyStats').tipsy({fallback: "Last 24 hours visits",gravity:'w' });
}
$(".codepopup").colorbox({
width: '810px',
height: '280px',
iframe: 'true',
opacity: '0.3',
onOpen:function(){ $('object, embed').css({'visibility':'hidden'}); },
onClosed:function(){ $('object, embed').css({'visibility':'inherit'}); }
});
$(".addweb").colorbox({
width: '850px',
height: '95%',
iframe: 'true',
opacity: '0.3',
onOpen:function(){ $('object, embed').css({'visibility':'hidden'}); },
onClosed:function(){ $('object, embed').css({'visibility':'inherit'}); }
});
$(".contactweb").colorbox({
width: '650px',
height: '600px',
iframe: 'true',
opacity: '0.3',
onOpen:function(){ $('object, embed').css({'visibility':'hidden'}); },
onClosed:function(){ $('object, embed').css({'visibility':'inherit'}); }
});
$(".request").colorbox({
width: '700px',
height: '500px',
iframe: 'true',
opacity: '0.3',
onOpen:function(){ $('object, embed').css({'visibility':'hidden'}); },
onClosed:function(){ $('object, embed').css({'visibility':'inherit'}); }
});
$(".forgetpop").colorbox({
width: '800px',
height: '350px',
iframe: 'true',
opacity: '0.3',
onOpen:function(){ $('object, embed').css({'visibility':'hidden'}); },
onClosed:function(){ $('object, embed').css({'visibility':'inherit'}); }
});
$(".registerpop").colorbox({
width: '850px',
height: '640px',
iframe: 'true',
opacity: '0.3',
onOpen:function(){ $('object, embed').css({'visibility':'hidden'}); },
onClosed:function(){ $('object, embed').css({'visibility':'inherit'}); }
});
$(".infolink").colorbox({
width: '1000px',
height: '85%',
iframe: 'true',
opacity: '0.3',
onOpen:function(){ $('object, embed').css({'visibility':'hidden'}); },
onClosed:function(){ $('object, embed').css({'visibility':'inherit'}); }
});
$(".editwebsite").colorbox({
width: '850px',
height: '95%',
iframe: 'true',
opacity: '0.3',
onOpen:function(){ $('object, embed').css({'visibility':'hidden'}); },
onClosed:function(){ $('object, embed').css({'visibility':'inherit'}); }
});
});
function removeNotif()
{
jQuery.ajax({
type: "POST",
url: "/remote/forms.php",
data: {cmd:"removenotice"},
success: function(result)
{
}
});
jQuery('.notice').fadeOut();
return false;
}
function deleteWebsite(key)
{
if (confirm("Are you sure you want to delete this website ?"))
if (confirm("All records and settings for this website will be deleted. Continue ?"))
location.href='/forms/delete?site='+key;
return false;
}
function regScreen(key)
{
jQuery.ajax({
type: "POST",
url: "/remote/forms.php",
data: {cmd:"regenerateThumb",key:key},
success: function(result)
{
alert("Your website screenshot is being sent for regeneration.");
}
});
return false;
}
function addAlias(obj, site)
{
if (!isDomain(obj.alias, 0))
{
alert("Enter a valid domain");
return false;
}
jQuery.ajax({
type: "POST",
url: "/remote/forms.php",
data: {cmd:"addAlias",domain:obj.alias.value,site:site},
success: function(result)
{
if (result == 'e') alert("Alias allready added");
if (result == 'www') alert("Alias allready added");
if (result == 'code') alert("The alias you have entered is not valid, due to ownership verification. Please make sure that the html code, is on the main site.");
else if (is_numeric(result))
{
jQuery('#nowebsitealias').parent().remove();
jQuery('#aliaslist').append('| '+obj.alias.value+' | pending | Delete Alias |
')
}
}
});
return false;
}
function deleteAlias(id, site, obj)
{
if (!confirm('Are you sure you want to delete this alias?')) return;
jQuery.ajax({
type: "POST",
url: "/remote/forms.php",
data: {cmd:"delAlias",id:id, site:site},
success: function(result)
{
jQuery(obj).parent().parent().fadeOut(
'slow', function() {
if (jQuery(obj).parent().parent().parent().children('tr').size() == 1)
{
jQuery('#aliaslist').append('| No alias added |
');
}
jQuery(obj).parent().parent().remove();
}
);
}
});
return false;
}
function is_numeric (mixed_var) {
return (typeof(mixed_var) === 'number' || typeof(mixed_var) === 'string') && mixed_var !== '' && !isNaN(mixed_var);
}
jQuery(document).ready(function() {
if (location.hash)
{
HASH = location.hash;
ID = location.hash.replace("#", "");
jQuery('#'+ID).css("background", "#D0E8F9");
location.hash = HASH;
}
});
var SITEID;
function updateLastVisits(id)
{
SITEID = id;
jQuery.ajax({
type: "POST",
url: "/remote/forms.php",
data: {cmd:"updateLastVisits",site:id},
success: function(result)
{
showLastVisitsLine(eval('(' + result + ')'));
}
});
}
function showLastVisitsLine(result)
{
left = 0;
jQuery.each(result, function(index, value)
{
left = 1;
insert = "";
insert += "";
insert += "| "+value.date+" | ";
insert += ""+value.ip+" | ";
insert += ""+value.country+" | ";
insert += ""+value.referer+" | ";
insert += ""+value.os+" | ";
insert += ""+value.browser+" | ";
insert += "
";
delete result[index];
if (!jQuery('#last'+value.id).html())
{
if (jQuery('#lastVisitsInsert tr').size() > 10) jQuery('#lastVisitsInsert tr:last').remove();
jQuery('#lastVisitsInsert').prepend(jQuery(insert).hide().fadeIn('slow', function() {
showLastVisitsLine(result);
}));
jQuery('#last'+value.id).css("display", "");
return false;
}
else left = 0;
});
if (left == 0)
{
setTimeout(function() {updateLastVisits(SITEID);}, 6000)
}
}
function deactivateAccount()
{
if (!confirm('Are you sure you want to suspend your account?')) return false;
return;
jQuery.ajax({
type: "POST",
url: "/remote/forms.php",
data: {cmd:"deactivateAccount"},
success: function(result)
{
}
});
alert('Please click the following link, if you want your account deactivated:');
return false;
}
function exportDoc(type)
{
jQuery('#exporttype').attr('value', type);
jQuery('#exporthtml').attr('value', '');
jQuery('#exporthtml').attr('value', jQuery('#sortable').html());
jQuery('#exporthtml').parent().submit();
return false;
}
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
(function($){$.toJSON=function(o)
{if(typeof(JSON)=='object'&&JSON.stringify)
return JSON.stringify(o);var type=typeof(o);if(o===null)
return"null";if(type=="undefined")
return undefined;if(type=="number"||type=="boolean")
return o+"";if(type=="string")
return $.quoteString(o);if(type=='object')
{if(typeof o.toJSON=="function")
return $.toJSON(o.toJSON());if(o.constructor===Date)
{var month=o.getUTCMonth()+1;if(month<10)month='0'+month;var day=o.getUTCDate();if(day<10)day='0'+day;var year=o.getUTCFullYear();var hours=o.getUTCHours();if(hours<10)hours='0'+hours;var minutes=o.getUTCMinutes();if(minutes<10)minutes='0'+minutes;var seconds=o.getUTCSeconds();if(seconds<10)seconds='0'+seconds;var milli=o.getUTCMilliseconds();if(milli<100)milli='0'+milli;if(milli<10)milli='0'+milli;return'"'+year+'-'+month+'-'+day+'T'+
hours+':'+minutes+':'+seconds+'.'+milli+'Z"';}
if(o.constructor===Array)
{var ret=[];for(var i=0;i');
tip.css({position: 'absolute', zIndex: 100000});
$.data(this, 'active.tipsy', tip);
}
if ($(this).attr('title') || typeof($(this).attr('original-title')) != 'string') {
$(this).attr('original-title', $(this).attr('title') || '').removeAttr('title');
}
var title;
if (typeof opts.title == 'string') {
title = $(this).attr(opts.title == 'title' ? 'original-title' : opts.title);
} else if (typeof opts.title == 'function') {
title = opts.title.call(this);
}
tip.find('.tipsy-inner')[opts.html ? 'html' : 'text'](title || opts.fallback);
var pos = $.extend({}, $(this).offset(), {width: this.offsetWidth, height: this.offsetHeight});
tip.get(0).className = 'tipsy'; // reset classname in case of dynamic gravity
tip.remove().css({top: 0, left: 0, visibility: 'hidden', display: 'block'}).appendTo(document.body);
var actualWidth = tip[0].offsetWidth, actualHeight = tip[0].offsetHeight;
var gravity = (typeof opts.gravity == 'function') ? opts.gravity.call(this) : opts.gravity;
switch (gravity.charAt(0)) {
case 'n':
tip.css({top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}).addClass('tipsy-north');
break;
case 's':
tip.css({top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2}).addClass('tipsy-south');
break;
case 'e':
tip.css({top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth}).addClass('tipsy-east');
break;
case 'w':
tip.css({top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width}).addClass('tipsy-west');
break;
}
if (opts.fade) {
tip.css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: 0.8});
} else {
tip.css({visibility: 'visible'});
}
}, function() {
$.data(this, 'cancel.tipsy', false);
var self = this;
setTimeout(function() {
if ($.data(this, 'cancel.tipsy')) return;
var tip = $.data(self, 'active.tipsy');
if (opts.fade) {
tip.stop().fadeOut(function() { $(this).remove(); });
} else {
tip.remove();
}
}, 100);
});
});
};
// Overwrite this method to provide options on a per-element basis.
// For example, you could store the gravity in a 'tipsy-gravity' attribute:
// return $.extend({}, options, {gravity: $(ele).attr('tipsy-gravity') || 'n' });
// (remember - do not modify 'options' in place!)
$.fn.tipsy.elementOptions = function(ele, options) {
return $.metadata ? $.extend({}, options, $(ele).metadata()) : options;
};
$.fn.tipsy.defaults = {
fade: false,
fallback: '',
gravity: 'n',
html: false,
title: 'title'
};
$.fn.tipsy.autoNS = function() {
return $(this).offset().top > ($(document).scrollTop() + $(window).height() / 2) ? 's' : 'n';
};
$.fn.tipsy.autoWE = function() {
return $(this).offset().left > ($(document).scrollLeft() + $(window).width() / 2) ? 'e' : 'w';
};
})(jQuery);
/**
* .disableTextSelect - Disable Text Select Plugin
*
* Version: 1.1
* Updated: 2007-11-28
*
* Used to stop users from selecting text
*
* Copyright (c) 2007 James Dempster (letssurf@gmail.com, http://www.jdempster.com/category/jquery/disabletextselect/)
*
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
**/
/**
* Requirements:
* - jQuery (John Resig, http://www.jquery.com/)
**/
(function($){if($.browser.mozilla){$.fn.disableTextSelect=function(){return this.each(function(){$(this).css({"MozUserSelect":"none"})})};$.fn.enableTextSelect=function(){return this.each(function(){$(this).css({"MozUserSelect":""})})}}else{if($.browser.msie){$.fn.disableTextSelect=function(){return this.each(function(){$(this).bind("selectstart.disableTextSelect",function(){return false})})};$.fn.enableTextSelect=function(){return this.each(function(){$(this).unbind("selectstart.disableTextSelect")})}}else{$.fn.disableTextSelect=function(){return this.each(function(){$(this).bind("mousedown.disableTextSelect",function(){return false})})};$.fn.enableTextSelect=function(){return this.each(function(){$(this).unbind("mousedown.disableTextSelect")})}}}})(jQuery)
/* SWFObject v2.2
is released under the MIT License
*/
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y0){for(var af=0;af0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad'}}aa.outerHTML='";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab