// JavaScript Document


var quicklinkset = 0;
var yposition = -247;
var highest = -247;
var lowest = 4;

var xxx = screen.width
if (xxx==1600) {xposition = 308}
if (xxx==1440) {xposition = 228}
if (xxx==1366) {xposition = 191}
if (xxx==1280) {xposition = 148}
if (xxx==1152) {xposition = 84}
if (xxx<1025) {xposition = 28}

document.getElementById('quick_links_holder').style.left=xposition + "px";


function scrollquick_links(){
if (quicklinkset == 0) {scrollquick_links_appear()} else {scrollquick_links_hide()};	
}

function scrollquick_links_appear(){
document.getElementById('quick_links_holder').style.display = "inline";
scrolldown();
quicklinkset=1;
}

function scrollquick_links_hide(){
scrollup();
quicklinkset=0;
document.getElementById('quick_links_holder').style.display = "none";
}


function scrolldown(){
document.getElementById('quick_links').style.top=yposition + "px";
yposition=yposition+10;
if (yposition>lowest) {return false}
t=setTimeout("scrolldown()",1);
}

function scrollup(){
document.getElementById('quick_links').style.top=yposition + "px";
yposition=yposition-10;
if (yposition<highest) {return false}
t=setTimeout("scrollup()",1);
}

