// Default statusbar text
window.defaultStatus = "Contrexx� secure Content Management System";

function addFav(){
    if (document.all)
        window.external.AddFavorite("http://www.contrexx.com/", "Contrexx.com - Open Source CMS");
    else if (window.sidebar)
        window.sidebar.addPanel("Contrexx.com - Open Source CMS", "http://www.contrexx.com/", "")
}

function max(picwidth, picheight) {
	document.getElementById("image").width=picwidth;
	document.getElementById("image").height=picheight;
}

function mid(picwidth, picheight) {
	resize(1024,picwidth,picheight);
}

function small(picwidth, picheight) {
	resize(768,picwidth,picheight);
}

function smaller(picwidth, picheight) {
	resize(600,picwidth,picheight);
}

function smallest(picwidth, picheight) {
	resize(450,picwidth,picheight);
}

function resize(size,picwidth, picheight) {
	var quantifier = size / picheight;
	document.getElementById("image").width=quantifier*picwidth;
	document.getElementById("image").height=quantifier*picheight;
}
