// JavaScript Document

function disp(url){ 
window.open(url, "window_name", "width=800,height=600,scrollbars=yes,resizable=yes,status=yes"); 
}

function open_win(url,width,height){
window.open(url,'','width='+width+',height='+height+',toolbar=no,location=no,directories=no,statusbar=no,menubar=no,scrollbars=yes,resizable=no');
}

function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}
if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}

function flashIndex(){
	document.open();
	document.writeln("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' height='230' width='760' id='brandish'>");
	document.writeln("<param name='allowScriptAccess' value='sameDomain'>");
	document.writeln("<param name='allowFullScreen' value='false'>");
	document.writeln("<param name='movie' value='./img/index.swf'>");
	document.writeln("<param name='quality' value='high'>");
	document.writeln("<param name='play' value='true'>");
	document.writeln("<param name='TransparentAtStart' value='true'>");
	document.writeln("<embed src='./img/index.swf' width='760' height='230' name='brandish' allowScriptAccess='sameDomain' allowFullScreen='false' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' quality='high' play='true'>");
	document.writeln("</object>");
	document.close();
}

