function CreateBookmarkLink(title,url) {
	url = 'http://europe.ctcd.edu' + url;
	if (window.sidebar) { // Mozilla Bookmark
		window.sidebar.addPanel(title, url, "");
	} else if(window.external) { // IE Favorite
		window.external.AddFavorite(url, title);
	} else if(window.opera && window.print) { // Opera Hotlist
		return true;
	}
}
function CreateBookmarkText(title,url) {
	if (window.external) {
		text = 'Add to Favorites';
	} else if (window.sidebar) {
		text = 'Bookmark Page';
	} else if (window.opera && window.print) {
		text = 'Bookmark Page';
	}
	document.write('<li><img src="/images/icons/folder.gif" height="16" width="16" alt="Bookmark Icon" /> <a href="javascript:CreateBookmarkLink(title,url);">' + text + '</a></li>');
}

var newwindow;
function ctc(url)
{
	newwindow=window.open(url,'name','height=600,width=500,left=100,top=100,resizable=yes,scrollbars=yes,status=no');
	if (window.focus) {newwindow.focus()}
}
var newwindow_com;
function ctc_com(url)
{
	newwindow=window.open(url,'name','height=650,width=660,left=100,top=100,resizable=yes,scrollbars=yes,status=no');
	if (window.focus) {newwindow.focus()}
}

function snapIn(jumpSpaces,position) {
        var msg = "Changing lives one degree at a time"
        var out = "Central Texas College Europe "

        if (killScroll) {return false}
        for (var i=0; i<position; i++){
                out += msg.charAt(i)}
        for (i=1;i<jumpSpaces;i++) {
                out += " "}
        out += msg.charAt(position)
        window.status = out
        if (jumpSpaces <= 1) {
                position++
        if (msg.charAt(position) == ' ') {
                position++ }
                jumpSpaces = 100-position
        }
        else if (jumpSpaces >  3) {
                jumpSpaces *= .75}
        else {
                jumpSpaces--}
        if (position != msg.length) {
                var cmd = "snapIn(" + jumpSpaces + "," + position + ")";
                scrollID = window.setTimeout(cmd,5);
        }
        else {
                scrolling = false
                return false
        }
        return true
}

function snapSetup() {
        if (scrolling)
        if (!confirm('Re-initialize snapIn?'))
        return false
        killScroll = true
        scrolling = true
        var killID = window.setTimeout('killScroll=false',6)
        scrollID = window.setTimeout('snapIn(100,0)',10)
        return true

}
        var scrollID = Object
        var scrolling = false
        var killScroll = false

