// JavaScript Document

	$(document).ready(function() {
	
		// ##################################################
		// #                                                #
		// #                  MENU                          #
		// #                                                #
		// ##################################################
	  
		ddsmoothmenu.init({
			mainmenuid: "smoothmenu1", //menu DIV id
			orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
			classname: 'ddsmoothmenu', //class added to menu's outer DIV
			//customtheme: ["#1c5a80", "#18374a"],
			contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
		})
	
		// ##################################################
		// #                                                #
		// #                  EASING                        #
		// #                                                #
		// ##################################################
	
		$.easing.leftright = function (x, t, b, c, d) {
		   var s = 1.70158;     if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		   return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
		}
	
		// ##################################################
		// #                                                #
		// #                  SPOTLIGHT                     #
		// #                                                #
		// ##################################################
	
		$("#spotlightScroll").scrollable({
			circular: true,
			speed: 700,
			easing: "leftright"
		}).navigator({
			navi: ".spotlightNavi"
		}).autoscroll({
			autoplay: true,
			autopause: true,
			steps: 1,
			interval: 5000
		});
	
		// ##################################################
		// #                                                #
		// #                  DID YOU KNOW                  #
		// #                                                #
		// ##################################################
	
		$('#header_top_dyk').delay(5000).show('bounce',200);

		// ##################################################
		// #                                                #
		// #                    15 YEARS                    #
		// #                                                #
		// ##################################################

		$('#header_top_15years').delay(300).show('fade',500);
	
	});

	function elementEffect(tagetElement,targetState) {
		switch (tagetElement) {
			case "username" :
				if(targetState==true) {
					document.getElementById('header_mid_user_false_username').style.backgroundImage="url(/wp-content/themes/gurkoz/images/header_mid_user_false_username2.png)";
				} else {
					document.getElementById('header_mid_user_false_username').style.backgroundImage="url(/wp-content/themes/gurkoz/images/header_mid_user_false_username.png)";
				}
				break;
			case "password" :
				if(targetState==true) {
					document.getElementById('header_mid_user_false_password').style.backgroundImage="url(/wp-content/themes/gurkoz/images/header_mid_user_false_password2.png)";
				} else {
					document.getElementById('header_mid_user_false_password').style.backgroundImage="url(/wp-content/themes/gurkoz/images/header_mid_user_false_password.png)";
				}
				break;
			case "search" :
				if(targetState==true) {
					document.getElementById('header_mid_search_field').style.backgroundImage="url(/wp-content/themes/gurkoz/images/header_mid_search_field2.png)";
				} else {
					document.getElementById('header_mid_search_field').style.backgroundImage="url(/wp-content/themes/gurkoz/images/header_mid_search_field.png)";
				}
				break;
			//default: result = 'unknown';
		}
	}

	function stage_shadow_over() {
		document.getElementById("stage_shadow").style.display="block";
		//document.getElementById("stage").style.backgroundImage="url('/wp-content/themes/gurkoz/images/stage_hover.png')";
		//document.getElementById("stage_content").style.backgroundImage="url('/wp-content/themes/gurkoz/images/x.png')";
	}
	
	function stage_shadow_out() {
		document.getElementById("stage_shadow").style.display="none";
		//document.getElementById("stage").style.backgroundImage="url('/wp-content/themes/gurkoz/images/stage.png')";
		//document.getElementById("stage_content").style.backgroundImage="url('/wp-content/themes/gurkoz/images/stage_content.png')";
	}

	/* EXPOSE */

	function expose_gurkoz_over() {
		document.getElementById("header_expose_gurkoz").style.display="block";
	}
	
	function expose_gurkoz_out() {
		document.getElementById("header_expose_gurkoz").style.display="none";
	}

	function expose_comics_over() {
		document.getElementById("header_expose_comics").style.display="block";
	}
	
	function expose_comics_out() {
		document.getElementById("header_expose_comics").style.display="none";
	}

	function expose_games_over() {
		document.getElementById("header_expose_games").style.display="block";
	}
	
	function expose_games_out() {
		document.getElementById("header_expose_games").style.display="none";
	}

	function expose_ink_over() {
		document.getElementById("header_expose_ink").style.display="block";
	}
	
	function expose_ink_out() {
		document.getElementById("header_expose_ink").style.display="none";
	}

	function expose_wear_over() {
		document.getElementById("header_expose_wear").style.display="block";
	}
	
	function expose_wear_out() {
		document.getElementById("header_expose_wear").style.display="none";
	}

