 /*###########################################################################################*/
 
 
   
	  function mouseon(imgnm)
	    {  
	
        	      document.images[imgnm].src="../images/over/"+ imgnm + ".gif";
	     }
	
      function mouseOff(imgnm)
	    {
		
		    document.images[imgnm].src="../images/out/"+ imgnm + ".gif";
	    }
	
	
function header_link()
{
	/*alert('cbvcbvcbcv');*/
 var p=document.location.href;
	var pn=p.lastIndexOf('/');
	var pe=p.indexOf('?');
	//alert(pe);
	
	if(pe!='-1')
	var pageName=p.substring(pn+1,pe);
	else
	var pageName=p.substring(pn+1);
	
	var str = " ";
	
	  str = "<div>";  
	  str += "<div class='blnkmenu_Div'>&nbsp;</div>";
	  str += "<div class='menuR1C1_Div'>";
          if(pageName=='' || pageName=='dashboard.php')
		  {
		   str += "<img src='../images/over/dashboard_on.gif' title='Dashboard' alt='Dashboard' />";
		  }
		  else
		  {
			str += "<a href='dashboard.php' onmouseover=mouseon('dashboard_on'); onmouseout=mouseOff('dashboard_on');><img src='../images/out/dashboard_on.gif' title='Dashboard' alt='Dashboard' id='dashboard_on' name='dashboard_on' /></a>";
		  }
		  
		   if(pageName=='add_newprojects.php' )
		  {
			str += "<img src='../images/over/projects_on.gif' title='Projects' alt='Projects' />";  
		  }
		 else
		 {
		     str += "<a href='add_newprojects.php' onmouseover=mouseon('projects_on'); onmouseout=mouseOff('projects_on');><img src='../images/out/projects_on.gif' title='Projects' alt='Projects' name='projects_on' id='projects_on' /></a>";
		  }
		  
		  
		  if(pageName=='open_proofs.php' )
		  {
			str += "<img src='../images/over/proofs_on.gif' title='Proofs' alt='Proofs' />";  
		  }
		 else
		 {
		     str += "<a href='open_proofs.php' onmouseover=mouseon('proofs_on'); onmouseout=mouseOff('proofs_on');><img src='../images/out/proofs_on.gif' title='Proofs' alt='Proofs' name='proofs_on' id='proofs_on' /></a>";
		  } 
		  
		  
		 str += "</div>"; 
		  
		  str += "<div class='menuR1C2_Div'>&nbsp;</div>";
		    
		str += "<div class='menuR1C3_Div'>";
		
		  if(pageName=='profile.php' )
		  {
			str += "<img src='../images/over/profile_on.gif' title='Profile' alt='Profile' />";  
		  }
		 else
		 {
		     str += "<a href='profile.php' onmouseover=mouseon('profile_on'); onmouseout=mouseOff('profile_on');><img src='../images/out/profile_on.gif' title='Profile' alt='Profile' name='profile_on' id='profile_on' /></a>";
		  }
		  
		 
		  
		   if(pageName=='index.php' )
		  {
			str += "<img src='../images/over/profile_on.gif' title='Profile' alt='Profile' />";  
		  }
		 else
		 {
		     str += "<a href='index.php' onmouseover=mouseon('profile_on'); onmouseout=mouseOff('profile_on');><img src='../images/out/profile_on.gif' title='Profile' alt='Profile'   /></a>";
		  } 
		  
		 str += "</div>";
		 
		  str += "</div>";
		 /* alert('str');*/
		document.write(str); 
		 	 
	 }
	 
	 
	 
	
	
	
function dashheader_link()
{
	/*alert('cbvcbvcbcv');*/
 var p=document.location.href;
	var pn=p.lastIndexOf('/');
	var pe=p.indexOf('?');
	//alert(pe);
	
	if(pe!='-1')
	var pageName=p.substring(pn+1,pe);
	else
	var pageName=p.substring(pn+1);
	
	var str = " ";
	
	  str = "<div>";  
	  str += "<div class='blnkmenu_Div'>&nbsp;</div>";
	  str += "<div class='menuR1C1_Div'>";
          if(pageName=='' || pageName=='dash_board.php')
		  {
		   str += "<img src='../images/over/dashboard_on.gif' title='Dashboard' alt='Dashboard' />";
		  }
		  else
		  {
			str += "<a href='dash_board.php' onmouseover=mouseon('dashboard_on'); onmouseout=mouseOff('dashboard_on');><img src='../images/out/dashboard_on.gif' title='Dashboard' alt='Dashboard' id='dashboard_on' name='dashboard_on' /></a>";
		  }
		  
		   if(pageName=='../franchise/add_newprojects.php' )
		  {
			str += "<img src='../images/over/projects_on.gif' title='Projects' alt='Projects' />";  
		  }
		 else
		 {
		     str += "<a href='../franchise/add_newprojects.php' onmouseover=mouseon('projects_on'); onmouseout=mouseOff('projects_on');><img src='../images/out/projects_on.gif' title='Projects' alt='Projects' name='projects_on' id='projects_on' /></a>";
		  }
		  
		  
		  if(pageName=='../franchise/open_proofs.php' )
		  {
			str += "<img src='../images/over/proofs_on.gif' title='Proofs' alt='Proofs' />";  
		  }
		 else
		 {
		     str += "<a href='../franchise/open_proofs.php' onmouseover=mouseon('proofs_on'); onmouseout=mouseOff('proofs_on');><img src='../images/out/proofs_on.gif' title='Proofs' alt='Proofs' name='proofs_on' id='proofs_on' /></a>";
		  } 
		  
		  
		 str += "</div>"; 
		  
		  str += "<div class='menuR1C2_Div'>&nbsp;</div>";
		    
		str += "<div class='menuR1C3_Div'>";
		
		  if(pageName=='profile.php' )
		  {
			str += "<img src='../images/over/profile_on.gif' title='Profile' alt='Profile' />";  
		  }
		 else
		 {
		     str += "<a href='profile.php' onmouseover=mouseon('profile_on'); onmouseout=mouseOff('profile_on');><img src='../images/out/profile_on.gif' title='Profile' alt='Profile' name='profile_on' id='profile_on' /></a>";
		  }
		  
		 
		  
		   if(pageName=='index.php' )
		  {
			str += "<img src='../images/over/profile_on.gif' title='Profile' alt='Profile' />";  
		  }
		 else
		 {
		     str += "<a href='index.php' onmouseover=mouseon('profile_on'); onmouseout=mouseOff('profile_on');><img src='../images/out/profile_on.gif' title='Profile' alt='Profile'   /></a>";
		  } 
		  
		 str += "</div>";
		 
		  str += "</div>";
		 /* alert('str');*/
		document.write(str); 
		 	 
	 }
	  
	 
	 
	 
  function footer_link()
   {
	  str ='';
	  
	   str +="<div class='dashpnewprj_r1 fnt_copyright'>";
	   str +="<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
	   str +="<tr><td align='center' valign='middle' colspan='2'>Copyright &copy; 2009 RSVP Creative Services</td></tr>";
	   str +="<tr><td width='51%' align='right' valign='middle' style='padding-top:10px; font-size:11px; font-weight:bold;'>Powered by&nbsp;&nbsp;</td>";
	   str +="<td width='49%' align='left' valign='middle' style='padding-top:10px;'><a href='http://medma.net' style='border:0px;' target='_blank'><img src='../images/medma_logo.jpg' alt=''></a></td>";
	   str +="</tr></table>";
	   str +="</div>";
	   
	 document.write(str);   
	}
	 
	  
	function footer_link1()
   {
	  str ='';
	  
	   str +="<div class='footer_div2 fnt_copyright' align='center'>";
	   str +="<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
	   str +="<tr><td align='center' valign='middle' colspan='2'>Copyright &copy; 2009 RSVP Creative Services</td></tr>";
	   str +="<tr><td width='51%' align='right' valign='middle' style='padding-top:10px; font-size:11px; font-weight:bold;'>Powered by&nbsp;&nbsp;</td>";
	   str +="<td width='49%' align='left' valign='middle' style='padding-top:10px;'><a href='http://medma.net' style='border:0px;' target='_blank'><img src='../images/medma_logo.jpg' alt=''></a></td>";
	   str +="</tr></table>";
	   str +="</div>";
	   
	 document.write(str);   
	}
	   
/*function footer_link_admin()
   {
	  str ='';
	  
	   str +="Copyright &copy; 2009 RSVP Creative Services";
	   
	 document.write(str);   
	}*/
function footer_link_admin()
   {
	  str ='';
	   
	   str +="<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
	   str +="<tr><td colspan='2'>&nbsp;</td></tr>";
	   str +="<tr><td colspan='2'><table border='0' cellpadding='0' cellspacing='0' width='80%' align='center'>";
	   str +="<tr><td width='18%' align='center' valign='middle' nowrap='nowrap' class='view2' style='border-right:1px solid #FFFFFF;'><a href='view_mailregion.php'>RSVP Market</a></td>";
	   str +="<td width='13%' align='center' valign='middle' class='view2' style='border-right:1px solid #FFFFFF;'><a href='add_users.php'>Add User</a></td>";
	   str +="<td width='15%' align='center' valign='middle' class='view2' style='border-right:1px solid #FFFFFF;'><a href='view_users.php'>View User</a></td>";
	   str +="<td width='16%' align='center' valign='middle' nowrap='nowrap' class='view2' style='border-right:1px solid #FFFFFF;'><a href='view_projects.php'>View Projects</a></td>";
	   str +="<td width='22%' align='center' valign='middle' nowrap='nowrap' class='view2'><a href='change_password.php'>Change Password</a></td>";
	   str +="</tr></table></td></tr><tr><td colspan='2'>&nbsp;</td></tr>";
	   str +="<tr><td align='center' valign='middle' colspan='2'>Copyright &copy; 2009 RSVP Creative Services</td></tr>";
	   str +="<tr><td width='51%' align='right' valign='middle' style='padding-top:10px; font-size:11px; font-weight:bold;'>Powered by&nbsp;&nbsp;</td>";
	   str +="<td width='49%' align='left' valign='middle' style='padding-top:10px;'><a href='http://medma.net' style='border:0px;' target='_blank'><img src='../images/medma_logo.jpg' alt=''></a></td>";
	   str +="</tr></table>";
	   
	   
	 document.write(str);   
	}

function footer_link_coordinator()
   {
	  str ='';
	   str +="<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
	   str +="<tr><td colspan='2' height='30'>&nbsp;</td></tr>";
	   str +="<tr><td align='center' valign='middle' colspan='2'>Copyright &copy; 2009 RSVP Creative Services</td></tr>";
	   str +="<tr><td width='51%' align='right' valign='middle' style='padding-top:10px; font-size:11px; font-weight:bold;'>Powered by&nbsp;&nbsp;</td>";
	   str +="<td width='49%' align='left' valign='middle' style='padding-top:10px;'><a href='http://medma.net' style='border:0px;' target='_blank'><img src='../images/medma_logo.jpg' alt=''></a></td>";
	   str +="</tr></table>";
	 document.write(str);   
	}
 
  
  function header_linklogo()
  {
   var str_header = '';
    str_header = "<div>";
  str_header += "<div class='header_logodiv'><img src='../images/header_01.jpg' alt='RSVP Creative Services' border='0' usemap='#Map' title='RSVP Creative Services' /></div>";
 str_header += "<div class='header_logodiv02'>";
str_header += "<div class='header_linkDiv' >";
str_header += "<div class='beforeactive_proDiv'>&nbsp;</div>";
str_header += "<div class='active_proDiv1 fntheaderlink' align='center'><a href='view_projects.php'>Active Projects</a></div>";
str_header += "<div class='active_proDiv2' align='center'><b>|</b></div>";
str_header += "<div class='active_proDiv fntheaderlink'  align='center'><a href='open_proofs.php'>Active Proofs</a></div>";
str_header += "<div class='active_proDiv2' align='center'><b>|</b></div>";
str_header += "<div class='active_proDiv3 fntheaderlink' align='center'><a href=''>Archives</a></div>";
str_header += "</div>";
str_header += "<div class='header_linkDiv2 fnt_addprojects' align='right'><i>New Project</i>&nbsp;&nbsp;&nbsp;&nbsp;</div>";
str_header += "</div>";
str_header += "</div>"; 
	   document.write(str_header);
	   
  }
