
function sendToFriend() 
{ 
	var strPath = '../userdata/sendtofriend.asp?DBID=' + lDatabaseID + '&LNGID=' + lLanguageID;
	var sendToFriendWin = window.open(strPath,'PopUp','width=520,height=500,scrollbars,resizable');
	sendToFriendWin.focus();
}

function toggleTab(tabID, objA)
{
	//open related div by ID
	var arrAllDivs = document.getElementsByTagName('DIV');
	for (i=0; i<arrAllDivs.length; i++)
	{
		if (arrAllDivs[i].id.indexOf('tabDiv_') == 0) arrAllDivs[i].style.display = 'none';
	}
	document.getElementById('tabDiv_'+tabID).style.display = 'block';

	//set current tab selected ( <TD class="this"> )
	var objTabTd = objA.parentNode.parentNode.firstChild;
	do
	{
		objTabTd.className="";
		objTabTd = objTabTd.nextSibling; 
	}
	while (null != objTabTd)

	objA.parentNode.className = "this";
}


function trim(str)
{
	var lead = 0, trail = str.length - 1;
	while(str.charCodeAt(lead)  < 33) lead++;
	while(str.charCodeAt(trail)  < 33) trail--;
	return lead > trail ? '' : str.substring(lead, trail + 1);
}

function notValidCharsInValue(fldValue, fldNotValidChars)
{
	var notGoodChars = fldNotValidChars;
	var i = 0;
	for (i =0; i < fldValue.length; i++)
	{
		if (notGoodChars.indexOf(fldValue.charAt(i)) != -1)	return true; 
	}
	return false;
}

function ValidCharsInValue(fldValue, fldValidChars)
{
	var goodChars = fldValidChars;
	var i = 0;	

	for (i =0; i < fldValue.length; i++)
	{
		if (goodChars.indexOf(fldValue.charAt(i)) == -1) return false; 
	}
	return true;
}

function isValidEmail(strEmail)
{
	if (notValidCharsInValue(strEmail, "!#$%^&*()+=<>?/,\|~`\"[]") || strEmail.indexOf('@') <= 0 || strEmail.indexOf('.') <= 0) 
	{
		alert('Please type a valid e-mail address!');
		return false;
	}
	return true;
}

function isValidPhone(strPhone) 
{
	if (!ValidCharsInValue(strPhone, "0123456789()-+ ") || strPhone.length < 6)
	{
		alert('Please type a valid phone number!');
		return false;
	}
	return true;
}

function isNumber(strNumber) 
{
	if (!ValidCharsInValue(strNumber, "0123456789 "))
	{
		alert('Please type a valid number!');
		return false;
	} 
	return true;
}

function isHumanName(strName) 
{
	if (notValidCharsInValue(strName, "0123456789!@#$%^&*()_+=<>?/.,\|~`\"[]"))
	{
		alert('Please type a valid human name!');
		return false;
	} 
	return true;
}

function isValidCVFileName(fileName) 
{
	var strExt = fileName.substring(fileName.length - 4, fileName.length);
	strExt = strExt.toLowerCase();	
	if (strExt != ".txt" && strExt != ".rtf" && strExt != ".doc" && strExt != ".pdf")
	{
		alert('Please send a file in one of the following formats: \n \".txt\", \".rtf\", \".doc\", \".pdf\"!');
		return false;
	}
	return true;
}

function isValidPassword(curField)
{
	var strValue=curField.value;
	if ( notValidCharsInValue(strValue, "!#@$%^&*()_+=<>?/,\|~`\"[]") || strValue.length < 6 ) return false;
	return true;
}

function isValidUserName(curField)
{
	var strValue=curField.value;
	if ( notValidCharsInValue(strValue, "!#@$%^&*()_+=<>?/,\|~`\"[]") || strValue.length < 6 ) return false;
	return true;
}

function containValidChars(curField)
{
	var curName = curField.name;
	var curFldType = String(curField.getAttribute('fldType')).toUpperCase();
	
	if (curFldType=='EMAIL')
	{ 
		return isValidEmail(curField.value); 
	}
	else if (curFldType=='PHONE' || curFldType=='FAX' || curFldType=='MOBILEPHONE' || curFldType=='CELLPHONE') 
	{ 
		return isValidPhone(curField.value); 
	}
	else if (curFldType=='NUMERIC' || curFldType=='ZIP')
	{ 
		return isNumber(curField.value); 
	}
	else if (curFldType=='FIRSTNAME' || curFldType=='FULLNAME' || curFldType=='LASTNAME' || curFldType=='MIDDLENAME') 
	{ 
		return isHumanName(curField.value); 
	}
	else if (curFldType=='CVFILE')
	{ 
		return isValidCVFileName(curField.value);
	}
	return true;
}

function showAlert(curField)
{
	if ( curField.verefication_alert!=undefined)
	{
		strAlert = curField.getAttribute('verefication_alert').toString();
		alert(strAlert);
	}
	else
	{
		strAlert = 'Please provide all required information';
		alert(strAlert);
	}
}

function checkForm(frmObj)
{
	var found;
	var i, ii;
	var curField, curName, curType;
	var isFilled, isRequired;	
	var passCounter = 0;
	var passField1;
	var curFldType;
	with(frmObj)
	{
		for (i = 0; i < elements.length; i++)
		{
			curField = elements[i];
			if (curField.disabled || curField.tagName == 'FIELDSET' || curField.tagName == 'OBJECT') continue;
			curField.value = trim(curField.value);
			curName = curField.name;
			curType = curField.type;
			isFilled =  trim(curField.value) != '' ? true : false;
			isRequired = String(curField.getAttribute('IsMandatory')).toUpperCase() == 'TRUE' ? true : false;
			curFldType = String(curField.getAttribute('fldType')).toUpperCase();

			if(curType == 'text' && isFilled && !containValidChars(curField))
			{
					openRelevantTab(curField, frmObj);
					curField.focus();
					curField.select();
					return false;
			}
			else if (elements[curName].length && isRequired &&  (curType == 'radio' || curType == 'checkbox'))
			{
				found = 0;
				for (ii = 0; ii < elements[curName].length; ii++)
				{
					if (elements[curName][ii].checked)
					{
						found = 1;
						break;
					}
				}
				if (found == 0)
				{
					showAlert(curField);
					openRelevantTab(curField, frmObj);
					elements[curName][0].focus();	
					//elements[curName][0].click();
					return false;
				}
			}
			else if (isRequired && curType == 'select-one')
			{
				if (curField.selectedIndex == 0)
				{
					showAlert(curField);
					openRelevantTab(curField, frmObj);
					curField.focus();
					return false;
				}
			}
			else if (isRequired && curType == 'select-multiple')
			{
				if (curField.selectedIndex == -1)
				{
					showAlert(curField);
					openRelevantTab(curField, frmObj);
					curField.focus();
					return false;
				}
			}
			else if (isRequired && (curType == 'text' || curType == 'textarea' || curType == 'password'))
			{
				if (!isFilled)
				{
					showAlert(curField);
					openRelevantTab(curField, frmObj);
					curField.focus();
					return false;
				}
				if ( curType == 'text' && curFldType=='USERNAME' && !isValidUserName(curField))
				{
					alert('Username length have to be more than 6 chars.');
					openRelevantTab(curField, frmObj);
					curField.focus();
					return false;
				}
				if ((curType == 'password' || curFldType=='PASSWORD') && !isValidPassword(curField))
				{
					alert('Password length have to be more than 6 chars.');
					openRelevantTab(curField, frmObj);
					curField.focus();
					return false;
				}
			}
			else if (isRequired && curType == 'hidden')
			{
				if (!isFilled)
				{
					showAlert(curField);
					openRelevantTab(curField, frmObj);
					eval(curField.getAttribute('errorEval'));
					return false;
				}
			}
			else if(curType == 'file' && isFilled && !containValidChars(curField))
			{
					openRelevantTab(curField, frmObj);
					curField.focus();
					curField.select();
					return false;
			}

			if ((curType == 'password' || curFldType=='PASSWORD') && curFldType!='ORIGINALPASSWORD' && passCounter == 0)
			{
				passCounter++;
				passField1 = curField;
			}
			else if ((curType == 'password' || curFldType=='PASSWORD') && curFldType!='ORIGINALPASSWORD' && passCounter == 1)
			{
				if (passField1.value != curField.value)
				{
					alert('The entered passwords do not match.\nPlease re enter them.');
					curField.value = "";
					openRelevantTab(curField, frmObj);
					passField1.focus();
					passField1.select();
					return false;
				}
			}
			
		}
	}
	return true;
}

function openRelevantTab(curObj, objForm)
{
	var arrDivs = objForm.getElementsByTagName('DIV');
	var bTabsFound = false;
	var lDivIdNum;
	for (i = 0; i < arrDivs.length; i++ )
	{
		if(arrDivs[i].id.indexOf('tabDiv_') == 0)
		{
			bTabsFound = true;
			break;
		}
	}
	if(bTabsFound)
	{
		while(curObj.tagName != 'FORM' && curObj.style.display != 'none') curObj = curObj.parentNode;
		if(curObj.style.display == 'none' && curObj.id.indexOf('tabDiv_') == 0)
		{
			lDivIdNum = curObj.id.substring(curObj.id.lastIndexOf('_')+1, curObj.id.length);
			toggleTab(lDivIdNum, document.getElementById('tabA_' + lDivIdNum));
		}
	}
}

/*************jQuery Color Animations**************/

(function(jQuery){
	// We override the animation for all of these color styles
	jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){
		jQuery.fx.step[attr] = function(fx){
			if ( fx.state == 0 ) {
				fx.start = getColor( fx.elem, attr );
				fx.end = getRGB( fx.end );
			}

			fx.elem.style[attr] = "rgb(" + [
				Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),
				Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),
				Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)
			].join(",") + ")";
		}
	});
	// Parse strings looking for color tuples [255,255,255]
	function getRGB(color) {
		var result;

		// Check if we're already dealing with an array of colors
		if ( color && color.constructor == Array && color.length == 3 )
			return color;

		// Look for rgb(num,num,num)
		if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
			return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])];

		// Look for rgb(num%,num%,num%)
		if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
			return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55];

		// Look for #a0b1c2
		if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
			return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)];

		// Look for #fff
		if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
			return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];

		// Otherwise, we're most likely dealing with a named color
		return colors[jQuery.trim(color).toLowerCase()];
	}
	
	function getColor(elem, attr) {
		var color;

		do {
			color = jQuery.curCSS(elem, attr);

			// Keep going until we find an element that has color, or we hit the body
			if ( color != '' && color != 'transparent' || jQuery.nodeName(elem, "body") )
				break; 

			attr = "backgroundColor";
		} while ( elem = elem.parentNode );

		return getRGB(color);
	};
	var colors = {
		aqua:[0,255,255],
		azure:[240,255,255],
		beige:[245,245,220],
		black:[0,0,0],
		blue:[0,0,255],
		brown:[165,42,42],
		cyan:[0,255,255],
		darkblue:[0,0,139],
		darkcyan:[0,139,139],
		darkgrey:[169,169,169],
		darkgreen:[0,100,0],
		darkkhaki:[189,183,107],
		darkmagenta:[139,0,139],
		darkolivegreen:[85,107,47],
		darkorange:[255,140,0],
		darkorchid:[153,50,204],
		darkred:[139,0,0],
		darksalmon:[233,150,122],
		darkviolet:[148,0,211],
		fuchsia:[255,0,255],
		gold:[255,215,0],
		green:[0,128,0],
		indigo:[75,0,130],
		khaki:[240,230,140],
		lightblue:[173,216,230],
		lightcyan:[224,255,255],
		lightgreen:[144,238,144],
		lightgrey:[211,211,211],
		lightpink:[255,182,193],
		lightyellow:[255,255,224],
		lime:[0,255,0],
		magenta:[255,0,255],
		maroon:[128,0,0],
		navy:[0,0,128],
		olive:[128,128,0],
		orange:[255,165,0],
		pink:[255,192,203],
		purple:[128,0,128],
		violet:[128,0,128],
		red:[255,0,0],
		silver:[192,192,192],
		white:[255,255,255],
		yellow:[255,255,0]
	};	
})(jQuery);


/****************equalHeights****************/

$.fn.equalHeights = function(px) {
	$(this).each(function(){
		var currentTallest = 0;
		$(this).children().each(function(i){
			if ($(this).height() > currentTallest) { currentTallest = $(this).height(); }
		});
		if (!px || !Number.prototype.pxToEm) currentTallest = currentTallest.pxToEm(); //use ems unless px is specified
		// for ie6, set height since min-height isn't supported
		if (($.browser.msie && $.browser.version == 7.0) || ($.browser.msie && $.browser.version == 6.0) ) { $(this).children().css({'height': currentTallest}); }
		$(this).children().css({'min-height': currentTallest}); 
	});
	return this;
};

Number.prototype.pxToEm = String.prototype.pxToEm = function(settings){
	//set defaults
	settings = jQuery.extend({
		scope: 'body',
		reverse: false
	}, settings);
	
	var pxVal = (this == '') ? 0 : parseFloat(this);
	var scopeVal;
	var getWindowWidth = function(){
		var de = document.documentElement;
		return self.innerWidth || (de && de.clientWidth) || document.body.clientWidth;
	};	
	
	/* When a percentage-based font-size is set on the body, IE returns that percent of the window width as the font-size. 
		For example, if the body font-size is 62.5% and the window width is 1000px, IE will return 625px as the font-size. 	
		When this happens, we calculate the correct body font-size (%) and multiply it by 16 (the standard browser font size) 
		to get an accurate em value. */
				
	if (settings.scope == 'body' && $.browser.msie && (parseFloat($('body').css('font-size')) / getWindowWidth()).toFixed(1) > 0.0) {
		var calcFontSize = function(){		
			return (parseFloat($('body').css('font-size'))/getWindowWidth()).toFixed(3) * 16;
		};
		scopeVal = calcFontSize();
	}
	else { scopeVal = parseFloat(jQuery(settings.scope).css("font-size")); };
			
	var result = (settings.reverse == true) ? (pxVal * scopeVal).toFixed(2) + 'px' : (pxVal / scopeVal).toFixed(2) + 'em';
	return result;
};


/***************Project car**********************/
(function($){$.fn.jCarouselLite=function(o){o=$.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},o||{});return this.each(function(){var b=false,animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width";var c=$(this),ul=$("ul",c),tLi=$("li",ul),tl=tLi.size(),v=o.visible;if(o.circular){ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(0,v).clone());o.start+=v}var f=$("li",ul),itemLength=f.size(),curr=o.start;c.css("visibility","visible");f.css({overflow:"hidden",float:o.vertical?"none":"left"});ul.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});c.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var g=o.vertical?height(f):width(f);var h=g*itemLength;var j=g*v;f.css({width:f.width(),height:f.height()});ul.css(sizeCss,h+"px").css(animCss,-(curr*g));c.css(sizeCss,j+"px");if(o.btnPrev)$(o.btnPrev).click(function(){return go(curr-o.scroll)});if(o.btnNext)$(o.btnNext).click(function(){return go(curr+o.scroll)});if(o.btnGo)$.each(o.btnGo,function(i,a){$(a).click(function(){return go(o.circular?o.visible+i:i)})});if(o.mouseWheel&&c.mousewheel)c.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll)});if(o.auto)setInterval(function(){go(curr+o.scroll)},o.auto+o.speed);function vis(){return f.slice(curr).slice(0,v)};function go(a){if(!b){if(o.beforeStart)o.beforeStart.call(this,vis());if(o.circular){if(a<=o.start-v-1){ul.css(animCss,-((itemLength-(v*2))*g)+"px");curr=a==o.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll}else if(a>=itemLength-v+1){ul.css(animCss,-((v)*g)+"px");curr=a==itemLength-v+1?v+1:v+o.scroll}else curr=a}else{if(a<0||a>itemLength-v)return;else curr=a}b=true;ul.animate(animCss=="left"?{left:-(curr*g)}:{top:-(curr*g)},o.speed,o.easing,function(){if(o.afterEnd)o.afterEnd.call(this,vis());b=false});if(!o.circular){$(o.btnPrev+","+o.btnNext).removeClass("disabled");$((curr-o.scroll<0&&o.btnPrev)||(curr+o.scroll>itemLength-v&&o.btnNext)||[]).addClass("disabled")}}return false}})};function css(a,b){return parseInt($.css(a[0],b))||0};function width(a){return a[0].offsetWidth+css(a,'marginLeft')+css(a,'marginRight')};function height(a){return a[0].offsetHeight+css(a,'marginTop')+css(a,'marginBottom')}})(jQuery);


/***************Easy News**********************/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('1u.1h({1v:g(m){m=$.1h({u:"",7:"",6:"",j:"",r:"1w 1x:",k:"1y 1i:",o:"1z 1i:",L:1A,G:0,W:x,h:1B,z:"",p:"",A:x,X:1C},m);8 u=m.u;8 7=m.7;8 6=m.6;8 j=m.j;8 L=m.L;8 G=m.G;8 r=m.r;8 k=m.k;8 o=m.o;8 W=m.W;8 h=m.h;8 z=m.z;8 p=m.p;8 A=m.A;8 X=m.X;4(p){8 e=1}4(X===x){8 9=1}G=1j(G,10);h=1j(h,10);8 H=$(\'#I\').c(\'i\');4(!H){H=z+\'1D.M\'}8 B=$(\'#J\').c(\'i\');4(!B){B=z+\'1E.M\'}8 N=$(\'#O\').c(\'i\');4(!N){N=z+\'1F.M\'}8 P=$(\'#1G\').c(\'i\');4(!P){P=z+\'1H.M\'}8 Q=$(\'#1I\').c(\'i\');4(!Q){Q=z+\'1J.M\'}8 R=$(\'#1K\').c(\'i\');4(!R){R=z+\'1L.M\'}8 S,Y,b,19,1a,l,v,1M;b=$(\'#\'+u+\' .K\').1b();19=$(\'#\'+u+\' .K\').C(0).5();1a=$(\'#\'+u+\' .K\').C(1).c(\'1c\');l=0;$(\'#\'+7).s(19);4(e===1&&9!=1){$(\'#\'+p).5(\'1/\'+b)}4(e!=1&&9!=1){$(\'#\'+6).5(r+\'1/\'+b+\'<w>\')}$(\'#\'+6).s(k+1a);$(\'#\'+j+\' #J\').T(g(){Z(v);$(1d).c({i:Q});$(\'#\'+j+\' #I\').c({i:H});$(\'#\'+j+\' #O\').c({i:N});l=l+1;4(l==b){l=0}8 d=l+1;8 t=$(\'#\'+u+\' .K\').C(l).5();8 11=d;4(11==b){11=0}8 a=$(\'#\'+u+\' .K\').C(11).c(\'1c\');1k(G){D 0:$(\'#\'+7).12(h,g(){$(\'#\'+7).n();$(\'#\'+7).5(t);4(e===1&&9!=1){$(\'#\'+p).5(d+\'/\'+b);$(\'#\'+6).5(k+a)}4(e!=1&&9!=1){$(\'#\'+6).n().5(r+\'\'+d+\'/\'+b+\'<w>\');$(\'#\'+6).s(k+a)}4(9===1){$(\'#\'+6).5(k+a)}$(\'#\'+7).13(h)});y;D 1:$(\'#\'+7).1l(h,g(){$(\'#\'+7).n();$(\'#\'+7).5(t);4(e===1&&9!=1){$(\'#\'+p).5(d+\'/\'+b);$(\'#\'+6).5(k+a)}4(e!=1&&9!=1){$(\'#\'+6).n().5(r+\'\'+d+\'/\'+b+\'<w>\');$(\'#\'+6).s(k+a)}4(9===1){$(\'#\'+6).5(k+a)}$(\'#\'+7).1m(h)});y;D 2:$(\'#\'+7).14({15:"1n",16:0.1o},h,g(){$(\'#\'+7).n();$(\'#\'+7).5(t);$(\'#\'+7).14({15:"U%",16:1},h,g(){4(e===1&&9!=1){$(\'#\'+p).5(d+\'/\'+b);$(\'#\'+6).5(k+a)}4(e!=1&&9!=1){$(\'#\'+6).n().5(r+\'\'+d+\'/\'+b+\'<w>\');$(\'#\'+6).s(k+a)}4(9===1){$(\'#\'+6).5(k+a)}})});y;D 3:$(\'#\'+7).5(t);4(e===1&&9!=1){$(\'#\'+p).5(d+\'/\'+b);$(\'#\'+6).5(k+a)}4(e!=1&&9!=1){$(\'#\'+6).n().5(r+\'\'+d+\'/\'+b+\'<w>\');$(\'#\'+6).s(k+a)}4(9===1){$(\'#\'+6).5(k+a)}y;1p:$(\'#\'+7).12(h,g(){$(\'#\'+7).n();$(\'#\'+7).5(t);4(e===1&&9!=1){$(\'#\'+p).5(d+\'/\'+b);$(\'#\'+6).5(k+a)}4(e!=1&&9!=1){$(\'#\'+6).n().5(r+\'\'+d+\'/\'+b+\'<w>\');$(\'#\'+6).s(k+a)}4(9===1){$(\'#\'+6).5(k+a)}$(\'#\'+7).13(h)});y}4(A===x){v=E(V,L,l)}});$(\'#\'+j+\' #I\').T(g(){Z(v);$(1d).c({i:P});$(\'#\'+j+\' #J\').c({i:B});$(\'#\'+j+\' #O\').c({i:N});l=l-1;4(l<0){l=b-1}8 d=l+1;8 17=d-2;4(17<0){17=b-1}8 t=$(\'#\'+u+\' .K\').C(l).5();8 a=$(\'#\'+u+\' .K\').C(17).c(\'1c\');1k(G){D 0:$(\'#\'+7).12(h,g(){$(\'#\'+7).n();$(\'#\'+7).5(t);4(e===1&&9!=1){$(\'#\'+p).5(d+\'/\'+b);$(\'#\'+6).5(o+a)}4(e!=1&&9!=1){$(\'#\'+6).n().5(r+\'\'+d+\'/\'+b+\'<w>\');$(\'#\'+6).s(o+a)}4(9===1){$(\'#\'+6).5(o+a)}$(\'#\'+7).13(h)});y;D 1:$(\'#\'+7).1l(h,g(){$(\'#\'+7).n();$(\'#\'+7).5(t);4(e===1&&9!=1){$(\'#\'+p).5(d+\'/\'+b);$(\'#\'+6).5(o+a)}4(e!=1&&9!=1){$(\'#\'+6).n().5(r+\'\'+d+\'/\'+b+\'<w>\');$(\'#\'+6).s(o+a)}4(9===1){$(\'#\'+6).5(o+a)}$(\'#\'+7).1m(h)});y;D 2:$(\'#\'+7).14({15:"1n",16:0.1o},h,g(){$(\'#\'+7).n();$(\'#\'+7).5(t);$(\'#\'+7).14({15:"U%",16:1},h,g(){4(e===1&&9!=1){$(\'#\'+p).5(d+\'/\'+b);$(\'#\'+6).5(o+a)}4(e!=1&&9!=1){$(\'#\'+6).n().5(r+\'\'+d+\'/\'+b+\'<w>\');$(\'#\'+6).s(o+a)}4(9===1){$(\'#\'+6).5(o+a)}})});y;D 3:$(\'#\'+7).5(t);4(e===1&&9!=1){$(\'#\'+p).5(d+\'/\'+b);$(\'#\'+6).5(o+a)}4(e!=1&&9!=1){$(\'#\'+6).n().5(r+\'\'+d+\'/\'+b+\'<w>\');$(\'#\'+6).s(o+a)}4(9===1){$(\'#\'+6).5(o+a)}y;1p:$(\'#\'+7).12(h,g(){$(\'#\'+7).n();$(\'#\'+7).5(t);4(e===1&&9!=1){$(\'#\'+p).5(d+\'/\'+b);$(\'#\'+6).5(k+a)}4(e!=1&&9!=1){$(\'#\'+6).n().5(r+\'\'+d+\'/\'+b+\'<w>\');$(\'#\'+6).s(o+a)}4(9===1){$(\'#\'+6).5(o+a)}$(\'#\'+7).13(h)});y}4(A===x){v=E(1e,L,l)}});$(\'#\'+j+\' #O\').T(g(){$(1d).c({i:R});$(\'#\'+j+\' #J\').c({i:B});$(\'#\'+j+\' #I\').c({i:H});Z(v)});4(W===x){$(\'#\'+7).1N(g(){Z(v);S=$(\'#\'+j+\' #J\').c(\'i\');Y=$(\'#\'+j+\' #I\').c(\'i\');$(\'#\'+j+\' #O\').c({i:R});$(\'#\'+j+\' #J\').c({i:B});$(\'#\'+j+\' #I\').c({i:H})},g(){$(\'#\'+j+\' #O\').c({i:N});4(S==B&&Y==H){4(A===x){v=E(V,U,l)}}4(S===Q&&A===x){v=E(V,U,l)}4(S===B&&Y===P&&A===x){v=E(1e,U,l)}})}8 1f=1q.E;1q.E=g(18,1g){4(1O 18==\'g\'){8 1r=1P.1Q.1R.1S(1T,2);8 f=(g(){18.1U(1V,1r)});1s 1f(f,1g)}1s 1f(18,1g)};g V(q){4(!q){q=0}F=$(\'#\'+u+\' .1t\').1b();F=F-1;4(q>=F){q=0}$(\'#\'+j+\' #J\').C(q).T();q=q+1}g 1e(q){4(!q){q=0}F=$(".1t").1b();F=F-1;4(q>=F){q=0}$(\'#\'+j+\' #I\').C(q).T();q=q+1}4(A===x){v=E(V,L,1)}}});',62,120,'||||if|html|thirdname|secondname|var|news_dis|mynow_explain|mysize|attr|mynum|news_sp||function|effectspeed|src|fourthname|nexttitle|active|option|empty|prevtitle|newscountname||playingtitle|append|mynow|firstname|timer|br|true|break|imagedir|isauto|mynextimg|eq|case|setTimeout|myend|effectis|myprevimg|news_prev|news_next|HPnews_style|newsspeed|gif|mypauseimg|news_pause|myprevimg0|mynextimg0|mypauseimg0|activechk|click|100|autonext|mouseover|disablenewscount|activechkmore|clearTimeout||nextnum|fadeOut|fadeIn|animate|width|opacity|myprevnum|fRef|myfirst|myfirst_explain|size|rel|this|autoprev|_st|mDelay|extend|News|parseInt|switch|slideUp|slideDown|0px|33|default|window|argu|return|news_hide_style|jQuery|init_news|Now|Playing|Next|Prev|6000|600|false|prev|next|pause|news_prev|prev|news_next|next|news_pause|pause|splaynum|hover|typeof|Array|prototype|slice|call|arguments|apply|null'.split('|'),0,{}))


/*******************FAQ*************************/
$(document).ready(function(){
	 var dl = $('<dl>');	
		$('#faqSection').append(dl);
		$('dt').live('click',function(){
			var dd = $(this).next();
			if(!dd.is(':animated')){
				dd.slideToggle();
				$(this).toggleClass('opened');
			}	
		});
		$('a.openAllAnswers').click(function(){
			if($(this).hasClass('collapse')){
				$('dt.opened').click();
			}
			else $('dt:not(.opened)').click();
			$(this).toggleClass('expand collapse');
			return false;
		});
	});
