﻿$(document).ready(function(){
/* ***JREJECT***
$.reject({
		reject:{ msie5: true, msie6: true, msie7: true, msie8: true},
        display: ['firefox','safari','chrome','opera'], // What browsers to display and their order
        browserInfo: { // Settings for which browsers to display
            firefox: {
                text: 'Firefox 3.5+', // Text below the icon
                url: 'http://www.mozilla.com/firefox/' // URL For icon/text link
            },
            safari: {
                text: 'Safari 3+',
                url: 'http://www.apple.com/safari/download/'
            },
            opera: {
                text: 'Opera 9+',
                url: 'http://www.opera.com/download/'
            },
            chrome: {
                text: 'Chrome 2+',
                url: 'http://www.google.com/chrome/'
            },
            msie: {
                text: 'Internet Explorer 7+',
                url: 'http://www.microsoft.com/windows/Internet-explorer/default.aspx'
            },
            gcf: {
                text: 'Google Chrome Frame',
                url: 'http://code.google.com/chrome/chromeframe/',
                allow: { all: false, msie: true } // This browser option will only be displayed for MSIE
            }
        },
        header: 'Prestanite koristiti Microsoft Internet Explorer', // Header of pop-up window
        paragraph1: 'Internet Explorer vjerojatno neće otvoriti ovu stranicu kako je to zamišljeno', // Paragraph 1
        paragraph2: 'Preporučamo Vam da koristite jedan od navedenih preglednika', // Paragraph 2
        close: true, // Allow closing of window
        closeESC: true, // Allow closing of window with esc key
        closeCookie: true, // If cookies should be used to remmember if the window was closed (applies to current session only)
        imagePath: 'http://images.dizajn.vg/browsers/', // Path where images are located
        overlayBgColor: '#000', // Background color for overlay
        overlayOpacity: 0.8, // Background transparency (0-1)
        fadeOutTime: 'fast' // Fade out time on close ('slow','medium','fast' or integer in ms)
	});  
/* ***END JREJECT*** */

/* ***PARALAX*** */
	$('#parallax').jparallax({},{xtravel:0.2, ytravel:-0.4, xorigin:0.5, yorigin:0.7},{xtravel:-0.5, ytravel:0.4, xorigin:0.5, yorigin:0.6},{xtravel:0.5, ytravel:0.3, xorigin:0.5, yorigin:0.5},{xtravel:0.8, ytravel:0.4, xorigin:0.5, yorigin:0.5});
 /* ***END PARALAX *** */
 
/* ***SUPPORT*** */
	$("#weSupport").children("[id*=color]").hide()

	$("#[id*='white'].ColourChange").hover(function()
			{
				$(this).next("#[id*='color']").show();
				$(this).hide();
			}, function()
			{
			
			});

	$("[id*='color'].ColourChange").hover(function()
			{
				
			}, function()
			{
				$(this).hide();
				$(this).prev("[id*='white']").show();
			});	
/* ***END SUPPORT*** */

/* ***REFLECTION*** */
		$(".nav-reflection li").append("<span></span>");	
		
		$(".nav-reflection a").hover(function() {
		    $(this).stop().animate({ marginTop: "-10px" }, 200);
		    $(this).parent().find("span").stop().animate({ marginTop: "0px", opacity: 0.25 }, 200);
		},function(){
		    $(this).stop().animate({ marginTop: "0px" }, 300);
		    $(this).parent().find("span").stop().animate({ marginTop: "-25px", opacity: 1 }, 300);
		});
/* ***END REFLECTION*** */

/* ***TOOLTIPOVI*** */
    $(".tooltip_trigger").tooltip({ effect: 'slide' });  
/* ***END TOOLTIPOVI*** */
	
/* ***PANELI*** */
	$("#panel_trigger1").click(function(){
		$("#panel1").toggle("fast");
		$(this).toggleClass("active");
		$("#panel2").hide("fast");
		$("#panel_trigger2").removeClass("active");
		return false;
	});
	
	$("#panel_trigger2").click(function(){
		$("#panel2").toggle("fast");
		$(this).toggleClass("active");
		$("#panel1").hide("fast");
		$("#panel_trigger1").removeClass("active");
		return false;
	});
/* ***END PANELI*** */

/* ***MENU FIX*** */
	$("#suckerfishnav").children(':last').children(':last').children(':eq(7)').hide();
	$("#suckerfishnav").children(':last').children(':last').children(':eq(3)').hide();
	$("#suckerfishnav").children(':last').children(':last').children(':eq(2)').hide();
	$("#suckerfishnav").children(':last').children(':last').children(':eq(0)').hide();
/* ***END MENU FIX*** */

/* ***PIROBOX*** */
	$().piroBox({
      my_speed: 400, //animation speed
      bg_alpha: 0.6, //background opacity
      radius: 20, //caption rounded corner
      this_next : 'next', // next button inside or outside the imageBox--> next == inside, next_out == outside
      this_prev : 'prev' // prev button inside or outside the imageBox--> prev == inside, prev_out == outside
   }); 
/* ***END PIROBOX*** */
});