<!--
function WSj_onLoad(){}
$(document).ready(function(){WSj_getURL();WSj_browser();WSjx_mailTo();WSj_breakFrames('351.com');WSj_resetForms();j_swf('<font color="#4e4e4d">about:</font>','h2_1');j_swf('<font color="#4e4e4d">cases:</font>','h2_2');j_swf('<font color="#ffffff">what:</font>','h2_3');j_swf('<font color="#ffffff">jobs:</font>','h2_4');j_swf('<font color="#ffffff">welcome:</font>','h2_9');});

/*
+----------------------------------------------------------------------	+
| 2005@2007 WSframework.org
+----------------------------------------------------------------------	+
+----------------------------------------------------------------------	+
| Title: WSframeWork v0.2.0
+----------------------------------------------------------------------	+
| DESCRIPTION: JavaScript
| app Functions
| functions for inline events or eventhandlers
+----------------------------------------------------------------------	+
| Date: November 29, 2007
+----------------------------------------------------------------------	+
| Authors: Goncalo Fonseca (developer [at] wsframework [dot] org)
+----------------------------------------------------------------------	+
*/

	gEvent = false;
	
	/*
	use gEvent global to control new event before the end of the previous one
	
	if (typeof(gEvent) != 'undefined' && gEvent) {
		return false;
	} else {
		gEvent = true;
		# START event!
		
		# END event!
		gEvent = false;
	}
	
	*/
	
	/***********************************************************************\
	 *	Function:		j_swf
	 *	Description:	flash Area titles with SWFObject 2.0
	 *	Version: 		1.0
	 *	Date: 			Nov. 2007
	 *	Author: 		Goncalo Fonseca (developer [at] wsframework [dot] org)
	 *	URI:			http://WSframework.org/
	 *	Params:			txt		text	
	 *					id		h2 id
	 *	Result:			
	\***********************************************************************/
	
	function j_swf (txt, id) {
		var flashvars = {};
		flashvars.txt = txt;
		var params = {};
		params.wmode = 'transparent';
		params.menu = 'false';
		params.scale = 'noscale';
		//params.bgcolor = '666666';
		var attributes = {};
		swfobject.embedSWF('http://media.351.com/pub/images/swf/area.swf', id, '350', '50', '9.0.0', 
			false, flashvars, params, attributes);
	}
	
	/***********************************************************************\
	 *	Function:		j_toggle
	 *	Description:	toggle visibility between areas	
	 *	Version: 		1.0
	 *	Date: 			Nov. 2007
	 *	Author: 		Goncalo Fonseca (developer [at] wsframework [dot] org)
	 *	URI:			http://WSframework.org/
	 *	Params:			id		area name	
	 *					
	 *	Result:			
	\***********************************************************************/
	
	function j_toggle (id) {
		var areas = new Array('by-ctn-about','by-ctn-work','by-ctn-serv','by-ctn-jobs');
		for (n in areas) {
			if (areas[n] != id) {
				$('#'+areas[n]+'-txt').hide('slow'); // slideUp ?
				$('#'+areas[n]+'-btn').removeClass('minus');
				$('#'+areas[n]+'-btn>a').attr('title','Show Area');
			}
		}
		$('#'+id+'-txt').toggle('slow');
		if (W('#'+id+'-btn').className == 'plus') {
			$('#'+id+'-btn').addClass('minus');
			$('#'+id+'-btn>a').attr('title','Hide Area');
		} else {
			$('#'+id+'-btn').removeClass('minus');
			$('#'+id+'-btn>a').attr('title','Show Area');
		}

	}
	
	/***********************************************************************\
	 *	Function:		j_bubbleOn/Off/AllOff
	 *	Description:	work bubbles
	 *	Version: 		1.1
	 *	Date: 			Dec. 2007
	 *	Author: 		Goncalo Fonseca (developer [at] wsframework [dot] org)
	 *	URI:			http://WSframework.org/
	 *	Params:			id		div id number	
	 *					
	 *	Result:			
	\***********************************************************************/
	
	gBubble = false;
	gID = false;
	
	function j_bubbleOn (id,topPos,leftPos) {
		
		if (gID == id) {
			j_bubbleAllOff();
			return;
		}
		
		WSj_delEvent('home', 'click', j_bubbleOff); // for IE
		
		j_bubbleAllOff();
		
		var element = W('#by-ctn-work-bubble-'+id);
		element.style.display = 'block';
		element.style.top = topPos+'px';
		element.style.left = leftPos+'px';
		
		WSj_stopPropag('click');
		
		WSj_addEvent('home', 'click', j_bubbleOff);
		
		gID = id;
		gBubble = true;
	}
	
	function j_bubbleOff () {
		
		if (gBubble) {
			gBubble = false;
			return;
		}
		
		j_bubbleAllOff();
		
		WSj_delEvent('home', 'click', j_bubbleOff);
	}	
	
	function j_bubbleAllOff () {
		
		for (var i=1; i<9; i++) {
			W('#by-ctn-work-bubble-'+i).style.display = 'none';
		}
		
		gBubble = false;
		gID = false;
	}
	
	function WSj_stopPropag(e) {
		
		if (e.stopPropagation) {
			e.stopPropagation();
		}
		
		e.cancelBubble = true;
	}
//-->