/* site_functions.js
 * put site specific javascript functions here
 * is already included in header.tpl
 */

function showRegional() { 
     
        hide('homepageUrban', 'urban', 'images/buttons/home_subNav_urban_ini.png');  
        hide('homepagePhilanthropy', 'phil', 'images/buttons/home_subNav_nonprofit_ini.png');
        hide('homepageStrategy', 'strategy', 'images/buttons/home_subNav_planning_ini.png');      
        show('homepageRegional', 'regional', 'images/buttons/home_subNav_regional_ro.png');
}

function showUrban(){ 
        hide('homepageRegional', 'regional', 'images/buttons/home_subNav_regional_ini.png');  
        hide('homepagePhilanthropy', 'phil', 'images/buttons/home_subNav_nonprofit_ini.png');
        hide('homepageStrategy', 'strategy', 'images/buttons/home_subNav_planning_ini.png');      
        show('homepageUrban', 'urban', 'images/buttons/home_subNav_urban_ro.png');
}

function showPhil() { 
        hide('homepageUrban', 'urban', 'images/buttons/home_subNav_urban_ini.png');  
        hide('homepageRegional', 'regional', 'images/buttons/home_subNav_regional_ini.png');
        hide('homepageStrategy', 'strategy', 'images/buttons/home_subNav_planning_ini.png');      
        show('homepagePhilanthropy', 'phil', 'images/buttons/home_subNav_nonprofit_ro.png');
}

function showStrat() { 
        hide('homepageUrban', 'urban', 'images/buttons/home_subNav_urban_ini.png');  
        hide('homepagePhilanthropy', 'phil', 'images/buttons/home_subNav_nonprofit_ini.png');
        hide('homepageRegional', 'regional', 'images/buttons/home_subNav_regional_ini.png');      
        show('homepageStrategy', 'strategy', 'images/buttons/home_subNav_planning_ro.png');
}

function hide(id, img_id, img) {
 document.getElementById(id).style.display = 'none';
 document[img_id].src = img;
}

function show(id, img_id, img) {
 document.getElementById(id).style.display = 'block';
 document[img_id].src = img;
}





function popup(sPicURL,width,height) {
        window.open(sPicURL, "", "resizable=1,HEIGHT=" + height + ",WIDTH=" + width);
}


// new window popup used for opening up artwork and flash projects
function launchwin(uri,name,args){
	windowReference = window.open(uri,name,args);
	if (!windowReference.opener){
		windowReference.opener = self;
	}
	windowReference.focus();
}

