﻿var tempform='';

//image generic rollover. add "ro" as class for those images and follow the naming convention
$(
	function()
	{
		// set up rollover
		
	}
)


$(document).ready(function() {
	/* SWF OBJECT */
	//swfobject.embedSWF("http://www.city-park.ro/blog/wp-content/themes/citypark/swf/banner_370x228.swf", "banner", "370", "228", "9.0.0", "swf/expressInstall.swf",  {xml_path:"images.xml"}, {}, {});
	
	/* INPUT RESET */
	$('input:text').each(function(){
		tempform='';
		$(this).focus(function(){if($(this).val()==$(this).attr('title')){tempform = $(this).val();$(this).val('');}});
		$(this).blur(function(){if($(this).val()==''){$(this).val(tempform);}});
	});
	 
	 
	/* HEADER CATEG LAST no-border*/	
	$('#header ul li:last').css('border','0px');
	
	/* BUTTONS */	
	$('.button').bind('mouseover',function(){$(this).addClass('on')});
	$('.button').bind('mouseout',function(){$(this).removeClass('on')});

	/* COMMENTES SUBMIT */
	$('#submit').bind('mouseover',function(){$(this).addClass('on')});
	$('#submit').bind('mouseout',function(){$(this).removeClass('on')});
	
	/*INIT LOGO SLIDESHOW*/
	$('#logos').cycle({ 
		fx:     'fade', 
		speed:  1000,
		timeout:1000
	});
	
	$('#banner').cycle({ 
		fx:     'fade', 
		speed:  1000,
		timeout:5000
	});
	
	/* HOVER IMAGES */
	$("img.ro").hover(
			function()
			{
				this.src = this.src.replace("-off","-on");
			},
			function()
			{
				this.src = this.src.replace("-on","-off");
			}
		);
	$('.navigation .button').each(function(){
		if ($(this).width()<10) {$(this).css('display','none');}
	});
	
});

