﻿

function fntInitializer() {
    
    var menu = document.getElementById('menu');

    menu.getElementsByTagName('ul')[0].getElementsByTagName('li')[4].firstChild.onmouseover = contactOver;
    menu.getElementsByTagName('ul')[0].getElementsByTagName('li')[4].firstChild.onmouseout = contactOut;

    function contactOver() {
        this.lastChild.nodeValue = 'hire me';
        this.style.color = '#395568';
    }

    function contactOut() {
        this.lastChild.nodeValue = 'contact';
    }

    if (document.getElementById('printPort')) {
        document.getElementById('printPort').style.display = 'none';
        document.getElementById('logosPort').style.display = 'none';
    }


}

function gallerize(n) {

   
    var webPortBox = document.getElementById('webDesignPort');
	var webBrandBox = document.getElementById('logosPort');
	var webPrintBox = document.getElementById('printPort');
	
	var lnk1 = document.getElementById('lnkPortWeb') ;
	var lnk2 = document.getElementById('lnkPortBrand') ;
	var lnk3 = document.getElementById('lnkPortLogo') ;
	
	if(n==1){
		webPortBox.style.display = 'block';
		webBrandBox.style.display = 'none';
		webPrintBox.style.display = 'none';
		
		lnk1.setAttribute("class", "currentPortfolio");
		lnk2.setAttribute("class", "notCurrentPortfolio");
		lnk3.setAttribute("class", "notCurrentPortfolio");
	}
	
	if(n==2){
		webPortBox.style.display = 'none';
		webBrandBox.style.display = 'block';
		webPrintBox.style.display = 'none';
		
		lnk1.setAttribute("class", "notCurrentPortfolio");
		lnk2.setAttribute("class", "currentPortfolio");
		lnk3.setAttribute("class", "notCurrentPortfolio");
	}
	
	if(n==3){
		webPortBox.style.display = 'none';
		webBrandBox.style.display = 'none';
		webPrintBox.style.display = 'block';
		
		lnk1.setAttribute("class", "notCurrentPortfolio");
		lnk2.setAttribute("class", "notCurrentPortfolio");
		lnk3.setAttribute("class", "currentPortfolio");
	}
}


