// JavaScript Document

var img_dir = "/img";

function make_page_title(page_title) {
document.title = ('Janko Rasic Architects :: ' + page_title);
}


function go_page_replace(page_name) {
top.window.location.replace(page_name);
}


/*function swap_gallery_image(gallery_id,image_id,img_file,img_num,img_amt,img_caption) {

document.getElementById('gallery_img').src = img_dir+'/gallery/'+gallery_id+'/images/'+image_id+'/'+img_file;

	for (i=0;i<img_amt;i++) {
	document.getElementById('thumb_'+i).className = 'img_gallery_thumb div_common';
	}
document.getElementById('thumb_'+img_num).className = 'img_gallery_thumb_on div_common';	
document.getElementById('gallery_caption').innerHTML = img_caption;	

}
*/

function go_page(pageName) {
top.window.location.href=pageName;
}

function go_page_replace(pageName) {
top.window.location.replace(pageName);
}


function show_hide_div(id,zindex) {
var el = document.getElementById(id);
	if (el.style.display != "none") {
	el.style.display = "none";
		if (zindex) {
		el.style.zIndex = "0";
		}
	}
	else {
	el.style.display = "";
		if (zindex) {
		el.style.zIndex = zindex;
		}
	}
}



/*function show_client(client_id) {
link_name = 'link_client_name'+client_id;
div_name = 'div_clients_links'+client_id;
img_name = 'arrow-client'+client_id;
show_hide_div(div_name);
	if (document.getElementById(div_name).style.display != "none") {
	document.getElementById(link_name).className = 'link_client_name_on';
	document.images[img_name].src = 'img/clients/arrow-client-on.gif';
	} else {
	document.getElementById(link_name).className = 'link_client_name';
	document.images[img_name].src = 'img/clients/arrow-client.gif';
	}
}*/