<?php header('Content-type: text/html; charset=utf-8'); ?>  
<?php  
  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */  
 // load viewer library  
  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';  
  $dirsToCheck = array('/var/www/html/osga.com/','','../','../../','../../../');  
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}  
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }  
 
  // load records  
  list($articlesRecords, $articlesMetaData) = getRecords(array(  
    'tableName'   => 'articles',  
    'where'       => whereRecordNumberInUrl(1),  
    'limit'       => '1',  
  ));  
  $articlesRecord = @$articlesRecords[0]; // get first record  
    
    
  
  // show error message if no matching record is found  
  if (!$articlesRecord) { dieWith404("Record not found!"); }  
  
  $where = "";     
    

  $where = "categoryNum = '".mysql_escape($articlesRecord['categoryNum'])."' AND num != '".intval($articlesRecord['num'])."'";     

    
      
 list($relatedArticles, $relatedArticlesMetaData) = getRecords(array(      
  'tableName'   =>  'articles',      
  'allowSearch' =>   false,      
  'limit'       =>   5,      
  'orderBy'     =>   'createdDate DESC',      
  'where'       =>   $where,     

));  
 
  
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />


<head>
<meta name="viewport" content="width=device-width, initial-scale=1">




<meta name="keywords" content="<?php echo $articlesRecord['Keywords'] ?>" />
<meta name="description" content="<?php echo $articlesRecord['Description'] ?>" />
<meta name="news_keywords" content="<?php echo $articlesRecord['news_keywords'] ?>" />

<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@osga">
<meta name="twitter:creator" content="<?php echo $articlesRecord['twitter_creator'] ?>">
<meta name="twitter:title" content="<?php echo $articlesRecord['social_media_title'] ?>" />
<meta name="twitter:description" content="<?php echo $articlesRecord['social_media_description'] ?>" />
<meta name="twitter:image" content="<?php echo $articlesRecord['social_media_image'] ?>" />

<meta property="og:url" content="<?php echo $articlesRecord['facebook_url'] ?>" />
<meta property="og:type" content="article" />
<meta property="og:title" content="<?php echo $articlesRecord['social_media_title'] ?>" />
<meta property="og:description" content="<?php echo $articlesRecord['social_media_description'] ?>" />
<meta property="og:site_name" content="OSGA" />
<meta property="og:image" content="<?php echo $articlesRecord['social_media_image'] ?>" />


<script type="text/javascript" src="tabbedcontent2011/TacoComponents/TSWBrowserDetect.js"></script>
<script type="text/javascript" src="tabbedcontent2011/TacoComponents/TSWUtils.js"></script>
<script type="text/javascript" src="tabbedcontent2011/TacoComponents/TSWDomUtils.js"></script>
<script type="text/javascript" src="tabbedcontent2011/TacoComponents/TSWTabbedContent.js"></script>
<link rel="stylesheet" type="text/css" href="tabbedcontent2011/TacoComponents/TSWTabbedContent_myTabbedContent.css" />

<title><?php echo $articlesRecord['title'] ?></title>
<style type="text/css">

a:link {text-decoration:none;}
a:visited {text-decoration:none;}
a:hover {text-decoration:underline;}
a:active {text-decoration:underline;
</style>

<style type="text/css">

.nav-style1 {
	font-size: small;
	font-family: Arial, sans-serif;
	color: #000;	
}

.text-style1 {
	font-size: small;
	font-family: Arial, sans-serif;
	color: #000;	
}

.boxheader-style1 {
	font-size: medium;
	font-family: Arial, sans-serif;
	color: #900;
	font-weight: bold;
}

.boxheader-style2 {
	font-size: medium;
	font-family: Arial, sans-serif;
	color: #900;
	font-weight: bold;
	text-decoration: blink;
}
.boxheader-style3 {
	font-size: medium;
	font-family: Arial, sans-serif;
	color: #fff;
	font-weight: bold;
    background-color: #02192b
}
.link-style1 {
	font-size: small;
	font-family: Arial, sans-serif;
	font-weight: bold;
}
ul
{
list-style-type:none;
margin:0;
padding:0;
font-weight: bold;
}

body 
{
background:  #02192b url(images/Untitled-1.jpg) repeat-x top center;
}
.white {
	color: #FFF;
}
.auto-style1 {
	font-size: medium;
	font-family: Arial, sans-serif;
	color: #000;
}





/**IMAGE ENLARGE**/

 ul.enlarge{
    list-style-type:none; /*remove the bullet point*/
    margin-left:0;
    }
    ul.enlarge li{
    display:inline-block; /*places the images in a line*/
    position: relative;
    z-index: 0; /*resets the stack order of the list items - later we'll increase this*/
    margin:10px 40px 0 20px;
    }
    ul.enlarge img{
    background-color:#eae9d4;
    padding: 6px;
    -webkit-box-shadow: 0 0 6px rgba(132, 132, 132, .75);
    -moz-box-shadow: 0 0 6px rgba(132, 132, 132, .75);
    box-shadow: 0 0 6px rgba(132, 132, 132, .75);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    }
    ul.enlarge span{
    position:absolute;
    left: -9999px;
    background-color:#eae9d4;
    padding: 10px;
    font-family: 'Droid Sans', sans-serif;
    font-size:.9em;
    text-align: center;
    color: #495a62;
    -webkit-box-shadow: 0 0 20px rgba(0,0,0, .75));
    -moz-box-shadow: 0 0 20px rgba(0,0,0, .75);
    box-shadow: 0 0 20px rgba(0,0,0, .75);
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius:8px;
    }
    ul.enlarge li:hover{
    z-index: 50;
    cursor:pointer;
    }
    ul.enlarge span img{
    padding:2px;
    background:#ccc;
    }
    ul.enlarge li:hover span{
    top: 100px; /*the distance from the bottom of the thumbnail to the top of the popup image*/
    left: -20px; /*distance from the left of the thumbnail to the left of the popup image*/
    }
    ul.enlarge li:hover:nth-child(2) span{
    left: -100px;
    }
    ul.enlarge li:hover:nth-child(3) span{
    left: -200px;
    }
    
    ul.enlarge img, ul.enlarge span{
    behavior: url(pie/PIE.htc);
    }
/**IMAGE ENLARGE**/
</style>

<script>

var doPopUpX = (screen.width/2)-300;
var doPopUpY = (screen.height/2)-500;
var pos = "left="+doPopUpX+",top="+doPopUpY;

function doPopUp3(){
doPopUpWindow = window.open("http://www.osga.com/Demo/","Tour","scrollbars=no,resizable=no,width=800,height=600,"+pos);
}

</script>


</head>

<body >

<table style="width: 900px" align="center" cellpadding="0" cellspacing="0" >
<tr>
 <td align="center"><IFRAME border="0" frameborder="0" padding="0" hspace="2" vspace="0" src="http://www.osga.com/2011_mainheader.html"  width="950" height="290" scrolling="no" frameborder="0"></IFRAME>

		</td>
	</tr>

		<tr>
		<td>
		<!-- Begin MAIN CONTENT AREA -->
		<table cellpadding="3" style="width: 900px" bgcolor="#ffffff" align="center">
		<tr>
		
			<td style="width: 250px; background-color: #ffffff;" valign="top" align="center">
<!-- DEFINE NAV -->
				<!--#include virtual="/2011homenav/2015nav_generic.html" -->
<!-- DEFINE NAV -->
			</td>
			
			<td style="width: 650px; background-color: #ffffff;" valign="top">
			<!-- START MAIN CONTENT AREA -->
            
<span style="font-family: arial"><div style=" padding: 20px 0px 10px 10px; color: #900; "><h2><strong><?php echo htmlEncode($articlesRecord['categoryNum:label']); ?></strong></h2></div>

 <div id="fb-root" align="right"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) {return;}
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-like" data-send="true" data-width="475" data-show-faces="false" data-action="recommend" style="float: left; "></div>
<div style="float: left; "><a href="#Comment"><font size="2" color="#900"><b>Comment on this article!</b></font></a></div>
<br />

 <!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_floating_style addthis_counter_style" style="left:15px;top:50px;">
<a class="addthis_button_facebook_like" fb:like:layout="box_count"></a>
<a class="addthis_button_tweet" tw:count="vertical"></a>
<a class="addthis_button_google_plusone" g:plusone:size="tall"></a>
<a class="addthis_counter"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=osga"></script>
<!-- AddThis Button END -->




  <!-- STEP2: Display Records (Paste this where you want your records to be listed) -->
    <h2><?php echo $articlesRecord['title'] ?></h2>     
    
       <span style="font-size:small">
       <strong>By:</strong> <?php echo $articlesRecord['art_field1'] ?><br/>
	 <strong>Published:</strong> <?php echo date("M j, Y ", strtotime($articlesRecord['date'])) ?></span><br/>
	 
	 
	 
	 
	 <div style="margin-right: 25px;">
		<span style="font-size: small;" ><?php echo $articlesRecord['content'] ?></span><br/> <br/> 
<div style="width: 250px; height: 300px; float: right; background-color: #000000; border-color: #dedede; border-radius: 15px; margin-right: 100px; margin-top:-500px;">
<!-- ORG BANNER 1  -->  

<script language='JavaScript' type='text/javascript' src='http://www.osga.com/openads/adx.js'></script> 
<script language='JavaScript' type='text/javascript'>

  if (!document.phpAds_used) document.phpAds_used = ',';
  phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
  
  document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
  document.write ("http://www.osga.com/openads/adjs.php?n=" + phpAds_random);
  document.write ("&amp;what=zone:12&amp;target=_blank");
  document.write ("&amp;exclude=" + document.phpAds_used);
  if (document.referrer)
     document.write ("&amp;referer=" + escape(document.referrer));
  document.write ("'><" + "/script>");
//

</script>
			<noscript><a href='http://www.osga.com/openads/adclick.php?n=ac46148e' target='_blank'><img src='http://www.osga.com/openads/adview.php?what=zone:12&amp;n=ac46148e' border='0' alt=''></a>
			</noscript>
			
			
   <!-- ORG BANNER 1  -->	</div>
</div>




      <!-- STEP 2a: Display Uploads for field 'images' (Paste this anywhere inside STEP2 to display uploads) -->
        <!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 -->
        
        
        
        <?php foreach ($articlesRecord['images'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>






          <?php elseif ($upload['isImage']): ?>
            <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>

          <?php else: ?>
            <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>

          <?php endif ?>
        <?php endforeach ?>
      <!-- STEP2a: /Display Uploads -->

    <?php if (!$articlesRecord): ?>
      No record found!<br/><br/>
    <?php endif ?>
  <!-- /STEP2: Display Records -->
  
  
  
  
  

<!--  <a href="online_gaming.php?category=<?php echo $CategoryNum['title'];?>">&lt;&lt; Back to list page</a> | -->

<span style="font-size:small"> 
  <a href="mailto:?subject=<?php echo urlencode(thisPageUrl()) ?>">Email this Page >></a>

<br><br>

       <?php if ($relatedArticles): ?>
         <span class="boxheader-style1">Related Articles:</span><br />
         
         <?php foreach ($relatedArticles as $related): ?>
           <a href = "<?php echo $related['_link'];?>"><b><?php echo $related['title'];?></b></a><br/>
         <?php endforeach ?>
       <?php endif ?>
      <br/><br/>
      
      
 
            <!-- DISPLAY COMMENTS --> <a name="Comment" id="Comment"></a>
<?php 
  $thisPageUrl = "http://example.com/path/to/your/page.php";                 // enter the url to this page 
  $thisPageUrl = "http://" .$_SERVER['HTTP_HOST']. $_SERVER['SCRIPT_NAME'];  // or auto-detect it 

  wsc_comments(array( 
    'tableOrTag' => 'articles',         // Section these comments are associated with, such as: "articles", "blog", "about_us". 
    'recordNum'  => $articlesRecord['num'],      // Record num these comments are associated with, such as: $record['num'] or 1 
    'themeName'  => 'default',              // HTML theme to display comments with, from /plugins/websiteComments/themes 
    'pageName'   => $articlesRecord['title'],  // Page name displayed in comment notification emails, such as: $record['title'] or "Custom Text" 
    'pageUrl'    => $thisPageUrl,           // Page URL displayed in comment notification emails, such as realurl($record['_link']) 
  )); 

?> 
<!-- /DISPLAY COMMENTS -->
</span>
<br/>
<br/>     
           
      
            
<div align="center">
<a href="http://www.osga.com/online_gaming.php?categoryNum=23" target="_new"><img src="http://www.osga.com/statfox_bonuses/osgabonuses_728x90.gif" width="640"></a>
</div>       
            
            <!-- End MAIN CONTENT AREA -->
			</td>
			
		</tr>
		</table>            		
		
		
	</td>
			
		</tr>
		<tr bgcolor="#02192b">
		<td width="900" colspan="2">
		
		<div align="center">
		<!--#include virtual="2011_footer.html" -->
		</div>
		<br/><br/>			
        </td>
		</tr>
	
	</td>
	</tr>
</table>

<!-- BEGIN LivePerson Monitor. -->

<script type="text/javascript">
window.lpTag=window.lpTag||{};if(typeof window.lpTag._tagCount==='undefined'){window.lpTag={site:'37037843',section:lpTag.section||'',autoStart:lpTag.autoStart===false?false:true,ovr:lpTag.ovr||{},_v:'1.5.1',_tagCount:1,protocol:location.protocol,events:{bind:function(app,ev,fn){lpTag.defer(function(){lpTag.events.bind(app,ev,fn)},0)},trigger:function(app,ev,json){lpTag.defer(function(){lpTag.events.trigger(app,ev,json)},1)}},defer:function(fn,fnType){if(fnType==0){this._defB=this._defB||[];this._defB.push(fn)}else if(fnType==1){this._defT=this._defT||[];this._defT.push(fn)}else{this._defL=this._defL||[];this._defL.push(fn)}},load:function(src,chr,id){var t=this;setTimeout(function(){t._load(src,chr,id)},0)},_load:function(src,chr,id){var url=src;if(!src){url=this.protocol+'//'+((this.ovr&&this.ovr.domain)?this.ovr.domain:'lptag.liveperson.net')+'/tag/tag.js?site='+this.site}var s=document.createElement('script');s.setAttribute('charset',chr?chr:'UTF-8');if(id){s.setAttribute('id',id)}s.setAttribute('src',url);document.getElementsByTagName('head').item(0).appendChild(s)},init:function(){this._timing=this._timing||{};this._timing.start=(new Date()).getTime();var that=this;if(window.attachEvent){window.attachEvent('onload',function(){that._domReady('domReady')})}else{window.addEventListener('DOMContentLoaded',function(){that._domReady('contReady')},false);window.addEventListener('load',function(){that._domReady('domReady')},false)}if(typeof(window._lptStop)=='undefined'){this.load()}},start:function(){this.autoStart=true},_domReady:function(n){if(!this.isDom){this.isDom=true;this.events.trigger('LPT','DOM_READY',{t:n})}this._timing[n]=(new Date()).getTime()},vars:lpTag.vars||[],dbs:lpTag.dbs||[],ctn:lpTag.ctn||[],sdes:lpTag.sdes||[],ev:lpTag.ev||[]};lpTag.init()}else{window.lpTag._tagCount+=1}
</script>
<!-- END LivePerson Monitor. -->



<!-- OPENTRACKER HTML START -->
<script defer src="http://server1.opentracker.net/?site=www.osga.com"></script><noscript><a href="http://www.opentracker.net" target="_blank"><img src="http://img.opentracker.net/?cmd=nojs&site=www.osga.com" alt="website metrics" border="0"></a> </noscript>
<!-- OPENTRACKER HTML END -->
</body>

</html>
