function print()
{
	var a = window.open('','','width=300,height=300');
	a.document.open("text/html");
	a.document.write(document.getElementById('right_content').innerHTML);
	a.document.close();
	a.print();
}


function loadex2(url, x){
var xmlhttp=false; //Clear our fetching variable
        try {
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } catch (e) {
                try {
                        xmlhttp = new
                        ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } catch (E) {
                xmlhttp = false;
                        }
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
                xmlhttp = new XMLHttpRequest(); 
        }
if(x){
    var file = url+'?x=';    
    xmlhttp.open('GET', file+x, true);
}else{     
    xmlhttp.open('GET', url, true); 
}
    xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState==4) { 
                var content = xmlhttp.responseText;
                if( content ){ 
                      document.getElementById('a4').innerHTML = content;  
                }
        }
        }
        xmlhttp.send(null) //Nullify the XMLHttpRequest
return;
}


function loadex(url, x){
var xmlhttp=false; //Clear our fetching variable
        try {
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } catch (e) {
                try {
                        xmlhttp = new
                        ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } catch (E) {
                xmlhttp = false;
                        }
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
                xmlhttp = new XMLHttpRequest(); 
        }
if(x){
    var file = url+'?x=';    
    xmlhttp.open('GET', file+x, true);
}else{     
    xmlhttp.open('GET', url, true); 
}
    xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState==4) { 
                var content = xmlhttp.responseText;
                if( content ){ 
                      document.getElementById('right_content').innerHTML = content;  
                }
        }
        }
        xmlhttp.send(null) //Nullify the XMLHttpRequest
return;
}
//here you place the ids of every element you want.
var ids=new Array('a3');

function switchid(id){	
	hideallids();
	showdiv(id);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}


NewImg = new Array (
"Resources/mcs1.jpg",
"Resources/mcs5.jpg",
"Resources/mcs6.jpg",
"Resources/mcs7.jpg"
);
var ImgNum = 0;
var ImgLength = NewImg.length - 1;

//Time delay between Slides in milliseconds
var delay = 2500;

var lock = false;
var run;
function chgImg(direction) {
if (document.images) {
ImgNum = ImgNum + direction;
if (ImgNum > ImgLength) {
ImgNum = 0;
}
if (ImgNum < 0) {
ImgNum = ImgLength;
}
document.slideshow.src = NewImg[ImgNum];
   }
}
function auto() {
if (lock == true) {
lock = false;
window.clearInterval(run);
}
else if (lock == false) {
lock = true;
run = setInterval("chgImg(1)", delay);
   }
}