// JavaScript Document

function rollOver(element) {
	if (element.tagName=="IMG") {
		element.src = element.src.replace("/default/","/hover/");
	}
}

function rollOut(element) {
	if (element.tagName=="IMG") {
		element.src = element.src.replace("/hover/","/default/");
	}
}

function openImage(url) {
	window.open('/images/?'+url, 'dtImage', 'width=400, height=300, menubar=no, toolbar=no, scrollbars=yes, resizable=yes');
}

function resizeWin(width,height) {
	if (!width>0||!height>0) return;
	var oj=self;
	width = Math.max(400, Math.min(width, screen.width));
	height = Math.max(300, Math.min(height, screen.height));
	oj.moveTo((screen.width-width)/2,(screen.height-height)/2-40);
	oj.resizeTo(width,height);
	if(window.opera||document.layers){  //n4,o6,o7—p
		var w = oj.innerWidth;
		var h = oj.innerHeight;
	} else if(document.all){            //e4,e5,e6—p
		var w = oj.document.body.clientWidth;
		var h = oj.document.body.clientHeight;
	} else if(document.getElementById){ //n6,n7,m1,s1—p
		var w = oj.innerWidth;  
		var h = oj.innerHeight;
	}
	if(width!=w||height!=h){
		oj.resizeBy((width-w),(height-h));
		if(document.layers) oj.location.reload(0);
	}
	oj.focus()  ; 
}
