function writeFlashTag(lang) {
    document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
    document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
    document.write(' ID="main_it" WIDTH="593" HEIGHT="400" ALIGN="">');
    document.write(' <PARAM NAME="movie" VALUE="images/main_'+lang+'.swf"> <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE="#000000"> <PARAM NAME="menu" VALUE="false"> ');
    document.write(' <EMBED src="images/main_'+lang+'.swf" quality=high bgcolor=#000000  ');
    document.write(' swLiveConnect="FALSE" WIDTH="593" HEIGHT="400" NAME="main_it" ALIGN=""');
    document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
    document.write(' </EMBED>');
    document.write(' </OBJECT>');
}
function popup(i){
	var pos = "";
	width=screen.width - 10;
	height=screen.height - 60;
	pos = " top=0, left = 0, ";
    window.open("showImage.php?i="+i, "big", pos + " width=" + width + ", height=" + height + "");
}

function openpage(page, props, width, height){
    pos="";
	if (!width) {
	    //fullscreen
		width=screen.width - 10;
		height=screen.height - 60;
		pos = " top=0, left = 0, ";
	}
    window.open(page, "page", pos + " width=" + width + ", height=" + height + ", " + props);

}

function underLine(obj) {
    if (obj.style) {
        //obj.style.borderColor='black';
        //obj.style.borderStyle='none';

        obj.style.borderBottomStyle='solid';
        obj.style.borderBottomWidth='1px';
        obj.style.borderBottomColor='#A09184';
    }
}
function restore(obj) {
    if (obj.style) {
        obj.style.borderBottomColor='black';
    }
}
function sb(msg) {
    setTimeout("window.status = '" + msg + "'", 10);
}
function csb() {
    window.focus();
    setTimeout("window.status = ''", 10);
}

