<!--
defaultStatus = "CSA Architects";

// Menu Preloader & Functions
if (document.images) {
	home_1_off = new Image();
	home_1_over = new Image();
	home_2_off = new Image();
	home_2_over = new Image();
	home_3_off = new Image();
	home_3_over = new Image();
	home_4_off = new Image();
	home_4_over = new Image();
	home_5_off = new Image();
	home_5_over = new Image();
	home_6_off = new Image();
	home_6_over = new Image();
	menu_1_off = new Image();
	menu_1_over = new Image();
	menu_2_off = new Image();
	menu_2_over = new Image();
	menu_3_off = new Image();
	menu_3_over = new Image();
	menu_4_off = new Image();
	menu_4_over = new Image();
	menu_5_off = new Image();
	menu_5_over = new Image();
	menu_6_off = new Image();
	menu_6_over = new Image();
	btn_0_off = new Image();
	btn_0_over = new Image();
	btn_1_off = new Image();
	btn_1_over = new Image();
	btn_2_off = new Image();
	btn_2_over = new Image();
	news_off = new Image();
	news_over = new Image();
}

function load_menu(root_path) {
	if (document.images) {
		home_1_off.src = root_path + "images/home/menu-home.gif";
		home_1_over.src = root_path + "images/home/menu-home_on.gif";
		home_2_off.src = root_path + "images/home/menu-about-csa.gif";
		home_2_over.src = root_path + "images/home/menu-about-csa_on.gif";
		home_3_off.src = root_path + "images/home/menu-the-team.gif";
		home_3_over.src = root_path + "images/home/menu-the-team_on.gif";
		home_4_off.src = root_path + "images/home/menu-projects.gif";
		home_4_over.src = root_path + "images/home/menu-projects_on.gif";
		home_5_off.src = root_path + "images/home/menu-services.gif";
		home_5_over.src = root_path + "images/home/menu-services_on.gif";
		home_6_off.src = root_path + "images/home/menu-contact.gif";
		home_6_over.src = root_path + "images/home/menu-contact_on.gif";

		menu_1_off.src = root_path + "images/menu-home.gif";
		menu_1_over.src = root_path + "images/menu-home_on.gif";
		menu_2_off.src = root_path + "images/menu-about-csa.gif";
		menu_2_over.src = root_path + "images/menu-about-csa_on.gif";
		menu_3_off.src = root_path + "images/menu-the-team.gif";
		menu_3_over.src = root_path + "images/menu-the-team_on.gif";
		menu_4_off.src = root_path + "images/menu-projects.gif";
		menu_4_over.src = root_path + "images/menu-projects_on.gif";
		menu_5_off.src = root_path + "images/menu-services.gif";
		menu_5_over.src = root_path + "images/menu-services_on.gif";
		menu_6_off.src = root_path + "images/menu-contact.gif";
		menu_6_over.src = root_path + "images/menu-contact_on.gif";

		btn_0_off.src = root_path + "images/btn-commercial.gif";
		btn_0_over.src = root_path + "images/btn-commercial_on.gif";
		btn_1_off.src = root_path + "images/btn-residential.gif";
		btn_1_over.src = root_path + "images/btn-residential_on.gif";
		btn_2_off.src = root_path + "images/btn-industrial.gif";
		btn_2_over.src = root_path + "images/btn-industrial_on.gif";

		news_off.src = root_path + "images/home/btn-latest-news.gif";
		news_over.src = root_path + "images/home/btn-latest-news_on.gif";

	}
}

function swap_item(img_id, img_state){
	if (document.images) {
		//alert("swapping image: " + img_id + " , " + img_state);
		
		if ((img_state == 'over') || (img_state == 'off')){
			document[img_id].src = eval(img_id + '_' + img_state + '.src');
		}
	}
}

function jsPopUp(name,id,id2,attr3) {
	windowName =  name;
	windowLeft = 100;
	windowTop=100;
	switch (windowName) {
		case 'news':	// news
			if ( id2 != '' ) {
				windowWidth = id2.substring(0,id2.indexOf('x'));
				windowHeight = id2.substring(id2.indexOf('x')+1,id2.length);
			} else {
				windowWidth = 560;
				windowHeight = 419;	
			}
			windowScrollbars = 1;
			windowURL = attr3 + id;
			break;
		case 'vacancies':	// news
			if ( id2 != '' ) {
				windowWidth = id2.substring(0,id2.indexOf('x'));
				windowHeight = id2.substring(id2.indexOf('x')+1,id2.length);
			} else {
				windowWidth = 500;
				windowHeight = 419;	
			}
			windowScrollbars = 1;
			windowURL = attr3 + id;
			break;
		case 'preview':	// preview
			if ( id2 != '' ) {
				windowWidth = id2.substring(0,id2.indexOf('x'));
				windowHeight = id2.substring(id2.indexOf('x')+1,id2.length);
			} else {
				windowWidth = 300;
				windowHeight = 400;	
			}
			windowScrollbars = 0;
			windowURL = attr3 + "preview.htm?src=" + id + "&w=" + windowWidth + "&h=" + windowHeight;
			break;
	}
	windowProps = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=" + windowScrollbars + ",resizable=1,copyhistory=0,width=" + windowWidth + ",height=" + windowHeight + ",left=" + windowLeft + ",top=" + windowTop;
	window.open(windowURL,windowName,windowProps);				
}
//-->