//pre cache images
function preloadImages(){
var bulb = new Image();
bulb.src = "images/lightbulb_on.png";

var skillMan = new Image();
skillMan.src = "images/skillMan_on.png";

var tools = new Image();
tools.src = "images/tools_on.png";

var handshake = new Image();
handshake.src = "images/handshake_on.png";
}
//image swap
function bulbOn(){document.getElementById("bulb").src = "images/lightbulb_on.png";}
function skillManOn(){document.getElementById("skills").src = "images/skillMan_on.png";}	
function toolsOn(){document.getElementById("tools").src = "images/tools_on.png";}
function handshakeOn(){document.getElementById("handshake").src = "images/handshake_on.png";}

function bulbOff(){document.getElementById("bulb").src = "images/lightbulb_off.png";}
function skillManOff(){document.getElementById("skills").src = "images/skillMan_off.png";}
function toolsOff(){document.getElementById("tools").src = "images/tools_off.png";}
function handshakeOff(){document.getElementById("handshake").src = "images/handshake_off.png";}

//modal dialog box

//pop-up window
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=yes,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}

function toForm() {
document.forms.contactForm.first.focus();
}

// hide/show list info on qrcode.shtml
$(document).ready(function(){
	$('.if').hide();
	
	$('#generator').click(function(){
		$('.if').show('fast');
		$('.if').hide();
	});
});

                  
