// JavaScript Document

function tab1open(){
	Effect.BlindDown('dnn_tab1content', { duration: 0.5 }); Effect.BlindUp('dnn_tab2content', { duration: 0.5 }); Effect.BlindUp('dnn_tab3content', { duration: 0.5 });
	MM_showHideLayers('tab1close','','show','tab1open','','hide','tab2close','','hide','tab2open','','show','tab3close','','hide','tab3open','','show')
}

function tab1close(){
	Effect.BlindUp('dnn_tab1content', { duration: 0.5 });
	MM_showHideLayers('tab1close','','hide','tab1open','','show','tab2close','','hide','tab2open','','show','tab3close','','hide','tab3open','','show') 
}



function tab2open(){
	Effect.BlindUp('dnn_tab1content', { duration: 0.5 }); Effect.BlindDown('dnn_tab2content', { duration: 0.5 }); Effect.BlindUp('dnn_tab3content', { duration: 0.5 });
	MM_showHideLayers('tab1close','','hide','tab1open','','show','tab2close','','show','tab2open','','hide','tab3close','','hide','tab3open','','show')
}

function tab2close(){
	Effect.BlindUp('dnn_tab2content', { duration: 0.5 });
	MM_showHideLayers('tab1close','','hide','tab1open','','show','tab2close','','hide','tab2open','','show','tab3close','','hide','tab3open','','show') 
}



function tab3open(){
	Effect.BlindUp('dnn_tab1content', { duration: 0.5 }); Effect.BlindUp('dnn_tab2content', { duration: 0.5 }); Effect.BlindDown('dnn_tab3content', { duration: 0.5 });
	MM_showHideLayers('tab1close','','hide','tab1open','','show','tab2close','','hide','tab2open','','show','tab3close','','show','tab3open','','hide')
}

function tab3close(){
	Effect.BlindUp('dnn_tab3content', { duration: 0.5 });
	MM_showHideLayers('tab1close','','hide','tab1open','','show','tab2close','','hide','tab2open','','show','tab3close','','hide','tab3open','','show') 
}



function closeall(){
	Effect.BlindUp('dnn_tab1content', { duration: 0.5 }); Effect.BlindUp('dnn_tab2content', { duration: 0.5 }); Effect.BlindUp('dnn_tab3content', { duration: 0.5 });
	MM_showHideLayers('tab1close','','hide','tab1open','','show','tab2close','','hide','tab2open','','show','tab3close','','hide','tab3open','','show') 
}



function tab4open(){
	Effect.BlindDown('dnn_tab4content', { duration: 0.5 }); Effect.BlindUp('dnn_tab5content', { duration: 0.5 }); Effect.BlindUp('dnn_tab6content', { duration: 0.5 });
	MM_showHideLayers('tab4close','','show','tab4open','','hide','tab5close','','hide','tab5open','','show','tab6close','','hide','tab6open','','show')
}

function tab4close(){
	Effect.BlindUp('dnn_tab4content', { duration: 0.5 });
	MM_showHideLayers('tab4close','','hide','tab4open','','show','tab5close','','hide','tab5open','','show','tab6close','','hide','tab6open','','show')
}

function tab5open(){
	Effect.BlindUp('dnn_tab4content', { duration: 0.5 }); Effect.BlindDown('dnn_tab5content', { duration: 0.5 });Effect.BlindUp('dnn_tab6content', { duration: 0.5 });
	MM_showHideLayers('tab4close','','hide','tab4open','','show','tab5close','','show','tab5open','','hide','tab6close','','hide','tab6open','','show')
}

function tab5close(){
	Effect.BlindUp('dnn_tab5content', { duration: 0.5 });
	MM_showHideLayers('tab4close','','hide','tab4open','','show','tab5close','','hide','tab5open','','show','tab6close','','hide','tab6open','','show')
}


function tab6open(){
	Effect.BlindUp('dnn_tab4content', { duration: 0.5 }); Effect.BlindUp('dnn_tab5content', { duration: 0.5 });Effect.BlindDown('dnn_tab6content', { duration: 0.5 });
	MM_showHideLayers('tab4close','','hide','tab4open','','show','tab5close','','hide','tab5open','','show','tab6close','','show','tab6open','','hide')
}

function tab6close(){
	Effect.BlindUp('dnn_tab6content', { duration: 0.5 });
	MM_showHideLayers('tab4close','','hide','tab4open','','show','tab5close','','hide','tab5open','','show','tab6close','','hide','tab6open','','show')
}











function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; }
    obj.display=v; }
}


function initRollovers() {
    if (!document.getElementById) return
      
    var aPreLoad = new Array();
    var sTempSrc;
    var aImages = document.getElementsByTagName('img');
    for (var i = 0; i < aImages.length; i++) {
                if (aImages[i].className == 'roll') {
                    var src = aImages[i].getAttribute('src');
                    var ftype = src.substring(src.lastIndexOf('.'), src.length);
                    var hsrc = src.replace(ftype, '_r'+ftype);

                    aImages[i].setAttribute('hsrc', hsrc);
                    
                    aPreLoad[i] = new Image();
                    aPreLoad[i].src = hsrc;
                    
                    aImages[i].onmouseover = function() {
                                sTempSrc = this.getAttribute('src');
                                this.setAttribute('src', this.getAttribute('hsrc'));
                    }
                    aImages[i].onmouseout = function() {
                                if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_r'+ftype, ftype);
                                this.setAttribute('src', sTempSrc);
                    }
                }
    }
}

window.onload = initRollovers;
