<!-- Begin

function ClipBoard(x) {
	bResult = window.clipboardData.setData("Text",x);
}
function showHide(elementid){
if (document.getElementById(elementid).style.display == 'none'){
document.getElementById(elementid).style.display = '';
} else {
document.getElementById(elementid).style.display = 'none';
}
} 
function showcode(url) {
{	
var i = 1;
if ( document.getElementById && document.form.pop.value == '0' )
	{
	while ( document.getElementById( 'code' + i) )
		{
			Divcode = document.getElementById( 'code' + i );
			Divbutton = document.getElementById( 'button' + i );
			if ( Divcode != '' )
				{
				Divbutton.innerHTML = Divcode.innerHTML;
				i++;
				}
		}
	window.open(url,'boutique','top=20,left=20,width=900,height=700,scrollbars=1,location=1,menubar=1,resizable=1');
	//mypop = top.window.open(url);
	//mypop.blur();
	//top.window.focus();
	}	
	document.form.pop.value = '1';
}
}

function seewin(url) {
mypop = window.open(url);
}
//  End -->

/*btoolbar*/

$(document).ready(function(){
 
	$(".rss-popup img").hover(function() {
	$(this).next("em").stop(true, true).animate({opacity: "show", top: "-90"}, "slow");
	}, function() {
	$(this).next("em").animate({opacity: "hide", top: "-110"}, "fast");
	});
 
});

function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("codereduction.com","http://www.codereduction.com",""); }
else { window.external.AddFavorite("http://www.codereduction.com","codereduction.com"); } }


$(document).ready(function(){

	function adPostWidth() {
		
		var ovWid = $('#header').width();
		var postN = Math.floor(ovWid / 250);
		var widFix = Math.floor(ovWid / postN);
		
		$(".post_cont").css({ 'width' : widFix});

	}
  
  function WidthHead() {
		
		var ovWid = $('#header').width(); 
		var widFixHead = Math.floor(ovWid / 3);
		
		$(".head_info").css({ 'width' : widFixHead - 2});

	}
	
	adPostWidth();
  WidthHead();	

	$(window).resize(function () {
		adPostWidth();	
    WidthHead();	
	});
	
	$("span.downarr a").click(function() {
    $("#toolbar").slideToggle("fast");
    $("#toolbarbut").fadeIn("slow");    
  });
  
  $("span.showbar a").click(function() {
    $("#toolbar").slideToggle("fast");
    $("#toolbarbut").fadeOut();    
  });
  
  $("ul#social li").hover(function() {
		$(this).find("div").fadeIn("fast").show(); 
    $(this).mouseleave(function () { 
        $(this).find("div").hide();
    });
  });
  
  $(".accelerator, .facebook, .twitter, .delicious, .newsletter, .rss, .menutit, span.downarr a, span.showbar a").click(function() {
   return false;                                         
	});
	
});