(function($)
{
$(document).ready(function() {
$('#mbIdentification').remove();
$(window).load(function(){
$('.liSub').each(function() {
var $color = $('body').data('color'),
$topnavLi_h = $(this).height(),
$topnavLi_w = $(this).innerWidth(),
$topnavLi_pos = $(this).position(),
$p1 = $topnavLi_h/1.5,
$p2 = $topnavLi_h/4,
$canvas = $('');
$('.canvas', this).css({'width':$topnavLi_w, 'height':$topnavLi_h, 'left':$topnavLi_pos.left}).append($canvas);
var ctx = $canvas[0].getContext('2d');
ctx.beginPath();
ctx.moveTo(0, $p1);
ctx.lineTo($topnavLi_w, $p2);
ctx.lineTo($topnavLi_w,$topnavLi_h);
ctx.lineTo(0,$topnavLi_h);
ctx.closePath
ctx.fillStyle = $color;
ctx.fill();
});
});
$('.unloged').on('click',function() {
$('.regis').hide();
$('.ident').show();
$('#box_wrapper').show();
});
$('.register').click(function() {
$('.ident').hide();
$('.regis').show();
$('#box_wrapper').show();
return false
});
$('#box_bg_wrapper').on('click',function() {
$('#box_wrapper').hide();
});
$('.logeduser').click(function(){
$('#userlog').toggle();
})
//piwitheme link
var $link = ' - theme by piwitheme';
$('#copyright').append($link);
});
})(jQuery);