$(document).ready(function(){
//	if($('#marquee').length != 0){
//		$('#marquee').marquee({
//			speed : 1,
//			vertical : false,
//			animateScrollEasing : 'linear'
//		});
//	}

	if(message != ''){
		alert(message);
	}
	
	if($('#slider').length){
		$('#slider').nivoSlider({
			effect:'sliceUp', //Specify sets like: 'fold,fade,sliceDown,random'
			slices:10,
			animSpeed:1000, //Slide transition speed
			pauseTime:4000,
			startSlide:0, //Set starting Slide (0 index)
			directionNav:true, //Next & Prev
			directionNavHide:true, //Only show on hover
			controlNav:false, //1,2,3...
			controlNavThumbs:false, //Use thumbnails for Control Nav
			controlNavThumbsFromRel:false, //Use image rel for thumbs
			controlNavThumbsSearch: '.jpg', //Replace this with...
			controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
			keyboardNav:true, //Use left & right arrows
			pauseOnHover:true, //Stop animation while hovering
			manualAdvance:false, //Force manual transitions
			captionOpacity:0.8, //Universal caption opacity
			beforeChange: function(){},
			afterChange: function(){},
			slideshowEnd: function(){} //Triggers after all slides have been shown
		});
	}
	
	$('#subscribtionEmail').focus(function(){
		if($('#subscribtionEmail').val() == 'E-mail'){
			$('#subscribtionEmail').val('');
		}
	});
	$('#subscribtionEmail').blur(function(){
		if($('#subscribtionEmail').val() == ''){
			$('#subscribtionEmail').val('E-mail');
		}
	});

	// links to inner pages
	$('a[target!="_blank"][href!="index.php"][class!=noInner]').attr('rev', 'width: 700px; height: 600px; scrolling: yes;');
	$('a[target!="_blank"][href!="index.php"][class!=noInner]').attr('rel', 'lyteframe');
});
