// 

var hasMore;

function makeFrame( title, _hasMore ){
	hasMore = _hasMore;
	document.write( "<table rows=2 cols=2 border=0 cellspacing=0 cellpadding=0 align=center><tr><td class=\"frameTitle\">" );
	document.write( title );
	if( hasMore )
		document.write( "</td><td class=\"frameCorner\"><img src=\"/img/paperLightCorner.png\" border=0></td></tr><tr><td class=\"frameContent\" colspan=2>" );
	else
		document.write( "</td><td class=\"frameCorner\"><img src=\"/img/paperLightCorner.png\" border=0></td></tr><tr><td class=\"frameContent\" colspan=2 style=\"padding-bottom: 10px; border-bottom: 1px solid #5a5a5a;\">" );
}

function makeFrameEnd( href, text ){
var string;
	string = "";
	if( hasMore ){
		string += "</td></tr><tr><td class=\"frameMore\" colspan=2>";
		if( href!="" ){
			string += "<a href=\"" + href + "\">";
			if( text!="" )
				string += text;
			else
				string += "wiêcej...";
			string += "</a>";
		} else {
			if( text!="" )
				string += text;
			else
				string += "wiêcej...";
		}
	}
	string += "</td></tr></table>";
	document.write( string );
}


function makeWFrame( title, _hasMore ){
	hasMore = _hasMore;
	document.write( "<table rows=2 cols=2 border=0 cellspacing=0 cellpadding=0 align=center><tr><td class=\"frameTitle\" style=\"background-image: url(/img/paperWLight.png);\">" );
	document.write( title );
	if( hasMore )
		document.write( "</td><td class=\"frameCorner\"><img src=\"/img/paperLightWCorner.png\" border=0></td></tr><tr><td class=\"frameContent\" colspan=2 style=\"background-image: url(/img/paperWLight.png)\">" );
	else
		document.write( "</td><td class=\"frameCorner\"><img src=\"/img/paperLightWCorner.png\" border=0></td></tr><tr><td class=\"frameContent\" colspan=2 style=\"padding-bottom: 10px; border-bottom: 1px solid #5a5a5a; background-image: url(/img/paperWLight.png)\">" );
}

function makeWFrameEnd( href, text ){
var string;
	string = "";
	if( hasMore ){
		string += "</td></tr><tr><td class=\"frameMore\" colspan=2 style=\"background-image: url(/img/paperWLight.png)\">";
		if( href!="" ){
			string += "<a href=\"" + href + "\">";
			if( text!="" )
				string += text;
			else
				string += "wiêcej...";
			string += "</a>";
		} else {
			if( text!="" )
				string += text;
			else
				string += "wiêcej...";
		}
	}
	string += "</td></tr></table>";
	document.write( string );
}

function makeSolidWFrame( title, _hasMore ){
	hasMore = _hasMore;
	document.write( "<table rows=2 cols=2 border=0 cellspacing=0 cellpadding=0 align=center><tr><td class=\"frameTitle\" style=\"background-image: url(/img/solidWLight.png);\">" );
	document.write( title );
	if( hasMore )
		document.write( "</td><td class=\"frameCorner\"><img src=\"/img/solidLightWCorner.png\" border=0></td></tr><tr><td class=\"frameContent\" colspan=2 style=\"background-image: url(/img/solidWLight.png)\">" );
	else
		document.write( "</td><td class=\"frameCorner\"><img src=\"/img/solidLightWCorner.png\" border=0></td></tr><tr><td class=\"frameContent\" colspan=2 style=\"padding-bottom: 10px; border-bottom: 1px solid #5a5a5a; background-image: url(/img/solidWLight.png)\">" );
}

function makeSolidWFrameEnd( href, text ){
var string;
	string = "";
	if( hasMore ){
		string += "</td></tr><tr><td class=\"frameMore\" colspan=2 style=\"background-image: url(/img/solidWLight.png)\">";
		if( href!="" ){
			string += "<a href=\"" + href + "\">";
			if( text!="" )
				string += text;
			else
				string += "wiêcej...";
			string += "</a>";
		} else {
			if( text!="" )
				string += text;
			else
				string += "wiêcej...";
		}
	}
	string += "</td></tr></table>";
	document.write( string );
}

