	$(document).ready(function(){
	
	//rounded corners for IE
	DD_roundies.addRule("#mainnav", "5px");
	DD_roundies.addRule("#mainnav li", "5px");
	DD_roundies.addRule("#footerwrap", "5px");
	DD_roundies.addRule("#footerwrap li", "5px");
	DD_roundies.addRule("#s-m-t-tooltip", "5px");
	
	// START GALLERY
	var galleries = $('.ad-gallery').adGallery();
 
	//applies to all elements with title attribute. Change to ".class[title]" to select only elements with specific .class and title
	$("[title]").style_my_tooltips({ 
		tip_follows_cursor: "on", //on/off
		tip_delay_time: 100 //milliseconds
	}); 
	
	//start slider
	$('#slider1').tinycarousel({ display: 5, duration: 400  });
	
	//set attributes
	$('div#topleft a').css({ 'opacity' : 0.6 });
	$('div#topleft span').css({ 'opacity' : 1 });
	$('div#topright a img').css({ 'opacity' : 0.6 });
	
	//topleft animation
	$("div#topleft a").hover(function(){
    $(this).stop().animate({"opacity": 1});
	},function(){
		$(this).stop().animate({"opacity": 0.6});
	});
	
	//background color animation for top
	$("div#topright a.english").hover(function(){
		$(this).stop().animate({ backgroundColor: "#1A3B7B" }, 150);
		$("div#topright a.english img").stop().animate({"opacity": 1});
	},function() {
		$(this).stop().animate({ backgroundColor: "#00256C" }, 150);
		$("div#topright a.english img").stop().animate({"opacity": 0.6});
	});
	
	//background color animation for top
	$("div#topright a.croatian").hover(function(){
		$(this).stop().animate({ backgroundColor: "#1A3B7B" }, 150);
		$("div#topright a.croatian img").stop().animate({"opacity": 1});
	},function() {
		$(this).stop().animate({ backgroundColor: "#00256C" }, 150);
		$("div#topright a.croatian img").stop().animate({"opacity": 0.6});
	});
	
	
	//background color animation for mainnav
	$("div#mainnav a").hover(function(){
		$(this).stop().animate({ borderColor: "#FDA613" }, 150);
	},function() {
		$(this).stop().animate({ borderColor: "#FFFFFF" }, 150);
	});
	
	//background color animation for mainnav
	$("div#mainnav a.selected").hover(function(){
		$(this).stop().animate({ borderColor: "#FDA613" }, 150);
	},function() {
		$(this).stop().animate({ borderColor: "#FDA613" }, 150);
	});
	
	//img anchors animation
	$("#logo a img").hover(function(){
    $(this).stop().animate({"opacity": 0.8});
	},function(){
		$(this).stop().animate({"opacity": 1});
	});
	
	//newsitem
	$(".newsitem a").hover(function(){
    $(this).stop().animate({backgroundColor: "#857F71"}, 150);
	},function(){
		$(this).stop().animate({backgroundColor: "#FFFFFF"}, 150);
	});

	//#bottom-middle2
	$("div#bottom-middle2 a img").hover(function(){
    $(this).stop().animate({"opacity": 0.6});
	},function(){
		$(this).stop().animate({"opacity": 1});
	});
	
	//slider1
	$(".overview a").hover(function(){
    $(this).stop().animate({backgroundColor: "#CFCFC2", color: "#181412"}, 150);
	},function(){
		$(this).stop().animate({backgroundColor: "#FFFFFF", color: "#181412"}, 150);
	});
	
	//slider1 buttons
	$('a.buttons').css({ 'opacity' : 0.6 });
	
	$("a.buttons").hover(function(){
    $(this).stop().animate({"opacity": 1});
	},function(){
		$(this).stop().animate({"opacity": 0.6});
	});
	
	//category img
	$("div.pcbox a img").hover(function(){
    $(this).stop().animate({"opacity": 0.6});
	},function(){
		$(this).stop().animate({"opacity": 1});
	});
	
	//norhtamerica
	$("#northamerica").hover(function () { 	
	$("#northamerica-description").fadeIn('slow');
	}, function () {
	$("#northamerica-description").fadeOut('slow');
	});

	
	//asia
	$("#asia").hover(function () { 	
	$("#asia-description").fadeIn('slow');
	}, function () {
	$("#asia-description").fadeOut('slow');
	});
	
	//europe
	$("#europe").hover(function () { 	
	$("#europe-description").fadeIn('slow');
	}, function () {
	$("#europe-description").fadeOut('slow');
	});
	
	
	//columnize
	$('#columns-wrapper ul').columns({
	columns: 3,
	columnClass: 'mycols'
	});
	


	
});
