// JavaScript Document
// This is only needed for Netscape browsers.
function flashGetHref() { return location.href; }
function flashPutHref(href) { location.href = href; }
function flashGetTitle() { return document.title; }
function flashPutTitle(title) { document.title = title; }
docTitle = document.title;
function activeContentSWF() {
	document.write('<object type="application/x-shockwave-flash" id="dmgui" name="dmgui" width="100%" height="100%" data="dm_demo.swf">\n');
	document.write('<param name="allowscriptaccess" value="always" />\n');
	document.write('<param name="movie" value="dm_demo.swf" />\n');
	document.write('<param name="swLiveConnect" value="true" />\n');
	document.write('<param name="quality" value="best" />\n');
	document.write('<param name="scale" value="showAll" />\n');
	document.write('<param name="menu" value="false" />\n');
	document.write('<param name="bgcolor" value="#314173" />\n');
	document.write('</object>\n');
	count = 1;
}
function openAWindow(pageToLoad, winName, width, height, center, scrollbar) {
	//wide = (screen.width - 20);
	//tall = ((screen.width * (height / width)) - 20);
	wide = width;
	tall = height;
	sc = scrollbar;
    xposition=0; yposition=0;
    if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
        xposition = (screen.width - wide) / 2;
        yposition = (screen.height - tall) / 2;
    }
    args = "width=" + wide + "," 
    + "height=" + tall + "," 
    + "location=0," 
    + "menubar=0,"
    + "resizable=1,"
    + "scrollbars="+ sc + ","
    + "status=0," 
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only

    couseWin = window.open(pageToLoad,winName,args);
	couseWin.onLoad=couseWin.focus();
}