function onloadresize() {
	if(document.documentElement.clientWidth < 920){ document.getElementById('topad').style.display = 'none'; } else { document.getElementById('topad').style.display = 'block'; }
}
function openup(elementID){ 
	var target1 = document.getElementById(elementID);
	if (target1.style.display == 'block') {
		target1.style.display = 'none';
	} else {
		target1.style.display = 'block';
	}
}
function pica(img_name,img_src) {
	document[img_name].src=img_src;
}


//TOOLTIPS
this.vtip = function() {    
    this.xOffset = -10; // x distance from mouse
    this.yOffset = 10; // y distance from mouse       
    
    $(".vtip").unbind().hover(    
        function(e) {
            this.t = this.title;
            this.title = ''; 
            this.top = (e.pageY + yOffset); this.left = (e.pageX + xOffset);
            
            $('body').append( '<p id="vtip">' + this.t + '</p>' );
                        
            $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn("slow");
            
        },
        function() {
            this.title = this.t;
            $("p#vtip").fadeOut("slow").remove();
        }
    ).mousemove(
        function(e) {
            this.top = (e.pageY + yOffset);
            this.left = (e.pageX + xOffset);
                         
            $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
        }
    );            
    
};

jQuery(document).ready(function($){vtip();}) 
