/* drheader.js - Common head of dr documents
*/

  <!-- Hiding the code

/* Hide any errors
*/
function stopError() {
  return true;
}
window.onerror = stopError;

/* getuid.js
*/

var UserID = GetCookie('UserID');
var UserName = GetCookie('UserName');

if (document.URL.indexOf('https') > -1)      
	{
	cookiepath='/duanereade';
	}
else
	{
	cookiepath='/';
	}

if (document.URL.indexOf('?') > -1)
	{
	var docurlArray = document.URL.split('?');
	var qdataArray = docurlArray[1].split('&');
	for ( i = 0; i < qdataArray.length; i++)
		{
		var qdata = qdataArray[i].split('=');
//		document.write(qdata[0] + ' is ' + qdata[1] + '<br>\n');

		if ( qdata[0].indexOf('UserID') > -1)
			{
			UserID = qdata[1];
			}
		if ( qdata[0].indexOf('UserName') > -1)
			{
			UserName = qdata[1];
			UserName = UserName.replace(/%20/g, ' ');
			UserName = UserName.replace(/%2E/g, '.');
//			document.write(UserName + '<br>\n');
			}
		}

	if ( UserID != '')
		{
/*
cookie code
*/
		var expDays = 730;
		var exp = new Date(); 
		exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
		SetCookie ('UserID', UserID, exp, cookiepath);
		SetCookie ('UserName', UserName, exp, cookiepath);
		
		}
	
	}

function getCookieVal (offset) {  
        var endstr = document.cookie.indexOf (";", offset);  
        if (endstr == -1)    
                endstr = document.cookie.length;  
                return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {  
        var arg = name + "=";  
        var alen = arg.length;  
        var clen = document.cookie.length;  
        var i = 0;  
        while (i < clen) {    
        var j = i + alen;    
        if (document.cookie.substring(i, j) == arg)      
                return getCookieVal (j);    
                i = document.cookie.indexOf(" ", i) + 1;    
                if (i == 0) break;   
        }  
        return null;
}
function SetCookie (name, value) {  
        var argv = SetCookie.arguments;  
        var argc = SetCookie.arguments.length;  
        var expires = (argc > 2) ? argv[2] : null;  
        var path = (argc > 3) ? argv[3] : null;  
        var domain = (argc > 4) ? argv[4] : null;  
        var secure = (argc > 5) ? argv[5] : false;  
        document.cookie = name + "=" + escape (value) + 
        ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
        ((path == null) ? "" : ("; path=" + path)) +  
        ((domain == null) ? "" : ("; domain=" + domain)) +    
        ((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {  
        var exp = new Date();  
        exp.setTime (exp.getTime() - 1);  
        // This cookie is history  
        var cval = GetCookie (name);  
        document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

/* end of getuid.js
*/


document.write('<style type="text/css"><!-- \n');

/* Defaults
*/
document.write('  .dr,body,td{ font-family:Arial,sans-serif; font-size:.825em; color:000000; } \n');
document.write('  th{ font-family:Arial,sans-serif; font-size:.825em; color:000000; font-weight:bold;} \n');
document.write('  A,.a { text-decoration:underline; color:0000FF; } \n');
document.write('  A.:hover { color:7070FF; } \n');

document.write('  .h{font-size: 1em; font-weight:bold;} \n');

document.write('  .scaps{font-variant:small-caps;} \n');

document.write('  .ltbl{color:CCCCFE;} \n');

document.write('  UL.li1,LI.li1 { list-style: url("images/blank.gif"); list-style-position: outside} \n');
document.write('  UL.li2,LI.li2 { list-style: url("images/blank2.gif"); list-style-position: outside} \n');
document.write('  UL.lbc,LI.lbc { (list-style-type: circle; color:blue; list-style-position: outside)} \n');

/* Top and Bottom Menus
*/
document.write('  .pip { font-family:Arial; font-size:1.3em; font-weight:normal; color:000000; } \n');
document.write('  .topmnus { font-family:Arial; font-size:.8em; text-decoration:none; font-weight:bold; color:181f7a; font-smooth:auto; } \n');
document.write('  A.topmnus:hover { text-decoration:underline; } \n');
document.write('  .mnus { font-family:Arial; font-size:.8em; text-decoration:none; font-weight:bold; color:181f7a; font-smooth:auto; } \n');
document.write('  A.mnus:hover { text-decoration:underline; } \n');
document.write('  .black { font-family:Arial; font-size:1em; text-decoration:underline; color:black; } \n');
document.write('  A.black:hover { color:blue; } \n');

/* drsearch.js (drleftnav.js)
*/
document.write('  .roll2 { font-family:Arial,sans-serif; font-size:.9em; text-decoration:none; color:2020FF; } \n');
document.write('  A.roll2:hover { color:8080FF; } \n');

document.write('--> </style> \n');

/* End of Style 
*/

document.write('<BODY BGCOLOR="#FFFFFF" TOPMARGIN=0 LEFTMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0 link=blue vlink=blue> \n');

document.write('<table width=100%><tr><td rowspan=2 width=140> \n');
document.write('	<a href="index.htm" target="_top">');
document.write('	<img src="images/gssi130.jpg" width="130" height="130" align="middle" hspace=4 vspace=4 border=0> \n');
document.write('	</a> \n');
document.write('</td> \n');

/* Top Menu
*/
document.write('<td  colspan=2 align=right valign=bottom height=30 width=*> \n');
document.write('	<div style="padding-right:40;">\n');
document.write('	&nbsp;<a href="index.htm" class=topmnus target="_top">Home</a> \n');
document.write('	<font class=pip> | </font>');
/*
document.write('	<a href="protraining.htm" class=topmnus target="_top">Professional Training</a> \n');
document.write('	<font class=pip> | </font>');
document.write('	<a href="aboutus.htm" class=topmnus target="_top">About Us</a>&nbsp;\n');
document.write('	<font class=pip> | </font>');
*/
document.write('	<a href="contactus.htm" class=topmnus target="_top">Contact Us</a>&nbsp;\n');
document.write('</td>\n');
/* End Top Menu
*/

document.write('</tr><tr height=68><td valign=top align=left> \n');

if ( UserID != '' && document.URL.indexOf('https') < 0)	{
/*image tag code*/
	document.write('<img src="images/blank.gif?UserID=' + UserID +'" height=1 width=1 align=right border=0>');
	}

document.write('	<img src="images/header.gif" width="540" height="68" hspace=0 border=0></td><td valign=top align=center> \n');
document.write('<br><div style="margin-left:0;font-size:1em;"><B>Book your travel online at <a href="http://www.giantstridetravel.com/" target="_new">www.giantstridetravel.com</a></b></div></td></tr></table> \n');
document.write('</td></tr></table> \n');
document.write('<br> \n');


  // done hiding -->


