/*******************************************
Author:	Tom Glasauer
Date:	2008-01-10
*******************************************/

isPagelayout = 1;			         /* 1 = YES */
hideAllContentBlocks = 1;	         /* 1 = HIDE */
imageWidthForPadding = 570;          /* smaller than this value = additional padding right */
classForPadding = " lc_padr20 ";     /* class which sets right padding */
highestNumberOfContentElements = 20; /* highest Number of Content Elements */



function getCSSFile()
	{
	var csstype = 1;
	var myurl = window.location.toString();


	// split URL on "?"
	liste = myurl.split("?");

	
	// URL has parameters
	if (liste.length > 1)
		{
		// parameters are in the second array element after the "?"

		// split URL on "&"
		liste2 = liste[1].split("&");

		// only one parameter
		if (liste2.length == 1)
			{
			isPrint=isPrintCSS(liste2[0]);
			}
		// more than one parameters
		else
			{
			isPrint=false;

			for ( p=0; p<=liste2.length-1; p++ )
				{
				isPrint=isPrintCSS(liste2[p]);

				if (isPrint) 
					p=liste2.length;

				}

			}
		if (isPrint)
			csstype=2;
		}

	if ( csstype==1 )
		{
		// TG BEGIN
		myreturn =            "<LINK media='screen' href='/_layouts/SICKStyles/sick18.css'     type='text/css' rel='stylesheet'>";
		myreturn = myreturn + "<!--[if IE]><LINK media='screen' href='/_layouts/SICKStyles/sick18.ie.css'     type='text/css' rel='stylesheet'><![endif]-->";
		myreturn = myreturn + "<LINK media='screen' href='/_layouts/SICKStyles/sick_moss2.css' type='text/css' rel='stylesheet'>";
		myreturn = myreturn + "<Link media='screen' href='/_layouts/SICKStyles/ac_sick.css'    type='text/css' rel='stylesheet'>";
		myreturn = myreturn + "<!--[if IE]><Link media='screen' href='/_layouts/SICKStyles/ac_sick.ie.css' type='text/css' rel='stylesheet'><![endif]-->";
		// TG END
		}
	else
		{
		myreturn =            "<LINK media='screen,print' href='/_layouts/SICKStyles/sick18.print.css'     type='text/css' rel='stylesheet'>";
		myreturn = myreturn + "<LINK media='screen,print' href='/_layouts/SICKStyles/sick_moss2.print.css' type='text/css' rel='stylesheet'>";
		myreturn = myreturn + "<Link media='screen,print' href='/_layouts/SICKStyles/ac_sick.print.css'    type='text/css' rel='stylesheet'>";
		}
	return myreturn;
	}

function isPrintCSS( paramstr )
	{
	var p = paramstr.split("=");
	return ( p[0]=="css" && p[1]=="print" );
	}


function popUp(myurl)
	{

	liste = myurl.split("?");
	
	if ( liste.length == 1)
		{
		// Keine Parameter in der URL
		myurl = myurl + "?css=print";
		}
	else
		{
		// Parameter in der URL
		myurl = myurl + "&css=print";
		}

    
    var standard = "top=20,left=200,scrollbars=yes,resizable=yes,status=yes,toolbar=no,menubar=no,location=yes,width=630,height=650";

    newwin = window.open(myurl,"printpreview",standard);
    newwin.focus(self);
    }


function setImagePadding()
	{
	/// Get image objects
	ci01 = document.getElementById("lc_ceimage01");
	ci02 = document.getElementById("lc_ceimage02");
	ci03 = document.getElementById("lc_ceimage03");
	ci04 = document.getElementById("lc_ceimage04");
	ci05 = document.getElementById("lc_ceimage05");
	ci06 = document.getElementById("lc_ceimage06");
	ci07 = document.getElementById("lc_ceimage07");
	ci08 = document.getElementById("lc_ceimage08");
	ci09 = document.getElementById("lc_ceimage09");
	ci10 = document.getElementById("lc_ceimage10");
	/// Get width of images 
	if (ci01) var img01 = ci01.getElementsByTagName("img")[0];
	if (ci02) var img02 = ci02.getElementsByTagName("img")[0];
	if (ci03) var img03 = ci03.getElementsByTagName("img")[0];
	if (ci04) var img04 = ci04.getElementsByTagName("img")[0];
	if (ci05) var img05 = ci05.getElementsByTagName("img")[0];
	if (ci06) var img06 = ci06.getElementsByTagName("img")[0];
	if (ci07) var img07 = ci07.getElementsByTagName("img")[0];
	if (ci08) var img08 = ci08.getElementsByTagName("img")[0];
	if (ci09) var img09 = ci09.getElementsByTagName("img")[0];
	if (ci10) var img10 = ci10.getElementsByTagName("img")[0];
	/// Set right padding if image is smaller than 570 px in width
	if (img01 && img01.width < imageWidthForPadding ) ci01.className = ci01.className + classForPadding;
	if (img02 && img02.width < imageWidthForPadding ) ci02.className = ci02.className + classForPadding;
	if (img03 && img03.width < imageWidthForPadding ) ci03.className = ci03.className + classForPadding;
	if (img04 && img04.width < imageWidthForPadding ) ci04.className = ci04.className + classForPadding;
	if (img05 && img05.width < imageWidthForPadding ) ci05.className = ci05.className + classForPadding;
	if (img06 && img06.width < imageWidthForPadding ) ci06.className = ci06.className + classForPadding;
	if (img07 && img07.width < imageWidthForPadding ) ci07.className = ci07.className + classForPadding;
	if (img08 && img08.width < imageWidthForPadding ) ci08.className = ci08.className + classForPadding;
	if (img09 && img09.width < imageWidthForPadding ) ci09.className = ci09.className + classForPadding;
	if (img10 && img10.width < imageWidthForPadding ) ci10.className = ci10.className + classForPadding;
	}

function showAllContentElements()
	{

	// Show all Content Elements
	var divs = document.getElementsByTagName('div');
	for (var i = 0; i < divs.length; i++) 
		{
		var n = divs[i];
		if ( n.id && 
			 (
			 n.id.match(/\blcshowcontainer00\b/) ||
			 n.id.match(/\blcshowcontainer01\b/) ||
			 n.id.match(/\blcshowcontainer02\b/) ||
			 n.id.match(/\blcshowcontainer03\b/) ||
			 n.id.match(/\blcshowcontainer04\b/) ||
			 n.id.match(/\blcshowcontainer05\b/) ||
			 n.id.match(/\blcshowcontainer06\b/) ||
			 n.id.match(/\blcshowcontainer07\b/) ||
			 n.id.match(/\blcshowcontainer08\b/) ||
			 n.id.match(/\blcshowcontainer09\b/) ||
			 n.id.match(/\blcshowcontainer10\b/) ||
			 n.id.match(/\blcshowcontainer11\b/) ||
			 n.id.match(/\blcshowcontainer12\b/) ||
			 n.id.match(/\blcshowcontainer13\b/) ||
			 n.id.match(/\blcshowcontainer14\b/) ||
			 n.id.match(/\blcshowcontainer15\b/) ||
			 n.id.match(/\blcshowcontainer16\b/) ||
			 n.id.match(/\blcshowcontainer17\b/) ||
			 n.id.match(/\blcshowcontainer18\b/) ||
			 n.id.match(/\blcshowcontainer19\b/) ||
			 n.id.match(/\blcshowcontainer20\b/)
			 )
		   )
			n.style.display="";
		}
	}

function hideAllContentElements()
	{

	// Hide all Content Elements
	var divs = document.getElementsByTagName('div');
	for (var i = 0; i < divs.length; i++) 
		{
		var n = divs[i];
		if ( n.id && 
			 (
			 n.id.match(/\blcshowcontainer00\b/) ||
			 n.id.match(/\blcshowcontainer01\b/) ||
			 n.id.match(/\blcshowcontainer02\b/) ||
			 n.id.match(/\blcshowcontainer03\b/) ||
			 n.id.match(/\blcshowcontainer04\b/) ||
			 n.id.match(/\blcshowcontainer05\b/) ||
			 n.id.match(/\blcshowcontainer06\b/) ||
			 n.id.match(/\blcshowcontainer07\b/) ||
			 n.id.match(/\blcshowcontainer08\b/) ||
			 n.id.match(/\blcshowcontainer09\b/) ||
			 n.id.match(/\blcshowcontainer10\b/) ||
			 n.id.match(/\blcshowcontainer11\b/) ||
			 n.id.match(/\blcshowcontainer12\b/) ||
			 n.id.match(/\blcshowcontainer13\b/) ||
			 n.id.match(/\blcshowcontainer14\b/) ||
			 n.id.match(/\blcshowcontainer15\b/) ||
			 n.id.match(/\blcshowcontainer16\b/) ||
			 n.id.match(/\blcshowcontainer17\b/) ||
			 n.id.match(/\blcshowcontainer18\b/) ||
			 n.id.match(/\blcshowcontainer19\b/) ||
			 n.id.match(/\blcshowcontainer20\b/)
			 )
		   )
			n.style.display="none";
		}
	}


function setBulletStyle()
	{
	var divs = document.getElementsByTagName('div');
	if ( divs )
		{
		for (var i = 0; i < divs.length; i++) 
			{
			var n = divs[i];
			if ( n.id && n.id.match(/\blc_contentblock\b/) )
				{
				var lis = n.getElementsByTagName('li');

				if ( lis )
					{
					for (var j = 0; j < lis.length; j++) 
						{
						var m = lis[j];
						ih = m.innerHTML;
						m.innerHTML = "";
						var span = document.createElement("span");
						var tx = document.createTextNode(ih);
						span.appendChild(tx	);
						m.appendChild(span);
						}
					}

				}
			}
		}
	}

function displayMode()
	{
	
	hideBlockControls = 1;
	

//	setBulletStyle();


	// BO: Product page with Portlets specific handling
	inv = document.getElementById('lc_invisibleIfEmpty00');
	if (inv) 
		{
		inv2 = inv.getElementsByTagName('div')[0];
		if (inv2) 
			inv3 = inv2.getElementsByTagName('div')[0];
		if ( inv3 ) 
			inv200 = stripAll(inv3.innerHTML);

		if ( inv && typeof(inv200)!='undefined' && inv200 == "" )
			inv.style.display="none";
		}


	inv = document.getElementById('lc_invisibleIfEmpty01');
	if ( inv ) inv00 = stripAll(inv.innerHTML);
	if ( inv && inv00 == "" )
		inv.style.display="none";
	// EO: Product page with Portlets specific handling


	// Hide Headings in display mode
	// Hide Frame Controls in display mode
	var divs = document.getElementsByTagName('div');
	for (var i = 0; i < divs.length; i++) 
		{
		var n = divs[i];
		if ( hideBlockControls==1 && n.id && n.id.match(/\blceditheading\b/) )
			n.style.display="none";
		if ( hideBlockControls==1 && n.id && n.id.match(/\blccecontrol\b/) )
			n.style.display="none";
		}


	/// Content Element CONTROL
	/// Get Container Object
	fb00 = document.getElementById("lcshowcontainer00");
	fb01 = document.getElementById("lcshowcontainer01");
	fb02 = document.getElementById("lcshowcontainer02");
	fb03 = document.getElementById("lcshowcontainer03");
	fb04 = document.getElementById("lcshowcontainer04");
	fb05 = document.getElementById("lcshowcontainer05");
	fb06 = document.getElementById("lcshowcontainer06");
	fb07 = document.getElementById("lcshowcontainer07");
	fb08 = document.getElementById("lcshowcontainer08");
	fb09 = document.getElementById("lcshowcontainer09");
	fb10 = document.getElementById("lcshowcontainer10");
	fb11 = document.getElementById("lcshowcontainer11");
	fb12 = document.getElementById("lcshowcontainer12");
	fb13 = document.getElementById("lcshowcontainer13");
	fb14 = document.getElementById("lcshowcontainer14");
	fb15 = document.getElementById("lcshowcontainer15");
	fb16 = document.getElementById("lcshowcontainer16");
	fb17 = document.getElementById("lcshowcontainer17");
	fb18 = document.getElementById("lcshowcontainer18");
	fb19 = document.getElementById("lcshowcontainer19");
	fb20 = document.getElementById("lcshowcontainer20");
	//fb15 = document.getElementById("lcshowcontainer15");
	/// Get Content Element CONTROL Object
	gc00 = document.getElementById("lcgeneralcontrol_00");
	gc01 = document.getElementById("lcgeneralcontrol_01");
	gc02 = document.getElementById("lcgeneralcontrol_02");
	gc03 = document.getElementById("lcgeneralcontrol_03");
	gc04 = document.getElementById("lcgeneralcontrol_04");
	gc05 = document.getElementById("lcgeneralcontrol_05");
	gc06 = document.getElementById("lcgeneralcontrol_06");
	gc07 = document.getElementById("lcgeneralcontrol_07");
	gc08 = document.getElementById("lcgeneralcontrol_08");
	gc09 = document.getElementById("lcgeneralcontrol_09");
	gc10 = document.getElementById("lcgeneralcontrol_10");
	gc11 = document.getElementById("lcgeneralcontrol_11");
	gc12 = document.getElementById("lcgeneralcontrol_12");
	gc13 = document.getElementById("lcgeneralcontrol_13");
	gc14 = document.getElementById("lcgeneralcontrol_14");
	gc15 = document.getElementById("lcgeneralcontrol_15");
	gc16 = document.getElementById("lcgeneralcontrol_16");
	gc17 = document.getElementById("lcgeneralcontrol_17");
	gc18 = document.getElementById("lcgeneralcontrol_18");
	gc19 = document.getElementById("lcgeneralcontrol_19");
	gc20 = document.getElementById("lcgeneralcontrol_20");


	/// Get CONTROL Objects
	/// Title 
	tc00 = document.getElementById("lctitlecontrol_00");
	tc01 = document.getElementById("lctitlecontrol_01");
	tc02 = document.getElementById("lctitlecontrol_02");
	tc03 = document.getElementById("lctitlecontrol_03");
	tc04 = document.getElementById("lctitlecontrol_04");
	tc05 = document.getElementById("lctitlecontrol_05");
	tc06 = document.getElementById("lctitlecontrol_06");
	tc07 = document.getElementById("lctitlecontrol_07");
	tc08 = document.getElementById("lctitlecontrol_08");
	tc09 = document.getElementById("lctitlecontrol_09");
	tc10 = document.getElementById("lctitlecontrol_10");
	tc11 = document.getElementById("lctitlecontrol_11");
	tc12 = document.getElementById("lctitlecontrol_12");
	tc13 = document.getElementById("lctitlecontrol_13");
	tc14 = document.getElementById("lctitlecontrol_14");
	tc15 = document.getElementById("lctitlecontrol_15");
	tc16 = document.getElementById("lctitlecontrol_16");
	tc17 = document.getElementById("lctitlecontrol_17");
	tc18 = document.getElementById("lctitlecontrol_18");
	tc19 = document.getElementById("lctitlecontrol_19");
	tc20 = document.getElementById("lctitlecontrol_20");
	/// SubTitle 
	stc00 = document.getElementById("lcsubtitlecontrol_00");
	stc01 = document.getElementById("lcsubtitlecontrol_01");
	stc02 = document.getElementById("lcsubtitlecontrol_02");
	stc03 = document.getElementById("lcsubtitlecontrol_03");
	stc04 = document.getElementById("lcsubtitlecontrol_04");
	stc05 = document.getElementById("lcsubtitlecontrol_05");
	stc06 = document.getElementById("lcsubtitlecontrol_06");
	stc07 = document.getElementById("lcsubtitlecontrol_07");
	stc08 = document.getElementById("lcsubtitlecontrol_08");
	stc09 = document.getElementById("lcsubtitlecontrol_09");
	stc10 = document.getElementById("lcsubtitlecontrol_10");
	stc11 = document.getElementById("lcsubtitlecontrol_11");
	stc12 = document.getElementById("lcsubtitlecontrol_12");
	stc13 = document.getElementById("lcsubtitlecontrol_13");
	stc14 = document.getElementById("lcsubtitlecontrol_14");
	stc15 = document.getElementById("lcsubtitlecontrol_15");
	stc16 = document.getElementById("lcsubtitlecontrol_16");
	stc17 = document.getElementById("lcsubtitlecontrol_17");
	stc18 = document.getElementById("lcsubtitlecontrol_18");
	stc19 = document.getElementById("lcsubtitlecontrol_19");
	stc20 = document.getElementById("lcsubtitlecontrol_20");
	/// Image
	ic01 = document.getElementById("lcimagecontrol_01");
	ic02 = document.getElementById("lcimagecontrol_02");
	ic03 = document.getElementById("lcimagecontrol_03");
	ic04 = document.getElementById("lcimagecontrol_04");
	ic05 = document.getElementById("lcimagecontrol_05");
	ic06 = document.getElementById("lcimagecontrol_06");
	ic07 = document.getElementById("lcimagecontrol_07");
	ic08 = document.getElementById("lcimagecontrol_08");
	ic09 = document.getElementById("lcimagecontrol_09");
	ic10 = document.getElementById("lcimagecontrol_10");
	ic11 = document.getElementById("lcimagecontrol_11");
	ic12 = document.getElementById("lcimagecontrol_12");
	ic13 = document.getElementById("lcimagecontrol_13");
	ic14 = document.getElementById("lcimagecontrol_14");
	ic15 = document.getElementById("lcimagecontrol_15");
	ic16 = document.getElementById("lcimagecontrol_16");
	ic17 = document.getElementById("lcimagecontrol_17");
	ic18 = document.getElementById("lcimagecontrol_18");
	ic19 = document.getElementById("lcimagecontrol_19");
	ic20 = document.getElementById("lcimagecontrol_20");
	/// Links
	lc01 = document.getElementById("lclinkcontrol_01");
	lc02 = document.getElementById("lclinkcontrol_02");
	lc03 = document.getElementById("lclinkcontrol_03");
	lc04 = document.getElementById("lclinkcontrol_04");
	lc05 = document.getElementById("lclinkcontrol_05");
	lc06 = document.getElementById("lclinkcontrol_06");
	lc07 = document.getElementById("lclinkcontrol_07");
	lc08 = document.getElementById("lclinkcontrol_08");
	lc09 = document.getElementById("lclinkcontrol_09");
	lc10 = document.getElementById("lclinkcontrol_10");
	lc11 = document.getElementById("lclinkcontrol_11");
	lc12 = document.getElementById("lclinkcontrol_12");
	lc13 = document.getElementById("lclinkcontrol_13");
	lc14 = document.getElementById("lclinkcontrol_14");
	lc15 = document.getElementById("lclinkcontrol_15");
	lc16 = document.getElementById("lclinkcontrol_16");
	lc17 = document.getElementById("lclinkcontrol_17");
	lc18 = document.getElementById("lclinkcontrol_18");
	lc19 = document.getElementById("lclinkcontrol_19");
	lc20 = document.getElementById("lclinkcontrol_20");


	/// Get CONTENT Objects
	/// Title
	tc00c = document.getElementById("lc_contenttitle_00");
	tc01c = document.getElementById("lc_contenttitle_01");
	tc02c = document.getElementById("lc_contenttitle_02");
	tc03c = document.getElementById("lc_contenttitle_03");
	tc04c = document.getElementById("lc_contenttitle_04");
	tc05c = document.getElementById("lc_contenttitle_05");
	tc06c = document.getElementById("lc_contenttitle_06");
	tc07c = document.getElementById("lc_contenttitle_07");
	tc08c = document.getElementById("lc_contenttitle_08");
	tc09c = document.getElementById("lc_contenttitle_09");
	tc10c = document.getElementById("lc_contenttitle_10");
	tc11c = document.getElementById("lc_contenttitle_11");
	tc12c = document.getElementById("lc_contenttitle_12");
	tc13c = document.getElementById("lc_contenttitle_13");
	tc14c = document.getElementById("lc_contenttitle_14");
	tc15c = document.getElementById("lc_contenttitle_15");
	tc16c = document.getElementById("lc_contenttitle_16");
	tc17c = document.getElementById("lc_contenttitle_17");
	tc18c = document.getElementById("lc_contenttitle_18");
	tc19c = document.getElementById("lc_contenttitle_19");
	tc20c = document.getElementById("lc_contenttitle_20");
	/// SubTitle
	stc00c = document.getElementById("lc_contentsubtitle_00");
	stc01c = document.getElementById("lc_contentsubtitle_01");
	stc02c = document.getElementById("lc_contentsubtitle_02");
	stc03c = document.getElementById("lc_contentsubtitle_03");
	stc04c = document.getElementById("lc_contentsubtitle_04");
	stc05c = document.getElementById("lc_contentsubtitle_05");
	stc06c = document.getElementById("lc_contentsubtitle_06");
	stc07c = document.getElementById("lc_contentsubtitle_07");
	stc08c = document.getElementById("lc_contentsubtitle_08");
	stc09c = document.getElementById("lc_contentsubtitle_09");
	stc10c = document.getElementById("lc_contentsubtitle_10");
	stc11c = document.getElementById("lc_contentsubtitle_11");
	stc12c = document.getElementById("lc_contentsubtitle_12");
	stc13c = document.getElementById("lc_contentsubtitle_13");
	stc14c = document.getElementById("lc_contentsubtitle_14");
	stc15c = document.getElementById("lc_contentsubtitle_15");
	stc16c = document.getElementById("lc_contentsubtitle_16");
	stc17c = document.getElementById("lc_contentsubtitle_17");
	stc18c = document.getElementById("lc_contentsubtitle_18");
	stc19c = document.getElementById("lc_contentsubtitle_19");
	stc20c = document.getElementById("lc_contentsubtitle_20");
	/// Image
	ic01c = document.getElementById("lc_contentimage_01");
	ic02c = document.getElementById("lc_contentimage_02");
	ic03c = document.getElementById("lc_contentimage_03");
	ic04c = document.getElementById("lc_contentimage_04");
	ic05c = document.getElementById("lc_contentimage_05");
	ic06c = document.getElementById("lc_contentimage_06");
	ic07c = document.getElementById("lc_contentimage_07");
	ic08c = document.getElementById("lc_contentimage_08");
	ic09c = document.getElementById("lc_contentimage_09");
	ic10c = document.getElementById("lc_contentimage_10");
	ic11c = document.getElementById("lc_contentimage_11");
	ic12c = document.getElementById("lc_contentimage_12");
	ic13c = document.getElementById("lc_contentimage_13");
	ic14c = document.getElementById("lc_contentimage_14");
	ic15c = document.getElementById("lc_contentimage_15");
	ic16c = document.getElementById("lc_contentimage_16");
	ic17c = document.getElementById("lc_contentimage_17");
	ic18c = document.getElementById("lc_contentimage_18");
	ic19c = document.getElementById("lc_contentimage_19");
	ic20c = document.getElementById("lc_contentimage_20");
	/// Links
	l1c01c = document.getElementById("lc_contentlink_link01_01");
		l2c01c = document.getElementById("lc_contentlink_link02_01");
		l3c01c = document.getElementById("lc_contentlink_link03_01");
		l4c01c = document.getElementById("lc_contentlink_link04_01");
		l5c01c = document.getElementById("lc_contentlink_link05_01");
	l1c02c = document.getElementById("lc_contentlink_link01_02");
		l2c02c = document.getElementById("lc_contentlink_link02_02");
		l3c02c = document.getElementById("lc_contentlink_link03_02");
		l4c02c = document.getElementById("lc_contentlink_link04_02");
		l5c02c = document.getElementById("lc_contentlink_link05_02");
	l1c03c = document.getElementById("lc_contentlink_link01_03");
		l2c03c = document.getElementById("lc_contentlink_link02_03");
		l3c03c = document.getElementById("lc_contentlink_link03_03");
		l4c03c = document.getElementById("lc_contentlink_link04_03");
		l5c03c = document.getElementById("lc_contentlink_link05_03");
	l1c04c = document.getElementById("lc_contentlink_link01_04");
		l2c04c = document.getElementById("lc_contentlink_link02_04");
		l3c04c = document.getElementById("lc_contentlink_link03_04");
		l4c04c = document.getElementById("lc_contentlink_link04_04");
		l5c04c = document.getElementById("lc_contentlink_link05_04");
	l1c05c = document.getElementById("lc_contentlink_link01_05");
		l2c05c = document.getElementById("lc_contentlink_link02_05");
		l3c05c = document.getElementById("lc_contentlink_link03_05");
		l4c05c = document.getElementById("lc_contentlink_link04_05");
		l5c05c = document.getElementById("lc_contentlink_link05_05");
	l1c06c = document.getElementById("lc_contentlink_link01_06");
		l2c06c = document.getElementById("lc_contentlink_link02_06");
		l3c06c = document.getElementById("lc_contentlink_link03_06");
		l4c06c = document.getElementById("lc_contentlink_link04_06");
		l5c06c = document.getElementById("lc_contentlink_link05_06");
	l1c07c = document.getElementById("lc_contentlink_link01_07");
		l2c07c = document.getElementById("lc_contentlink_link02_07");
		l3c07c = document.getElementById("lc_contentlink_link03_07");
		l4c07c = document.getElementById("lc_contentlink_link04_07");
		l5c07c = document.getElementById("lc_contentlink_link05_07");
	l1c08c = document.getElementById("lc_contentlink_link01_08");
		l2c08c = document.getElementById("lc_contentlink_link02_08");
		l3c08c = document.getElementById("lc_contentlink_link03_08");
		l4c08c = document.getElementById("lc_contentlink_link04_08");
		l5c08c = document.getElementById("lc_contentlink_link05_08");
	l1c09c = document.getElementById("lc_contentlink_link01_09");
		l2c09c = document.getElementById("lc_contentlink_link02_09");
		l3c09c = document.getElementById("lc_contentlink_link03_09");
		l4c09c = document.getElementById("lc_contentlink_link04_09");
		l5c09c = document.getElementById("lc_contentlink_link05_09");
	l1c10c = document.getElementById("lc_contentlink_link01_10");
		l2c10c = document.getElementById("lc_contentlink_link02_10");
		l3c10c = document.getElementById("lc_contentlink_link03_10");
		l4c10c = document.getElementById("lc_contentlink_link04_10");
		l5c10c = document.getElementById("lc_contentlink_link05_10");

	l1c11c = document.getElementById("lc_contentlink_link01_11");
		l2c11c = document.getElementById("lc_contentlink_link02_11");
		l3c11c = document.getElementById("lc_contentlink_link03_11");
		l4c11c = document.getElementById("lc_contentlink_link04_11");
		l5c11c = document.getElementById("lc_contentlink_link05_11");
	l1c12c = document.getElementById("lc_contentlink_link01_12");
		l2c12c = document.getElementById("lc_contentlink_link02_12");
		l3c12c = document.getElementById("lc_contentlink_link03_12");
		l4c12c = document.getElementById("lc_contentlink_link04_12");
		l5c12c = document.getElementById("lc_contentlink_link05_12");
	l1c13c = document.getElementById("lc_contentlink_link01_13");
		l2c13c = document.getElementById("lc_contentlink_link02_13");
		l3c13c = document.getElementById("lc_contentlink_link03_13");
		l4c13c = document.getElementById("lc_contentlink_link04_13");
		l5c13c = document.getElementById("lc_contentlink_link05_13");
	l1c14c = document.getElementById("lc_contentlink_link01_14");
		l2c14c = document.getElementById("lc_contentlink_link02_14");
		l3c14c = document.getElementById("lc_contentlink_link03_14");
		l4c14c = document.getElementById("lc_contentlink_link04_14");
		l5c14c = document.getElementById("lc_contentlink_link05_14");
	l1c15c = document.getElementById("lc_contentlink_link01_15");
		l2c15c = document.getElementById("lc_contentlink_link02_15");
		l3c15c = document.getElementById("lc_contentlink_link03_15");
		l4c15c = document.getElementById("lc_contentlink_link04_15");
		l5c15c = document.getElementById("lc_contentlink_link05_15");
	l1c16c = document.getElementById("lc_contentlink_link01_16");
		l2c16c = document.getElementById("lc_contentlink_link02_16");
		l3c16c = document.getElementById("lc_contentlink_link03_16");
		l4c16c = document.getElementById("lc_contentlink_link04_16");
		l5c16c = document.getElementById("lc_contentlink_link05_16");
	l1c17c = document.getElementById("lc_contentlink_link01_17");
		l2c17c = document.getElementById("lc_contentlink_link02_17");
		l3c17c = document.getElementById("lc_contentlink_link03_17");
		l4c17c = document.getElementById("lc_contentlink_link04_17");
		l5c17c = document.getElementById("lc_contentlink_link05_17");
	l1c18c = document.getElementById("lc_contentlink_link01_18");
		l2c18c = document.getElementById("lc_contentlink_link02_18");
		l3c18c = document.getElementById("lc_contentlink_link03_18");
		l4c18c = document.getElementById("lc_contentlink_link04_18");
		l5c18c = document.getElementById("lc_contentlink_link05_18");
	l1c19c = document.getElementById("lc_contentlink_link01_19");
		l2c19c = document.getElementById("lc_contentlink_link02_19");
		l3c19c = document.getElementById("lc_contentlink_link03_19");
		l4c19c = document.getElementById("lc_contentlink_link04_19");
		l5c19c = document.getElementById("lc_contentlink_link05_19");
	l1c20c = document.getElementById("lc_contentlink_link01_20");
		l2c20c = document.getElementById("lc_contentlink_link02_20");
		l3c20c = document.getElementById("lc_contentlink_link03_20");
		l4c20c = document.getElementById("lc_contentlink_link04_20");
		l5c20c = document.getElementById("lc_contentlink_link05_20");


	/// Get DISPLAY Status from HTML
	/// Title
	if ( tc00 ) cont00tc = stripAll(tc00.innerHTML);
	if ( tc01 ) cont01tc = stripAll(tc01.innerHTML);
	if ( tc02 ) cont02tc = stripAll(tc02.innerHTML);
	if ( tc03 ) cont03tc = stripAll(tc03.innerHTML);
	if ( tc04 ) cont04tc = stripAll(tc04.innerHTML);
	if ( tc05 ) cont05tc = stripAll(tc05.innerHTML);
	if ( tc06 ) cont06tc = stripAll(tc06.innerHTML);
	if ( tc07 ) cont07tc = stripAll(tc07.innerHTML);
	if ( tc08 ) cont08tc = stripAll(tc08.innerHTML);
	if ( tc09 ) cont09tc = stripAll(tc09.innerHTML);
	if ( tc10 ) cont10tc = stripAll(tc10.innerHTML);
	if ( tc11 ) cont11tc = stripAll(tc11.innerHTML);
	if ( tc12 ) cont12tc = stripAll(tc12.innerHTML);
	if ( tc13 ) cont13tc = stripAll(tc13.innerHTML);
	if ( tc14 ) cont14tc = stripAll(tc14.innerHTML);
	if ( tc15 ) cont15tc = stripAll(tc15.innerHTML);
	if ( tc16 ) cont16tc = stripAll(tc16.innerHTML);
	if ( tc17 ) cont17tc = stripAll(tc17.innerHTML);
	if ( tc18 ) cont18tc = stripAll(tc18.innerHTML);
	if ( tc19 ) cont19tc = stripAll(tc19.innerHTML);
	if ( tc20 ) cont20tc = stripAll(tc20.innerHTML);
	/// SubTitle
	if ( stc00 ) cont00stc = stripAll(stc00.innerHTML);
	if ( stc01 ) cont01stc = stripAll(stc01.innerHTML);
	if ( stc02 ) cont02stc = stripAll(stc02.innerHTML);
	if ( stc03 ) cont03stc = stripAll(stc03.innerHTML);
	if ( stc04 ) cont04stc = stripAll(stc04.innerHTML);
	if ( stc05 ) cont05stc = stripAll(stc05.innerHTML);
	if ( stc06 ) cont06stc = stripAll(stc06.innerHTML);
	if ( stc07 ) cont07stc = stripAll(stc07.innerHTML);
	if ( stc08 ) cont08stc = stripAll(stc08.innerHTML);
	if ( stc09 ) cont09stc = stripAll(stc09.innerHTML);
	if ( stc10 ) cont10stc = stripAll(stc10.innerHTML);
	if ( stc11 ) cont11stc = stripAll(stc11.innerHTML);
	if ( stc12 ) cont12stc = stripAll(stc12.innerHTML);
	if ( stc13 ) cont13stc = stripAll(stc13.innerHTML);
	if ( stc14 ) cont14stc = stripAll(stc14.innerHTML);
	if ( stc15 ) cont15stc = stripAll(stc15.innerHTML);
	if ( stc16 ) cont16stc = stripAll(stc16.innerHTML);
	if ( stc17 ) cont17stc = stripAll(stc17.innerHTML);
	if ( stc18 ) cont18stc = stripAll(stc18.innerHTML);
	if ( stc19 ) cont19stc = stripAll(stc19.innerHTML);
	if ( stc20 ) cont20stc = stripAll(stc20.innerHTML);
	/// Image
	if ( ic01 ) cont01ic = stripAll(ic01.innerHTML);
	if ( ic02 ) cont02ic = stripAll(ic02.innerHTML);
	if ( ic03 ) cont03ic = stripAll(ic03.innerHTML);
	if ( ic04 ) cont04ic = stripAll(ic04.innerHTML);
	if ( ic05 ) cont05ic = stripAll(ic05.innerHTML);
	if ( ic06 ) cont06ic = stripAll(ic06.innerHTML);
	if ( ic07 ) cont07ic = stripAll(ic07.innerHTML);
	if ( ic08 ) cont08ic = stripAll(ic08.innerHTML);
	if ( ic09 ) cont09ic = stripAll(ic09.innerHTML);
	if ( ic10 ) cont10ic = stripAll(ic10.innerHTML);
	if ( ic11 ) cont11ic = stripAll(ic11.innerHTML);
	if ( ic12 ) cont12ic = stripAll(ic12.innerHTML);
	if ( ic13 ) cont13ic = stripAll(ic13.innerHTML);
	if ( ic14 ) cont14ic = stripAll(ic14.innerHTML);
	if ( ic15 ) cont15ic = stripAll(ic15.innerHTML);
	if ( ic16 ) cont16ic = stripAll(ic16.innerHTML);
	if ( ic17 ) cont17ic = stripAll(ic17.innerHTML);
	if ( ic18 ) cont18ic = stripAll(ic18.innerHTML);
	if ( ic19 ) cont19ic = stripAll(ic19.innerHTML);
	if ( ic20 ) cont20ic = stripAll(ic20.innerHTML);
	/// Links
	if ( lc01 ) cont01lc = stripAll(lc01.innerHTML);
	if ( lc02 ) cont02lc = stripAll(lc02.innerHTML);
	if ( lc03 ) cont03lc = stripAll(lc03.innerHTML);
	if ( lc04 ) cont04lc = stripAll(lc04.innerHTML);
	if ( lc05 ) cont05lc = stripAll(lc05.innerHTML);
	if ( lc06 ) cont06lc = stripAll(lc06.innerHTML);
	if ( lc07 ) cont07lc = stripAll(lc07.innerHTML);
	if ( lc08 ) cont08lc = stripAll(lc08.innerHTML);
	if ( lc09 ) cont09lc = stripAll(lc09.innerHTML);
	if ( lc10 ) cont10lc = stripAll(lc10.innerHTML);
	if ( lc11 ) cont11lc = stripAll(lc11.innerHTML);
	if ( lc12 ) cont12lc = stripAll(lc12.innerHTML);
	if ( lc13 ) cont13lc = stripAll(lc13.innerHTML);
	if ( lc14 ) cont14lc = stripAll(lc14.innerHTML);
	if ( lc15 ) cont15lc = stripAll(lc15.innerHTML);
	if ( lc16 ) cont16lc = stripAll(lc16.innerHTML);
	if ( lc17 ) cont17lc = stripAll(lc17.innerHTML);
	if ( lc18 ) cont18lc = stripAll(lc18.innerHTML);
	if ( lc19 ) cont19lc = stripAll(lc19.innerHTML);
	if ( lc20 ) cont20lc = stripAll(lc20.innerHTML);


	/// Strip unnecessary content
	if ( gc00 ) cont00 = stripAll(gc00.innerHTML);
	if ( gc01 ) cont01 = stripAll(gc01.innerHTML);
	if ( gc02 ) cont02 = stripAll(gc02.innerHTML);
	if ( gc03 ) cont03 = stripAll(gc03.innerHTML);
	if ( gc04 ) cont04 = stripAll(gc04.innerHTML);
	if ( gc05 ) cont05 = stripAll(gc05.innerHTML);
	if ( gc06 ) cont06 = stripAll(gc06.innerHTML);
	if ( gc07 ) cont07 = stripAll(gc07.innerHTML);
	if ( gc08 ) cont08 = stripAll(gc08.innerHTML);
	if ( gc09 ) cont09 = stripAll(gc09.innerHTML);
	if ( gc10 ) cont10 = stripAll(gc10.innerHTML);
	if ( gc11 ) cont11 = stripAll(gc11.innerHTML);
	if ( gc12 ) cont12 = stripAll(gc12.innerHTML);
	if ( gc13 ) cont13 = stripAll(gc13.innerHTML);
	if ( gc14 ) cont14 = stripAll(gc14.innerHTML);
	if ( gc15 ) cont15 = stripAll(gc15.innerHTML);
	if ( gc16 ) cont16 = stripAll(gc16.innerHTML);
	if ( gc17 ) cont17 = stripAll(gc17.innerHTML);
	if ( gc18 ) cont18 = stripAll(gc18.innerHTML);
	if ( gc19 ) cont19 = stripAll(gc19.innerHTML);
	if ( gc20 ) cont20 = stripAll(gc20.innerHTML);


	/// Hide Elements EMPTY Status
	if ( gc00 && cont00 	== "" ) cont00 = "hidepageheader";
	if ( gc01 && (cont01 	== "" || cont01 == "hidecontent") ) cont01 = "hidecontentelement";
	if ( gc02 && (cont02 	== "" || cont02 == "hidecontent") ) cont02 = "hidecontentelement";
	if ( gc03 && (cont03 	== "" || cont03 == "hidecontent") ) cont03 = "hidecontentelement";
	if ( gc04 && (cont04 	== "" || cont04 == "hidecontent") ) cont04 = "hidecontentelement";
	if ( gc05 && (cont05 	== "" || cont05 == "hidecontent") ) cont05 = "hidecontentelement";
	if ( gc06 && (cont06 	== "" || cont06 == "hidecontent") ) cont06 = "hidecontentelement";
	if ( gc07 && (cont07 	== "" || cont07 == "hidecontent") ) cont07 = "hidecontentelement";
	if ( gc08 && (cont08 	== "" || cont08 == "hidecontent") ) cont08 = "hidecontentelement";
	if ( gc09 && (cont09 	== "" || cont09 == "hidecontent") ) cont09 = "hidecontentelement";
	if ( gc10 && (cont10 	== "" || cont10 == "hidecontent") ) cont10 = "hidecontentelement";
	if ( gc11 && (cont11 	== "" || cont11 == "hidecontent") ) cont11 = "hidecontentelement";
	if ( gc12 && (cont12 	== "" || cont12 == "hidecontent") ) cont12 = "hidecontentelement";
	if ( gc13 && (cont13 	== "" || cont13 == "hidecontent") ) cont13 = "hidecontentelement";
	if ( gc14 && (cont14 	== "" || cont14 == "hidecontent") ) cont14 = "hidecontentelement";
	if ( gc15 && (cont15 	== "" || cont15 == "hidecontent") ) cont15 = "hidecontentelement";
	if ( gc16 && (cont16 	== "" || cont16 == "hidecontent") ) cont16 = "hidecontentelement";
	if ( gc17 && (cont17 	== "" || cont17 == "hidecontent") ) cont17 = "hidecontentelement";
	if ( gc18 && (cont18 	== "" || cont18 == "hidecontent") ) cont18 = "hidecontentelement";
	if ( gc19 && (cont19 	== "" || cont19 == "hidecontent") ) cont19 = "hidecontentelement";
	if ( gc20 && (cont20 	== "" || cont20 == "hidecontent") ) cont20 = "hidecontentelement";

	if ( tc00 && cont00tc 	== "" ) cont00tc = "hideleadtext";
	if ( tc01 && cont01tc 	== "" ) cont01tc = "hidetitle";
	if ( tc02 && cont02tc 	== "" ) cont02tc = "hidetitle";
	if ( tc03 && cont03tc 	== "" ) cont03tc = "hidetitle";
	if ( tc04 && cont04tc 	== "" ) cont04tc = "hidetitle";
	if ( tc05 && cont05tc 	== "" ) cont05tc = "hidetitle";
	if ( tc06 && cont06tc 	== "" ) cont06tc = "hidetitle";
	if ( tc07 && cont07tc 	== "" ) cont07tc = "hidetitle";
	if ( tc08 && cont08tc 	== "" ) cont08tc = "hidetitle";
	if ( tc09 && cont09tc 	== "" ) cont09tc = "hidetitle";
	if ( tc10 && cont10tc 	== "" ) cont10tc = "hidetitle";
	if ( tc11 && cont11tc 	== "" ) cont11tc = "hidetitle";
	if ( tc12 && cont12tc 	== "" ) cont12tc = "hidetitle";
	if ( tc13 && cont13tc 	== "" ) cont13tc = "hidetitle";
	if ( tc14 && cont14tc 	== "" ) cont14tc = "hidetitle";
	if ( tc15 && cont15tc 	== "" ) cont15tc = "hidetitle";
	if ( tc16 && cont16tc 	== "" ) cont16tc = "hidetitle";
	if ( tc17 && cont17tc 	== "" ) cont17tc = "hidetitle";
	if ( tc18 && cont18tc 	== "" ) cont18tc = "hidetitle";
	if ( tc19 && cont19tc 	== "" ) cont19tc = "hidetitle";
	if ( tc20 && cont20tc 	== "" ) cont20tc = "hidetitle";

	if ( stc00 && cont00stc == "" ) cont00stc = "hidesubtitle";
	if ( stc01 && cont01stc == "" ) cont01stc = "hidesubtitle";
	if ( stc02 && cont02stc == "" ) cont02stc = "hidesubtitle";
	if ( stc03 && cont03stc == "" ) cont03stc = "hidesubtitle";
	if ( stc04 && cont04stc == "" ) cont04stc = "hidesubtitle";
	if ( stc05 && cont05stc == "" ) cont05stc = "hidesubtitle";
	if ( stc06 && cont06stc == "" ) cont06stc = "hidesubtitle";
	if ( stc07 && cont07stc == "" ) cont07stc = "hidesubtitle";
	if ( stc08 && cont08stc == "" ) cont08stc = "hidesubtitle";
	if ( stc09 && cont09stc == "" ) cont09stc = "hidesubtitle";
	if ( stc10 && cont10stc == "" ) cont10stc = "hidesubtitle";
	if ( stc11 && cont11stc == "" ) cont11stc = "hidesubtitle";
	if ( stc12 && cont12stc == "" ) cont12stc = "hidesubtitle";
	if ( stc13 && cont13stc == "" ) cont13stc = "hidesubtitle";
	if ( stc14 && cont14stc == "" ) cont14stc = "hidesubtitle";
	if ( stc15 && cont15stc == "" ) cont15stc = "hidesubtitle";
	if ( stc16 && cont16stc == "" ) cont16stc = "hidesubtitle";
	if ( stc17 && cont17stc == "" ) cont17stc = "hidesubtitle";
	if ( stc18 && cont18stc == "" ) cont18stc = "hidesubtitle";
	if ( stc19 && cont19stc == "" ) cont19stc = "hidesubtitle";
	if ( stc20 && cont20stc == "" ) cont20stc = "hidesubtitle";

	if ( ic01 && cont01ic 	== "" ) cont01ic = "noimage";
	if ( ic02 && cont02ic 	== "" ) cont02ic = "noimage";
	if ( ic03 && cont03ic 	== "" ) cont03ic = "noimage";
	if ( ic04 && cont04ic 	== "" ) cont04ic = "noimage";
	if ( ic05 && cont05ic 	== "" ) cont05ic = "noimage";
	if ( ic06 && cont06ic 	== "" ) cont06ic = "noimage";
	if ( ic07 && cont07ic 	== "" ) cont07ic = "noimage";
	if ( ic08 && cont08ic 	== "" ) cont08ic = "noimage";
	if ( ic09 && cont09ic 	== "" ) cont09ic = "noimage";
	if ( ic10 && cont10ic 	== "" ) cont10ic = "noimage";
	if ( ic11 && cont11ic 	== "" ) cont11ic = "noimage";
	if ( ic12 && cont12ic 	== "" ) cont12ic = "noimage";
	if ( ic13 && cont13ic 	== "" ) cont13ic = "noimage";
	if ( ic14 && cont14ic 	== "" ) cont14ic = "noimage";
	if ( ic15 && cont15ic 	== "" ) cont15ic = "noimage";
	if ( ic16 && cont16ic 	== "" ) cont16ic = "noimage";
	if ( ic17 && cont17ic 	== "" ) cont17ic = "noimage";
	if ( ic18 && cont18ic 	== "" ) cont18ic = "noimage";
	if ( ic19 && cont19ic 	== "" ) cont19ic = "noimage";
	if ( ic20 && cont20ic 	== "" ) cont20ic = "noimage";

	if ( lc01 && cont01lc 	== "" ) cont01lc = "nolinks";
	if ( lc02 && cont02lc 	== "" ) cont02lc = "nolinks";
	if ( lc03 && cont03lc 	== "" ) cont03lc = "nolinks";
	if ( lc04 && cont04lc 	== "" ) cont04lc = "nolinks";
	if ( lc05 && cont05lc 	== "" ) cont05lc = "nolinks";
	if ( lc06 && cont06lc 	== "" ) cont06lc = "nolinks";
	if ( lc07 && cont07lc 	== "" ) cont07lc = "nolinks";
	if ( lc08 && cont08lc 	== "" ) cont08lc = "nolinks";
	if ( lc09 && cont09lc 	== "" ) cont09lc = "nolinks";
	if ( lc10 && cont10lc 	== "" ) cont10lc = "nolinks";
	if ( lc11 && cont11lc 	== "" ) cont11lc = "nolinks";
	if ( lc12 && cont12lc 	== "" ) cont12lc = "nolinks";
	if ( lc13 && cont13lc 	== "" ) cont13lc = "nolinks";
	if ( lc14 && cont14lc 	== "" ) cont14lc = "nolinks";
	if ( lc15 && cont15lc 	== "" ) cont15lc = "nolinks";
	if ( lc16 && cont16lc 	== "" ) cont16lc = "nolinks";
	if ( lc17 && cont17lc 	== "" ) cont17lc = "nolinks";
	if ( lc18 && cont18lc 	== "" ) cont18lc = "nolinks";
	if ( lc19 && cont19lc 	== "" ) cont19lc = "nolinks";
	if ( lc20 && cont20lc 	== "" ) cont20lc = "nolinks";


	/// Hide Content Blocks and Titles
	if ( fb00 && gc00 && cont00 == "hidepageheader" ) { fb00.className = "lc_noshow"; }
	if ( fb01 && gc01 && cont01 == "hidecontentelement" ) { fb01.className = "lc_noshow"; }
	if ( fb02 && gc02 && cont02 == "hidecontentelement" ) { fb02.className = "lc_noshow"; }
	if ( fb03 && gc03 && cont03 == "hidecontentelement" ) { fb03.className = "lc_noshow"; }
	if ( fb04 && gc04 && cont04 == "hidecontentelement" ) { fb04.className = "lc_noshow"; }
	if ( fb05 && gc05 && cont05 == "hidecontentelement" ) { fb05.className = "lc_noshow"; }
	if ( fb06 && gc06 && cont06 == "hidecontentelement" ) { fb06.className = "lc_noshow"; }
	if ( fb07 && gc07 && cont07 == "hidecontentelement" ) { fb07.className = "lc_noshow"; }
	if ( fb08 && gc08 && cont08 == "hidecontentelement" ) { fb08.className = "lc_noshow"; }
	if ( fb09 && gc09 && cont09 == "hidecontentelement" ) { fb09.className = "lc_noshow"; }
	if ( fb10 && gc10 && cont10 == "hidecontentelement" ) { fb10.className = "lc_noshow"; }
	if ( fb11 && gc11 && cont11 == "hidecontentelement" ) { fb11.className = "lc_noshow"; }
	if ( fb12 && gc12 && cont12 == "hidecontentelement" ) { fb12.className = "lc_noshow"; }
	if ( fb13 && gc13 && cont13 == "hidecontentelement" ) { fb13.className = "lc_noshow"; }
	if ( fb14 && gc14 && cont14 == "hidecontentelement" ) { fb14.className = "lc_noshow"; }
	if ( fb15 && gc15 && cont15 == "hidecontentelement" ) { fb15.className = "lc_noshow"; }
	if ( fb16 && gc16 && cont16 == "hidecontentelement" ) { fb16.className = "lc_noshow"; }
	if ( fb17 && gc17 && cont17 == "hidecontentelement" ) { fb17.className = "lc_noshow"; }
	if ( fb18 && gc18 && cont18 == "hidecontentelement" ) { fb18.className = "lc_noshow"; }
	if ( fb19 && gc19 && cont19 == "hidecontentelement" ) { fb19.className = "lc_noshow"; }
	if ( fb20 && gc20 && cont20 == "hidecontentelement" ) { fb20.className = "lc_noshow"; }

	if ( tc00 && cont00tc == "hideleadtext" ) { tc00c.className = "lc_noshow"; }
	if ( tc01 && cont01tc == "hidetitle" ) { tc01c.className = "lc_noshow"; }
	if ( tc02 && cont02tc == "hidetitle" ) { tc02c.className = "lc_noshow"; }
	if ( tc03 && cont03tc == "hidetitle" ) { tc03c.className = "lc_noshow"; }
	if ( tc04 && cont04tc == "hidetitle" ) { tc04c.className = "lc_noshow"; }
	if ( tc05 && cont05tc == "hidetitle" ) { tc05c.className = "lc_noshow"; }
	if ( tc06 && cont06tc == "hidetitle" ) { tc06c.className = "lc_noshow"; }
	if ( tc07 && cont07tc == "hidetitle" ) { tc07c.className = "lc_noshow"; }
	if ( tc08 && cont08tc == "hidetitle" ) { tc08c.className = "lc_noshow"; }
	if ( tc09 && cont09tc == "hidetitle" ) { tc09c.className = "lc_noshow"; }
	if ( tc10 && cont10tc == "hidetitle" ) { tc10c.className = "lc_noshow"; }
	if ( tc11 && cont11tc == "hidetitle" ) { tc11c.className = "lc_noshow"; }
	if ( tc12 && cont12tc == "hidetitle" ) { tc12c.className = "lc_noshow"; }
	if ( tc13 && cont13tc == "hidetitle" ) { tc13c.className = "lc_noshow"; }
	if ( tc14 && cont14tc == "hidetitle" ) { tc14c.className = "lc_noshow"; }
	if ( tc15 && cont15tc == "hidetitle" ) { tc15c.className = "lc_noshow"; }
	if ( tc16 && cont16tc == "hidetitle" ) { tc16c.className = "lc_noshow"; }
	if ( tc17 && cont17tc == "hidetitle" ) { tc17c.className = "lc_noshow"; }
	if ( tc18 && cont18tc == "hidetitle" ) { tc18c.className = "lc_noshow"; }
	if ( tc19 && cont19tc == "hidetitle" ) { tc19c.className = "lc_noshow"; }
	if ( tc20 && cont20tc == "hidetitle" ) { tc20c.className = "lc_noshow"; }

	if ( stc00 && cont00stc == "hidesubtitle" ) { stc00c.className = "lc_noshow"; }
	if ( stc01 && cont01stc == "hidesubtitle" ) { stc01c.className = "lc_noshow"; }
	if ( stc02 && cont02stc == "hidesubtitle" ) { stc02c.className = "lc_noshow"; }
	if ( stc03 && cont03stc == "hidesubtitle" ) { stc03c.className = "lc_noshow"; }
	if ( stc04 && cont04stc == "hidesubtitle" ) { stc04c.className = "lc_noshow"; }
	if ( stc05 && cont05stc == "hidesubtitle" ) { stc05c.className = "lc_noshow"; }
	if ( stc06 && cont06stc == "hidesubtitle" ) { stc06c.className = "lc_noshow"; }
	if ( stc07 && cont07stc == "hidesubtitle" ) { stc07c.className = "lc_noshow"; }
	if ( stc08 && cont08stc == "hidesubtitle" ) { stc08c.className = "lc_noshow"; }
	if ( stc09 && cont09stc == "hidesubtitle" ) { stc09c.className = "lc_noshow"; }
	if ( stc10 && cont10stc == "hidesubtitle" ) { stc10c.className = "lc_noshow"; }
	if ( stc11 && cont11stc == "hidesubtitle" ) { stc11c.className = "lc_noshow"; }
	if ( stc12 && cont12stc == "hidesubtitle" ) { stc12c.className = "lc_noshow"; }
	if ( stc13 && cont13stc == "hidesubtitle" ) { stc13c.className = "lc_noshow"; }
	if ( stc14 && cont14stc == "hidesubtitle" ) { stc14c.className = "lc_noshow"; }
	if ( stc15 && cont15stc == "hidesubtitle" ) { stc15c.className = "lc_noshow"; }
	if ( stc16 && cont16stc == "hidesubtitle" ) { stc16c.className = "lc_noshow"; }
	if ( stc17 && cont17stc == "hidesubtitle" ) { stc17c.className = "lc_noshow"; }
	if ( stc18 && cont18stc == "hidesubtitle" ) { stc18c.className = "lc_noshow"; }
	if ( stc19 && cont19stc == "hidesubtitle" ) { stc19c.className = "lc_noshow"; }
	if ( stc20 && cont20stc == "hidesubtitle" ) { stc20c.className = "lc_noshow"; }

	if ( ic01 && cont01ic == "noimage" ) { ic01c.className = "lc_noshow"; }
	if ( ic02 && cont02ic == "noimage" ) { ic02c.className = "lc_noshow"; }
	if ( ic03 && cont03ic == "noimage" ) { ic03c.className = "lc_noshow"; }
	if ( ic04 && cont04ic == "noimage" ) { ic04c.className = "lc_noshow"; }
	if ( ic05 && cont05ic == "noimage" ) { ic05c.className = "lc_noshow"; }
	if ( ic06 && cont06ic == "noimage" ) { ic06c.className = "lc_noshow"; }
	if ( ic07 && cont07ic == "noimage" ) { ic07c.className = "lc_noshow"; }
	if ( ic08 && cont08ic == "noimage" ) { ic08c.className = "lc_noshow"; }
	if ( ic09 && cont09ic == "noimage" ) { ic09c.className = "lc_noshow"; }
	if ( ic10 && cont10ic == "noimage" ) { ic10c.className = "lc_noshow"; }
	if ( ic11 && cont11ic == "noimage" ) { ic11c.className = "lc_noshow"; }
	if ( ic12 && cont12ic == "noimage" ) { ic12c.className = "lc_noshow"; }
	if ( ic13 && cont13ic == "noimage" ) { ic13c.className = "lc_noshow"; }
	if ( ic14 && cont14ic == "noimage" ) { ic14c.className = "lc_noshow"; }
	if ( ic15 && cont15ic == "noimage" ) { ic15c.className = "lc_noshow"; }
	if ( ic16 && cont16ic == "noimage" ) { ic16c.className = "lc_noshow"; }
	if ( ic17 && cont17ic == "noimage" ) { ic17c.className = "lc_noshow"; }
	if ( ic18 && cont18ic == "noimage" ) { ic18c.className = "lc_noshow"; }
	if ( ic19 && cont19ic == "noimage" ) { ic19c.className = "lc_noshow"; }
	if ( ic20 && cont20ic == "noimage" ) { ic20c.className = "lc_noshow"; }

	if ( lc01 && cont01lc == "nolinks" ) 
		{ l1c01c.className = "lc_noshow"; l2c01c.className = "lc_noshow"; l3c01c.className = "lc_noshow"; l4c01c.className = "lc_noshow"; l5c01c.className = "lc_noshow"; }
	if ( lc01 && cont01lc == "show1link" ) 
		{ l2c01c.className = "lc_noshow"; l3c01c.className = "lc_noshow"; l4c01c.className = "lc_noshow"; l5c01c.className = "lc_noshow"; }
	if ( lc01 && cont01lc == "show2links" ) 
		{ l3c01c.className = "lc_noshow"; l4c01c.className = "lc_noshow"; l5c01c.className = "lc_noshow"; }
	if ( lc01 && cont01lc == "show3links" ) 
		{ l4c01c.className = "lc_noshow"; l5c01c.className = "lc_noshow"; }
	if ( lc01 && cont01lc == "show4links" ) 
		{ l5c01c.className = "lc_noshow"; }

	if ( lc02 && cont02lc == "nolinks" ) 
		{ l1c02c.className = "lc_noshow"; l2c02c.className = "lc_noshow"; l3c02c.className = "lc_noshow"; l4c02c.className = "lc_noshow"; l5c02c.className = "lc_noshow"; }
	if ( lc02 && cont02lc == "show1link" ) 
		{ l2c02c.className = "lc_noshow"; l3c02c.className = "lc_noshow"; l4c02c.className = "lc_noshow"; l5c02c.className = "lc_noshow"; }
	if ( lc02 && cont02lc == "show2links" ) 
		{ l3c02c.className = "lc_noshow"; l4c02c.className = "lc_noshow"; l5c02c.className = "lc_noshow"; }
	if ( lc02 && cont02lc == "show3links" ) 
		{ l4c02c.className = "lc_noshow"; l5c02c.className = "lc_noshow"; }
	if ( lc02 && cont02lc == "show4links" ) 
		{ l5c02c.className = "lc_noshow"; }

	if ( lc03 && cont03lc == "nolinks" ) 
		{ l1c03c.className = "lc_noshow"; l2c03c.className = "lc_noshow"; l3c03c.className = "lc_noshow"; l4c03c.className = "lc_noshow"; l5c03c.className = "lc_noshow"; }
	if ( lc03 && cont03lc == "show1link" ) 
		{ l2c03c.className = "lc_noshow"; l3c03c.className = "lc_noshow"; l4c03c.className = "lc_noshow"; l5c03c.className = "lc_noshow"; }
	if ( lc03 && cont03lc == "show2links" ) 
		{ l3c03c.className = "lc_noshow"; l4c03c.className = "lc_noshow"; l5c03c.className = "lc_noshow"; }
	if ( lc03 && cont03lc == "show3links" ) 
		{ l4c03c.className = "lc_noshow"; l5c03c.className = "lc_noshow"; }
	if ( lc03 && cont03lc == "show4links" ) 
		{ l5c03c.className = "lc_noshow"; }

	if ( lc04 && cont04lc == "nolinks" ) 
		{ l1c04c.className = "lc_noshow"; l2c04c.className = "lc_noshow"; l3c04c.className = "lc_noshow"; l4c04c.className = "lc_noshow"; l5c04c.className = "lc_noshow"; }
	if ( lc04 && cont04lc == "show1link" ) 
		{ l2c04c.className = "lc_noshow"; l3c04c.className = "lc_noshow"; l4c04c.className = "lc_noshow"; l5c04c.className = "lc_noshow"; }
	if ( lc04 && cont04lc == "show2links" ) 
		{ l3c04c.className = "lc_noshow"; l4c04c.className = "lc_noshow"; l5c04c.className = "lc_noshow"; }
	if ( lc04 && cont04lc == "show3links" ) 
		{ l4c04c.className = "lc_noshow"; l5c04c.className = "lc_noshow"; }
	if ( lc04 && cont04lc == "show4links" ) 
		{ l5c04c.className = "lc_noshow"; }

	if ( lc05 && cont05lc == "nolinks" ) 
		{ l1c05c.className = "lc_noshow"; l2c05c.className = "lc_noshow"; l3c05c.className = "lc_noshow"; l4c05c.className = "lc_noshow"; l5c05c.className = "lc_noshow"; }
	if ( lc05 && cont05lc == "show1link" ) 
		{ l2c05c.className = "lc_noshow"; l3c05c.className = "lc_noshow"; l4c05c.className = "lc_noshow"; l5c05c.className = "lc_noshow"; }
	if ( lc05 && cont05lc == "show2links" ) 
		{ l3c05c.className = "lc_noshow"; l4c05c.className = "lc_noshow"; l5c05c.className = "lc_noshow"; }
	if ( lc05 && cont05lc == "show3links" ) 
		{ l4c05c.className = "lc_noshow"; l5c05c.className = "lc_noshow"; }
	if ( lc05 && cont05lc == "show4links" ) 
		{ l5c05c.className = "lc_noshow"; }

	if ( lc06 && cont06lc == "nolinks" ) 
		{ l1c06c.className = "lc_noshow"; l2c06c.className = "lc_noshow"; l3c06c.className = "lc_noshow"; l4c06c.className = "lc_noshow"; l5c06c.className = "lc_noshow"; }
	if ( lc06 && cont06lc == "show1link" ) 
		{ l2c06c.className = "lc_noshow"; l3c06c.className = "lc_noshow"; l4c06c.className = "lc_noshow"; l5c06c.className = "lc_noshow"; }
	if ( lc06 && cont06lc == "show2links" ) 
		{ l3c06c.className = "lc_noshow"; l4c06c.className = "lc_noshow"; l5c06c.className = "lc_noshow"; }
	if ( lc06 && cont06lc == "show3links" ) 
		{ l4c06c.className = "lc_noshow"; l5c06c.className = "lc_noshow"; }
	if ( lc06 && cont06lc == "show4links" ) 
		{ l5c06c.className = "lc_noshow"; }

	if ( lc07 && cont07lc == "nolinks" ) 
		{ l1c07c.className = "lc_noshow"; l2c07c.className = "lc_noshow"; l3c07c.className = "lc_noshow"; l4c07c.className = "lc_noshow"; l5c07c.className = "lc_noshow"; }
	if ( lc07 && cont07lc == "show1link" ) 
		{ l2c07c.className = "lc_noshow"; l3c07c.className = "lc_noshow"; l4c07c.className = "lc_noshow"; l5c07c.className = "lc_noshow"; }
	if ( lc07 && cont07lc == "show2links" ) 
		{ l3c07c.className = "lc_noshow"; l4c07c.className = "lc_noshow"; l5c07c.className = "lc_noshow"; }
	if ( lc07 && cont07lc == "show3links" ) 
		{ l4c07c.className = "lc_noshow"; l5c07c.className = "lc_noshow"; }
	if ( lc07 && cont07lc == "show4links" ) 
		{ l5c07c.className = "lc_noshow"; }

	if ( lc08 && cont08lc == "nolinks" ) 
		{ l1c08c.className = "lc_noshow"; l2c08c.className = "lc_noshow"; l3c08c.className = "lc_noshow"; l4c08c.className = "lc_noshow"; l5c08c.className = "lc_noshow"; }
	if ( lc08 && cont08lc == "show1link" ) 
		{ l2c08c.className = "lc_noshow"; l3c08c.className = "lc_noshow"; l4c08c.className = "lc_noshow"; l5c08c.className = "lc_noshow"; }
	if ( lc08 && cont08lc == "show2links" ) 
		{ l3c08c.className = "lc_noshow"; l4c08c.className = "lc_noshow"; l5c08c.className = "lc_noshow"; }
	if ( lc08 && cont08lc == "show3links" ) 
		{ l4c08c.className = "lc_noshow"; l5c08c.className = "lc_noshow"; }
	if ( lc08 && cont08lc == "show4links" ) 
		{ l5c08c.className = "lc_noshow"; }

	if ( lc09 && cont09lc == "nolinks" ) 
		{ l1c09c.className = "lc_noshow"; l2c09c.className = "lc_noshow"; l3c09c.className = "lc_noshow"; l4c09c.className = "lc_noshow"; l5c09c.className = "lc_noshow"; }
	if ( lc09 && cont09lc == "show1link" ) 
		{ l2c09c.className = "lc_noshow"; l3c09c.className = "lc_noshow"; l4c09c.className = "lc_noshow"; l5c09c.className = "lc_noshow"; }
	if ( lc09 && cont09lc == "show2links" ) 
		{ l3c09c.className = "lc_noshow"; l4c09c.className = "lc_noshow"; l5c09c.className = "lc_noshow"; }
	if ( lc09 && cont09lc == "show3links" ) 
		{ l4c09c.className = "lc_noshow"; l5c09c.className = "lc_noshow"; }
	if ( lc09 && cont09lc == "show4links" ) 
		{ l5c09c.className = "lc_noshow"; }

	if ( lc10 && cont10lc == "nolinks" ) 
		{ l1c10c.className = "lc_noshow"; l2c10c.className = "lc_noshow"; l3c10c.className = "lc_noshow"; l4c10c.className = "lc_noshow"; l5c10c.className = "lc_noshow"; }
	if ( lc10 && cont10lc == "show1link" ) 
		{ l2c10c.className = "lc_noshow"; l3c10c.className = "lc_noshow"; l4c10c.className = "lc_noshow"; l5c10c.className = "lc_noshow"; }
	if ( lc10 && cont10lc == "show2links" ) 
		{ l3c10c.className = "lc_noshow"; l4c10c.className = "lc_noshow"; l5c10c.className = "lc_noshow"; }
	if ( lc10 && cont10lc == "show3links" ) 
		{ l4c10c.className = "lc_noshow"; l5c10c.className = "lc_noshow"; }
	if ( lc10 && cont10lc == "show4links" ) 
		{ l5c10c.className = "lc_noshow"; }

	if ( lc11 && cont11lc == "nolinks" ) 
		{ l1c11c.className = "lc_noshow"; l2c11c.className = "lc_noshow"; l3c11c.className = "lc_noshow"; l4c11c.className = "lc_noshow"; l5c11c.className = "lc_noshow"; }
	if ( lc11 && cont11lc == "show1link" ) 
		{ l2c11c.className = "lc_noshow"; l3c11c.className = "lc_noshow"; l4c11c.className = "lc_noshow"; l5c11c.className = "lc_noshow"; }
	if ( lc11 && cont11lc == "show2links" ) 
		{ l3c11c.className = "lc_noshow"; l4c11c.className = "lc_noshow"; l5c11c.className = "lc_noshow"; }
	if ( lc11 && cont11lc == "show3links" ) 
		{ l4c11c.className = "lc_noshow"; l5c11c.className = "lc_noshow"; }
	if ( lc11 && cont11lc == "show4links" ) 
		{ l5c11c.className = "lc_noshow"; }

	if ( lc12 && cont12lc == "nolinks" ) 
		{ l1c12c.className = "lc_noshow"; l2c12c.className = "lc_noshow"; l3c12c.className = "lc_noshow"; l4c12c.className = "lc_noshow"; l5c12c.className = "lc_noshow"; }
	if ( lc12 && cont12lc == "show1link" ) 
		{ l2c12c.className = "lc_noshow"; l3c12c.className = "lc_noshow"; l4c12c.className = "lc_noshow"; l5c12c.className = "lc_noshow"; }
	if ( lc12 && cont12lc == "show2links" ) 
		{ l3c12c.className = "lc_noshow"; l4c12c.className = "lc_noshow"; l5c12c.className = "lc_noshow"; }
	if ( lc12 && cont12lc == "show3links" ) 
		{ l4c12c.className = "lc_noshow"; l5c12c.className = "lc_noshow"; }
	if ( lc12 && cont12lc == "show4links" ) 
		{ l5c12c.className = "lc_noshow"; }

	if ( lc13 && cont13lc == "nolinks" ) 
		{ l1c13c.className = "lc_noshow"; l2c13c.className = "lc_noshow"; l3c13c.className = "lc_noshow"; l4c13c.className = "lc_noshow"; l5c13c.className = "lc_noshow"; }
	if ( lc13 && cont13lc == "show1link" ) 
		{ l2c13c.className = "lc_noshow"; l3c13c.className = "lc_noshow"; l4c13c.className = "lc_noshow"; l5c13c.className = "lc_noshow"; }
	if ( lc13 && cont13lc == "show2links" ) 
		{ l3c13c.className = "lc_noshow"; l4c13c.className = "lc_noshow"; l5c13c.className = "lc_noshow"; }
	if ( lc13 && cont13lc == "show3links" ) 
		{ l4c13c.className = "lc_noshow"; l5c13c.className = "lc_noshow"; }
	if ( lc13 && cont13lc == "show4links" ) 
		{ l5c13c.className = "lc_noshow"; }

	if ( lc14 && cont10lc == "nolinks" ) 
		{ l1c14c.className = "lc_noshow"; l2c14c.className = "lc_noshow"; l3c14c.className = "lc_noshow"; l4c14c.className = "lc_noshow"; l5c14c.className = "lc_noshow"; }
	if ( lc14 && cont10lc == "show1link" ) 
		{ l2c14c.className = "lc_noshow"; l3c14c.className = "lc_noshow"; l4c14c.className = "lc_noshow"; l5c14c.className = "lc_noshow"; }
	if ( lc14 && cont10lc == "show2links" ) 
		{ l3c14c.className = "lc_noshow"; l4c14c.className = "lc_noshow"; l5c14c.className = "lc_noshow"; }
	if ( lc14 && cont10lc == "show3links" ) 
		{ l4c14c.className = "lc_noshow"; l5c14c.className = "lc_noshow"; }
	if ( lc14 && cont10lc == "show4links" ) 
		{ l5c14c.className = "lc_noshow"; }

	if ( lc15 && cont15lc == "nolinks" ) 
		{ l1c15c.className = "lc_noshow"; l2c15c.className = "lc_noshow"; l3c15c.className = "lc_noshow"; l4c15c.className = "lc_noshow"; l5c15c.className = "lc_noshow"; }
	if ( lc15 && cont15lc == "show1link" ) 
		{ l2c15c.className = "lc_noshow"; l3c15c.className = "lc_noshow"; l4c15c.className = "lc_noshow"; l5c15c.className = "lc_noshow"; }
	if ( lc15 && cont15lc == "show2links" ) 
		{ l3c15c.className = "lc_noshow"; l4c15c.className = "lc_noshow"; l5c15c.className = "lc_noshow"; }
	if ( lc15 && cont15lc == "show3links" ) 
		{ l4c15c.className = "lc_noshow"; l5c15c.className = "lc_noshow"; }
	if ( lc15 && cont15lc == "show4links" ) 
		{ l5c15c.className = "lc_noshow"; }

	if ( lc16 && cont16lc == "nolinks" ) 
		{ l1c16c.className = "lc_noshow"; l2c16c.className = "lc_noshow"; l3c16c.className = "lc_noshow"; l4c16c.className = "lc_noshow"; l5c16c.className = "lc_noshow"; }
	if ( lc16 && cont16lc == "show1link" ) 
		{ l2c16c.className = "lc_noshow"; l3c16c.className = "lc_noshow"; l4c16c.className = "lc_noshow"; l5c16c.className = "lc_noshow"; }
	if ( lc16 && cont16lc == "show2links" ) 
		{ l3c16c.className = "lc_noshow"; l4c16c.className = "lc_noshow"; l5c16c.className = "lc_noshow"; }
	if ( lc16 && cont16lc == "show3links" ) 
		{ l4c16c.className = "lc_noshow"; l5c16c.className = "lc_noshow"; }
	if ( lc16 && cont16lc == "show4links" ) 
		{ l5c16c.className = "lc_noshow"; }

	if ( lc17 && cont17lc == "nolinks" ) 
		{ l1c17c.className = "lc_noshow"; l2c17c.className = "lc_noshow"; l3c17c.className = "lc_noshow"; l4c17c.className = "lc_noshow"; l5c17c.className = "lc_noshow"; }
	if ( lc17 && cont17lc == "show1link" ) 
		{ l2c17c.className = "lc_noshow"; l3c17c.className = "lc_noshow"; l4c17c.className = "lc_noshow"; l5c17c.className = "lc_noshow"; }
	if ( lc17 && cont17lc == "show2links" ) 
		{ l3c17c.className = "lc_noshow"; l4c17c.className = "lc_noshow"; l5c17c.className = "lc_noshow"; }
	if ( lc17 && cont17lc == "show3links" ) 
		{ l4c17c.className = "lc_noshow"; l5c17c.className = "lc_noshow"; }
	if ( lc17 && cont17lc == "show4links" ) 
		{ l5c17c.className = "lc_noshow"; }

	if ( lc18 && cont18lc == "nolinks" ) 
		{ l1c18c.className = "lc_noshow"; l2c18c.className = "lc_noshow"; l3c18c.className = "lc_noshow"; l4c18c.className = "lc_noshow"; l5c18c.className = "lc_noshow"; }
	if ( lc18 && cont18lc == "show1link" ) 
		{ l2c18c.className = "lc_noshow"; l3c18c.className = "lc_noshow"; l4c18c.className = "lc_noshow"; l5c18c.className = "lc_noshow"; }
	if ( lc18 && cont18lc == "show2links" ) 
		{ l3c18c.className = "lc_noshow"; l4c18c.className = "lc_noshow"; l5c18c.className = "lc_noshow"; }
	if ( lc18 && cont18lc == "show3links" ) 
		{ l4c18c.className = "lc_noshow"; l5c18c.className = "lc_noshow"; }
	if ( lc18 && cont18lc == "show4links" ) 
		{ l5c18c.className = "lc_noshow"; }

	if ( lc19 && cont19lc == "nolinks" ) 
		{ l1c19c.className = "lc_noshow"; l2c19c.className = "lc_noshow"; l3c19c.className = "lc_noshow"; l4c19c.className = "lc_noshow"; l5c19c.className = "lc_noshow"; }
	if ( lc19 && cont19lc == "show1link" ) 
		{ l2c19c.className = "lc_noshow"; l3c19c.className = "lc_noshow"; l4c19c.className = "lc_noshow"; l5c19c.className = "lc_noshow"; }
	if ( lc19 && cont19lc == "show2links" ) 
		{ l3c19c.className = "lc_noshow"; l4c19c.className = "lc_noshow"; l5c19c.className = "lc_noshow"; }
	if ( lc19 && cont19lc == "show3links" ) 
		{ l4c19c.className = "lc_noshow"; l5c19c.className = "lc_noshow"; }
	if ( lc19 && cont19lc == "show4links" ) 
		{ l5c19c.className = "lc_noshow"; }

	if ( lc20 && cont20lc == "nolinks" ) 
		{ l1c20c.className = "lc_noshow"; l2c20c.className = "lc_noshow"; l3c20c.className = "lc_noshow"; l4c20c.className = "lc_noshow"; l5c20c.className = "lc_noshow"; }
	if ( lc20 && cont20lc == "show1link" ) 
		{ l2c20c.className = "lc_noshow"; l3c20c.className = "lc_noshow"; l4c20c.className = "lc_noshow"; l5c20c.className = "lc_noshow"; }
	if ( lc20 && cont20lc == "show2links" ) 
		{ l3c20c.className = "lc_noshow"; l4c20c.className = "lc_noshow"; l5c20c.className = "lc_noshow"; }
	if ( lc20 && cont20lc == "show3links" ) 
		{ l4c20c.className = "lc_noshow"; l5c20c.className = "lc_noshow"; }
	if ( lc20 && cont20lc == "show4links" ) 
		{ l5c20c.className = "lc_noshow"; }




	/**************************************************
	Treatment of Content Blocks. Their default class
	"grayborder" shows a gray frame.
	The class will be disabled at "Block status" option 
	"hide".
	**************************************************/

	// Display Content Block without Frame
//	if ( gc01 && cont01 == "display" ) fb01.className = fb01.className.replace( "grayborder", "" );


	// Hide Image Area if necessary
	if ( ic01 && cont01ic == "hideimage" ) ic01c.className = "lc_noshow";
	if ( ic02 && cont02ic == "hideimage" ) ic02c.className = "lc_noshow";
	if ( ic03 && cont03ic == "hideimage" ) ic03c.className = "lc_noshow";
	if ( ic04 && cont04ic == "hideimage" ) ic04c.className = "lc_noshow";
	if ( ic05 && cont05ic == "hideimage" ) ic05c.className = "lc_noshow";
	if ( ic06 && cont06ic == "hideimage" ) ic06c.className = "lc_noshow";
	if ( ic07 && cont07ic == "hideimage" ) ic07c.className = "lc_noshow";
	if ( ic08 && cont08ic == "hideimage" ) ic08c.className = "lc_noshow";
	if ( ic09 && cont09ic == "hideimage" ) ic09c.className = "lc_noshow";
	if ( ic10 && cont10ic == "hideimage" ) ic10c.className = "lc_noshow";
	if ( ic11 && cont11ic == "hideimage" ) ic11c.className = "lc_noshow";
	if ( ic12 && cont12ic == "hideimage" ) ic12c.className = "lc_noshow";
	if ( ic13 && cont13ic == "hideimage" ) ic13c.className = "lc_noshow";
	if ( ic14 && cont14ic == "hideimage" ) ic14c.className = "lc_noshow";
	if ( ic15 && cont15ic == "hideimage" ) ic15c.className = "lc_noshow";
	if ( ic16 && cont16ic == "hideimage" ) ic16c.className = "lc_noshow";
	if ( ic17 && cont17ic == "hideimage" ) ic17c.className = "lc_noshow";
	if ( ic18 && cont18ic == "hideimage" ) ic18c.className = "lc_noshow";
	if ( ic19 && cont19ic == "hideimage" ) ic19c.className = "lc_noshow";
	if ( ic20 && cont20ic == "hideimage" ) ic20c.className = "lc_noshow";


	/**************************************************
	Treatment of Tabs. They will be shown or hidden
	depending on the Frame Control Status.
	**************************************************/

	// Tab Section(s)
	tcc01 = document.getElementById("lcgeneralcontrol_tabs");

	tc01  = document.getElementById("lctabcount_section1");

	tab1  = document.getElementById("lctab1");
	tab2  = document.getElementById("lctab2");
	tab3  = document.getElementById("lctab3");

	if ( tc01 ) tc01.style.display="none";

	if ( tcc01 ) cont  = stripAll( tcc01.innerHTML );

	if ( tcc01 ) cont  = cont.replace( " ", "" );
	if ( tcc01 ) cont  = cont.replace( "show", "" );
	if ( tcc01 ) cont  = cont.replace( "tabs&nbsp;", "" );
	if ( tcc01 ) cont  = cont.replace( "tab&nbsp;", "" );
	if ( tcc01 ) cont  = cont.replace( "tabs", "" );
	if ( tcc01 ) cont  = cont.replace( "tab", "" );
	if ( tcc01 ) cont  = cont.replace( "&nbsp;", "" );


	if ( tcc01 && ( cont == "" || cont == "hide" ) ) cont = 0;
	if ( tcc01 ) cont = parseInt(cont);


	var divs = document.getElementsByTagName('div');
	for (var i = 0; i < divs.length; i++)
		{
		var n = divs[i];
		if ( n.className && n.className.match(/\bhideable\b/) )
			{
			// Tab Section 1
			if ( cont && cont==0 && n.id=="lctab1" ) n.className = "lc_noshow";
			if ( cont && cont==0 && n.id=="lctab2" ) n.className = "lc_noshow";
			if ( cont && cont==0 && n.id=="lctab3" ) n.className = "lc_noshow";

			if ( cont && cont==1 && n.id=="lctab2" ) n.className = "lc_noshow";
			if ( cont && cont==1 && n.id=="lctab3" ) n.className = "lc_noshow";

			if ( cont && cont==2 && n.id=="lctab3" ) n.className = "lc_noshow";
			}
		}
	
//	BodyEvents.load();
	if (typeof(BodyEvents)=="object")
		BodyEvents.load();
	
	setImagePadding();
	
	killText("lc_contentdate_00");
	killText2("_invisibleIfEmptyImage");
	killText2("lc_contentimage_01");
	killText2("lc_contentimage_02");
	killText2("lc_contentimage_03");
	killText2("lc_contentimage_04");
	killText2("lc_contentimage_05");
	killText2("lc_contentimage_06");
	killText2("lc_contentimage_07");
	killText2("lc_contentimage_08");
	killText2("lc_contentimage_09");
	killText2("lc_contentimage_10");
	killText2("lc_contentimage_11");
	killText2("lc_contentimage_12");
	killText2("lc_contentimage_13");
	killText2("lc_contentimage_14");
	killText2("lc_contentimage_15");
	killText2("lc_contentimage_16");
	killText2("lc_contentimage_17");
	killText2("lc_contentimage_18");
	killText2("lc_contentimage_19");
	killText2("lc_contentimage_20");

	// TG: 12/02/
	hideLinks("pdfLink");
	hideLinks("jpgLink");
	hideLinks("rtfLink");
	// TG: 12/02/
	
	
	showContentArea();


	}


// TG: 12/02/
function hideLinks( id )
	{
	li01 = document.getElementById( id );
	if ( li01 ) 
		{
		var a01 = li01.getElementsByTagName("a");
		if ( typeof(a01[0])=='undefined' )
			{
			li01.className = "lc_noshow";
			}
		}
	}


function showContentArea()
	{
	var ob = document.getElementById("lc_contenttable");
	if (ob)
		{
		var cn = ob.className;
		cn=cn.replace( /lc_noshow/g, "" );
		document.getElementById("lc_contenttable").className = cn;
		}
	}


function killText2( obj )
	{
	o = document.all[obj];

	if (!o) return;

	// more than one object
	if (o.length > 0)
		{}
	else
		{
		oo=o;
		var o = new Array();
		o[0]=oo;
		}


	if (o)
		{
		for ( i=0; i<o.length; i++ )
			{
			im = o[i].getElementsByTagName('img');

			// No image tag found, container is empty

			if (im[0]==undefined)
				o[i].className="lc_noshow";

			}
		}
	}


function killText( obj )
	{
	o = document.all[obj];

	if (!o) return;

	// more than one object
	if (o.length > 0)
		{}
	else
		{
		oo=o;
		var o = new Array();
		o[0]=oo;
		}

	if (o)
		{
		for ( i=0; i<o.length; i++ )
			{
			string = o[i].innerHTML;
			string = string.replace( /&nbsp;/g, "" );
			o[i].innerHTML = string;
			}
		}
	}


function setHiddenElements( objText )
	{
	gc00 = document.getElementById( objText );

	if ( gc00 ) 
		{
		var selects = gc00.getElementsByTagName('select');
		for (var i = 0; i < selects.length; i++) 
			{
			var n = selects[i];
				if (n.options[n.selectedIndex].text == "") n.selectedIndex=1;
			}
		}
	}

function editMode()
	{

	setImagePadding();

	setEditPanelPadding();

	makeSpacer("lc_spacerOnEdit01");
	makeSpacer("lc_spacerOnEdit02");
	makeSpacer("lc_spacerOnEdit03");
	makeSpacer("lc_spacerOnEdit04");
	makeSpacer("lc_spacerOnEdit05");
	makeSpacer("lc_spacerOnEdit06");
	makeSpacer("lc_spacerOnEdit07");
	makeSpacer("lc_spacerOnEdit08");
	makeSpacer("lc_spacerOnEdit09");
	makeSpacer("lc_spacerOnEdit10");
	makeSpacer("lc_spacerOnEdit11");
	makeSpacer("lc_spacerOnEdit12");
	makeSpacer("lc_spacerOnEdit13");
	makeSpacer("lc_spacerOnEdit14");
	makeSpacer("lc_spacerOnEdit15");
	makeSpacer("lc_spacerOnEdit16");
	makeSpacer("lc_spacerOnEdit17");
	makeSpacer("lc_spacerOnEdit18");
	makeSpacer("lc_spacerOnEdit19");
	makeSpacer("lc_spacerOnEdit20");
	
	for (var i = 0; i < highestNumberOfContentElements; i++) 
		{
		z="0"+i;
		if (z.length==3)
			z=z.substr(1,2);
		setHiddenElements("lcgeneralcontrol_" + z);
		setHiddenElements("lctitlecontrol_" + z);
		setHiddenElements("lcsubtitlecontrol_" + z);
		setHiddenElements("lcimagecontrol_" + z);
		setHiddenElements("lclinkcontrol_" + z);
		setHiddenElements("lcdatecontrol_" + z);
		}

	// Hide all Content Blocks
	if ( hideAllContentBlocks == 1 )
		for (var i = 0; i <= highestNumberOfContentElements; i++) 
			{
			if ( i < 10 ) i = "0" + i;
			showhide( "lcshowcontainer" + i );
			}
	
	tc01 = document.getElementById("lctabcount_section1");
	tc02 = document.getElementById("lctabcount_section2");
	tc03 = document.getElementById("lctabcount_section3");

	// Show Headings
	var divs = document.getElementsByTagName('div');
	for (var i = 0; i < divs.length; i++) 
		{
		var n = divs[i];
		if ( n.id && n.id.match(/\blceditheading\b/) )
			n.style.display="";
		}

	// Show Frame Controls
	var divs = document.getElementsByTagName('div');
	for (var i = 0; i < divs.length; i++) 
		{
		var n = divs[i];
		if ( n.id && n.id.match(/\blcframecontrol\b/) )
			n.style.display="";
		}

	if ( tc01 ) tc01.style.display="";
	if ( tc02 ) tc02.style.display="";
	if ( tc03 ) tc03.style.display="";

	tab1  = document.getElementById("lctab1");
	tab2  = document.getElementById("lctab2");
	tab3  = document.getElementById("lctab3");
	
/*
	if( tab1 ) tab1.className="lc_back1";
	if( tab2 ) tab2.className="lc_back2";
	if( tab3 ) tab3.className="lc_back3";
*/

	showContentArea();

	}


function makeSpacer( oText )
	{
	o=document.getElementById( oText );
	if(o) o.innerHTML="<br><br><br><br><br>";
	}


function setEditPanelPadding()
	{
	// Get Object
	var epp = document.getElementById('makeEditPanelPadding');
	// insert line breaks
	if (epp)
		epp.innerHTML="<br><br><br><br>";
	}


function showhide( objid )
	{

	obj = document.getElementById( objid );

	if (obj)
		{
		if ( obj.style.display == "" )
			obj.style.display = "none";
		else
			obj.style.display = "";
		}
	}

function trim (str) 
	{
    return str.replace(/ +/g, ' ').replace(/^\s+/g, '').replace(/\s+$/g, '');
	}

function stripAll( string )
	{
	string = trim( string.toLowerCase() );
/*
		string = string.replace( "\t", "" );
		string = string.replace( "\n", "" );
		string = string.replace( "\r", "" );
		string = string.replace( "\r\n", "" );
		string = string.replace( "\n\r", "" );
		string = string.replace( "\0", "" );
		string = string.replace( "\x0B", "" );
*/
	for (var i = 0; i<50; i++)
		{
		string = string.replace( " ", "" );
		string = string.replace( "&nbsp;", "" );
		}
	return string;
	}

