var flashvars = {};
flashvars.xml = "config.xml";
flashvars.font = "font.swf";
var attributes = {};
attributes.wmode = "transparent";
attributes.id = "slider";
swfobject.embedSWF("cu3er.swf", "banner", "940", "240", "9", "js/swfobject/expressInstall.swf", flashvars, attributes);
$(document).ready(function(){
$(document).bind("contextmenu",function(e){
  return false;
});
});
$(document).ready(function(){
  $('#slide, .advert').cycle({
	  fx: 'fade',
	  speed: 900,
	  timeout: 4000,
  });
});
$(document).ready(function(){
$(".jRating").jRating({
  rateMax:5,
  decimalLength:1
});
});
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21825914-7']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
//validate contact form
$(document).ready(function(){
// show a simple loading indicator
var loader = jQuery('<img src="../images/loading.gif" alt="loading..." />')
	.appendTo(".loading")
	.hide();
jQuery().ajaxStart(function() {
	loader.show();
}).ajaxStop(function() {
	loader.hide();
}).ajaxError(function(a, b, e) {
	throw e;
});
jQuery.validator.messages.required = "";
var v = jQuery("#validate_form").validate({
	submitHandler: function(form) {
		jQuery(form).ajaxSubmit({
			target: "#result"
		});
	}
});
jQuery("#reset").click(function() {
	v.resetForm();
});
});



