// copyright 2004 Deeley.de

function img_popup(file, path) {
     window.open( path + "popup.html?"+file, "",  
     "resizable=1,height=200,width=200");
} 

function get_big_img(el, type, path) {
//alert(el.src)
loc = el.src;
special_start = loc.lastIndexOf("/") + 1
special_end = loc.length
file_thumb = loc.substring(special_start, special_end)
file_part_start = 0
file_part_end = file_thumb.lastIndexOf("_")
//file_part_end = file_thumb.lastIndexOf(".")
file_type_start = file_thumb.lastIndexOf(".")
file_part = file_thumb.substring(file_part_start, file_part_end)
file_type = file_thumb.substring(file_type_start+1, file_thumb.length)
file = file_part + '.' + file_type
//popup('content/'+type+'/' + file_part + '_'+type+'.' + file_type)
//alert('content/images/' + file)
img_popup('content/images/' + file, path)

}

/*
function no_click_IE() {
	if (document.all) {
	return false;
	}
}
function no_click_NS(el) {
	if(document.layers || (document.getElementById && !document.all)) {
		if (el.which == 2 || el.which == 3) {
			return false
		}
	}
}

if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN)
	document.onmousedown = no_click_NS
}
else{
	document.onmouseup = no_click_NS
	document.oncontextmenu = no_click_IE
}

document.oncontextmenu = new Function("return false")
*/