<!--
// browser detection:
var ua = navigator.userAgent;
var ns = (navigator.appName.toLowerCase().indexOf("netscape")!=-1)?1:0;
var ns4 = (document.layers)?1:0;
var ns6 = (document.getElementById && ns)?1:0;
var mac = (navigator.userAgent.toLowerCase().indexOf("mac")!=-1)?1:0;
var macie4 = (mac && !ns && parseInt(ua.substr(ua.indexOf("MSIE")+4,2)) <= 4)?1:0;
var macie = (mac && !ns)?1:0

if (ns4) document.write('<LINK rel="stylesheet" type="text/css" href="styles/style_ns.css">')
else document.write('<LINK rel="stylesheet" type="text/css" href="styles/style.css">')

var newWin;
function WinOpen(url,title,prop){
	if (!mac) if (new String(newWin)!="undefined" && newWin!=null) if (!newWin.closed) newWin.close();
	newWin=window.open(url,title,prop+",top=10,left=10,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=no,z-lock=yes");
	newWin.focus()
}
function OpenFlashPres(url,title,w,h){
	if(screen.width){
		var winl = parseInt((screen.width-w)/2);
		var wint = parseInt((screen.height-h)/2);
	}	else{winl = 0; wint =0;}
	if (winl < 0) winl = 0;
	if (wint < 0) wint = 0;
	if (!mac) if (new String(newWin)!="undefined" && newWin!=null) if (!newWin.closed) newWin.close();
	newWin=window.open(url,title,"width="+w+",height="+h+",left="+winl+",top="+wint+",location=no,directories=no,hotkeys=no,copyhistory=no,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=no,z-lock=yes");
	newWin.focus()
}

var newWin2;
function WinOpenLogo(img,w,h){
	w=parseInt(w)
	h=parseInt(h)
	if (!mac) if (new String(newWin)!="undefined" && newWin!=null) if (!newWin.closed) newWin.close();
	newWin=window.open('',"JKConsultingLogo","width="+(w)+",height="+(h)+",top=10,left=10,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=no,z-lock=yes");
	newWin.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>JK Consulting</title><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /><link rel="stylesheet" type="text/css" href="styles/style.css" /></head><body onload="window.resizeTo('+(w+10)+','+(h+25)+')")><img src="'+img+'" width="'+w+'" height="'+h+'" ></body></html>')
	newWin.document.close()
	newWin.focus()
}

// START: fixing the page content on resize >>>
FixNSWindow();
function FixNSWindow() {
	if (ns6 || ns && (parseInt(navigator.appVersion) == 4)) {
		if (typeof document.NS == 'undefined') document.NS = new Object;
		if (typeof document.NS.NS_scaleFont == 'undefined') {
			document.NS.FixCssInNS = new Object;
			document.NS.FixCssInNS.initWindowWidth = window.innerWidth;
			document.NS.FixCssInNS.initWindowHeight = window.innerHeight;
		}
		window.onresize = FixCssInNS;
	}
}
function FixCssInNS() {
	if (document.NS.FixCssInNS.initWindowWidth != window.innerWidth || document.NS.FixCssInNS.initWindowHeight != window.innerHeight) document.location = document.location;
}
ReloadWindow();
function ReloadWindow(){if (!ns && (ua.toLowerCase()).indexOf("windows")<0) setTimeout("window.onresize=new Function('window.location.reload()')",200);}
// <<< END: fixing the page content on resize

// Trims the leading and trailing blanks from a given string:
function Trim(strToTrim) {
	while(strToTrim.charAt(0)==' '){strToTrim = strToTrim.substring(1,strToTrim.length);}
	while(strToTrim.charAt(strToTrim.length-1)==' '){strToTrim = strToTrim.substring(0,strToTrim.length-1);}
	return strToTrim;
}
// Validate an e-mail address:
function ValidateEmail(str){
	if (str.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) return true;
	else return false; 
}

function OpenPortfolio(){
	window.location.href="port_commercial.asp"
}





var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movieNav
function movieNav_DoFSCommand(command, args) {
  var movieNav =  parent.topFrame.movieNav;
  var movieNavObj = InternetExplorer ? movieNav : document.movieNav;
if(command == "play"){
  movieNavObj.Play();
}
if(command == "myContact"){
  movieNavObj.GotoFrame(args);
}
if(command == "myHome"){
  movieNavObj.GotoFrame(args);
}
}
// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub movieNav_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call movieNav_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}
function play(){
  movieNav_DoFSCommand("play", "");
}
function myContact(){
  movieNav_DoFSCommand("myContact", 89);
  movieNav_DoFSCommand("play", "");
}
function myHome(){
  movieNav_DoFSCommand("myHome", 19);
  movieNav_DoFSCommand("play", "");
}
//-->