<!--
/*** ALLOW target=_blank" in STRICT Doctype ****/
$(function() 
{
	$('a[rel*=_blank]').click( function() 
	{
		window.open(this.href);
		return false;
	});
	
});

/** Homepage Gallery **/
$(function ()
{
	$("#pikame").PikaChoose({auto_play:true, transition:[0]});
	
	Cufon.replace('h1');
	Cufon.replace('h3');
	Cufon.replace('h4');
});

//-->

<!--
/*** onchange link to product ****/
$(function() 
{
	
	$("#activitySearch").change(function() 
										{ 
  		document.location = this.value; 
	});
});
//-->

function limitChars(textid, limit, infodiv)
{
	var text = $('#'+textid).val();
	var textlength = text.length; 
	if(textlength > limit) 
	{ 
	$('#' + infodiv).html('You cannot write more then '+limit+' characters!'); 
	$('#'+textid).val(text.substr(0,limit));
	return false; 
	} 
	else 
	{ 
	$('#' + infodiv).html('You have '+ (limit - textlength) +' characters left.'); 
	return true; 
	} 
} 
