$(document).ready(function(){
		
		var windowWidth = $(window).width() - 80;
		var headerWidth = $(window).width() - 10;
		var menuWidth = $(window).width() - 50;
		var contentWidth = $(window).width() - (350 + 150);
		
		if(windowWidth>1000){
		$("#page").css({ 'width' : windowWidth });
		$("#content").css({ 'width' : contentWidth });
		$("#footer-page").css({ 'width' : windowWidth });
		$("#menu").css({ 'width' : menuWidth });
		$("#header").css({ 'width' : headerWidth });
		}
		
		var logtitle = $(".logtext").attr("title");
		if(logtitle=="Log Out"){
			$("#loginbuttons").css({ 'background' : 'url(/wp-content/themes/custom/images/log-logo-unlock.png) no-repeat bottom right' });
		}
		
		$("#logo-pic").click(function(){
			window.location="/";																													
		});
		
		$(".list").hover(function(){
		  $(this).css({ 'background' : '#EBEBEB' })																										
		}, function(){
			 $(this).css({ 'background' : '' })
		});
		
		$(".signon").hover(function(){
				$(this).css({ 'font-weight' : 'bold' })
		}, function(){
			 $(this).css({ 'font-weight' : '' }) 
		});
		
		$(".vcico").hover(function(){
				$(this).css({ 'background-image' : 'url(/wp-content/themes/custom/images/ico/bgbttn.png)' })
		}, function(){
			 $(this).css({ 'background-image' : 'none' }) 
		});

		$(".vcicopost").hover(function(){
				$(this).css({ 'background-color' : '#EBEBEB' })
		}, function(){
			 $(this).css({ 'background-color' : '' }) 
		});
		
		
});

$(function(){ $('#loopedSlider').loopedSlider(); });

function myPopup2() {
window.open( "http://www.computer-network-security-training.com/privacyAndPolicy.html", "myWindow", 
"status = 1, height = 700, width = 550, resizable = 1, scroll = 1" )
}
