<?php
	function topRightStart ($domainname){
		global $imgfilepath, $filepath;
		$sl_output=NULL;
		$nl = "\n";
		$sl_output =	'				<div id="s5_topright" style="width:450px; height: 375px;">'.$nl;
		$sl_output .=	'					<div class="s5_whitemodtl"></div>'.$nl;
		$sl_output .=	'					<div class="s5_whitemodtm" style="width:436px;"></div>'.$nl;
		$sl_output .=	'					<div class="s5_whitemodtr"></div>'.$nl;
		$sl_output .=	'					<div style="clear:both;"></div>'.$nl;
		$sl_output .=	'					<div class="s5_whitemodleftwrap">'.$nl;
		$sl_output .=	'						<div class="s5_whitemodrightwrap" style="width:450px;">'.$nl;
		$sl_output .=	'							<div class="s5_backmiddlemiddle_r" style="width:436px;">'.$nl;
		$sl_output .=	'								<div class="module">'.$nl;
		$sl_output .=	'									<div>'.$nl;
		$sl_output .=	'										<div>'.$nl;
		$sl_output .=	'											<div>'.$nl;
		$sl_output .=	'												<a href="'.sl_make_link('help').'&id=account_information"><img src="'.$imgfilepath.'/images/help.png" align="right"/></a>'.$nl;
		$sl_output .=	'												<h3 class="s5_mod_h3-light"><span class="s5_h3_first">Account </span> Information for <span style="color: #D01314; font-weight: bold;">'.nicetrim($domainname, 35).'</span></h3>';
		$sl_output .=	'												<div id="s5_buttonswrap_ts2" style="width:418px;"></div>'.$nl;
		$sl_output .=	'												<div id="s5_buttonswrap_ts2" style="width:418px;"></div>'.$nl;
		$sl_output .=	'												<div style="clear:both;"></div>'.$nl;
		$sl_output .=	'												<div id="s5_tabshow_left2" style="width:421px;">'.$nl;
		$sl_output .=	'													<div id="s5_tabshow_right2" style="width:426px;">'.$nl;
		$sl_output .=	'														<div style="width:441px; overflow:hidden;">'.$nl;
		$sl_output .=	'															<div id="s5_button2" style="width:421px; ">'.$nl;
		$sl_output .=	'																<ul id="s5_button_content2" style="margin-left:-40px;">'.$nl;
		$sl_output .=	'																	<li class="s5_button_item2" id="s5_button_item_copy_1" style="left:0px;display:block;">'.$nl;
		$sl_output .=	'																		<div style="width:451px; margin-right:12px; padding-right:4px;">'.$nl;
		$sl_output .=	'																			<div style="width:391px;padding:10px;margin-top:10px;">'.$nl;
		$sl_output .=	'																				<div class="moduletable">'.$nl;
		return $sl_output;
	}

	function topRightEnd (){
		$sl_output=NULL;
		$nl = "\n";
		$sl_output .=	'																				</div>'.$nl;
		$sl_output .=	'																			</div>'.$nl;
		$sl_output .=	'																		</div>'.$nl;
		$sl_output .=	'																	</li>'.$nl;
		$sl_output .=	'																</ul>'.$nl;
		$sl_output .=	'															</div>'.$nl;
		$sl_output .=	'														</div>'.$nl;
		$sl_output .=	'													</div>'.$nl;
		$sl_output .=	'												</div>'.$nl;
		$sl_output .=	'												<div id="s5_tabshow_bottomleft2"></div>'.$nl;
		$sl_output .=	'												<div id="s5_tabshow_bottommiddle2" style="width:424px;"></div>'.$nl;
		$sl_output .=	'												<div id="s5_tabshow_bottomright2"></div>'.$nl;
		$sl_output .=	'												<div style="clear:both;height:13px;"></div>'.$nl;
		$sl_output .=	'											</div>'.$nl;
		$sl_output .=	'										</div>'.$nl;
		$sl_output .=	'									</div>'.$nl;
		$sl_output .=	'								</div>'.$nl;
		$sl_output .=	'								<div style="clear:both;"></div>'.$nl;
		$sl_output .=	'							</div>'.$nl;
		$sl_output .=	'						</div>'.$nl;
		$sl_output .=	'					</div>'.$nl;
		$sl_output .=	'					<div class="s5_whitemodtbl"></div>'.$nl;
		$sl_output .=	'					<div class="s5_whitemodtbm" style="width:436px;"></div>'.$nl;
		$sl_output .=	'					<div class="s5_whitemodtbr"></div>'.$nl;
		$sl_output .=	'					<div style="clear:both;"></div>'.$nl;
		$sl_output .=	'				</div>'.$nl;
		return $sl_output;
	}

	function ModuleStart($modNum, $width, $color, $title, $modType, $show_help){
		global $imgfilepath, $filepath;
		$sl_output=NULL;
		$nl = "\n";
		if (!isset($modNum)){$modNum="1";}
		if (!isset($width)){$width="100";}
		if (!isset($color)){$color="light";}
		if (!isset($title)){$title=NULL;}
		$expTitle = explode(" ", $title);
		if(!isset($expTitle[0])){$expTitle[0]=NULL;}
		$expTitle2 = '';
		for($i=1;$i<count($expTitle);$i++){
			$expTitle2 .= ' '.$expTitle[$i];
		}
		$sl_output .=	'					<div id="s5_'.$modType.$modNum.'_'.$width.'">'.$nl;
		$sl_output .=	'						<div class="module'.$color.'">'.$nl;
		$sl_output .=	'							<div>'.$nl;
		$sl_output .=	'								<div>'.$nl;
		$sl_output .=	'									<div>'.$nl;
		if ($show_help){
			$sl_output .=	'										<a href="'.sl_make_link('help').'&id='.strtolower($expTitle[0]).'_'.strtolower($expTitle[1]).'"><img src="'.$imgfilepath.'/images/help.png" align="right" style="margin-top: -4px;"/></a>'.$nl;
		}
		$sl_output .=	'										<h3 class="s5_mod_h3'.$color.'"><span class="s5_h3_first">'.$expTitle[0].'</span>'.$expTitle2.'</h3>'.$nl;
		return $sl_output;
	}

	function EndModule(){
		$sl_output=NULL;
		$nl = "\n";
		$sl_output =	'									</div>'.$nl;
		$sl_output .=	'								</div>'.$nl;
		$sl_output .=	'							</div>'.$nl;
		$sl_output .=	'						</div>'.$nl;
		$sl_output .=	'					</div>'.$nl;
		return $sl_output;
	}
?>