
function over(id, url){
document.getElementById(id).style.backgroundImage = url;
}
function out(id, url){
document.getElementById(id).style.backgroundImage = url;
}
function show(id){
document.getElementById(id).style.display = "inline";
}
function hide(id){
document.getElementById(id).style.display = "none";
}

function show2(id){
var curr = document.getElementById(id).style.display;
if(curr=='none'){
document.getElementById(id).style.display= 'block';
} else {
document.getElementById(id).style.display= 'none';
}
}

function subbg(id){
document.getElementById(id).style.backgroundColor = "#666666";
}
function subbg2(id){
document.getElementById(id).style.backgroundColor = "#900000";
}
function subbg3(id){
document.getElementById(id).style.backgroundColor = "#dddddd";
}
function subbg4(id){
document.getElementById(id).style.backgroundColor = "#ffffff";
}
function showLeft(id,id2){

var curr = document.getElementById(id).style.display;
if(curr=='none'){
document.getElementById(id).style.display= 'block';
document.getElementById(id2).style.backgroundImage =  "url(<? echo $ssl.$server ?>/images/left_link_bg_sel.jpg)";
} else {
document.getElementById(id).style.display= 'none';
document.getElementById(id2).style.backgroundImage =  "url(<? echo $ssl.$server ?>/images/left_link_bg.jpg)";

}
if(oldId!=0 && oldId!= id){
document.getElementById(oldId).style.display= 'none';
document.getElementById(oldId2).style.backgroundImage =  "url(<? echo $ssl.$server ?>/images/left_link_bg.jpg)";
}
oldId = id;
oldId2 = id2;
}




var a_ADD=1;
var a_ADD2=0;
var a_peter="";

var BILD="";


function a_show(){

document.getElementById("imageview").style.height=a_ADD+'px';
document.getElementById("imageview").style.top = window.document.body.clientHeight/2-(a_ADD/2);


a_ADD+=a_ADD2;
var end = window.document.body.clientHeight;
if(a_ADD>end){

document.getElementById("PicView").innerHTML='<img name ="bz"  src="'+BILD+'" width="300">';
window.clearInterval(a_hose);

}
if(a_ADD<0){
window.clearInterval(a_hose);
}

}

function imageshow(PIC){
a_ADD=0;
a_ADD2=+20;
a_peter="imageview";
BILD=PIC;
document.getElementById("imageview").style.display = "block";
var a_hose = setInterval("a_show()",1);
}
function imageClose(){
var a_ADD=1;
var a_ADD2=0;
var a_peter="";
document.getElementById("imageview").style.display = "none";
document.getElementById("imageview").style.height=0+'%';
var BILD="";
document.getElementById("PicView").innerHTML='';
}


