function $(element){
return element = document.getElementById(element);
}
function $D(){
var d=$('qcon1');
var h=d.offsetHeight;
var maxh=178;
function dmove(){
h+=50; //层展开速度
if(h>=maxh){
d.style.height='';
clearInterval(iIntervalId);
}else{
d.style.display='block';
d.style.height=h+'px';
}
}
iIntervalId=setInterval(dmove,2);
}
function $D2(){
var d=$('qcon1');
var h=d.offsetHeight;
var maxh=178;
function dmove(){
h-=50;//层收缩速度
if(h<=0){
d.style.display='none';
clearInterval(iIntervalId);
}else{
d.style.height=h+'px';
}
}
iIntervalId=setInterval(dmove,2);
}
function $use1(){
var d=$('qcon1');
var sb=$('qtit1');
if(d.style.display=='none'){
$D();
sb.innerHTML='<div class="l">Power Leveling </div><div class="r">-</div>';
}else{
$D2();
sb.innerHTML='<div class="l">Power Leveling </div><div class="r">+</div>';
}
}
 
function $bD(){
var d=$('qcon2');
var h=d.offsetHeight;
var maxh=178;
function dmove(){
h+=50; //层展开速度
if(h>=maxh){
d.style.height='';
clearInterval(iIntervalId);
}else{
d.style.display='block';
d.style.height=h+'px';
}
}
iIntervalId=setInterval(dmove,2);
}
function $bD2(){
var d=$('qcon2');
var h=d.offsetHeight;
var maxh=178;
function dmove(){
h-=50;//层收缩速度
if(h<=0){
d.style.display='none';
clearInterval(iIntervalId);
}else{
d.style.height=h+'px';
}
}
iIntervalId=setInterval(dmove,2);
}
function $use2(){
var d=$('qcon2');
var sb=$('qtit2');
if(d.style.display=='none'){
$bD();
}else{
$bD2();
changeProduct('', 1);
hiddenProduct(1);
}
}
 
function $cD(){
var d=$('qcon3');
var h=d.offsetHeight;
var maxh=178;
function dmove(){
h+=50; //层展开速度
if(h>=maxh){
d.style.height='';
clearInterval(iIntervalId);
}else{
d.style.display='block';
d.style.height=h+'px';
}
}
iIntervalId=setInterval(dmove,2);
}
function $cD2(){
var d=$('qcon3');
var h=d.offsetHeight;
var maxh=178;
function dmove(){
h-=50;//层收缩速度
if(h<=0){
d.style.display='none';
clearInterval(iIntervalId);
}else{
d.style.height=h+'px';
}
}
iIntervalId=setInterval(dmove,2);
}
function $use3(){
var d=$('qcon3');
var sb=$('qtit3');
//changeProduct('', 2);
if(d.style.display=='none'){
$cD();
}else{
//hiddenProduct(2);
$cD2();
changeProduct('', 2);
hiddenProduct(2);
}
}
 
function $dD(){
var d=$('qcon4');
var h=d.offsetHeight;
var maxh=178;
function dmove(){
h+=50; //层展开速度
if(h>=maxh){
d.style.height='';
clearInterval(iIntervalId);
}else{
d.style.display='block';
d.style.height=h+'px';
}
}
iIntervalId=setInterval(dmove,2);
}
function $dD2(){
var d=$('qcon4');
var h=d.offsetHeight;
var maxh=178;
function dmove(){
h-=50;//层收缩速度
if(h<=0){
d.style.display='none';
clearInterval(iIntervalId);
}else{
d.style.height=h+'px';
}
}
iIntervalId=setInterval(dmove,2);
}
function $use4(){
var d=$('qcon4');
var sb=$('qtit4');
if(d.style.display=='none'){
$dD();
}else{
$dD2();
changeProduct('', 4);
hiddenProduct(4);
}
}



function $eD(){
var d=$('qcon5');
var h=d.offsetHeight;
var maxh=178;
function dmove(){
h+=50; //层展开速度
if(h>=maxh){
d.style.height='';
clearInterval(iIntervalId);
}else{
d.style.display='block';
d.style.height=h+'px';
}
}
iIntervalId=setInterval(dmove,2);
}
function $eD2(){
var d=$('qcon5');
var h=d.offsetHeight;
var maxh=178;
function dmove(){
h-=50;//层收缩速度
if(h<=0){
d.style.display='none';
clearInterval(iIntervalId);
}else{
d.style.height=h+'px';
}
}
iIntervalId=setInterval(dmove,2);
}
function $use5(){
var d=$('qcon5');
var sb=$('qtit5');
if(d.style.display=='none'){
$eD();
}else{
$eD2();
changeProduct('', 3);
hiddenProduct(3);
}
}


function $fD(){
var d=$('qcon6');
var h=d.offsetHeight;
var maxh=178;
function dmove(){
h+=50; //层展开速度
if(h>=maxh){
d.style.height='';
clearInterval(iIntervalId);
}else{
d.style.display='block';
d.style.height=h+'px';
}
}
iIntervalId=setInterval(dmove,2);
}
function $fD2(){
var d=$('qcon6');
var h=d.offsetHeight;
var maxh=178;
function dmove(){
h-=50;//层收缩速度
if(h<=0){
d.style.display='none';
clearInterval(iIntervalId);
}else{
d.style.height=h+'px';
}
}
iIntervalId=setInterval(dmove,2);
}
function $use6(){
var d=$('qcon6');
var sb=$('qtit6');
if(d.style.display=='none'){
$fD();
}else{
$fD2();
changeProduct('', 7);
hiddenProduct(7);
}
}
