﻿/// <reference path="..\jquery-1.4.1-vsdoc.js" />
/// <reference path="..\jquery.corner.js" />

$(document).ready(function () {
	$("#columnzone .column").each(function () {
		var item = $(this);
		item.click(function () {
			window.location = $(".readmore", this).attr("href");
		});

		item.hover(function () {
			$(this).addClass("columnactive");
		}, function () {
			$(this).removeClass("columnactive");
		});

		item.css("cursor", "pointer");
	});

	$("a.newwindow").live("click", function () {
		window.open(this.href);
		return false;
	});

	//setColumnCorners();
});

function setColumnCorners() {
	if ($.browser.msie || $.browser.opera) {
		var firstCol = $("#columnzone .firstcolumn");
		var lastCol = $("#columnzone .lastcolumn");

		var bottomleftradius = firstCol.css("border-bottom-left-radius");
		var bottomrightradius = lastCol.css("border-bottom-right-radius");

		if (!bottomleftradius || !bottomrightradius) {
			bottomleftradius = "8px";
			bottomrightradius = "8px";
		}

		firstCol.corner("keep round bl " + bottomleftradius);
		lastCol.corner("round br " + bottomrightradius);
	}
}