/* global JS functions  */
// some common functions, then we'll do the includes

/* pop-up window code */
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function close_window() {
    window.close();
}

// header include will use these once we get the initial pages finalized

var headStr = '';
//   create logo row table
headStr += '<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color:#FFFFFF "><tr><td><table border="0" cellpadding="0" cellspacing="0" width="775" style="background-color:#FFFFFF " align="center"><tr>'
headStr += '<td width="285"><img src="images/logo.gif" alt="" width="270" height="54" hspace="4" vspace="8" /></td>'
headStr += '</tr></table></td></tr></table>'
//   top horizontal nav row table - open tables and style background left
headStr += '<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td colspan="3" style="background-image:url(images/nav_top_bk.gif) "><img src="images/spacer.gif" alt=" " width="1" height="6" /></td></tr><tr><td style="background-image:url(images/nav_barleft.jpg); background-repeat:repeat-y "><img src="images/spacer.gif" alt="  " width="130" height="20" /></td>'
//   link items
headStr += '<td align="center" style="background-color:#d7d7dd" nowrap="nowrap"><a href="index.htm" class="nav"><img src="images/bullet_diamond.gif" alt=" " width="8" height="8" border="0" /> Home&nbsp; </a> <a href="service.htm" class="nav"><img src="images/bullet_diamond.gif" alt=" " width="8" height="8" border="0" /> Service&nbsp; </a> <a href="news.htm" class="nav"><img src="images/bullet_diamond.gif" alt=" " width="8" height="8" border="0" /> News&nbsp; </a> <a href="customerservice.htm" class="nav"><img src="images/bullet_diamond.gif" alt=" " width="8" height="8" border="0" /> Customer Service&nbsp; </a> <a href="contact.htm" class="nav"><img src="images/bullet_diamond.gif" alt=" " width="8" height="8" border="0" /> Contact Us&nbsp; </a> <a href="career.htm" class="nav"><img src="images/bullet_diamond.gif" alt=" " width="8" height="8" border="0" /> Careers</a> <a href="login.htm" class="nav"><img src="images/bullet_diamond.gif" alt=" " width="8" height="8" border="0" /> Customer Login</a></td>'
//   style background right and close nav row
headStr += '<td style="background-image:url(images/nav_barright.jpg); background-repeat:repeat-y; background-position:right "><img src="images/spacer.gif" alt="" width="130" height="1" /></td></tr><tr><td colspan="3" style="background-image:url(images/nav_bot_bk.gif) "><img src="images/spacer.gif" alt=" " width="1" height="6" /></td></tr></table>'
//   open main body style surround table -- close in footer
headStr += '<table border="0" cellpadding="0" cellspacing="0" width="100%" style=" background-image:url(images/bk_main.jpg); background-repeat:repeat-x"><tr><td>'

//  foot string include

var footStr ='';
footStr += '</td></tr></table><table border="0" cellpadding="0" cellspacing="0" width="100%">'
footStr += '<tr><td height="22" align="center" class="flink" style="background-color:#8b8b9c "><a href="index.htm" class="flink">Home</a> | <a href="#" class="flink">About</a> | <a href="#" class="flink">Features</a> | <a href="#" class="flink">Resource & Help Center</a> | <a href="#" class="flink">FAQ</a> | <a href="#" class="flink">Contact Us</a></td></tr>'
footStr += '<tr><td class="footer" style="text-align:center " height="25">Proximity Marketing &copy; 2010. All Rights Reserved. </td></tr></table>'


// left column include
var leftStr ='';
leftStr +='<table border="0" cellpadding="0" cellspacing="0" width="170"><tr><td align="center" nowrap="nowrap" class="newshead" style="background-color:#8B8B9C; padding:4px;">Recent News </td></tr>';
leftStr +='<tr><td class="boxlt" style="background-image:url(images/bk_headbot.gif); background-repeat:no-repeat "><p><br />'
// news content snippets REMEMBER escape special chars when modifying or code will fail 
leftStr +='<b>April 8th, 2009</b><br/> Some News Headline <a href="news1.htm"><img src="images/txt_read_more.jpg" alt="click to read more" width="66" height="9" border="0" /></a><br /><br />'
leftStr +='<b>April 7th, 2009 </b><br/> Another News Headline <a href="news2.htm"><img src="images/txt_read_more.jpg" alt="click to read more" width="66" height="9" border="0" /></a><br /><br />'
leftStr +='<b>March 1st, 2009 </b><br/> News Headline <a href="news3.htm"><img src="images/txt_read_more.jpg" alt="click to read more" width="66" height="9" border="0" /></a><br /><br /></p></td></tr>'
//leftStr +='Lorem ipsum dolora sit non amet, cons tetuer dolorma adipiscing elit. <a href="#"><img src="images/txt_read_more.jpg" alt="click to read more" width="66" height="9" border="0" /></a><br /><br />'
//leftStr +='Lorem ipsum dolora sit non amet, cons tetuer dolorma adipiscing elit. <a href="#"><img src="images/txt_read_more.jpg" alt="click to read more" width="66" height="9" border="0" /></a></p></td></tr>'

// create clients box and content next
leftStr +='<tr><td><img src="images/spacer.gif" alt=" " width="1" height="12" /></td></tr><tr><td align="center" nowrap="nowrap" class="newshead" style="background-color:#8B8B9C; padding:4px;"> Product Partners</td>'
leftStr +='</tr><tr><td align="center" class="boxlt" style="background-image:url(images/bk_headbot.gif); background-repeat:no-repeat " height="75">'
leftStr +='<object type="application/x-shockwave-flash" data="pf_1.swf" width="114" height="42"><param name="movie" value="pf_1.swf" /><param name=FlashVars value="listQS=logolist.txt&pathQS=./flashLogos/&upQS=1&dnQS=3&dwellQS=2" />'
leftStr +='<img src="images/partner1.gif" width="114" height="42"/><p>Flash Plug-in Not Detected. <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Click here</a>to download the Flash plugin.<br /></p></object></td></tr></table>'





