<!--



function print_page() {


	if (window.print && document.all) {
	document.write("<a href='#' onFocus='this.blur()' onClick='window.print()'><img src='../../images/gif/print.gif' border=0></a><br><bR>");
	}


}

var status_text = "T H A N K   Y O U   F O R   V I S I T I N G";



function change_stat_txt() {
var status_txt = new Array();

status_txt[0] = "T H A N K   Y O U   F O R   V I S I T I N G";
status_txt[1] = "P O R T F O L I O   S I T E   D A Z D O G S   O N L I N E ";
status_txt[2] = "F R E E L A N C E   D E V E L O P E R";
status_txt[3] = "S H A N E D E V A N E . C O M";
status_txt[4] = "C U R R E N T   P R O J E C T S  W R C . C O M  S I T E   O N L I N E";


var txt_no = parseInt(Math.random()*status_txt.length); 
status_text = status_txt[txt_no];
}


function status_txt() {
window.status = status_text;
}

//pc
if (navigator.appVersion.indexOf('Mac') == -1) {

	//ie
	if (document.all) {
	setInterval('change_stat_txt()',10000);
	setInterval('status_txt()',100);
	}

}


function open_big_tel() {

open('contents/tel/index.html','tel',"width=379,height=100,top="+((screen.height-100)/2)+",left="+((screen.width-379)/2)+",resizable=no,scrollbars=no");

}


function open_good_wnd() {
open('http://v2.shanedevane.com/main2.html','mainsff','fullscreen=yes');

}



function open_pitch() {

open('http://v2.shanedevane.com/visuals/index.html','visuals',"width=700,height=600,top="+((screen.height-600)/2)+",left="+((screen.width-700)/2)+",resizable=yes,scrollbars=yes");

}


function open_skills() {
open('contents/skill/index.html','skill',"width=700,height=600,top="+((screen.height-600)/2)+",left="+((screen.width-700)/2)+",resizable=yes,scrollbars=yes");
}

function open_programs() {

open('contents/programs/index.html','programs',"width=700,height=600,top="+((screen.height-600)/2)+",left="+((screen.width-700)/2)+",resizable=yes,scrollbars=yes");

}



function openintro() {

intro_wnd = open("http://v2.shanedevane.com/intro.html","sffintro","width=500,height=400");

}


function openwrc() {
intro_wnd = open("http://v2.shanedevane.com/wrc.html","sffintro","width=500,height=400");
}



function openflashcard() {

var scrw = screen.width;
var fc_height, fc_width;

fc_width=330;
fc_height=200;


flash_card = open("http://v2.shanedevane.com/flashcard.html?h="+fc_height+"&w="+fc_width,"sffflash","fullscreen=yes,scrollbars=no");
}



function open_exp() {

exp = open("http://v2.shanedevane.com/exp.html","sffexp","width=434,height=423");

}


function open_current() {
open('contents/current/index.html','current',"width=700,height=600,top="+((screen.height-600)/2)+",left="+((screen.width-700)/2)+",resizable=yes,scrollbars=yes");
}


function open_port() {
open('contents/portfolio/index.html','port',"width=700,height=600,top="+((screen.height-600)/2)+",left="+((screen.width-700)/2)+",resizable=yes,scrollbars=yes");
}


function checkemail(email) {
var message = "Please check your email address.";

	if (	email.length < 5 ||
	email.indexOf('.') == -1 || 
	email.indexOf('@') == -1 || 
	email.indexOf(';') != -1 ||
	email.indexOf(':') != -1 ||
	email.indexOf('!') != -1 ||
	email.indexOf('"') != -1 ||
	email.indexOf('£') != -1 ||
	email.indexOf('$') != -1 ||
	email.indexOf('%') != -1 ||
	email.indexOf('^') != -1 ||
	email.indexOf('&') != -1 ||
	email.indexOf('*') != -1 ||
	email.indexOf('?') != -1 ||
	email.indexOf('#') != -1 ||
	email.indexOf('}') != -1 ||
	email.indexOf('{') != -1 ||
	email.indexOf('~') != -1 ||
	email.indexOf('`') != -1) {

		alert(message);
		return false;

	} else {
	return true;
	}
}




function check_form() {

checkemail2(document.comments.email.value);


}

var aname = new Array();
var avalue = new Array();

function create_url_arrays() {
var num = 0;
var url = new String(document.location);
url = unescape(url);
url = url.substring(url.indexOf('?')+1,url.length);

	while(url.indexOf('&') != -1) {
	aname[num] = url.substring(0,url.indexOf('&'));

	avalue[num] = aname[num].substring(aname[num].indexOf('=')+1,aname[num].length);
	aname[num] = aname[num].substring(0,aname[num].indexOf('='));
	url = url.substring(url.indexOf('&')+1,url.length);
	num++;
	}

//Loop exits skipping last name/value because there is no &
//at end

aname[num] = url.substring(0,url.length);
avalue[num] = aname[num].substring(aname[num].indexOf('=')+1,aname[num].length);
aname[num] = aname[num].substring(0,aname[num].indexOf('='));
}


function downloading(doc) {
parent.hidden.location="http://v2.shanedevane.com/download.php3?doc="+doc;
}
























//args: cell, colour
var changed = 0;
var old_colour = "SFF";

function cell_hover(cell,colour) {

	//mouse on
	if (changed == 0) {
	changed = 1;
	old_colour = cell.style.backgroundColor;
	cell.style.backgroundColor=colour;

	//mouse off
	} else {


		if (!colour) {
		changed = 0;	
		cell.style.backgroundColor=old_colour;
		} else {
		cell.style.backgroundColor=colour;
		}
	}
}






//args: object, colour
var changed = 0;
var old_colour = "SFF";

function table_hover(object,colour) {

	//mouse on
	if (changed == 0) {
	changed = 1;
	old_colour = object.style.backgroundColor;
	object.style.backgroundColor=colour;

	//mouse off
	} else {

		//use old colour
		if (!colour) {
		changed = 0;
		object.style.backgroundColor=old_colour;
		} else {
		object.style.backgroundColor=colour;
		}
	}
}


















function bookmark() {
window.external.AddFavorite("http://www.shanedevane.com/","Shane Devane - Freelance Web Developer");
}








function fDate() {

//Use system function to save date etc. info
dDateInfo = new Date();

//Convert Day of Week number into Day in Words
if (dDateInfo.getDay() == 0) {
wDay = "Sun";
} else if (dDateInfo.getDay() == 1) {
wDay = "Mon";
} else if (dDateInfo.getDay() == 2) {
wDay = "Tue";
} else if (dDateInfo.getDay() == 3) {
wDay = "Wed";
} else if (dDateInfo.getDay() == 4) {
wDay = "Thur";
} else if (dDateInfo.getDay() == 5) {
wDay = "Fri";
} else if (dDateInfo.getDay() == 6) {
wDay = "Sat";
}

dDay = dDateInfo.getDate();
if (parseInt(dDay) <= 9) {
dDay = "0" + dDay;
}

//Assign Day prefix
var pDay = "";



//Convert Month number into Month in Words
if (dDateInfo.getMonth() == 0) {
dMonth = "JAN";
} else if (dDateInfo.getMonth() == 1) {
dMonth = "FEB";
} else if (dDateInfo.getMonth() == 2) {
dMonth = "MAR";
} else if (dDateInfo.getMonth() == 3) {
dMonth = "APR";
} else if (dDateInfo.getMonth() == 4) {
dMonth = "MAY";
} else if (dDateInfo.getMonth() == 5) {
dMonth = "JUN";
} else if (dDateInfo.getMonth() == 6) {
dMonth = "JUL";
} else if (dDateInfo.getMonth() == 7) {
dMonth = "AUG";
} else if (dDateInfo.getMonth() == 8) {
dMonth = "SEP";
} else if (dDateInfo.getMonth() == 9) {
dMonth = "OCT";
} else if (dDateInfo.getMonth() == 10) {
dMonth = "NOV";
} else if (dDateInfo.getMonth() == 11) {
dMonth = "DEC";
}

//var myvar = " " + loc;
//var locx = "";
//locx = myvar.substring(8);

var chyear;
var dYearx;
dYear = dDateInfo.getYear();
dYearx = " " + dYear; 
chyear = dYearx.substring(2);
dYear = chyear;

//Print Date on HTML document 
//Y2K bug fix (year = 100 in net nav. / year = 2000 in IE)

if (navigator.appName == "Microsoft Internet Explorer") {
dYear = chyear.substring(1);
} else {
dYear = chyear;
}


if (navigator.appName == "Netscape") {
	
	if (parseFloat(navigator.appVersion) == 4.04) {

	var rtn;
	rtn = dDay + pDay + ' ' + dMonth + ' 2' + dYear;
	return rtn;
	} else if (parseFloat(navigator.appVersion) > 3) {
	var rtn;
	rtn = dDay + pDay + ' ' + dMonth + ' 2' + dYear;
	return rtn;
	} else {
	var rtn;
	rtn = dDay + pDay + ' ' + dMonth + ' 20' + dYear;
	return rtn;
	}


}  else {

var rtn;
rtn = dDay + pDay + ' ' + dMonth + ' 20' + dYear;
return rtn;
}

}








//-->
