/******************************************************************************/
// Copyright Table
/******************************************************************************/

//Set CopyRight year
function mwCopyRight_setCopyRightDate(strYear){
	this.CopyRightDate=strYear;
}

//Set Image 
function mwCopyRight_setImage(strImage){
	this.Image=strImage;
}
//Set Image 
function mwCopyRight_getImage(){	
	return this.Image;
}

//Set Font Color 
function mwCopyRight_setFontColor(strFontColor){
	this.FontColor=strFontColor;
}
//Set Font Face 
function mwCopyRight_setFontFace(strFontFace){
	this.FontFace=strFontFace;
}

//Set HR color
function mwCopyRight_setHRColor(strColor){
	this.HRColor=strColor;
}

// Set CSS class
function mwCopyRight_setCSSClass(strClass){
  this.CSSClass=strClass;
}

// Link image to Maplewood?
function mwCopyRight_setUseLink(blnLink){
  this.UseLink=blnLink;
}

//Create table with copyright
function mwCopyRight_Create(doc, displayBar){
//  if (!displayBar)
//  {
//    doc.write("<HR");
//	 if (this.HRColor != "") {
//     doc.write(" color=\"" + this.HRColor + "\"");
//    }
//	 doc.write(">");
//  }
//  	doc.write("<TABLE>");
//	doc.write("<TR><TD><DT>");
//	if (this.UseLink == true) {
//	  doc.write("<A href=\"http:\/\/www.maplewood.com\" target=\"_blank\">");
//	}
//	doc.write("<IMG border=\"0\" align=\"absmiddle\" src=\""+this.Image+"\" id='copyright'>");
//	if (this.UseLink == true) {
//	  doc.write("</A></DT>");
//	}
//	if (this.CSSClass == "") {
//	  doc.write("<DT><FONT face=\"" + this.FontFace + "\" color=\"" + this.FontColor + "\" size=\"1\">");
//	} else {
//	  doc.write("<DT><FONT class=\"" + this.CSSClass + "\">");
//	}
//	doc.write("copyright");
//        doc.write(" &#169 " + this.CopyRightDate + "  v5.0.0.0");
//	if (this.CSSClass == "") {
//	  doc.write("</FONT></DT>");
//	} else {
//	  doc.write("</FONT></DT>");
//	}
//	doc.write("</TD></TR>");
//	doc.write("</TABLE>");
}

function mwCopyRight(){
	var d = new Date();	
	this.CopyRightDate="1980-" + d.getFullYear();	//Default Year of copy write date
	//this.Image="..\/Images\/mwtransp.gif";	//Default image to be displayed
	this.Image="..\/Images\/mwtransp.bmp";	//Default image to be displayed
	this.FontFace="Arial";  //Default font face
	this.FontColor="#000000"; //Default font color (Black)
	this.HRColor="";
	this.CSSClass="";
	this.UseLink=true;
	
	//functions to set property values
	this.setCopyRightDate=mwCopyRight_setCopyRightDate;
	this.setImage=mwCopyRight_setImage;
	this.setFontFace=mwCopyRight_setFontFace;
	this.setFontColor=mwCopyRight_setFontColor;
	this.getImage=mwCopyRight_getImage;
	this.setHRColor = mwCopyRight_setHRColor;
	this.setCSSClass = mwCopyRight_setCSSClass;
	this.setUseLink = mwCopyRight_setUseLink;
	//Functions
	this.Create=mwCopyRight_Create;
}
