var showing = false;

jQuery(document).ready(function() {
/*
    jQuery('#uppertinyz').mouseover(function() {
        if (!showing) {
            showing = true;

            jQuery('#cloud-tags').show('slow', function() {
                jQuery.timer(1500, function(timer) {
                    if (tempY > document.getElementById('mainrowzzz').offsetTop) {
                        jQuery('#cloud-tags').hide('slow', function() {
                            timer.stop();
                            showing = false;
                        });
                    }
                });
            });
        }
    });
*/
    jQuery(document).pngFix();

    document.onmousemove = getMouseY;

    if (typeof(pageInit) != 'undefined')
        pageInit();


});


function doTagsToggle() {
    jQuery('#cloud-tags').toggle();

    var current = jQuery('#arrowee').attr('src');

    current = current == '/images/arrow_up.png' ? '/images/arrow_down.png' : '/images/arrow_up.png';

    jQuery('#arrowee').attr('src', current);

}

var IE = document.all;

if (!IE) document.captureEvents(Event.MOUSEMOVE);

var tempY, tempX;

function getMouseY(e) {
    tempY = IE ? event.clientY + document.body.scrollTop : e.pageY;
    tempX = IE ? event.clientX + document.body.scrollLeft : e.pageX;

    tempY = tempY < 0 ? 0 : tempY;
    tempX = tempX < 0 ? 0 : tempX;
}

