<style>
.TABLE_II_toptightfooter_td_3 {
	width:auto;
	height:0px;
	/* background-color:#FFFFFF; */
	
	border-spacing:0px;
	border-width:0px;
	border-collapse:collapse;
	border-style:solid;
	border-color:#000088;	

	/* sets secured net6work logo in uper right coerner */
	padding-top:0px;
	padding-bottom:0px;
	padding-left:0px;
	padding-right:5px;
	
	margin-left:0px;
	margin-right:0px;
	margin-top:0px;
	margin-bottom:0px;
	
	font-family:verdana,arial,helvetica,sans-serif;
	font-weight:bold;
	font-size:11px;
	color:#847300;
	vertical-align:middle;
	text-align:right;	
}
</style>

<?

if(stristr($_SERVER['HTTP_HOST'],"PUNTINGPAL")) {
    //test("2 _SERVER['SCRIPT_URI']",$_SERVER['SCRIPT_URI']);
    
    if(
    (stristr($_SERVER['SCRIPT_FILENAME'],"details")) ||
    (stristr($_SERVER['SCRIPT_FILENAME'],".auth")) ||
    (stristr($_SERVER['SCRIPT_FILENAME'],".support"))
    ) {
    	$left_logo = NULL;
    	$text_logo_left = "<span style='font-size:18px; font-family:helvetica; color:#990000; font-weight:bold;'>Punting</span>";
    	$text_logo_left .= "<span style='font-size:18px; font-family:helvetica; color:#666666; font-weight:bold;'>Pal</span>";
    	$text_logo_left .= "<span style='font-size:18px; font-family:helvetica; color:#990000; font-weight:bold;'>.com</span>";
    
    ### NORMAL
    } else {
    	$left_logo = $_SESSION['template']['company']['logo_topleft'];
    }
    
### EVERYONE ELSE 
} else {
    $left_logo = $_SESSION['template']['company']['logo_topleft'];
}



if(
($_SESSION['template']['company']['client'] == "paybysepa.com") || 
($_SESSION['template']['company']['client'] == "vocabuy.com") ||
(stristr($_SESSION['template']['company']['client'],"PAYBYECH.com")) ||
($_SESSION['template']['company']['client'] == "nsdb-development.com")
) {
	$css_logo_width = "auto";
}
if(!$css_logo_width) $css_logo_width = "135px";
if(!$css_left_logo) $css_left_logo  = " style='width:" . $css_logo_width . ";'";



if(
(stristr($_SERVER['SCRIPT_FILENAME'],"details")) ||
(stristr($_SERVER['SCRIPT_FILENAME'],".auth")) ||
(stristr($_SERVER['SCRIPT_FILENAME'],".support"))
) {
	$TABLE_II_background_color = "#FFFFFF";
} else {
	//test("_SESSION['template']['company']['background_color']",$_SESSION['template']['company']['background_color']);
	$TABLE_II_background_color = $_SESSION['template']['company']['background_color'];
}
 
    

echo "
<table class='TABLE_II_toptightfooter_table' style='background-color:".$TABLE_II_background_color.";' border='1'>

	<tr>

		<td class='TABLE_II_toptightfooter_td_1'" . $css_text_logo_left . ">";
			// if(
			// (stristr($_SERVER['SCRIPT_URL'],"@")) &&
			// ($_SESSION['payme']['business']['account']['payment_page_business_logo']) 
			// ) {
			// 	echo "<img src='" . image("local",$_SESSION['template']['company']['logo_topleft_BW']) . "' border='0'>";
			// } else {
			
			
			
			if($text_logo_left) {
				echo $text_logo_left;
			} else {
				//echo "<a href='javascript:openSUPPORT(1);' border='0'><img src='" . image("local",$left_logo) . "' border='0'" . $css_left_logo . "></a>";
				echo "<img src='" . image("local",$left_logo) . "' border='0'" . $css_left_logo . ">";
			}
			 	
			// }
echo "
       </td>  
       
       <td class='TABLE_II_toptightfooter_td_2'>
          <img src='" . image("local",$_SESSION['template']['company']['logo_topcenter']) . "' border='0'>
       </td>                                                    
    
       <td class='TABLE_II_toptightfooter_td_3'" . $css_text_logo_right . ">";
			
			### change the biometric logo as necessary
			
			### change the biometric logo as necessary
			//if(!$logo_to_use) $logo_to_use = $_SESSION['template']['company']['logo_topright']; // DEFAULT // BIOMETRICALLY SECURED
			//if( ($master_config_domain == "paybysepa.com") || (!stristr($_SESSION['route'],"SHOW SECRETS")) ) 
			
			//test("_SERVER['SCRIPT_URI']",$_SERVER['HTTP_HOST']);
			
			if(stristr($_SERVER['HTTP_HOST'],"PUNTINGPAL")) {
				//test("2 _SERVER['SCRIPT_URI']",$_SERVER['SCRIPT_URI']);
				
				if(
				(stristr($_SERVER['SCRIPT_FILENAME'],"details")) ||
				(stristr($_SERVER['SCRIPT_FILENAME'],".auth")) ||
				(stristr($_SERVER['SCRIPT_FILENAME'],".support"))
				) {
					$right_logo = NULL;
					$text_logo_right = "<span style='font-size:14px; color:#990000; font-weight:bold;'>Super</span>";
					$text_logo_right .= "<span style='font-size:14px; color:#990000; font-weight:bold;'> </span>";
					$text_logo_right .= "<span style='font-size:14px; color:#444444; font-weight:bold;'>Competitive!</span>";
				} else {
					$right_logo = $_SESSION['template']['company']['logo_topright'];
				}
			
			### EVERYTHING ELSE
			} else {
			
				if(
				(stristr($_SERVER['SCRIPT_FILENAME'],"details")) ||
				(stristr($_SERVER['SCRIPT_FILENAME'],".auth"))
				) {
					$right_logo = "exclusive_and_patented_y.png";
				} else {
					//$right_logo = "exclusive_and_patented_9px.png";
					$right_logo = $_SESSION['template']['company']['logo_topright'];
					
				}
			}
				
			
			if(!$css_right_logo) {
				$css_right_logo = "";
			}
			
			
			if(!$text_logo_right) {
				//$logo_to_use = "exclusive_and_patented_y.png";
				//echo "<a href='javascript:openSUPPORT(61);' border='0'><img src='" . image("local",$right_logo) . "' border='0'" . $css_right_logo . "></a>";
				echo "<img src='" . image("local",$right_logo) . "' border='0'" . $css_right_logo . ">";
			} else {
				echo $text_logo_right;
			}
     

echo "</td>  




	</tr>
</table>";

unset($left_logo);
unset($logo_to_use);
unset($text_logo_left);
unset($css_logo_width);
unset($css_left_logo);
unset($css_text_logo_right);
unset($css_text_logo_left);
?>
     