// JavaScript functions developed by Virtual Networking Solutions unless otherwise specified
// All Rights Reserved by Virtual Networking Solutions (www.virtualnetworking.net) and respective references

// Dedicated Popup Boxes
function my_popwin()
{
window.open('policy/copyright.htm','mywindow0','width=473,height=400,left=3,top=3,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=no');
}
function my_popwin1()
{
window.open('policy/long-aup.htm','mywindow1','width=473,height=400,left=3,top=3,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=no');
}
function my_popwin2()
{
window.open('policy/privacy.htm','mywindow2','width=473,height=400,left=3,top=3,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=no');
}
function my_popwin3()
{
window.open('policy/terms.htm','mywindow3','width=473,height=400,left=3,top=3,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=no');
}
function my_popwin4()
{
window.open('policy/policy.htm','mywindow4','width=473,height=200,left=3,top=3,toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=no');
}

// Get the Current Date
function GetDate() {
document.write ("<span style=\"font-family:Comic Sans MS; color:#9900FF; font-size:12px; font-weight:bold;\">\r\n");
document.write ("<SCRI");
document.write ("PT LANGUAGE=\"JavaScri");
document.write ("pt1.2\">\r\n");
document.write ("<!-- Begin\r\n");
document.write ("var months=new Array(13);\r\n");
document.write ("months[1]=\"January\";\r\n");
document.write ("months[2]=\"February\";\r\n");
document.write ("months[3]=\"March\";\r\n");
document.write ("months[4]=\"April\";\r\n");
document.write ("months[5]=\"May\";\r\n");
document.write ("months[6]=\"June\";\r\n");
document.write ("months[7]=\"July\";\r\n");
document.write ("months[8]=\"August\";\r\n");
document.write ("months[9]=\"September\";\r\n");
document.write ("months[10]=\"October\";\r\n");
document.write ("months[11]=\"November\";\r\n");
document.write ("months[12]=\"December\";\r\n");
document.write ("var time=new Date();\r\n");
document.write ("var lmonth=months[time.getMonth() + 1];\r\n");
document.write ("var date=time.getDate();\r\n");
document.write ("var year=time.getYear();\r\n");
document.write ("if (year < 2000)    // Y2K Fix, Isaac Powell\r\n");
document.write ("year = year + 1900; // http://onyx.idbsu.edu/~ipowell\r\n");
document.write ("document.write(\"Today is: \" + lmonth + \" \");\r\n");
document.write ("document.write(date + \", \" + year);\r\n");
document.write ("// End -->\r\n");
document.write ("</SCRI");
document.write ("PT>\r\n");
document.write ("</span>\r\n");
}

// Master Footer script for all pages
function bottom() {
document.write ("<table border=0 width=615>\r\n");
document.write (" <tr>\r\n");
document.write ("  <td align=center>\r\n");
document.write ("   <span class=Hilite>Virtual Networking Solutions</span><br>\r\n");
document.write ("   <span style=\"font-size:11px;\">Copyright &copy; 2000-2009</span>\r\n");
document.write ("  </td>\r\n");
document.write (" </tr>\r\n");
document.write (" <tr>\r\n");
document.write ("  <td align=center style=\"font-face:Arial,Helvetica,sans-serif; font-size:12px;\">\r\n");
document.write ("   <a href=\"index.php?page=middle.html\">Home</a> |\r\n");
document.write ("   <a href=\"index.php?page=about.html\">About</a> |\r\n");
document.write ("   <a href=\"index.php?page=profilebody.html\">Profile</a> |\r\n");
document.write ("   <a href=\"index.php?page=objectivesbody.html\">Objectives</a> |\r\n");
document.write ("   <a href=\"index.php?page=contact.html\">Contact Us</a> |\r\n");
document.write ("   <a href=\"index.php?page=sitemap.html\">Sitemap</a><br>\r\n");
document.write ("   <a href=\"index.php?page=webbody.html\">Website Hosting &amp; Design</a> |\r\n");
document.write ("   <a href=\"index.php?page=strategicbody.html\">Strategic Planning</a> |\r\n");
document.write ("   <a href=\"index.php?page=needsbody.html\">Needs Analysis</a><br>\r\n");
document.write ("   <a href=\"index.php?page=networkbody.html\">Network Design</a> |\r\n");
document.write ("   <a href=\"index.php?page=outsourcing.html\">Outsourcing</a> |\r\n");
document.write ("   <a href=\"index.php?page=reengineer.html\">Business Process / (Re)Engineering</a>\r\n");
document.write ("  </td>\r\n");
document.write (" </tr>\r\n");
document.write ("</table>\r\n");
}

// Copyright footer for the left menu structure
function bottomL() {
document.write ("<DIV align=center>\r\n");
document.write ("<table border=0 width=\"93%\">\r\n");
document.write ("<tr> <td style=\"font-size:11px;text-align:center;\">\r\n");
document.write ("<A href=\"javascript:my_popwin()\">Copyright Notice</A>&nbsp;\r\n");
document.write ("<A href=\"javascript:my_popwin2()\">Privacy</A><br>\r\n");
document.write ("<A href=\"javascript:my_popwin1()\">AUP</A>&nbsp;\r\n");
document.write ("<A href=\"javascript:my_popwin3()\">Terms &amp; Conditions</A>\r\n");
document.write ("</td> </tr> <tr> <td style=\"font-size:11px;text-align:justify;\">\r\n");
document.write ("Reproduction in whole or in part in any form or medium without express \r\n");
document.write ("written permission from VNS is illegal and strictly prohibited. \r\n");
document.write ("All rights reserved &quot;confidential&quot;.\r\n");
document.write ("</td> </tr>\r\n");
document.write ("</table>\r\n");
document.write ("</DIV>\r\n");
}

// Copyright footer for the bottom of the master page
function CopyFoot() {
document.write ("<div align=center>\r\n");
document.write ("<table border=0 width=\"95%\">\r\n");
document.write ("<tr> <td style=\"font-size:11px;\">\r\n");
document.write ("<a href=\"javascript:my_popwin()\">Copyright Notice</a>&nbsp;&nbsp;|&nbsp;\r\n");
document.write ("<a href=\"javascript:my_popwin2()\">Privacy</a>&nbsp;&nbsp;|&nbsp;\r\n");
document.write ("<a href=\"javascript:my_popwin1()\">Acceptable Use Policy</a>&nbsp;&nbsp;|&nbsp;\r\n");
document.write ("<a href=\"javascript:my_popwin3()\">Terms &amp; Conditions</a>\r\n");
document.write ("</td> </tr> <tr> <td style=\"font-size:11px;\">\r\n");
document.write ("Reproduction in whole or in part in any form or medium without express written \r\n");
document.write ("permission from<br>Virtual Networking Solutions is illegal and strictly prohibited. \r\n");
document.write ("All rights reserved &quot;confidential&quot;.\r\n");
document.write ("</td> </tr>\r\n");
document.write ("</table>\r\n");
document.write ("</div>\r\n");
}

// Form Handlers for Pull Down Site Selections
function formHandler1()
{
var URL2 = document.SelMySite.site1.options[document.SelMySite.site1.selectedIndex].value;
var URL = 'index.php?page=' + URL2;
location.href = URL;
//resize_iframe()
}

function formHandler2()
{
var URL = document.SelSite.site.options[document.SelSite.site.selectedIndex].value;
window.open(URL);
}

// Source: http://www.huntingground.freeserve.co.uk/webplus/iframes/iframe_main.htm
moz=document.getElementById&&!document.all
mozHeightOffset=20
function resize_iframe(){
document.getElementById("iframe_id").height=100 // required for Moz bug, value can be "", null, or integer
document.getElementById('iframe_id').height=window.frames["main"].document.body.scrollHeight+(moz?mozHeightOffset:0)
}

/***********************************************
* Overlapping Content link- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code (http://www.dynamicdrive.com/dynamicindex5/overlapcontent.htm)
***********************************************/
function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function overlay(curobj, subobj){
if (document.getElementById){
var subobj=document.getElementById(subobj)
subobj.style.left=getposOffset(curobj, "left")+"px"
//subobj.style.top=getposOffset(curobj, "top")+"px"
subobj.style.top="60px"
subobj.style.display="block"
return false
}
else
return true
}

function overlayclose(subobj){
document.getElementById(subobj).style.display="none"
}
// End Overlapping Content link
