﻿function fontIsLarge() {
    return $.cookie('fontsize') === 'large';
}
function toggleClass() {
    var c = $("#content-container .content");
	var g = c.css('font-size');
    //alert(g);
    if (g == '9px' || g == '12px') {
	    c.css({
	        'font-size': '14px'
	    });
	    $.cookie('fontsize','large');
	} else if (g == '14px') {
	    c.css({
	        'font-size': '12px'
	    });
	    $.cookie('fontsize',null);
	}
}
function printView() {
	$("html,body,#wrapper-left,#wrapper-right,#main-container").css({
        'background-color': 'Transparent',
        'background-image': 'none'
	});
    $("#header-container,#context-container,#sidebar,#right-column,#poll-container").css({
        'display': 'none',
        'visibility': 'hidden'
    });
    $("#content-container").css({
        'margin-left': '0'
    });
    $("#content-column").css({
        'margin-right': '0'
    });
    $("#footer-container").css({
        'padding-left': '0'
    });
    //$(".content").css({
    //    'font-size': '1.2em'
    //});	
}
function emailThis() {
	var url = window.location;
	var msg = "I thought this might interest you...";
	var eml = "user@domain.com";
	
	// the following expression must be all on one line...
	window.location = "mailto:"+eml+"?subject="+msg+"&body="+document.title+": "+url;
}
