j$(document).ready(function(){
        j$('#closeHeader').html('&nbsp;');

	function handIcon(thisItem){
            j$(thisItem).mouseenter(function(){
                j$(this).css('cursor', 'pointer');
            });
	};	
	
	j$('#share').hide();
	j$('#affiliate').hide();
	
	var stockHTML='<div id="scroller"><iframe style="margin-top:20px;" allowTransparency="true" width="970" hspace="0" scrolling="no" height="37" frameborder="0" marginheight="0" marginwidth="0" src="http://www.currency.me.uk/remote/CUK-LFOREXRTICKER-2.php?ws=http://localhost/HEREFORD/calculator.php&amp;w=970&amp;s=1&amp;f=arial&amp;fc=D0D0D0&amp;fs=10px&amp;mbg=262626&amp;bs=yes&amp;bc=262626&amp;vc=000044&amp;lc=D0D0D0&amp;lhc=2B58BA"></iframe></div>';
	
	j$('#shareBtn').mouseup(function(){
		j$('#closeHeader').html('X');
		j$('#share').html(stockHTML);
		j$('#share').slideDown();
		j$('#affiliate').slideUp();
		j$('#map').slideUp();
	});
	
	handIcon('#shareBtn');
	
	var affHTML='\
        <div id="affiliateHold">\
            <table>\
                <tr>\
                    <td class="affiliate_white_bg" valign="top">\
                        <a href="http://www.liberty.co.za" target="_blank"><img src="images/logo_libertyLife.jpg" alt="liberty_life_logo" /></a>\
                        <p>Own your life with Liberty...</p>\
                        <p>In 1958 one of South Africa&rsquo;s first financial services companies was born. Over 50 years later Liberty Life is still a household name in South Africa. Over the years it has earned a reputation as a progressive and reliable financial services group, offering a wide range of long-term insurance services and products to individuals and corporates.</p>\
                        <p><a href="http://www.liberty.co.za" target="_blank">www.liberty.co.za</a></p>\
                    </td>\
                    <td><div class="affiliate_spacer"></div></td>\
                    <td class="affiliate_white_bg" valign="top">\
                        <a href="http://www.stanlib.com" target="_blank"><img src="images/logo_stanlib.jpg" alt="stanlib_logo" /></a>\
                        <p>The Art and Science of Investing... </p>\
                        <p>STANLIB is one of the top investment managers in South Africa, offering a range of investment solutions to both individuals and institutions.</p>\
                        <p>The leading Unit Trust Company, with R330 billion assets under management and administration.<p><a href="http://www.stanlib.com" target="_blank">www.stanlib.com</a></p>\
                    </td>\
                    <td><div class="affiliate_spacer"></div></td>\
                    <td class="affiliate_white_bg" valign="top">\
                        <a href="http://www.iprotect.co.za" target"_blank"><img src="images/logo_iProtect.jpg" alt="iProtect_logo" /></a>\
                        <p>The Trust Solution Specialists...</p>\
                        <p>iProtect specialises in Corporate Commercial and Trust Structures which optimise risk mitigation, asset protection, tax and estate planning.</p>\
                        <p>iProtect is the first offering of its kind in South Africa, providing a comprehensive, seamless solution to clients.</p>\
                        <p><a href="http://www.iprotect.co.za" target"_blank">www.iprotect.co.za</a></p>\
                    </td>\
                </tr>\
            </table>\
        </div>';
	
	j$('#affiliateBtn').mouseup(function(){
		j$('#closeHeader').html('X');
		j$('#affiliate').html(affHTML);
		j$('#affiliate').slideDown();
		j$('#share').slideUp();
		j$('#map').slideUp();
	});
	
	handIcon('#affiliateBtn');
		
	j$('#closeHeader').mouseup(function(){
		j$('#closeHeader').html('&nbsp;');
		j$('#share').slideUp();
		j$('#map').slideUp();
		j$('#affiliate').slideUp();
	});
	
	handIcon('#closeHeader');
	
	/*print ---------------------------------------------------------------------------------------*/
	j$('#print').mousedown(function(){
		window.print();
		return false;
	});
	
	/*print icon HAND------------------------------------------------------------------------------*/
	handIcon('#print');
	j$('#print').mouseenter(function(){
		j$(this).css('color','#2449B8');
	});
	
	j$('#print').mouseleave(function(){
		j$(this).css('color','#262626');
	});
});
