1<script type="text/javascript"> 2if (top === self) { 3 switch(screen.width) { 4 case 800: document.write('<link rel="stylesheet" type="text/css" href="<?php echo DOKU_TPL?>custom800.css" />'); break; 5 case 1024: document.write('<link rel="stylesheet" type="text/css" href="<?php echo DOKU_TPL?>custom1024.css" />'); break; 6 case 1152: document.write('<link rel="stylesheet" type="text/css" href="<?php echo DOKU_TPL?>custom1152.css" />'); break; 7 default: document.write('<link rel="stylesheet" type="text/css" href="<?php echo DOKU_TPL?>custom.css" />'); break; 8 } 9} else { 10 document.write('<link rel="stylesheet" type="text/css" href="<?php echo DOKU_TPL?>fbcustom.css" />'); 11} 12</script> 13<?php 14 15 //Set Proper ID for by custom template layout. 16 $fns = strpos($ID, ":"); 17 if ($fns === false) { 18 $FID = $ID; 19 } else { 20 $FID = substr($ID, 0, $fns); 21 }; 22 23 //Determine if images exist, and if not, set $FID to default. 24 include('custom_code/custom_functions.php'); 25 26?> 27<div class="upperheader"> 28<div class="wikipage"> 29<?php 30dyn_img_sel("home",$FID); 31?> 32</div> 33<div class="gameheader" align="right"> 34<table> 35<tr><td colspan="3" class="bt"></td></tr> 36<tr><td class="bl"></td><td class="banner" align="right"> 37<?php 38dyn_img_sel("banners",$FID); 39?> 40</td><td class="br"></td></tr> 41<tr><td colspan="3" class="bb"></td></tr> 42</table> 43</div> 44</div> 45<div class="lowerheader"> 46<div class="lowerleft"> 47<div class="head_text"><?php tpl_breadcrumbs() ?><br /><?php tpl_youarehere() ?><br /><?php tpl_userinfo() ?></div> 48<br /> 49<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.vikingsunited.co.cc&layout=button_count&show_faces=true&width=250&action=like&font=tahoma&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:225px; height:21px;" allowTransparency="true"></iframe> 50</div> 51<div class="lowerright"> 52<div class="date-time"> 53<div class="head_text"><?php echo date('D F jS Y'); ?><br /><?php tpl_pageinfo()?></div> 54</div> 55</div> 56<div class="lowermiddle"> 57<?php @include('links.php'); ?> 58</div> 59</div>