document.getElementsByTagName('html')[0].className += ' js';

//IE png fix with background-repeat and background-position
document.write('<!--[if IE 6]><script type="text/javascript">DD_belatedPNG.fix(\'div, ul, p, span, a\');</script><![endif]-->');

//create equal height columns
function equalHeight(group){
    tallest = 0;
    group.each(function(){
        thisHeight = $(this).height();
        if (thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
    group.height(tallest);
}

(function($){
    $(document).ready(function(){
        $('#slideshow').cycle({
            timeout: 5000
        });
        
        $('#slideshow').toggle(
			function(){
	            $(this).cycle('pause');
	        }, 
			function(){
	            $(this).cycle('resume', true);
	        }
		);
        
        
        
    })
})(jQuery);



function externalLinks(){
    if (!document.getElementsByTagName) 
        return;
    var anchors = document.getElementsByTagName("a");
    for (var i = 0; i < anchors.length; i++) {
        var anchor = anchors[i];
        if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
            anchor.target = "_blank";
        }
    }
};

$(window).bind('load', function() {
	equalHeight($(".line > div"));
    externalLinks();
});