function moveCloseLink(){ 
    	var cb=document.getElementById('sb-nav-close'); 
    	var tb=document.getElementById('sb-title'); 
    	if(tb) tb.appendChild(cb); 
} 



function fadeinlayer(targetpage) { 
			Shadowbox.open({
      		content: targetpage,
      		player:  "iframe",
      		height:  600,
      		width:   500
	
   			 });
  }

   $(document).ready(function() {
    Shadowbox.init( {   
           initialHeight:600
           , initialWidth:450
           , loadingImage:"loading.gif"
           , players:"iframe"
           ,overlayColor:"##2a292a"
           ,overlayOpacity:0.8
           ,handleOversize:"resize"
           ,onOpen: moveCloseLink
             } ); 
 });
 
 
 function offerhighlight(act) {
       document.getElementById(act).style.backgroundColor='#444444';
       document.getElementById(act).style.cursor='pointer';
        
    }
    
    
    function offerunhighlight(act) {
       document.getElementById(act).style.backgroundColor='';
       document.getElementById(act).style.cursor='auto';
        
    }

