<? if( $show_cookie ) { ?>
<div>
<style>
#socAuthOverlay {
    background: none repeat scroll 0 0 #fff;
    height: 100%;
    position: fixed;
    width: 100%; 
	left: 0;
    overflow: hidden;
    top: 0;
    z-index: 99;
}

#socAuthPopUp {
    background: none repeat scroll 0 0 #fff;
    border: 1px solid #DFDFDF;
	box-shadow: 0px 0px 10px #DFDFDF;
    z-index: 999;
	
	position: fixed;
	width: 517px;
	height: 292px;
	
	-moz-border-radius: 15px;
	border-radius: 15px;
	padding-top: 28px;
}

#socAuthPopUp .header
{
	text-align: center;
	padding: 0px;
	font-size: 30px;
	line-height: 28px;
}

#socAuthPopUp .skipp
{
	padding-top: 18px;

}

#socAuthPopUp .skiplink
{
	color: #000;
	text-decoration: none;
	font-size: 25px;
}

a.socnetauth_buttons:hover img
{
	opacity: 0.8;
}

</style>
<div id="socAuthOverlay" style="display: block; opacity: 0.9;"></div>
<div id="socAuthPopUp" style="display: none;">
<p class="header"><? echo $heading_title1; ?></p>
<p class="header"><? echo $heading_title2; ?></p>
<p style="height: 4px;"></p>
<table width=100%>
	<tr>
		<td width=4%></td>
		<td width=23% align=center><a class="socnetauth_buttons" href="/socnetauth/vkontakte.php?first=1"><img src="/socnetauth/icons/vk.png"></a></td>
		<td width=23% align=center><a class="socnetauth_buttons" href="/socnetauth/odnoklassniki.php?first=1"><img src="/socnetauth/icons/od.png"></a></td>
		<td width=23% align=center><a class="socnetauth_buttons" href="/socnetauth/facebook.php?first=1"><img src="/socnetauth/icons/fb.png"></a></td>
		<td width=23% align=center><a class="socnetauth_buttons" href="/socnetauth/twitter.php?first=1"><img src="/socnetauth/icons/tw.png"></a></td>
		<td width=4%></td>
	</tr>	
</table>
<p align=center class="skipp"><i><a href="javascript: closeSocAuthPopUp();" class="skiplink"><? echo $skip; ?></a></i></p>
</div>
<script>
function show_socauth_popup()
{
	var otstup1 = ($(window).width() - 517)/2;
	var otstup2 = ($(window).height() - 320)/2;
	
	document.getElementById('socAuthPopUp').style.left    = otstup1+'px';
	document.getElementById('socAuthPopUp').style.top     = otstup2+'px';
	document.getElementById('socAuthPopUp').style.display = 'block';
}

function closeSocAuthPopUp()
{
	document.getElementById('socAuthPopUp').style.display = 'none';
	document.getElementById('socAuthOverlay').style.display = 'none';
	setCookie('show_socauth_popup','1');
}

function setCookie( c_name, value, exdays )
{
	var exdate=new Date();
	exdate.setDate(exdate.getDate() + exdays);
	var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
	document.cookie=c_name + "=" + c_value;
}


show_socauth_popup();
</script>
</div>
<? } ?>