function aclick(anchor_id) 
{
    document.getElementById(anchor_id).onclick();
}

function showPortfolio(xmlFile, loc)
{
	var flashvars = 
	{
		xmlfile: loc + '/flshow/' + xmlFile + ".xml" 
	};
	var params = 
	{
		bgcolor: "#303538",
        wmode: "transparent"
	};
	var attributes = {};
    
	swfobject.embedSWF(loc + '/anim/Carousel.swf', "portfolio-content", "900", "400", "9.0.0", false, flashvars, params, attributes);
}

function addCustomEvent(obj, evType, fn)
{ 
	if (obj.addEventListener)
	{ 
		obj.addEventListener(evType, fn, false); 
		return true; 
	} 
	else 
	if (obj.attachEvent)
	{ 
		var r = obj.attachEvent("on"+evType, fn); 
		return r; 
	} 
	else 
	{ 
		return false; 
	} 
}

