function getElementsByClass(searchClass,node,tag) {
	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}

timed = 0;

function quickLinks() { 

if (document.getElementById('quick_links')) {  document.getElementById('quick_links').style.display = 'none';

if (window.attachEvent) { 

document.getElementById('quick_links_btn').attachEvent('onmouseover', show_quickLinks);
document.getElementById('quick_links').attachEvent('onmouseover', cancel_timer);
document.getElementById('quick_links').attachEvent('onmouseout', timer_hide_quickLinks);

} else { 

document.getElementById('quick_links_btn').addEventListener('mouseover', show_quickLinks, true);
document.getElementById('quick_links').addEventListener('mouseover', cancel_timer, true);
document.getElementById('quick_links').addEventListener('mouseout', timer_hide_quickLinks, true);

}

}





}

function show_quickLinks() {

if (timed == 1) { cancel_timer(); }

document.getElementById('quick_links').style.display = 'block'

if (window.attachEvent) { 

document.getElementById('quick_links_btn').attachEvent('onmouseout', timer_hide_quickLinks);

} else {

document.getElementById('quick_links_btn').addEventListener('mouseout', timer_hide_quickLinks, true);

}

}

function hide_quickLinks() {

document.getElementById('quick_links').style.display = 'none';

if (window.attachEvent) { 

document.getElementById('quick_links_btn').attachEvent('onmouseover', show_quickLinks);


} else { 

document.getElementById('quick_links_btn').removeEventListener('mouseout', timer_hide_quickLinks, true);
document.getElementById('quick_links_btn').addEventListener('mouseover', show_quickLinks, true);

}

}

function timer_hide_quickLinks() { 

if (timed == 0) { timer = setTimeout(hide_quickLinks,100);

timed = 1;

}

}

function cancel_timer() { 

if (timed == 1) { clearTimeout(timer);

timed = 0; 

}

}

setTimeout(quickLinks,2000);
