/*Declearing variables*/
var source;
var altText;
var image_place;
var file_name = jQuery.url.attr("file");
var source_name = jQuery.url.attr("source");
var source_anchor = jQuery.url.attr("anchor");
var source_query = jQuery.url.attr("query");
var press_room_height = 0;
var press_release_height = 0;
var no_of_list_column = 1;
var no_of_thumb_column = 1;
var default_case_study_height;
var screen_width;
var screen_height;
var psq_page_placeholder_whole_width;
var jm_fire_window_width;
var exactPosition;
var div_no;
var div_no_next;
var panelheight;
var psq_page_placeholder_whole_width;
var jm_fire_window_width;
var goto_here;
var careers_height;
var go_to_map_id;
var $news_case_media_icon_id;
var original_height;
var maxScroll;
var image_src;
var left;
var top;
var features;
var current_cs_portfolio_position;
var top_move;
var side_move;
var no_of_cs_portfolio;
var parent_div;
var side_move_array;
var side_move_array;
/*Declearing variables*/
/*pnx ie fix 4 ie*/
$(document).ready(function () {
    $(".top_navigation, .right_navigation ,.bottom_navigation ,.left_navigation ,.left_page_shadow, .right_page_shadow").pngfix({
        sizingMethod: "scale"
    });
});
/*pnx ie fix 4 ie*/
/*round corners*/
$(".psq_client_portfolio_slider").corner("cc:#ffffff");
$(".psq_client_portfolio_slider .content_area").corner("cc:#dbdbdb");
$(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .header").corner("top 5px");
$(".meeting_panel_container .meeting_panel_text_container").corner("20px");
$(".client_portfolio_showcase_border").corner("cc:#ffffff");
$(".client_portfolio_showcase").corner("cc:#e5e2dc");
$(".client_portfolio_showcase_top_gray_box").corner("top cc:#e5e2dc");
$(".client_portfolio_showcase_top_gray_box").corner("bottom cc:#ffffff");
$(".clont_logo_holder").corner("cc:#efeeea");
$(".news_case_media_border").corner("cc:#ffffff");
$(".news_case_media_container").corner("cc:#d4dadd");
$(".psq_main_container_trengs_right_panels .roundcorner").corner("bottom cc:#ffffff");
/*round corners*/
/*Page load functions*/
$(document).ready(function () {	
	/*Load image in cs popup window dianamically*/
	$(".cs_image_viewer").attr("src",source_query);
	/*Load image in cs popup window dianamically*/
	/*text box hint*/
    $('input[title!=""]').hint();
	/*text box hint*/
	/*manage panel shadows height*/
    $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").css({
        'height': $('#s4').height()
    });
    $(".left_page_shadow").css({
        height: $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").outerHeight()
    });
    $(".right_page_shadow").css({
        height: $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").outerHeight()
    })
	/*manage panel shadows height*/
	/*jm fire window*/
	screen_width = screen.width;
	screen_height = screen.height;
	psq_page_placeholder_whole_width = $(".psq_page_placeholder_whole").outerWidth();
	jm_fire_window_width = psq_page_placeholder_whole_width + (screen_width - psq_page_placeholder_whole_width) / 2 - 12;
	exactPosition = screen_width - jm_fire_window_width;
	/*jm fire window*/
	
	
	/*jm_fire_window_award position on page load*/
	/*$(".jm_fire_window_award").show().css({
		height: $(".psq_page_placeholder_whole").outerHeight(),
		width: screen_width,
		marginLeft: -exactPosition,
		opacity: 0.5
	});*/
	/*jm_fire_window_award position on page load*/
	
	/*psq_award_container animation page load*/
	/*$(".psq_award_container").animate({
		marginTop: 30
	}, {
		duration: 800,
		easing: 'easeOutBounce',
		complete: function () {}
	})	*/
	/*psq_award_container animation page load*/
	
	/*auto psq_award_container moveout after some time*/
	//var t=setTimeout("goOffAward()",10000);
	/*auto psq_award_container moveout after some time*/
	/*Close IAC awards panel on click of close*/
	$(".IAC_close").click(function () {
		$(".psq_award_container").animate({
		marginTop: -750
		}, {
			duration: 800,
			easing: 'easeInExpo',
			complete: function () 
			{
				$(".jm_fire_window_award").fadeOut();
			}
		})
	});
	/*Close IAC awards panel on click of close*/
	/*page sub menu movements*/
    $('#support_tabMenu .container > div').click(function () {
		$(".psq_bread_crumb_dummy").hide();
		$(".psq_bread_crumb").show();
		$(".psq_bread_crumb_press_room").hide();
       div_no = $('#support_tabMenu .container > div').index(this);
		
		// This is for logo reminds panel starts
		if (file_name == "pepper_square_who_are_we.php" && div_no >= 2) {
			div_no_next = div_no + 2;
		}
		else{
			div_no_next = div_no + 1;	
		}
	    // This is for logo reminds panel ends
		//div_no_next = div_no + 1;
        $(".case_study_links_content_area").show();
        $(".team_panel_description_left_shadow,.team_panel_description_right_shadow,.team_panel_thumb_left_shadow").hide();
        $("#form_event_speaker_requests").show();
		$("#form_").show();
        $(".event_speaker_requests_thanks").hide();
        $(".whitepappers_container").show();
        $(".whirte_papers_thanks_progess").hide();
        $(".team_list_placeholder").removeClass("team_list_selected");
        $(".list_slider .member1").addClass("team_list_selected");
        $(".team_panel .team_panel_padding .team_panel_padding_left").stop().scrollTo($('.team_panel .team_panel_padding .team_panel_padding_left .sliding_panel #member1'), 800);
        $(".grid").removeClass("grid_thumb").addClass("grid_list");
        $(".thumb_navigator").hide();
        $(".list_navigator").show();
        $(".career_content").show();
        $(".career_thanks_progess").hide();
        $(".team_panel .team_panel_padding .team_panel_padding_right .team_grid").stop().scrollTo($(".list_slider"), 800);
        panelheight = $('.slidingPlanels div:eq(' + div_no_next + ')').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: 500
        }).scrollTo($('.slidingPlanels div:eq(' + div_no_next + ')'), 800);
        $(".left_page_shadow").css({
            height: panelheight
        });
        $(".right_page_shadow").css({
            height: panelheight
        })
		/**/
		//go_to_case_study_id = $(this).parent().parent().parent().attr("id");
		/**/
        if ($(this).hasClass("Ideation")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_strategy_planning.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="strategy & planning">strategy & planning</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">ideation</span>');
            document.title = "pepper square - strategy & planning - ideation";
        }
        else if ($(this).hasClass("Branding")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_strategy_planning.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="strategy & planning">strategy & planning</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">branding</span>');
            document.title = "pepper square - strategy & planning - branding";
        }
        else if ($(this).hasClass("Account_planning")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_strategy_planning.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="strategy & planning">strategy & planning</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">account planning</span>');
            document.title = "pepper square - strategy & planning - account planning";
        }
        else if ($(this).hasClass("Marketing_Media_strategy")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_strategy_planning.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="strategy & planning">strategy & planning</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">marketing + media strategy</span>');
            document.title = "pepper square - strategy & planning - marketing + media strategy";
        }
        else if ($(this).hasClass("Analytics")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_strategy_planning.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="strategy & planning">strategy & planning</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">analytics</span>');
            document.title = "pepper square - strategy & planning - analytics";
        }
        else if ($(this).hasClass("Digital_media_planning_Buying")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_advertising_branding.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="advertising & branding">advertising & branding</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">digital media planning + buying</span>');
            document.title = "pepper square - advertising & branding - digital media planning + buying";
        }
        else if ($(this).hasClass("Affinity_Affiliate_marketing")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_advertising_branding.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="advertising & branding">advertising & branding</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">affinity + affiliate marketing</span>');
            document.title = "pepper square - advertising & branding - affinity + affiliate marketing";
        }
        else if ($(this).hasClass("Display_ad_creative")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_advertising_branding.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="advertising & branding">advertising & branding</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">display ad creative</span>');
            document.title = "pepper square - advertising & branding - display ad creative";
        }
        else if ($(this).hasClass("Microsites")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_advertising_branding.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="advertising & branding">advertising & branding</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">microsites</span>');
            document.title = "pepper square - advertising & branding - microsites";
        }
        else if ($(this).hasClass("Corporate_sites")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_experience_design.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="experience design">experience design</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">corporate sites</span>');
            document.title = "pepper square - experience design - corporate sites";
        }
        else if ($(this).hasClass("B2B_sites")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_experience_design.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="experience design">experience design</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">b2b sites</span>');
            document.title = "pepper square - experience design - b2b sites";
        }
        else if ($(this).hasClass("B2C_sites")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_experience_design.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="experience design">experience design</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">b2c sites</span>');
            document.title = "pepper square - experience design - b2c sites";
        }
        else if ($(this).hasClass("eCommerce_sites")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_experience_design.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="experience design">experience design</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">ecommerce sites</span>');
            document.title = "pepper square - experience design - ecommerce sites";
        }
        else if ($(this).hasClass("Social_media")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_emerging_media.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="emerging media">emerging media</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">social media</span>');
            document.title = "pepper square - emerging media - social media";
        }
        else if ($(this).hasClass("Mobile")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_emerging_media.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="emerging media">emerging media</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">mobile</span>');
            document.title = "pepper square - emerging media - mobile";
        }
        else if ($(this).hasClass("Interactive_viral_videos")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_emerging_media.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="emerging media">emerging media</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">interactive viral videos</span>');
            document.title = "pepper square - emerging media - interactive viral videos";
        }
        else if ($(this).hasClass("Blogs")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_emerging_media.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="emerging media">emerging media</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">blogs</span>');
            document.title = "pepper square - emerging media - blogs";
        }
        else if ($(this).hasClass("u_Mobile")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_user_interface_lab.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="user interface lab">user interface lab</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">mobile</span>');
            document.title = "pepper square - user interface lab - mobile";
        }
        else if ($(this).hasClass("Web_applications")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_user_interface_lab.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="user interface lab">user interface lab</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">web applications</span>');
            document.title = "pepper square - user interface lab - web applications";
        }
        else if ($(this).hasClass("Kiosk")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_user_interface_lab.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="user interface lab">user interface lab</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">kiosk</span>');
            document.title = "pepper square - user interface lab - kiosk";
        }
        else if ($(this).hasClass("Search_Engine_Optimization")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_search_marketing.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="search marketing">search marketing</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">search engine optimization</span>');
            document.title = "pepper square - search marketing - search engine optimization";
        }
        else if ($(this).hasClass("Paid_search")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_search_marketing.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="search marketing">search marketing</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">paid search</span>');
            document.title = "pepper square - search marketing - paid search";
        }
        else if ($(this).hasClass("Feed_management")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_search_marketing.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="search marketing">search marketing</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">feed management</span>');
            document.title = "pepper square - search marketing - feed management";
        }
        else if ($(this).hasClass("Web_application_development")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_technology_development.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="technology & development">technology & development</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">web application development</span>');
            document.title = "pepper square - technology & development - web application development";
        }
        else if ($(this).hasClass("Content_management")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_technology_development.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="technology & development">technology & development</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">content management</span>');
            document.title = "pepper square - technology & development - content management";
        }
        else if ($(this).hasClass("Business_intelligence")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_technology_development.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="technology & development">technology & development</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">business intelligence</span>');
            document.title = "pepper square - technology & development - business intelligence";
        }
        else if ($(this).hasClass("Performance_transformation")) {
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_technology_development.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="technology & development">technology & development</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">performance transformation</span>');
            document.title = "pepper square - technology & development - performance transformation";
        }
        else if ($(this).hasClass("team")) {
            $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_team'), 800, function () {
                $(".team_panel_description_left_shadow,.team_panel_description_right_shadow,.team_panel_thumb_left_shadow").show()
            });
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="who are we?">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">team</span>');
            document.title = "pepper square - who are we? - team";
        }
        else if ($(this).hasClass("whats_in_name")) {
            $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_what_in_name'), 800);
            $(".psq_bread_crumb").html("<a href='index.php' class='Trebuchet text_decoration_underline font_12 color_000000' title='home'>home</a> | <a href='pepper_square_who_are_we.php' class='Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un' title='who are we?'>who are we?</a> | <span class='Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none'>what's in a name?</span>");
            document.title = "pepper square - who are we? - what's in a name?";
        }
        else if ($(this).hasClass("culture")) {
            $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_culture'), 800);
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="who are we?">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">culture</span>');
            document.title = "pepper square - who are we? - culture";
        }
        else if ($(this).hasClass("Careers")) {
            $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_careers'), 800);
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="who are we?">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">careers</span>');
            document.title = "pepper square - who are we? - careers";
			$(".left_page_shadow").css({
            	height: panelheight
			});
			$(".right_page_shadow").css({
				height: panelheight
			})
        }
        else if ($(this).hasClass("press_room")) {
            $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_press_room'), 800);
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="who are we?">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">press room</span>');
            document.title = "pepper square - who are we? - press room";
        }
        else if ($(this).hasClass("press_releases")) {
            $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_press_release'), 800);
            $(".psq_bread_crumb").hide();
			$(".psq_bread_crumb_press_room").show();
            document.title = "pepper square - who are we? - press room - press releases";
        }
        else if ($(this).hasClass("event_speaker_requests")) {
            $("#event_type").val("");
            $("#event_month").val("");
            $("#event_day").val("");
            $("#event_year").val("");
            $("#session_format").val("");
            $("#event_title").val("");
            $("#company").val("");
            $("#event_location").val("");
            $("#event_requestor").val("");
            $("#email").val("");
            $("#phone").val("");
            $("#event_focus").val("");
            $("#target_market_audience").val("");
            $("#number_of_attendees").val("");
            $("#media_coverage").val("");
            $("#audience_demographics").val("");
            $("#event_speakers").val("");
            $("#event_topic").val("");
            $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_event_speaker'), 800);
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="who are we?">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">event & speaker requests</span>');
            document.title = "pepper square - who are we? - event & speaker requests";
        }
        else if ($(this).hasClass("By_clients")) {
            $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_clients'), 800);
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_our_work.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="who are we?">our work</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">by clients</span>');
            document.title = "pepper square - our work - by clients";
        }
        else if ($(this).hasClass("case_studies")) {
            $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_case_study'), 800);
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_download.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="downloads">downloads</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">case studies</span>');
            document.title = "pepper square - downloads - case studies";
			$(".details_case_study").hide();
			$(".contentHeader").show();
			$(".left_page_shadow").css({
            	height: 1000
			});
			$(".right_page_shadow").css({
				height: 1000
			});
			setTimeout('$(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").css({height: 1000});',1000)
        }
        else if ($(this).hasClass("whitepapers")) {
            $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_whitepapper'), 800);
            $("#name_title").val("");
            $("#email_title").val("");
            $("#chd_download_whotepapper").attr('checked', false);
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_download.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="downloads">downloads</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">whitepapers</span>');
            $(".details_case_study").hide();
            document.title = "pepper square - downloads - whitepapers";
        }
        else if ($(this).hasClass("directions_to_peppersquare")) {
            $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_directions'), "fast");
            $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_connect_with_us.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="connect">connect with us </a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">directions</span>');
            document.title = "pepper square - connect";
        }
    })
	/*page sub menu movements*/
	/*team list_column*/
    $('.team_panel .team_panel_padding .team_panel_padding_right .team_grid .grid_slider .list_slider .list_column > p').click(function () {
        div_no = $('.team_panel .team_panel_padding .team_panel_padding_right .team_grid .grid_slider .list_slider .list_column > p').index(this);
        $(".team_list_placeholder").removeClass("team_list_selected");
        $(this).addClass("team_list_selected");
        $(".team_panel .team_panel_padding .team_panel_padding_left").stop().scrollTo($('.sliding_panel p:eq(' + div_no + ')'), 800);
    });
	/*team list_column*/
	/*team profile animation*/
    $('.team_panel .team_panel_padding .team_panel_padding_right .team_grid .grid_slider .thumb_slider .thumb_column .team_thumb_placeholder > p').click(function () {
        div_no = $('.team_panel .team_panel_padding .team_panel_padding_right .team_grid .grid_slider .thumb_slider .thumb_column .team_thumb_placeholder > p').index(this);
        $(".team_thumb_placeholder .image").removeClass("image_select");
        $(this).addClass("image_select");
        $(".team_panel .team_panel_padding .team_panel_padding_left").stop().scrollTo($('.sliding_panel p:eq(' + div_no + ')'), 800);
    });
	/*team profile animation*/
	/*team list_button animation*/
    $(".list_button").click(function () {
        $(".grid").removeClass("grid_thumb").addClass("grid_list");
        $(".thumb_navigator").hide();
        $(".list_navigator").removeClass("navigater_both").addClass("navigater_left");
        $(".navigater .left_button").css('cursor', 'default');
        $(".list_navigator").show();
        $(".team_panel .team_panel_padding .team_panel_padding_right .team_grid").stop().scrollTo($(".list_slider"), 800);
    });
	/*team list_button animation*/
    $(".navigater .left_button").css('cursor', 'default');
	/*team thumb_button animation*/
    $(".thumb_button").click(function () {
        $(".grid").removeClass("grid_list").addClass("grid_thumb");
        $(".list_navigator").hide();
        $(".thumb_navigator").show();
        $(".navigater .right_button").css('cursor', 'default');
        $(".team_panel .team_panel_padding .team_panel_padding_right .team_grid").stop().scrollTo($(".thumb_slider"), 800);
    });
	/*team thumb_button animation*/
	/*team profile list right navigation functionanaty*/
    $(".list_navigator .right_button").click(function () {
        if (no_of_list_column == $(".list_slider > span ").length) {
            return false;
        }

        $(".list_navigator").removeClass("navigater_left").addClass("navigater_both");
        $(".navigater .left_button").css('cursor', 'pointer');
        $(".navigater .right_button").css('cursor', 'pointer');
        no_of_list_column = no_of_list_column + 1
        $(".team_panel .team_panel_padding .team_panel_padding_right .team_grid").stop().scrollTo($('#list_column_' + no_of_list_column + ''), 800);
        next_slide = no_of_list_column;
        if (next_slide == $(".list_slider > span ").length) {
            $(".list_navigator").removeClass("navigater_left").addClass("navigater_right");
            $(".navigater .right_button").css('cursor', 'default');
            $(".navigater .left_button").css('cursor', 'pointer');
        }
    })
	/*team profile list right navigation functionanaty*/
	/*team profile list left navigation functionanaty*/
    $(".list_navigator .left_button").click(function () {
        if (no_of_list_column == 1) {
            return false;
        }
        $(".list_navigator").removeClass("navigater_right").addClass("navigater_both");
        $(".navigater .left_button").css('cursor', 'pointer');
        $(".navigater .right_button").css('cursor', 'pointer');
        no_of_list_column = no_of_list_column - 1
        $(".team_panel .team_panel_padding .team_panel_padding_right .team_grid").stop().scrollTo($('#list_column_' + no_of_list_column + ''), 800);
        next_slide = no_of_list_column;
        if (next_slide == 1) {
            $(".list_navigator").removeClass("navigater_right").removeClass("navigater_both").addClass("navigater_left");
            $(".navigater .left_button").css('cursor', 'default');
            $(".navigater .right_button").css('cursor', 'pointer');
        }
    })
	/*team profile list left navigation functionanaty*/
	/*team profile thumb right navigation functionanaty*/
    $(".thumb_navigator .right_button").click(function () {
        if (no_of_thumb_column == $(".thumb_slider > span ").length) {
            return false;
        }
        $(".thumb_navigator").removeClass("navigater_left").addClass("navigater_both");
        no_of_thumb_column = no_of_thumb_column + 1
        $(".team_panel .team_panel_padding .team_panel_padding_right .team_grid").stop().scrollTo($('#thumb_column_' + no_of_thumb_column + ''), 800);
        next_slide = no_of_thumb_column;
        if (next_slide == $(".thumb_slider > span ").length) {
            $(".thumb_navigator").removeClass("navigater_left").addClass("navigater_right");
        }
    })
	/*team profile thumb right navigation functionanaty*/
	/*team profile thumb left navigation functionanaty*/
    $(".thumb_navigator .left_button").click(function () {
        if (no_of_thumb_column == 1) {
            return false;
        }
        $(".thumb_navigator").removeClass("navigater_right").addClass("navigater_both");
        no_of_thumb_column = no_of_thumb_column - 1
        $(".team_panel .team_panel_padding .team_panel_padding_right .team_grid").stop().scrollTo($('#thumb_column_' + no_of_thumb_column + ''), 800);
        next_slide = no_of_thumb_column;
        if (next_slide == 1) {
            $(".thumb_navigator").removeClass("navigater_right").removeClass("navigater_both").addClass("navigater_left");
        }
    })
	/*team profile thumb left navigation functionanaty*/
	/*press_releases click*/
	$('.press_releases').click(function () {
        panelheight = $("#press_releases").height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: 500
        }).scrollTo($("#press_releases"), 800);
    });
	/*press_releases click*/
	/*event_speaker_requests click*/
    $('.event_speaker_requests').click(function () {
        panelheight = $("#event_speaker_requests").height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: 500
        }).scrollTo($("#event_speaker_requests"), 800);
    })
	/*event_speaker_requests click*/
	$("#a").click(function () {
		alert("a");
	});
	/*logo_reminds click*/
	$('.logo_reminds').click(function () {
		document.title = "pepper square - who are we? - what's in a name? - logo reminds me of";
		panelheight = $('#logo_reminds').height();
		$(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
			'height': panelheight
		}, {
			queue: false,
			duration: "fast"
		}).scrollTo($('#logo_reminds'), "fast");
		$(".psq_bread_crumb").hide();
		$(".psq_bread_crumb_dummy").show();
		$(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .whats_in_name").addClass("sel").stop().animate({
			backgroundPosition: "(-970px -65px)"
		}, {
			duration: "fast",
			complete: function () {}
		});
		$(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_reminds'), "fast");
	});
	/*logo_reminds click*/
	/*connect_me_to_whats_in_name click*/
    $(".connect_me_to_whats_in_name").click(function () {
		$(".psq_bread_crumb_dummy").hide();
		$(".psq_bread_crumb").show();
        $(".team_panel_description_left_shadow,.team_panel_description_right_shadow,.team_panel_thumb_left_shadow").hide();
		document.title = "pepper square - who are we? - what's in a name?";
        panelheight = $('#whats_in_name').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#whats_in_name'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="who are we?">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">what&rsquo;s in a name?</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container").find(".sel").stop().animate({
            backgroundPosition: "(-970px -160px)"
        }, {
            duration: 500,
            complete: function () {
                $(this).css({
                    backgroundPosition: "-970px 0"
                })
            }
        }).removeClass("sel");
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .whats_in_name").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_what_in_name'), "fast");
        psq_everything_else_container_close();
        $(".left_page_shadow").css({
            height: panelheight
        });
        $(".right_page_shadow").css({
            height: panelheight
        })
    });
	/*connect_me_to_whats_in_name click*/
	/*page sub menus defaul, mouseover, mouseour movement, click functionality*/
    $('.menus').css({
        backgroundPosition: "-970px 0"
    }).mouseover(function () {
        $(this).stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: 500
        })
    }).mouseout(function () {
        if ($(this).hasClass("sel")) {} else {
            $(this).stop().animate({
                backgroundPosition: "(-970px -160px)"
            }, {
                duration: 500,
                complete: function () {
                    $(this).css({
                        backgroundPosition: "-970px 0"
                    })
                }
            })
        }
    }).click(function () {
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container").find(".sel").stop().animate({
            backgroundPosition: "(-970px -160px)"
        }, {
            duration: 500,
            complete: function () {
                $(this).css({
                    backgroundPosition: "-970px 0"
                })
            }
        }).removeClass("sel");
        $(this).addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: 500,
            complete: function () {}
        })
    });
	/*page sub menus defaul, mouseover, mouseour movement, click functionality*/
	/*psq everything else popup window opener*/
    $(".psq_everything_else").click(function () {
        screen_width = screen.width;
        psq_page_placeholder_whole_width = $(".psq_page_placeholder_whole").outerWidth();
        jm_fire_window_width = psq_page_placeholder_whole_width + (screen_width - psq_page_placeholder_whole_width) / 2 - 12
        $(".jm_fire_window").show().css({
            height: $(".psq_page_placeholder_whole").outerHeight(),
            width: jm_fire_window_width,
            opacity: 0
        });
        $(".psq_everything_else_container").animate({
            marginTop: 30
        }, {
            duration: 800,
            easing: 'easeOutBounce',
            complete: function () {}
        });
    });
	/*psq everything else popup window opener*/
	/*Set_up_an_appointment popup window opener*/
    $(".Set_up_an_appointment").click(function () {
        screen_width = screen.width;
        psq_page_placeholder_whole_width = $(".psq_page_placeholder_whole").outerWidth();
        jm_fire_window_width = psq_page_placeholder_whole_width + (screen_width - psq_page_placeholder_whole_width) / 2 - 12;
        $(".meeting_panel_text_container_form").show();
        $(".meeting_panel_text_container_thanks").hide();
        $("#fname").val("");
        $("#lname").val("");
        $("#designation").val("");
        $("#company").val("");
        $("#phone").val("");
        $("#email").val("");
        $("#message").val("");
        $(".jm_fire_window").show().css({
            height: $(".psq_page_placeholder_whole").outerHeight(),
            width: jm_fire_window_width,
            opacity: 0
        });
        $(".meeting_panel_container").animate({
            marginTop: 100
        }, {
            duration: 800,
            easing: 'easeOutBounce',
            complete: function () {}
        });
    });
	/*Set_up_an_appointment popup window opener*/
	/*close panels*/
    $(".jm_fire_window,.meeting_panel_container .meeting_panel_text_container .close_button, .jm_fire_window_casestudy, .close_cs_panel").click(function () {
        psq_everything_else_container_close();
        meeting_panel_container_close();
        casestudy_container_close();
    });
	/*close panels*/
	/*press accordian headers open & close*/
    $(".accordian_header").click(function () {
        press_room_height = 0;
        press_releae_height = 0;
        if ($(this).hasClass("accordian_header_selected")) {
            $(this).removeClass("accordian_header_selected").addClass("accordian_header_norm");
            $(this).next().slideUp('fast', function () {
                if ($(this).parent().parent().attr("id") == "press_room") {
                    press_room_height = $('#press_room').height();
                }
                else if ($(this).parent().parent().parent().attr("id") == "press_room") {
                    press_room_height = $('#press_room').height();
                }
                else if ($(this).parent().parent().attr("id") == "press_releases") {
                    press_room_height = $('#press_releases').height();
                }
                else if ($(this).parent().parent().parent().attr("id") == "press_releases") {
                    press_room_height = $('#press_releases').height();
                }
                $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
                    'height': press_room_height
                }, {
                    queue: false,
                    duration: 500,
                    complete: function () {
                        $.scrollTo($(".psq_page_placeholder"), 800, {
                            axis: 'y'
                        });
                    }
                })
				/*manage panel shadows height*/
				$(".left_page_shadow").css({
					height: press_room_height
				});
				$(".right_page_shadow").css({
					height: press_room_height
				})
				/*manage panel shadows height*/
            });
        }
        else {
            $(".accordian_header").removeClass("accordian_header_selected").addClass("accordian_header_norm");
            $(this).removeClass("accordian_header_norm").addClass("accordian_header_selected");
            $(".accordian_content").hide();
            $(this).next().slideDown('fast', function () {
                if ($(this).parent().parent().attr("id") == "press_room") {
                    press_room_height = $('#press_room').height();
                }
                else if ($(this).parent().parent().parent().attr("id") == "press_room") {
                    press_room_height = $('#press_room').height();
                }
                else if ($(this).parent().parent().attr("id") == "press_releases") {
                    press_room_height = $('#press_releases').height();
                }
                else if ($(this).parent().parent().parent().attr("id") == "press_releases") {
                    press_room_height = $('#press_releases').height();
                }
                goto_here = $(this).prev();
                $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
                    'height': press_room_height
                }, {
                    queue: false,
                    duration: 500,
                    complete: function () {
                        $.scrollTo($(goto_here), 800, {
                            axis: 'y'
                        });
                    }
                })
				/*manage panel shadows height*/
				$(".left_page_shadow").css({
					height: press_room_height
				});
				$(".right_page_shadow").css({
					height: press_room_height
				})
				/*manage panel shadows height*/
            });
        }
    })
	/*press accordian headers open & close*/
	/*press arcives accordian headers open & close*/
    $(".news_arcives_accordian_header_inner").click(function () {
        press_room_height = 0;
        if ($(this).hasClass("news_arcives_accordian_header_selected")) {
            $(this).removeClass("news_arcives_accordian_header_selected").addClass("news_arcives_accordian_header_norm");
            $(this).parent().next().slideUp('fast', function () {
                press_room_height = $('#press_releases').height();
                $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
                    'height': press_room_height
                }, {
                    queue: false,
                    duration: 500,
                    complete: function () {
                        $.scrollTo($('.psq_page_placeholder'), 800, {
                            axis: 'y'
                        });
                    }
                })
            });
        }
        else {
            $(".news_arcives_accordian_header_inner").removeClass("news_arcives_accordian_header_selected").addClass("news_arcives_accordian_header_norm");
            $(this).removeClass("news_arcives_accordian_header_norm").addClass("news_arcives_accordian_header_selected");
            $(".accordian_content").hide();
            $(this).parent().next().slideDown('fast', function () {
                press_room_height = $('#press_releases').height();
                $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
                    'height': press_room_height
                }, {
                    queue: false,
                    duration: 500,
                    complete: function () {
                        $.scrollTo($('.news_arcives_accordian_header_inner'), 800, {
                            axis: 'y'
                        });
                    }
                })
            });
        }
    })
	/*press arcives accordian headers open & close*/
	/*career accordian headers open & close*/
    $(".careers_accordian_header").click(function () {
        careers_height = 0;
        if ($(this).hasClass("careers_accordian_header_selected")) {
            $(this).removeClass("careers_accordian_header_selected").addClass("careers_accordian_header_norm");
            $(this).next().slideUp('fast', function () {
                careers_height = $('#Careers').height();
                $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
                    'height': careers_height
                }, {
                    queue: false,
                    duration: 500,
                    complete: function () {
                        $.scrollTo($(".psq_page_placeholder"), 800, {
                            axis: 'y'
                        });
                    }
                })
            });
        }
        else {
            $(".careers_accordian_header").removeClass("careers_accordian_header_selected").addClass("careers_accordian_header_norm");
            $(this).removeClass("careers_accordian_header_norm").addClass("careers_accordian_header_selected");
            $(".careers_accordian_content").hide();
            $(this).next().slideDown('fast', function () {
                careers_height = $('#Careers').height();
                goto_here = $(this).prev();
                $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
                    'height': careers_height
                }, {
                    queue: false,
                    duration: 500,
                    complete: function () {
                        $.scrollTo($(goto_here), 800, {
                            axis: 'y'
                        });
                    }
                })
            });
        }
    })
	/*career accordian headers open & close*/
	/*icon_casestudies_norm hoover effect*/
    $(".icon_casestudies_norm").hoverIntent({
        sensitivity: 7,
        interval: 100,
        over: common_icon_casestudies_over,
        timeout: 0,
        out: do_nothing
    });
	/*icon_casestudies_norm hoover effect*/
	/*icon_casestudies_hover hoover effect*/
    $(".icon_casestudies_hover").hoverIntent({
        sensitivity: 7,
        interval: 100,
        over: do_nothing,
        timeout: 0,
        out: common_icon_casestudies_out
    });
	/*icon_casestudies_hover hoover effect*/
	/*icon_whitepapers_norm hoover effect*/
    $(".icon_whitepapers_norm").hoverIntent({
        sensitivity: 7,
        interval: 100,
        over: common_icon_whitepapers_over,
        timeout: 0,
        out: do_nothing
    });
	/*icon_whitepapers_norm hoover effect*/
	/*icon_whitepapers_hover hoover effect*/
    $(".icon_whitepapers_hover").hoverIntent({
        sensitivity: 7,
        interval: 100,
        over: do_nothing,
        timeout: 0,
        out: common_icon_whitepapers_out
    });
	/*icon_whitepapers_hover hoover effect*/
	/*news_case_media_icon click*/
    $(".news_case_media_icon .icons").click(function () {
        $news_case_media_icon_id = $(this).attr("id");
        $(".pannel_news_case_media").hide();
        if ($(".pannel_news_case_media").hasClass($news_case_media_icon_id)) {
            $("." + $news_case_media_icon_id).fadeIn();
        }
    });
	/*news_case_media_icon click*/
	/*connect_me_to_team click*/
    $(".connect_me_to_team").click(function () {
        $(document).attr("title", "pepper square - who are we? - team");
        panelheight = $('#team').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#team'), "fast", function () {
            $(".team_panel_description_left_shadow,.team_panel_description_right_shadow,.team_panel_thumb_left_shadow").show()
        });
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="who are we?">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">team</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container").find(".sel").stop().animate({
            backgroundPosition: "(-970px -160px)"
        }, {
            duration: 500,
            complete: function () {
                $(this).css({
                    backgroundPosition: "-970px 0"
                })
            }
        }).removeClass("sel");
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .team").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_team'), "fast");
        psq_everything_else_container_close();
        $(".left_page_shadow").css({
            height: panelheight
        });
        $(".right_page_shadow").css({
            height: panelheight
        })
    });
	/*connect_me_culture click*/
    $(".connect_me_culture").click(function () {
        $(".team_panel_description_left_shadow,.team_panel_description_right_shadow,.team_panel_thumb_left_shadow").hide();
        $(document).attr("title", "pepper square - who are we? - culture");
        panelheight = $('#culture').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#culture'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="who are we?">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">culture</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container").find(".sel").stop().animate({
            backgroundPosition: "(-970px -160px)"
        }, {
            duration: 500,
            complete: function () {
                $(this).css({
                    backgroundPosition: "-970px 0"
                })
            }
        }).removeClass("sel");
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .culture").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_culture'), "fast");
        psq_everything_else_container_close();
        $(".left_page_shadow").css({
            height: panelheight
        });
        $(".right_page_shadow").css({
            height: panelheight
        })
    });
	/*connect_me_culture click*/
	/*connect_me_careers click*/
    $(".connect_me_careers").click(function () {
        $(".team_panel_description_left_shadow,.team_panel_description_right_shadow,.team_panel_thumb_left_shadow").hide();
        $(".career_content").show();
        $(".career_thanks_progess").hide();
        $(document).attr("title", "pepper square - who are we? - careers");
        panelheight = $('#Careers').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Careers'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="who are we?">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">careers</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container").find(".sel").stop().animate({
            backgroundPosition: "(-970px -160px)"
        }, {
            duration: 500,
            complete: function () {
                $(this).css({
                    backgroundPosition: "-970px 0"
                })
            }
        }).removeClass("sel");
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Careers").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_careers'), "fast");
        psq_everything_else_container_close();
        $(".left_page_shadow").css({
            height: panelheight
        });
        $(".right_page_shadow").css({
            height: panelheight
        })
    });
	/*connect_me_careers click*/
	/*connect_me_pressroom click*/
    $(".connect_me_pressroom").click(function () {
        $(".team_panel_description_left_shadow,.team_panel_description_right_shadow,.team_panel_thumb_left_shadow").hide();
        $(document).attr("title", "pepper square - who are we? - press room");
        panelheight = $('#press_room').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#press_room'), "fast");
		$(".psq_bread_crumb_press_room").hide();
        $(".psq_bread_crumb").show().html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="who are we?">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">press room</span>');
		
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container").find(".sel").stop().animate({
            backgroundPosition: "(-970px -160px)"
        }, {
            duration: 500,
            complete: function () {
                $(this).css({
                    backgroundPosition: "-970px 0"
                })
            }
        }).removeClass("sel");
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .press_room").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_press_room'), "fast");
        psq_everything_else_container_close();
        $(".left_page_shadow").css({
            height: panelheight
        });
        $(".right_page_shadow").css({
            height: panelheight
        })
    });
	/*connect_me_pressroom click*/
	/*connect_me_event_and_speaker_requests click*/
	$(".connect_me_event_and_speaker_requests").click(function () {
        $(".team_panel_description_left_shadow,.team_panel_description_right_shadow,.team_panel_thumb_left_shadow").hide();
        $(document).attr("title", "pepper square - who are we? - event &amp; speaker requests");
        panelheight = $('#event_speaker_requests').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#event_speaker_requests'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="who are we?">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">event &amp; speaker requests</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container").find(".sel").stop().animate({
            backgroundPosition: "(-970px -160px)"
        }, {
            duration: 500,
            complete: function () {
                $(this).css({
                    backgroundPosition: "-970px 0"
                })
            }
        }).removeClass("sel");
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .event_speaker_requests").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_event_speaker'), "fast");
        psq_everything_else_container_close();
        $(".left_page_shadow").css({
            height: panelheight
        });
        $(".right_page_shadow").css({
            height: panelheight
        })
    });
	/*connect_me_event_and_speaker_requests click*/
	/*connect_me_clients click*/
    $(".connect_me_clients").click(function () {
        $(document).attr("title", "pepper square - our work - clients");
        panelheight = $('#By_clients').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#By_clients'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_our_work.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="our work">our work</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">by clients</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container").find(".sel").stop().animate({
            backgroundPosition: "(-970px -160px)"
        }, {
            duration: 500,
            complete: function () {
                $(this).css({
                    backgroundPosition: "-970px 0"
                })
            }
        }).removeClass("sel");
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .By_clients").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        psq_everything_else_container_close();
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_clients'), "fast");
        $(".left_page_shadow").css({
            height: panelheight
        });
        $(".right_page_shadow").css({
            height: panelheight
        })
    });
	/*connect_me_clients click*/
	/*connect_me_case_studies click*/
    $(".connect_me_case_studies").click(function () {
        $(this).attr("title", "pepper square - downloads - case studies");
        panelheight = $('#case_studies').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#case_studies'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_download.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="downloads">downloads</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">case studies</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container").find(".sel").stop().animate({
            backgroundPosition: "(-970px -160px)"
        }, {
            duration: 500,
            complete: function () {
                $(this).css({
                    backgroundPosition: "-970px 0"
                })
            }
        }).removeClass("sel");
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .case_studies").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        psq_everything_else_container_close();
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_case_study'), "fast");
        $(".left_page_shadow").css({
            height: panelheight
        });
        $(".right_page_shadow").css({
            height: panelheight
        })
    });
	/*connect_me_case_studies click*/
	/*connect_me_whitepapers click*/
    $(".connect_me_whitepapers").click(function () {
        $(this).attr("title", "pepper square - downloads - whitepapers");
        panelheight = $('#whitepapers').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#whitepapers'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_download.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="downloads">downloads</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">whitepapers</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container").find(".sel").stop().animate({
            backgroundPosition: "(-970px -160px)"
        }, {
            duration: 500,
            complete: function () {
                $(this).css({
                    backgroundPosition: "-970px 0"
                })
            }
        }).removeClass("sel");
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .whitepapers").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        psq_everything_else_container_close();
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_whitepapper'), "fast");
        $(".left_page_shadow").css({
            height: panelheight
        });
        $(".right_page_shadow").css({
            height: panelheight
        })
    });
	/*connect_me_whitepapers click*/
	/*connect_me_directions click*/
    $(".connect_me_directions").click(function () {
        $(document).attr("title", "pepper square - connect - directions");
        panelheight = $('#directions_to_peppersquare').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#directions_to_peppersquare'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_connect_with_us.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="connect">direction</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">connect</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container").find(".sel").stop().animate({
            backgroundPosition: "(-970px -160px)"
        }, {
            duration: 500,
            complete: function () {
                $(this).css({
                    backgroundPosition: "-970px 0"
                })
            }
        }).removeClass("sel");
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .directions_to_peppersquare").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_directions'), "fast");
        psq_everything_else_container_close();
        $(".left_page_shadow").css({
            height: panelheight
        });
        $(".right_page_shadow").css({
            height: panelheight
        })
    });
	/*connect_me_directions click*/
	/*team profile content go_more click*/
    $(".go_more").click(function () {
        $(".1st_place", $(this).parent().parent()).hide();
        $(".2nd_place", $(this).parent().parent()).fadeIn();
        $(this).removeClass("text_decoration_underline").removeClass("color_000000").removeClass("cursor_pointer").addClass("color_666666")
        $(this).next().removeClass("color_666666").addClass("text_decoration_underline").addClass("color_000000").addClass("cursor_pointer")
    });
	/*team profile content go_more click*/
	/*team profile content go_less click*/
    $(".go_less").click(function () {
        $(".2nd_place", $(this).parent().parent()).hide();
        $(".1st_place", $(this).parent().parent()).fadeIn();
        $(this).removeClass("text_decoration_underline").removeClass("color_000000").removeClass("cursor_pointer").addClass("color_666666")
        $(this).prev().removeClass("color_666666").addClass("text_decoration_underline").addClass("color_000000").addClass("cursor_pointer")
    });
	/*team profile content go_less click*/
	/*open casestudy click*/
    $(".open_sc").click(function () {
        panelheight = $('#case_studies').height();
        document.title = "pepper square - downloads - case studies";
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: 500
        }).scrollTo($('#case_studies'), 800);
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_download.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="downloads">downloads</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">case studies</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .case_studies").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: 500,
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_case_study'), "fast");
    });
	/*open casestudy click*/
	/*open whitepaper click*/
    $(".open_wc").click(function () {
        $("#support_tabMenu").fadeIn();
        document.title = "pepper square - downloads - whitepapers";
        panelheight = $('#whitepapers').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: 500
        }).scrollTo($('#whitepapers'), 800);
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_download.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="downloads">downloads</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">whitepapers</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .whitepapers").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: 500,
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_whitepapper'), "fast");
    });
	/*open whitepaper click*/
	/*open whitepaper link to details click*/
    $(".go_to_case_study > a").click(function () {
        $(".contentHeader").hide();
        go_to_case_study_id = $(this).attr("id");
        $(".case_study_links_content_area").fadeOut("fast", function () {
            $("." + go_to_case_study_id).fadeIn();
            div_no = $('#support_tabMenu .container > div').index(this);
            $.scrollTo($('.' + go_to_case_study_id), "fast", {
                axis: 'y'
            });
            $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
                'height': $("." + go_to_case_study_id).outerHeight() + 30
            }, {
                queue: false,
                duration: 500,
                complete: function () {
                    if (go_to_case_study_id == "prokarma_case_study") {}
                    if (go_to_case_study_id == "seraja_case_study") {
                        rotate_seraja();
                    }
                    if (go_to_case_study_id == "iteamic_case_study") {
                        rotate_iteamic();
                    }
                    if (go_to_case_study_id == "us_based_case_study") {
                        rotate_us_based();
                    }
                    if (go_to_case_study_id == "eq_case_study") {
                        rotate_eq();
                    }
                }
            })
            $(".left_page_shadow").css({
                height: $("." + go_to_case_study_id).outerHeight()
            });
            $(".right_page_shadow").css({
                height: $("." + go_to_case_study_id).outerHeight()
            })
        });
    });
	/*open whitepaper link to details click*/
	/*close whitepaper link to details click*/
    $(".back_to_link_text > a").click(function () {
        $(".contentHeader").show();
        //go_to_case_study_id = $(this).parent().parent().parent().attr("id");
        $(".details_case_study").fadeOut("fast", function () {
            $(".case_study_links_content_area").fadeIn();
            $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
                'height': 1000
            }, {
                queue: false,
                duration: 500
            });
        });
		/*$("." + go_to_case_study_id + " .content-scroll").scrollTo($("." + go_to_case_study_id + " .c1"), 1000, {
        axis: 'x'
		}, {
			easing: 'easeOutBounce'
		});
		$(".left_ico  img").hide();
    	$(".right_ico  img").show();*/
    });
	/*close whitepaper link to details click*/
	/*map_tab click*/
    $(".map_tab").click(function () {
        go_to_map_id = $(this).attr("id");
		
		
        $(".map_tab").addClass("cursor_pointer").removeClass("sel").addClass("norm");
        $(this).removeClass("cursor_pointer").removeClass("norm").addClass("sel");
        //$(".map_container_width").stop().scrollTo($('.' + go_to_map_id), 800);
		
		
		
		
		if(go_to_map_id=="texas"){
			$("#direction_details").hide();
			$(".texas").show();
			$(".india").hide();

			//alert("texas");
		}
		else {
			$("#direction_details").show();
			$(".texas").hide();
			$(".india").show();
			//alert("texas");
		}
				
				

    });
	/*map_tab click*/
	


	/*submit_subscribe_button click*/
    $(".submit_subscribe_button").click(function () {
        panelheight = $('#thank_you').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: 500
        }).scrollTo($('#thank_you'), 800);
    });
	/*submit_subscribe_button click*/
	/*panel_header click*/
    $(".psq_page_placeholder .psq_main_container .psq_main_container_trengs_right .psq_main_container_trengs_right_panels .panel_header").click(function () {
        original_height = $(this).next().outerHeight();
        if ($(this).hasClass("panel_header_open")) {
            $(this).removeClass("panel_header_open").addClass("panel_header_close").next().hide().next().hide()
        }
        else {
            $(this).removeClass("panel_header_close").addClass("panel_header_open").next().show().css({
                height: original_height - 40
            }).next().show().corner("bottom 10px");
        }
    })
	/*panel_header click*/
	/*By_clients click*/
    $(".By_clients").click(function () {
        $(".go_to_next_clients").removeClass('display-none').addClass('display-block');
    });
	/*By_clients click*/
	/*go_to_next_clients click*/
    $(".go_to_next_clients").click(function () {
        $(this).hide();
        $(".go_to_previous_clients").show();
        $(".next_clients").hide();
        $(".previous_clients").show();
    });
	/*go_to_next_clients click*/
	/*go_to_previous_clients click*/
    $(".go_to_previous_clients").click(function () {
        $(this).hide();
        $(".go_to_next_clients").show();
        $(".previous_clients").hide();
        $(".next_clients").show();
    });
	/*go_to_previous_clients click*/
});
$(document).ready(function () {
	/*Treack url n fire*/
    if (file_name == "index.php" || source_name == "http://peppersquare.net/" || source_name == "http://centos5.peppersquare.com/" || source_name == "http://www.peppersquare.com/" || source_name == "http://peppersquare.com/" || source_name == "http://localhost/" || source_name == "http://psq-ranjoy1/") {} else if (file_name == "pepper_square_strategy_planning.php" || file_name == "pepper_square_ideation.php" || file_name == "pepper_square_branding.php" || file_name == "pepper_square_account_planning.php" || file_name == "pepper_square_marketing_media_strategy.php" || file_name == "pepper_square_analytics.php" && source_anchor == null && source_query == null) {
        $(".menu_strategy_planning a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_strategy_planning").html('<div class="psq_norm_menu_seperation_sel"></div>');
    }
    else if (file_name == "pepper_square_strategy_planning.php" && source_query == "go_to_Ideation") {
        $(".menu_strategy_planning a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_strategy_planning").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(this).attr("title", "pepper square - strategy & planning - ideation");
        panelheight = $('#Ideation').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Ideation'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_strategy_planning.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">strategy & planning</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">ideation</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Ideation").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
   else if (file_name == "pepper_square_strategy_planning.php" && source_query == "go_to_Branding") {
        $(".menu_strategy_planning a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_strategy_planning").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(this).attr("title", "pepper square - strategy & planning - branding");
        panelheight = $('#Branding').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Branding'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_strategy_planning.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">strategy & planning</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">branding</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Branding").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_strategy_planning.php" && source_query == "go_to_Account_planning") {
        $(this).attr("title", "pepper square - strategy & planning - account planning");
        $(".menu_strategy_planning a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_strategy_planning").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Account_planning').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Account_planning'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_strategy_planning.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">strategy & planning</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">account planning</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Account_planning").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_strategy_planning.php" && source_query == "go_to_Marketing_Media_strategy") {
        $(this).attr("title", "pepper square - strategy & planning - marketing + media strategy");
        $(".menu_strategy_planning a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_strategy_planning").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Marketing_Media_strategy').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Marketing_Media_strategy'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_strategy_planning.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">strategy & planning</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">marketing + media strategy</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Marketing_Media_strategy").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_strategy_planning.php" && source_query == "go_to_Analytics") {
        $(this).attr("title", "pepper square - strategy & planning - analytics");
        $(".menu_strategy_planning a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_strategy_planning").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Marketing_Media_strategy').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Analytics'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_strategy_planning.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">strategy & planning</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">analytics</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Analytics").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_advertising_branding.php"  || file_name == "pepper_square_digital_media_planning_buying.php" || file_name == "pepper_square_affinity_affiliate_marketing.php" || file_name == "pepper_square_display_ad_creative.php" || file_name == "pepper_square_microsites.php" && source_anchor == null) {
        $(".menu_advertising_branding a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_strategy_planning").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_advertising_branding").html('<div class="psq_norm_menu_seperation_sel"></div>');
    }
    else if (file_name == "pepper_square_advertising_branding.php" && source_anchor == "go_to_Digital_media_planning_buying") {
        $(this).attr("title", "pepper square - advertising & branding - digital media planning + buying");
        $(".menu_advertising_branding a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_strategy_planning").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_advertising_branding").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Digital_media_planning_Buying').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Digital_media_planning_Buying'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_advertising_branding.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">advertising & branding</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">digital media planning + buying</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Digital_media_planning_Buying").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_advertising_branding.php" && source_anchor == "go_to_Affinity_Affiliate_marketing") {
        $(this).attr("title", "pepper square - advertising & branding - affinity + affiliate marketing");
        $(".menu_advertising_branding a").removeClass("color_012954").addClass("color_ff0000");

        $(".seperation_strategy_planning").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_advertising_branding").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Affinity_Affiliate_marketing').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Affinity_Affiliate_marketing'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_advertising_branding.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">advertising & branding</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">affinity + affiliate marketing</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Affinity_Affiliate_marketing").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_advertising_branding.php" && source_anchor == "go_to_Display_ad_creative") {
        $(this).attr("title", "pepper square - advertising & branding - display ad creative");
        $(".menu_advertising_branding a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_strategy_planning").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_advertising_branding").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Display_ad_creative').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Display_ad_creative'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_advertising_branding.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">advertising & branding</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">display ad creative</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Display_ad_creative").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_advertising_branding.php" && source_anchor == "go_to_Microsites") {
        $(this).attr("title", "pepper square - advertising & branding - microsites");
        $(".menu_advertising_branding a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_strategy_planning").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_advertising_branding").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Microsites').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Microsites'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_advertising_branding.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">advertising & branding</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">microsites</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Microsites").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_experience_design.php" || file_name == "pepper_square_corporate_sites.php" || file_name == "pepper_square_b2b_sites.php" || file_name == "pepper_square_b2c_sites.php" || file_name == "pepper_square_ecommerce_sites.php" && source_anchor == null) {
        $(".menu_experience_design a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_advertising_branding").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_experience_design").html('<div class="psq_norm_menu_seperation_sel"></div>');
    }
    else if (file_name == "pepper_square_experience_design.php" && source_anchor == "go_to_Corporate_sites") {
        $(this).attr("title", "pepper square - experience design - corporate sites");
        $(".menu_experience_design a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_advertising_branding").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_experience_design").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Corporate_sites').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Corporate_sites'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_experience_design.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">experience design</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">corporate sites</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Corporate_sites").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_experience_design.php" && source_anchor == "go_to_B2B_sites") {
        $(this).attr("title", "pepper square - experience design - b2b sites");
        $(".menu_experience_design a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_advertising_branding").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_experience_design").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#B2B_sites').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#B2B_sites'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_experience_design.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">experience design</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">b2b sites</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .B2B_sites").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_experience_design.php" && source_anchor == "go_to_B2C_sites") {

        $(this).attr("title", "pepper square - experience design - b2c sites");
        $(".menu_experience_design a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_advertising_branding").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_experience_design").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#B2C_sites').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#B2C_sites'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_experience_design.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">experience design</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">b2c sites</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .B2C_sites").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_experience_design.php" && source_anchor == "go_to_eCommerce_sites") {
        $(this).attr("title", "pepper square - experience design - ecommerce sites");
        $(".menu_experience_design a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_advertising_branding").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_experience_design").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#eCommerce_sites').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#eCommerce_sites'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_experience_design.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">experience design</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">ecommerce sites</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .eCommerce_sites").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_emerging_media.php" || file_name == "pepper_square_social_media.php" || file_name == "pepper_square_mobile.php" || file_name == "pepper_square_interactive_viral_videos.php" || file_name == "pepper_square_blogs.php" && source_anchor == null) {
        $(".menu_emerging_media a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_emerging_media").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_experience_design").html('<div class="psq_norm_menu_seperation_sel"></div>');
    }
    else if (file_name == "pepper_square_emerging_media.php" && source_anchor == "go_to_Social_media") {
        $(".menu_emerging_media a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_emerging_media").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_experience_design").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(this).attr("title", "pepper square - emerging media - social media");
        panelheight = $('#Social_media').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Social_media'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_emerging_media.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">emerging media</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">social media</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Social_media").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_emerging_media.php" && source_anchor == "go_to_Mobile") {
        $(this).attr("title", "pepper square - emerging media - mobile");
        $(".menu_emerging_media a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_emerging_media").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_experience_design").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Mobile').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Mobile'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_emerging_media.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">emerging media</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">mobile</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Mobile").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_emerging_media.php" && source_anchor == "go_to_Interactive_viral_videos") {
        $(this).attr("title", "pepper square - emerging media - interactive viral videos");
        $(".menu_emerging_media a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_emerging_media").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_experience_design").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Interactive_viral_videos').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Interactive_viral_videos'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_emerging_media.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">emerging media</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">interactive viral videos</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Interactive_viral_videos").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_emerging_media.php" && source_anchor == "go_to_Blogs") {
        $(this).attr("title", "pepper square - sitemap - blogs");
        $(".menu_emerging_media a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_emerging_media").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_experience_design").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Blogs').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Blogs'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_emerging_media.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">emerging media</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">blogs</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Blogs").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_user_interface_lab.php" || file_name == "pepper_square_user_interface_mobile.php" || file_name == "pepper_square_user_interface_web_applications.php" || file_name == "pepper_square_user_interface_kiosk.php" && source_anchor == null) {
        $(".menu_user_interface_lab a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_emerging_media").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_user_interface_lab").html('<div class="psq_norm_menu_seperation_sel"></div>');
    }
    else if (file_name == "pepper_square_user_interface_lab.php" && source_anchor == "go_to_Mobile") {
        $(this).attr("title", "pepper square - user interface lab - mobile");
        $(".menu_user_interface_lab a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_emerging_media").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_user_interface_lab").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#u_Mobile').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#u_Mobile'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_user_interface_lab.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">user interface lab</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">mobile</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .u_Mobile").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_user_interface_lab.php" && source_anchor == "go_to_Web_applications") {
        $(this).attr("title", "pepper square - user interface lab - web applications");
        $(".menu_user_interface_lab a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_emerging_media").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_user_interface_lab").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Web_applications').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Web_applications'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_user_interface_lab.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">user interface lab</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">web applications</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Web_applications").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_user_interface_lab.php" && source_anchor == "go_to_Kiosk") {
        $(this).attr("title", "pepper square - user interface lab - kiosk");
        $(".menu_user_interface_lab a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_emerging_media").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_user_interface_lab").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Kiosk').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Kiosk'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_user_interface_lab.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">user interface lab</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">kiosk</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Kiosk").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_search_marketing.php" || file_name == "pepper_square_search_engine.php" || file_name == "pepper_square_paid_search.php" || file_name == "pepper_square_feed_management.php" && source_anchor == null) {
        $(".menu_search_marketing a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_search_marketing").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_user_interface_lab").html('<div class="psq_norm_menu_seperation_sel"></div>');
    }
    else if (file_name == "pepper_square_search_marketing.php" && source_anchor == "go_to_Search_Engine_Optimization") {
        $(this).attr("title", "pepper square - search marketing - search engine optimization");
        $(".menu_search_marketing a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_search_marketing").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_user_interface_lab").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Search_Engine_Optimization').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Search_Engine_Optimization'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_search_marketing.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">search marketing</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">search engine optimization</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Search_Engine_Optimization").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_search_marketing.php" && source_anchor == "go_to_Paid_search") {
        $(this).attr("title", "pepper square - search marketing - paid search");
        $(".menu_search_marketing a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_search_marketing").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_user_interface_lab").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Search_Engine_Optimization').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Paid_search'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_search_marketing.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">search marketing</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">paid search</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Paid_search").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_search_marketing.php" && source_anchor == "go_to_Feed_management") {
        $(this).attr("title", "pepper square - search marketing - feed management");
        $(".menu_search_marketing a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_search_marketing").html('<div class="psq_norm_menu_seperation_sel"></div>');
        $(".seperation_user_interface_lab").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Feed_management').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Feed_management'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_search_marketing.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">search marketing</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">paid search</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Feed_management").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_technology_development.php" || file_name == "pepper_square_web_application_development.php" || file_name == "pepper_square_content_management.php" || file_name == "pepper_square_business_intelligence.php" || file_name == "pepper_square_performance_transformation.php" && source_anchor == null) {
        $(".menu_technology_development a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_search_marketing").html('<div class="psq_norm_menu_seperation_sel"></div>');
    }
    else if (file_name == "pepper_square_technology_development.php" && source_anchor == "go_to_Web_application_development") {
        $(this).attr("title", "pepper square - technology & development - web application development");
        $(".menu_technology_development a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_search_marketing").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Web_application_development').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Web_application_development'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_technology_development.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">technology & development </a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">web application development</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Web_application_development").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_technology_development.php" && source_anchor == "go_to_Content_management") {
        $(this).attr("title", "pepper square - technology & development - web application development");
        $(".menu_technology_development a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_search_marketing").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Content_management').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Content_management'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_technology_development.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">technology & development</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">content management</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Content_management").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_technology_development.php" && source_anchor == "go_to_Business_intelligence") {
        $(this).attr("title", "pepper square - technology & development - business intelligence");
        $(".menu_technology_development a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_search_marketing").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Business_intelligence').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Business_intelligence'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_technology_development.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">technology & development</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">business intelligence</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Business_intelligence").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_technology_development.php" && source_anchor == "go_to_Performance_transformation") {
        $(this).attr("title", "pepper square - technology & development - business intelligence");
        $(".menu_technology_development a").removeClass("color_012954").addClass("color_ff0000");
        $(".seperation_search_marketing").html('<div class="psq_norm_menu_seperation_sel"></div>');
        panelheight = $('#Performance_transformation').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Performance_transformation'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_technology_development.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">technology & development</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">performance transformation</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Performance_transformation").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
    }
    else if (file_name == "pepper_square_subscribe_to_our_newsletter.php" || file_name == "subscriber_confirm_success.php") {} else if (file_name == "pepper_square_copyright.php") {} else if (file_name == "pepper_square_privacy_policy.php") {} else if (file_name == "pepper_square_sitemap.php") {} else if (file_name == "search.php") {} else if (source_anchor == "go_to_team") {
        $(this).attr("title", "pepper square - who are we? - team");
        panelheight = $('#team').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#team'), "fast", function () {
            $(".team_panel_description_left_shadow,.team_panel_description_right_shadow,.team_panel_thumb_left_shadow").show()
        });
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">team</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .team").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_team'), "fast");
    }
    else if (source_anchor == "go_to_whats_in_a_name") {
        $(this).attr("title", "pepper square - who are we? - what's in name?");
        panelheight = $('#whats_in_name').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#whats_in_name'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">what&acute;s in name?</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .whats_in_name").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_what_in_name'), "fast");
    }
	else if (source_anchor == "go_to_logo_reminder") {
        $(this).attr("title", "pepper square - who are we? - what's in a name? - logo reminds");
        panelheight = $('#logo_reminds').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#logo_reminds'), "fast");
		$(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="who are we?">who are we?</a> | <a href="pepper_square_whats_in_name.php" id="a" class="connect_me_to_whats_in_name Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="what&rsquo;s in a name?">what&rsquo;s in a name?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">logo reminds me of</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .whats_in_name").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_reminds'), "fast");
    }
    else if (source_anchor == "go_to_culture") {
        $(this).attr("title", "pepper square - who are we? - culture");
        panelheight = $('#culture').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#culture'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">culture</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .culture").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_culture'), "fast");
    }
    else if (source_anchor == "go_to_Careers") {
        $(this).attr("title", "pepper square - who are we? - careers");
        panelheight = $('#Careers').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Careers'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">careers</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Careers").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_careers'), "fast");
    }
    else if (source_anchor == "career_success") {
        $(this).attr("title", "pepper square - who are we? - careers");
        panelheight = 200;
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#Careers'), "fast");
        $(".career_content").hide();
        $(".career_thanks_progess").show();
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">careers</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .Careers").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_careers'), "fast");
    }
    else if (source_anchor == "go_to_press_room") {
        $(this).attr("title", "pepper square - who are we? - press room");
        panelheight = $('#press_room').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#press_room'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">press room</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .press_room").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_press_room'), "fast");
    }
	else if (source_anchor == "go_to_event_and_speaker_requests") {
        $(this).attr("title", "pepper square - who are we? - event & speaker request");
        panelheight = $('#event_speaker_requests').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#event_speaker_requests'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">event &amp; speaker request</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .event_speaker_requests").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_event_speaker'), "fast");
    }
	else if (source_anchor == "pepper_square_bags_the_limelight") {
        $(this).attr("title", "pepper square - who are we? - press releases");
        panelheight = $('#press_releases').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#press_releases'), "fast", function () {
            $(".pepper_square_bags_the_limelight").next().slideDown('fast', function () {
                press_room_height = $('#press_releases').height();
                goto_here = $(this).prev();
                $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
                    'height': press_room_height
                }, {
                    queue: false,
                    duration: "fast",
                    complete: function () {
                        $.scrollTo($(goto_here), "fast", {
                            axis: 'y'
                        });
                    }
                })
            });
        });
        $(".psq_bread_crumb").hide();
		$(".psq_bread_crumb_press_room").show();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .press_releases").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
		$(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_press_release'), "fast");
		document.title = "pepper square - who are we? - press room - press releases";
    }
	else if (source_anchor == "The_upside_of_online") {
        $(this).attr("title", "pepper square - who are we? - press releases");
        panelheight = $('#press_room').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#press_room'), "fast", function () {
            $(".The_upside_of_online").next().slideDown('fast', function () {
                press_room_height = $('#press_room').height();
                goto_here = $(this).prev();
                $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
                    'height': press_room_height
                }, {
                    queue: false,
                    duration: "fast",
                    complete: function () {
                        $.scrollTo($(goto_here), "fast", {
                            axis: 'y'
                        });
                    }
                })
            });
        });
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">press room</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .press_room").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_press_room'), "fast");
		document.title = "pepper square - who are we? - press room";
    }
    else if (source_anchor == "pepper_square_completes_7_years") {
        $(this).attr("title", "pepper square - who are we? - press room");
        panelheight = $('#press_releases').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#press_releases'), "fast", function () {
            $(".pepper_square_completes_7_years").next().slideDown('fast', function () {
                press_room_height = $('#press_releases').height();
                goto_here = $(this).prev();
                $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
                    'height': press_room_height
                }, {
                    queue: false,
                    duration: "fast",
                    complete: function () {
                        $.scrollTo($(goto_here), "fast", {
                            axis: 'y'
                        });
                    }
                })
            });
        });
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">press releases</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .press_releases").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_press_room'), "fast");
    }
    else if (source_anchor == "Prestigious_5th_Annual_Davy_Awards") {
        $(this).attr("title", "pepper square - who are we? - press room");
        panelheight = $('#press_releases').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#press_releases'), "fast", function () {
            $(".Prestigious_5th_Annual_Davy_Awards").next().slideDown('fast', function () {
                press_room_height = $('#press_releases').height();
                goto_here = $(this).prev();
                $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
                    'height': press_room_height
                }, {
                    queue: false,
                    duration: "fast",
                    complete: function () {
                        $.scrollTo($(goto_here), "fast", {
                            axis: 'y'
                        });
                    }
                })
            });
        });
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">press releases</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .press_releases").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_press_room'), "fast");
    }
    else if (file_name == "pepper_square_our_work.php" && source_anchor == null) {
        $(this).attr("title", "pepper square - our work");
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_our_work'), "fast");
    }
    else if (file_name == "pepper_square_our_work.php" && source_anchor == "go_to_By_clients") {
        $(this).attr("title", "pepper square - our work - by clients");
        source = "/images/illustrations/our_work_peppersquare.jpg";
        altText = "our work";
        image_place = ".psq_illustration";
        $(image_place).imageLoader(source, altText, image_place);
        panelheight = $('#By_clients').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#By_clients'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_our_work.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">our work</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">by clients</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .By_clients").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".go_to_next_clients").removeClass('display-none').addClass('display-block');
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_clients'), "fast");
    }
    else if (file_name == "pepper_square_download.php" && source_anchor == null) {
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_download'), "fast");
    }
    else if (file_name == "pepper_square_download.php" && source_anchor == "go_to_case_studies") {
        $(this).attr("title", "pepper square - downloads - case studies");
        panelheight = $('#case_studies').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#case_studies'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_download.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">downloads</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">case studies</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .case_studies").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_case_study'), "fast");
    }
    else if (file_name == "pepper_square_download.php" && source_anchor == "peppersquare_iteamic_case_study") {
        $(this).attr("title", "pepper square - downloads - case studies");
        panelheight = $('#case_studies').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#case_studies'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_download.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">downloads</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">case studies</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .case_studies").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".case_study_links_content_area").fadeOut("fast", function () {
            $(".iteamic_case_study").fadeIn();
            div_no = $('#support_tabMenu .container > div').index(this);
            $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
                'height': $(".iteamic_case_study").outerHeight() + 30
            }, {
                queue: false,
                duration: 500,
                complete: function () {
                    rotate_iteamic();
                }
            })
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_case_study'), "fast");
    }
    else if (file_name == "pepper_square_download.php" && source_anchor == "peppersquare_prokarma_case_study") {
        $(this).attr("title", "pepper square - downloads - case studies");
        panelheight = $('#case_studies').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#case_studies'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_download.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">downloads</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">case studies</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .case_studies").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".case_study_links_content_area").fadeOut("fast", function () {
            $(".prokarma_case_study").fadeIn();
            div_no = $('#support_tabMenu .container > div').index(this);
            $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
                'height': $(".prokarma_case_study").outerHeight() + 30
            }, {
                queue: false,
                duration: 500,
                complete: function () {}
            })
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_case_study'), "fast");
    }
    else if (file_name == "pepper_square_download.php" && source_anchor == "peppersquare_seraja_case_study") {
        $(this).attr("title", "pepper square - downloads - case studies");
        panelheight = $('#case_studies').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#case_studies'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_download.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">downloads</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">case studies</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .case_studies").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".case_study_links_content_area").fadeOut("fast", function () {
            $(".seraja_case_study").fadeIn();
            div_no = $('#support_tabMenu .container > div').index(this);
            $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
                'height': $(".seraja_case_study").outerHeight() + 30
            }, {
                queue: false,
                duration: 500,
                complete: function () {
                    rotate_seraja();
                }
            })
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_case_study'), "fast");
    }
    else if (file_name == "pepper_square_download.php" && source_anchor == "go_to_whitepaper") {
        $(this).attr("title", "pepper square - downloads - whitepapers");
        panelheight = $('#whitepapers').height();
        $("#support_tabMenu").fadeIn();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#whitepapers'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_download.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">downloads</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">whitepapers</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .whitepapers").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_whitepapper'), "fast");
    }
    else if (file_name == "pepper_square_connect_with_us.php" && source_anchor == null) {
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_connect'), "fast");
    }
    else if (file_name == "pepper_square_connect_with_us.php" && source_anchor == "go_to_directions_to_peppersquare") {
        $(this).attr("title", "pepper square - connect - directions");
        panelheight = $('#directions_to_peppersquare').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#directions_to_peppersquare'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000">home</a> | <a href="pepper_square_connect_with_us.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un">connect with us</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">directions</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .directions_to_peppersquare").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_directions'), "fast");
		
    }
	/*Treack url n fire*/
	/*connect_me_to_whats_in_name click*/
    $(".connect_me_to_whats_in_name").click(function () {
        $(".team_panel_description_left_shadow,.team_panel_description_right_shadow,.team_panel_thumb_left_shadow").hide();
        document.title = "pepper square - who are we? - what's in a name?";
        panelheight = $('#whats_in_name').height();
        $(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
            'height': panelheight
        }, {
            queue: false,
            duration: "fast"
        }).scrollTo($('#whats_in_name'), "fast");
        $(".psq_bread_crumb").html('<a href="index.php" class="Trebuchet text_decoration_underline font_12 color_000000" title="home">home</a> | <a href="pepper_square_who_are_we.php" class="Trebuchet text_decoration_underline font_12 color_000000 text_decoration_un" title="who are we?">who are we?</a> | <span class="Trebuchet text_decoration_none font_weight_bold font_12 color_000000 text_decoration_none">what&rsquo;s in a name?</span>');
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container").find(".sel").stop().animate({
            backgroundPosition: "(-970px -160px)"
        }, {
            duration: 500,
            complete: function () {
                $(this).css({
                    backgroundPosition: "-970px 0"
                })
            }
        }).removeClass("sel");
        $(".psq_page_placeholder .psq_main_container .psq_main_container_right .tabMenu .container .whats_in_name").addClass("sel").stop().animate({
            backgroundPosition: "(-970px -65px)"
        }, {
            duration: "fast",
            complete: function () {}
        });
        $(".psq_page_placeholder .psq_everything_else_illustration").stop().scrollTo($('.illustration_what_in_name'), "fast");
        psq_everything_else_container_close();
        $(".left_page_shadow").css({
            height: panelheight
        });
        $(".right_page_shadow").css({
            height: panelheight
        })
    });
	/*connect_me_to_whats_in_name click*/
});

/*userdefined functions*/
function handleSliderChange(e, ui) {
    maxScroll = $("#content-scroll").attr("scrollWidth") - $("#content-scroll").width();
    $("#content-scroll").animate({
        scrollLeft: ui.value * (maxScroll / 100)
    }, 1000);
}

function handleSliderSlide(e, ui) {
    maxScroll = $("#content-scroll").attr("scrollWidth") - $("#content-scroll").width();
    $("#content-scroll").attr({
        scrollLeft: ui.value * (maxScroll / 100)
    });
}
function common_icon_casestudies_over() {
    $(".icon_casestudies_norm").hide();
    $(".icon_casestudies_hover").show();
}

function common_icon_casestudies_out() {
    $(".icon_casestudies_hover").hide();
    $(".icon_casestudies_norm").show();
}

function common_icon_whitepapers_over() {
    $(".icon_whitepapers_norm").hide();
    $(".icon_whitepapers_hover").show();
}

function common_icon_whitepapers_out() {
    $(".icon_whitepapers_hover").hide();
    $(".icon_whitepapers_norm").show();
}

function do_nothing() {}

function psq_everything_else_container_close() {
    $(".psq_everything_else_container").animate({
        marginTop: -357
    }, {
        duration: 'slow',
        easing: 'easeInExpo',
        complete: function () {
            $(".jm_fire_window").hide()
        }
    })
}

function meeting_panel_container_close() {
    $(".meeting_panel_container").animate({
        marginTop: -602
    }, {
        duration: 'slow',
        easing: 'easeInExpo',
        complete: function () {
            $(".jm_fire_window").hide()
        }
    })
}

function casestudy_container_close() {
    $(".psq_casestudy_container").animate({
        marginTop: -602
    }, {
        duration: 'slow',
        easing: 'easeInExpo',
        complete: function () {
            $(".jm_fire_window_casestudy").hide();
            $(".psq_casestudy_container_biger_image img").attr("src", "");
        }
    })
}
$(".remove_portfolio_button6").click(function () {
    $(".remove_portfolio_button6").hide();
    $("#portfolio_file6").val("").show();
    $(".added_portfolio_file6").html("").hide();
});
$(".left_ico img").mouseover(function () {
    $(this).attr("src", "images/left-arrow-ro.gif");
}).mouseout(function () {
    $(this).attr("src", "images/left-arrow.gif");
});
$(".right_ico img").mouseover(function () {
    $(this).attr("src", "images/right-arrow-ro.gif");
}).mouseout(function () {
    $(this).attr("src", "images/right-arrow.gif");
});
$(".content-item img").click(function () {
    image_src = $(this).attr("src").replace("_thumb", "");
	$(".cs_image_viewer").attr("src",image_src);
    left = (screen.width / 2) - (901 / 2);
    top = (screen.height / 2) - (617 / 2);
    features = "height=600,width=920,scrollTo,resizable=1,scrollbars=1,location=1, top='+top+', left='+left+'";
    newwindow = window.open('pepper_square_casestudy_image_viewer.php?'+image_src, 'Popup', features);
    return false;
});
$(".left_ico img").mouseover(function () {
    $(this).attr("src", "images/left-arrow-ro.gif");
}).mouseout(function () {
    $(this).attr("src", "images/left-arrow.gif");
});
$(".right_ico img").mouseover(function () {
    $(this).attr("src", "images/right-arrow-ro.gif");
}).mouseout(function () {
    $(this).attr("src", "images/right-arrow.gif");
});
$(".sml_thumb_placeholder img").click(function () {
												
    screen_width = screen.width;
    psq_page_placeholder_whole_width = $(".psq_page_placeholder_whole").outerWidth();
    m_fire_window_width = psq_page_placeholder_whole_width + (screen_width - psq_page_placeholder_whole_width) / 2 - 12
    $(".jm_fire_window_casestudy").show().css({
        height: $(".psq_page_placeholder_whole").outerHeight(),
        width: jm_fire_window_width,
        opacity: 0.5
    });
    $(".psq_casestudy_container").animate({
        marginTop: 339
    }, {
        duration: 800,
        easing: 'easeOutBounce',
        complete: function () {}
    });
    image_src = $(this).attr("src").replace("_sml_thumb", "");
    $(".psq_casestudy_container_biger_image img").attr("src", image_src);
});
$(document).ready(function () {
    $(".left_ico img").hoverIntent({
        sensitivity: 7,
        interval: 100,
        over: left_feedback_navigation_mouseover,
        timeout: 0,
        out: do_nothing
    });
    $(".right_ico img").hoverIntent({
        sensitivity: 7,
        interval: 100,
        over: right_feedback_navigation_mouseover,
        timeout: 0,
        out: do_nothing
    });
});

function left_feedback_navigation_mouseover() {
    parent_div = $(this).parent().parent().attr("class").replace("casestudy_cs ", "");
    no_of_cs_portfolio = parseInt($("." + parent_div + " .content-holder .content-item_bunch").length);
	side_move = 2;
	current_cs_portfolio_position = 2;
    side_move_array = new Array;
    for (i = 1; i < no_of_cs_portfolio; i++) {
        side_move_array[i] = i;
        if (side_move == side_move_array[i]) {
            return false;
        }
        i = i + 2;
    }
    $("." + parent_div + " .left_ico  img").show();
    $("." + parent_div + " .right_ico  img").show();
    side_move = parseInt(current_cs_portfolio_position) - 1;
    $("." + parent_div + " .content-scroll").scrollTo($("." + parent_div + " .c" + side_move), 1000, {
        axis: 'x'
    }, {
        easing: 'easeOutBounce'
    });
    current_cs_portfolio_position = side_move;
    for (i = 1; i < no_of_cs_portfolio; i++) {
        side_move_array[i] = i;
        if (side_move == side_move_array[i]) {
            $("." + parent_div + " .left_ico  img").hide();
        }
        i = i + 2;
    }
}

function right_feedback_navigation_mouseover() {
    parent_div = $(this).parent().parent().attr("class").replace("casestudy_cs ", "");
    no_of_cs_portfolio = parseInt($("." + parent_div + " .content-holder .content-item_bunch").length);
	side_move = 1;
	current_cs_portfolio_position = 1;
    side_move_array = new Array;
    for (i = no_of_cs_portfolio; i > 1; i--) {
        side_move_array[i] = i;
        if (side_move == side_move_array[i]) {
            return false;
        }
        i = i - 2;
    }
    $("." + parent_div + " .left_ico  img").show();
    $("." + parent_div + " .right_ico  img").show();
    side_move = parseInt(current_cs_portfolio_position) + 1;
    $("." + parent_div + " .content-scroll").scrollTo($("." + parent_div + " .c" + side_move), 1000, {
        axis: 'x'
    }, {
        easing: 'easeOutBounce'
    });
    current_cs_portfolio_position = side_move;
    for (i = no_of_cs_portfolio; i > 1; i--) {
        side_move_array[i] = i;
        if (side_move == side_move_array[i]) {
            $("." + parent_div + " .right_ico  img").hide();
        }
        i = i - 2;
    }
}

function do_nothing() {}
function goOffAward()
{
	$(".psq_award_container").animate({
		marginTop: -750
	}, {
		duration: 800,
		easing: 'easeInExpo',
		complete: function () 
		{
			$(".jm_fire_window_award").fadeOut();
		}
	})
}
/*userdefined functions*/
/*validation and server side scripting functions*/
$(document).ready(function () {
    $('.psq_fix_a_meeting_button').click(function () {
        var fname = $("#fname").val();
        var lname = $("#lname").val();
        var designation = $("#designation").val();
        var company = $("#company").val();
        var phone = $("#phone").val();
        var email = $("#email1").val();
        var message = $("#message").val();
		var time_call_hours = $("#time_call_hours").val();
		var time_call_mins = $("#time_call_mins").val();
		var time_call_am_pm = $("#time_call_am_pm").val();
        var letters = /^[a-zA-Z]+$/;
		var letters_space = /^[a-zA-Z\s]+$/;
        var isphone = /^[0-9\-]+$/;
        var emailRegEx = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
        var msg = /^[a-zA-Z0-9\*\+\-\_\!\@\#\$\%\^\&\(\)\.\?\;\:\,\/\`\~\{\}\[\]\|\=\/\\\s*]+$/;
        var Position = company.indexOf("&");
        var Position1 = company.indexOf(".");
        var Position2 = company.indexOf("_");
        var Position3 = company.indexOf("-");
        var Position4 = company.indexOf(",");
        var changeFields = $("input#recaptcha_challenge_field").val();
        var responseFields = $("input#recaptcha_response_field").val();
        if (fname == null || fname == "") {
            alert("Please enter your first name");
            $("#fname").focus();
            return false;
        }
        else if (!fname.match(letters)) {
            alert("Please enter your first name with alphabets only");
            $("#fname").focus();
            return false;
        }
        else if (lname == null || lname == "") {
            alert("Please enter your last name");
            $("#lname").focus();
            return false;
        }
        else if (!lname.match(letters)) {
            alert("Please enter your last name with alphabets only");
            $("#lname").focus();
            return false;
        }
        else if (designation == null || designation == "") {
            alert("Please enter your designation");
            $("#designation").focus();
            return false;
        }
        else if (!designation.match(letters_space)) {
            alert("Please enter your designation with alphabets only");
            $("#designation").focus();
            return false;
        }
        else if (company == null || company == "") {
            alert("Please enter your company name");
            $("#company").focus();
            return false;
        }
        else if (!company.match(msg)) {
            alert("(Single and double quotes,<,>) \n These special characters are not allowed in the company field.");
            $("#company").focus();
            return false;
        }
        else if (Position == 0 || Position1 == 0 || Position2 == 0 || Position3 == 0 || Position4 == 0) {
            alert("Enter correct company name");
            $("#company").focus();
            return false;
        }
        else if (phone == null || phone == "") {
            alert("Please enter your phone number");
            $("#phone").focus();
            return false;
        }
        else if (!phone.match(isphone)) {
            alert("Phone field need to allow numbers only");
            $("#phone").focus();
            return false;
        }
        else if (email == null || email == "") {
            alert("Please enter your email id");
            $("#email1").focus();
            return false;
        }
        else if (!email.match(emailRegEx)) {
            alert("Please enter your valid email id ");
            $("#email1").focus();
            return false;
        }
        else if (message == "" || message == null) {
            alert("Please enter your requirements");
            $("#message").focus();
            return false;
        }
        else if (!message.match(msg)) {
            alert("(Single and double quotes,<,>) \n These special characters are not allowed in the message field.");
            $("#message").focus();
            return false;
        }
		else if((time_call_hours=="00")&&(time_call_mins=="00")){
			alert("Please select your preferred time to call");
            $("#time_call_hours").focus();
            return false;
			
		}
        else if (responseFields == "" || responseFields == null) {
            alert("Please enter your verification code");
            $("#responseFields").focus();
            return false;
        }
		
        else {
            $('.meeting_panel_text_container_form').hide();
            $('.meeting_panel_text_container_process').fadeIn();
            var screen_width = screen.width;
            var psq_page_placeholder_whole_width = $(".psq_page_placeholder_whole").outerWidth();
            var jm_fire_window_width = psq_page_placeholder_whole_width + (screen_width - psq_page_placeholder_whole_width) / 2 - 10
            $(".jm_fire_window_again").show().css({
                height: $(".psq_page_placeholder_whole").outerHeight(),
                width: jm_fire_window_width,
                opacity: 0
            });
        }
        var info = "fname=" + fname + "&lname=" + lname + "&designation=" + designation + "&company=" + company + "&phone=" + phone + "&email=" + email + "&message=" + message +"&time_call_hours=" + time_call_hours +"&time_call_mins="+time_call_mins+"&time_call_am_pm="+time_call_am_pm+ "&recaptcha_challenge_field=" + changeFields + "&recaptcha_response_field=" + responseFields;
        $.ajax({
            type: "POST",
            url: "psq_meeting.php",
            data: info,
            success: function (msg) {
				var m=new Array();
				m=msg.split('=');
				var m1=m[1];
				//alert(m[1]);
                if (m1 == 'successfultrue') {
                     $(".jm_fire_window_again").hide()
                     $('.meeting_panel_text_container_process').hide();
                     $('.meeting_panel_text_container_thanks').fadeIn();
					 /**** Clear form fields ****/
					 $("#fname").val('');
					 $("#lname").val('');
					 $("#designation").val('');
					 $("#company").val('');
					 $("#phone").val('');
					 $("#email1").val('');
					 $("#message").val('');
					 Recaptcha.reload();
					 /**** Clear form fields ****/
                }
                else {
                    $(".jm_fire_window_again").hide()
                    $('.meeting_panel_text_container_process').hide();
                    $('.meeting_panel_text_container_thanks').hide();
                    $('.meeting_panel_text_container_form').fadeIn();
                    Recaptcha.reload();
                    alert("Your verification code is wrong");
                    return false;
                }
            }
        });
    });
});
$(document).ready(function () {
    $('.psq_connect_button').click(function () {
        var first_name = $("#first_name").val();
        var last_name = $("#last_name").val();
        var company_name = $("#company_name").val();
        var city = $("#city").val();
        var country = $("#country").val();
        var telephone = $("#telephone").val();
        var email = $("#email").val();
        var message = $("#message").val();
        var recaptcha = $("#recaptcha_response_field").val();
        var letters = /^[a-zA-Z]+$/;
		var letters_space = /^[a-zA-Z\s]+$/;
        var iscompany = /^[a-zA-Z_.,&()\-\ ]+$/;
        var isphone = /^[0-9\-]+$/;
        var emailRegEx = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
        var msg = /^[a-zA-Z0-9\*\+\-\_\!\@\#\$\%\^\&\(\)\.\?\;\:\,\/\`\~\{\}\[\]\|\=\/\\\s*]+$/;
		var commentmsg = /^[a-zA-Z0-9~!@#$%^&*()_+|{}:;[]="'<>\/ ]+$/;
        var Position = company_name.indexOf("&");
        var Position1 = company_name.indexOf(".");
        var Position2 = company_name.indexOf("_");
        var Position3 = company_name.indexOf("-");
        var Position4 = company_name.indexOf(",");
        var changeFields = $("input#recaptcha_challenge_field").val();
        var responseFields_1 = $("input#recaptcha_response_field").val();
        if (first_name == null || first_name == "") {
            alert("Please enter your first name");
            $("#first_name").focus();
            return false;
        }
        else if (!first_name.match(letters)) {
            alert("Please enter your first name with alphabets only");
            $("#first_name").focus();
            return false;
        }
        else if (last_name == null || last_name == "") {
            alert("Please enter your last name");
            $("#last_name").focus();
            return false;
        }
        else if (!last_name.match(letters)) {
            alert("Please enter your last name with alphabets only");
            $("#last_name").focus();
            return false;
        }
        else if (company_name == null || company_name == "") {
            alert("Please enter your company name");
            $("#company").focus();
            return false;
        }
        else if (!company_name.match(msg)) {
            alert("(Single and double quotes,<,>) \n These special characters are not allowed in the message field.");
            $("#company_name").focus();
            return false;
        }
        else if (Position == 0 || Position1 == 0 || Position2 == 0 || Position3 == 0 || Position4 == 0) {
            alert("Enter correct company name");
            $("#company_name").focus();
            return false;
        }
        else if (city == null || city == "") {
            alert("Please enter your city");
            $("#city").focus();
            return false;
        }
        else if (!city.match(letters_space)) {
            alert("Please enter your city with alphabets only");
            $("#city").focus();
            return false;
        }
        else if (country == "select") {
            alert("Please select your country");
            $("#country").focus();
            return false;
        }
        else if (telephone == null || telephone == "") {
            alert("Please enter your phone number");
            $("#telephone").focus();
            return false;
        }
        else if (!telephone.match(isphone)) {
            alert("Phone field need to allow numbers only");
            $("#telephone").focus();
            return false;
        }
        else if (email == null || email == "") {
            alert("Please enter your email id");
            $("#email").focus();
            return false;
        }
        else if (!email.match(emailRegEx)) {
            alert("Please enter your valid email id ");
            $("#email").focus();
            return false;
        }
        else if (message == "" || message == null) {
            alert("Please enter your message");
            $("#message").focus();
            return false;
        }
        else if (!message.match(msg)) {
            alert("(Single and double quotes,<,>) \n These special characters are not allowed in the message field.");
            $("#message").focus();
            return false;
        }
        else if (responseFields_1 == "" || responseFields_1 == null) {
            alert("Please enter your verification code");
            $("#responseFields_1").focus();
            return false;
        }
        else {
            $(".fbfaf9_box").hide();
            $(".connect_progress").fadeIn();
        }
        var info = "first_name=" + first_name + "&last_name=" + last_name + "&company_name=" + company_name + "&city=" + city + "&country=" + country + "&telephone=" + telephone + "&email=" + email + "&message=" + message;
        $.ajax({
            type: "POST",
            url: "contact_form.php",
            data: info,
            success: function () {
                $(".connect_progress").hide();
                $(".connect_thanks").fadeIn();
            }
        });
    });
});

//*********************************************** Event Request Form ********************************************************

$(document).ready(function () {
    $('.psq_review_request_button').click(function () {
        var e_type = $("#event_type").val();
        var e_month = $("#event_month").val();
        var e_day = $("#event_day").val();
        var e_year = $("#event_year").val();
        var sess_format = $("#session_format").val();
        var e_title = $("#event_title").val();
        var company = $("#company").val();
        var event_location = $("#event_location").val();
        var event_req = $("#event_requestor").val();
        var mail = $("#email_val").val();
        var ph = $("#phone").val();
        var event_foc = $("#event_focus").val();
        var target = $("#target_market_audience").val();
        var attend = $("#number_of_attendees").val();
        var media = $("#media_coverage").val();
        var aud_demog = $("#audience_demographics").val();
        var event_speak = $("#event_speakers").val();
        var event_top = $("#event_topic").val();
        var emailPat = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
        var msg = /^[a-zA-Z0-9\*\+\-\_\!\@\#\$\%\^\&\(\)\.\?\;\:\,\/\`\~\{\}\[\]\|\=\/\\\s*]+$/;
        var changeFields = $("input#recaptcha_challenge_field").val();
        var responseFields = $("input#recaptcha_response_field").val();
        if (e_type == "") {
            alert("Please select the event type");
            $("#event_type").focus();
            return false;
        }
        else if (e_month == "") {
            alert("Please select the event month");
            $("#event_month").focus();
            return false;
        }
        else if (e_day == "") {
            alert("Please select the event day");
            $("#event_day").focus();
            return false;
        }
        else if (e_year == "") {
            alert("Please select the event year");
            $("#event_year").focus();
            return false;
        }
        else if (sess_format == "") {
            alert("Please select the session format");
            $("#session_format").focus();
            return false;
        }
        else if (e_title == "") {
            alert("Please enter the event title");
            $("#event_title").focus();
            return false;
        }
        else if (!isText(e_title)) {
            alert("Event title should be in alphabets only");
            $("#event_title").focus();
            return false;
        }
        else if (company == "") {
            alert("Please enter your company");
            $("#company").focus();
            return false;
        }
        else if (!company.match(msg)) {
            alert("(Single and double quotes,<,>) \n These special characters are not allowed in the company field.");
            $("#company").focus();
            return false;
        }
        else if (event_req == "") {
            alert("Please enter the event requestor");
            $("#event_requestor").focus();
            return false;
        }
        else if (!isText(event_req)) {
            alert("Event requestor should be in alphabets only");
            $("#event_requestor").focus();
            return false;
        }
        else if (event_location == "") {
            alert("Please enter the event location");
            $("#event_location").focus();
            return false;
        }
        else if (!isText(event_location)) {
            alert("Event location should be in alphabets only");
            $("#event_location").focus();
            return false;
        }
        else if (mail == "") {
            alert("Please enter the mail id");
            $("#email_val").focus();
            return false;
        }
        else if (!mail.match(emailPat)) {
            alert("Please enter the valid email id");
            $("#email_val").focus();
            return false;
        }
        else if (ph == "") {
            alert("Please enter the phone number");
            $("#phone").focus();
            return false;
        }
        else if (!IsNumeric(ph)) {
            alert("Your phone numbers should be in numerics only");
            $("#phone").focus();
            return false;
        }
        else if (event_foc == "") {
            alert("Please enter the event focus ");
            $("#event_focus").focus();
            return false;
        }
        else if (!event_foc.match(msg)) {
            alert("(Single and double quotes,<,>) \n These special characters are not allowed in the event focus field.");
            $("#event_focus").focus();
            return false;
        }
        else if (target == "") {
            alert("Please select the market audience");
            $("#target_market_audience").focus();
            return false;
        }
        else if (attend == "") {
            alert("Please select the number of attendees ");
            $("#number_of_attendees").focus();
            return false;
        }
        else if (media == "") {
            alert("Please select the media coverage ");
            $("#media_coverage").focus();
            return false;
        }
        else if (aud_demog == "") {
            alert("Please enter the audience demographics");
            $("#audience_demographics").focus();
            return false;
        }
        else if (!aud_demog.match(msg)) {
            alert("(Single and double quotes,<,>) \n These special characters are not allowed in the audience demographics field.");
            $("#audience_demographics").focus();
            return false;
        }
        else if (event_speak == "") {
            alert("Please enter the event speaker");
            $("#event_speakers").focus();
            return false;
        }
        else if (!isText(event_speak)) {
            alert("Event speaker name should be in alphabets only");
            $("#event_speakers").focus();
            return false;
        }
        else if (event_top == "") {
            alert("Please enter the requested speaking topic ");
            $("#event_topic").focus();
            return false;
        }
        else if (!event_top.match(msg)) {
            alert("(Single and double quotes,<,>) \n These special characters are not allowed in the requested speaking topic field.");
            $("#event_topic").focus();
            return false;
        }
        else if ((document.getElementById("box0").checked == false) && (document.getElementById("box1").checked == false) && (document.getElementById("box2").checked == false) && (document.getElementById("box3").checked == false) && (document.getElementById("box4").checked == false)) {
            alert("Please select the travel expenses");
            $("#box4").focus();
            return false;
        }
       /*else if (responseFields == "") {
            alert("Please enter the verification code ");
            $("#responseFields").focus();
            return false;
        } */
        var te_no;
        if ($('input[name=te_no]').is(':checked')) {
            te_no = "yes";
        }
        else {
            te_no = "no";
        }
        var te_travelonly;
        if ($('input[name=te_travelonly]').is(':checked')) {
            te_travelonly = "yes";
        }
        else {
            te_travelonly = "no";
        }
        var te_hotelonly;
        if ($('input[name=te_hotelonly]').is(':checked')) {
            te_hotelonly = "yes";
        }
        else {
            te_hotelonly = "no";
        }
        var te_speaker;
        if ($('input[name=te_speaker]').is(':checked')) {
            te_speaker = "yes";
        }
        else {
            te_speaker = "no";
        }
        var te_all;
        if ($('input[name=te_all]').is(':checked')) {
            te_all = "yes";
        }
        else {
            te_all = "no";
        }
        var changeFields = $("input#recaptcha_challenge_field").val();
        var responseFields = $("input#recaptcha_response_field").val();
        //var info = "event_type=" + e_type + "&event_month=" + e_month + "&event_day=" + e_day + "&event_year=" + e_year + "&session_format=" + sess_format + "&event_title=" + e_title + "&company=" + company + "&event_website=" + $("#event_website").val() + "&event_location=" + event_location + "&event_requestor=" + event_req + "&email=" + mail + "&phone=" + ph + "&event_focus=" + event_foc + "&target_market_audience=" + target + "&number_of_attendees=" + attend + "&media_coverage=" + media + "&audience_demographics=" + aud_demog + "&event_speakers=" + event_speak + "&event_topic=" + event_top + "&te_no=" + te_no + "&te_travelonly=" + te_travelonly + "&te_hotelonly=" + te_hotelonly + "&te_speaker=" + te_speaker + "&te_all=" + te_all + "&recaptcha_challenge_field=" + changeFields + "&recaptcha_response_field=" + responseFields;
        var info = "event_type=" + e_type + "&event_month=" + e_month + "&event_day=" + e_day + "&event_year=" + e_year + "&session_format=" + sess_format + "&event_title=" + e_title + "&company=" + company + "&event_website=" + $("#event_website").val() + "&event_location=" + event_location + "&event_requestor=" + event_req + "&email=" + mail + "&phone=" + ph + "&event_focus=" + event_foc + "&target_market_audience=" + target + "&number_of_attendees=" + attend + "&media_coverage=" + media + "&audience_demographics=" + aud_demog + "&event_speakers=" + event_speak + "&event_topic=" + event_top + "&te_no=" + te_no + "&te_travelonly=" + te_travelonly + "&te_hotelonly=" + te_hotelonly + "&te_speaker=" + te_speaker + "&te_all=" + te_all;
	   $.ajax({
            type: "POST",
            url: "speaker_requests_mail.php",
            data: info,
			
				  			success: function() 
									{
										window.location = 'event_and_speaker_requests_thanks.php';
			  						}
           /* success: function (msg) {
                if (msg == 'success') {
                    //window.location = 'event_and_speaker_requests_thanks.php';
                }
               else {
                    Recaptcha.reload();
                   alert("Your verification code is wrong");
                    return false;
                    }
            } */
        });
    });
	 $('.psq_logo_remind_button').click(function () 
     {
		var emailRegEx = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		//var commentmsg = /^!# &()_-,.?+$/;
		 var iChars = "@$%^&*+=[]\\\';/{}|\":<>";
		var logremind_name = $("#name").val();
        var logremind_email = $("#emailid").val();
        var logremind_comment = $("#comments").val();
		if (logremind_name == "") 
		{
            alert("Please enter the name");
            $("#name").focus();
            return false;
        }
        else if (!isText(logremind_name)) {
            alert("Name should be in alphabets only");
            $("#name").focus();
            return false;
        }
		else if (logremind_email == "") 
		{
            alert("Please enter the email id");
            $("#emailid").focus();
            return false;
        }
		else if(!logremind_email.match(emailRegEx))
		{
		  alert("Please enter the valid email id");
		  $("#emailid").focus();
		  return false;
		}
        else if(logremind_comment == "")
  		{
			alert("Please enter your comments");
			$("#comments").focus();
			return false;
  		}
		
		// condtion to check special characters in comment box
		  for (var i=0; i<logremind_comment.length;i++) 
		  {
			if (iChars.indexOf(logremind_comment.charAt(i)) != -1) 
			{
			alert ("Please remove special characters and try again.");
			$("#comments").focus();
			return false;
			}
		  }
         var d = new Date();
		 //var req_min = d.getMinutes();
         //var req_sec = d.getSeconds();
         //var req_time = d.getMilliseconds()+200;
		var remindinfo = "name=" +logremind_name+ "&emailid=" + logremind_email + "&comments=" + logremind_comment;
	   $.ajax({
            type: "POST",
            url: "logo_reminds_request.php",
            data: remindinfo,
		    success: function() 
			{	  
			     //location.reload();
				     
                        //alert(req_time);
				setTimeout(
							function()
							{
								$('#logo_comments').load("include/logo_reminds_comments.php");
								setTimeout(
									function()
									{
										panelheight = $("#logo_reminds").height();
										$(".psq_page_placeholder .psq_main_container .psq_main_container_left .top").stop().animate({
											'height': panelheight
										}, {
											queue: false,
											duration:1500
										});	
									}
								,1500);
							}
					,0);/*
				setInterval(
						   function()
						   {
							   <?php session_desttroy(); ?>
							   $('#logo_comments').load("include/logo_reminds_comments.php");
							},2000);*/
				 
				 $("#name").val("");
                 $("#emailid").val("");
                 $("#comments").val("");
			    }	
			 });
	
   });
});

//******************************************** End of Event Request ****************************************************
function url() {
    var event_website = $("#event_website").val();
    var reg = /((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/;
    if (!reg.test(event_website)) {
        alert("Please enter a valid url address, example: http://www.example.com");
        $("#event_website").focus();
        return false;
    }
}

function setBoxes() {
    if (document.getElementById("box0").checked == true) {
        document.getElementById("box1").disabled = true;
        document.getElementById("box2").disabled = true;
        document.getElementById("box3").disabled = true;
        document.getElementById("box4").disabled = true;
        document.getElementById("box1").checked = false;
        document.getElementById("box2").checked = false;
        document.getElementById("box3").checked = false;
        document.getElementById("box4").checked = false;
    }
    else {
        document.getElementById("box0").disabled = false;
        document.getElementById("box1").disabled = false;
        document.getElementById("box2").disabled = false;
        document.getElementById("box3").disabled = false;
        document.getElementById("box4").disabled = false;
    }
    if (document.getElementById("box4").checked == true) {
        document.getElementById("box1").checked = true;
        document.getElementById("box2").checked = true;
        document.getElementById("box3").checked = true;
    }
    else {
        document.getElementById("box0").disabled = false;
        document.getElementById("box1").checked = false;
        document.getElementById("box2").checked = false;
        document.getElementById("box3").checked = false;
    }
}

function setBoxes1(n) {
    if (document.getElementById("box" + n).checked == false) {
        document.getElementById("box4").checked = false;
    }
    if ((document.getElementById("box1").checked == true) && (document.getElementById("box2").checked == true) && (document.getElementById("box3").checked == true)) {
        document.getElementById("box4").checked = true;
        document.getElementById("box0").disabled = true;
    }
    if ((document.getElementById("box1").checked == false) && (document.getElementById("box2").checked == false) && (document.getElementById("box3").checked == false) && (document.getElementById("box4").checked = false)); {
        document.getElementById("box0").disabled = false;
    }
}

function isText(str) {
    var i = 0;
    if (str.charAt(0) == ' ') i++;
    while (i < str.length) {
        if (str.charAt(i) >= '0' && str.charAt(i) <= '9' || str.charAt(i) == '+' || str.charAt(i) == '-' || str.charAt(i) == '*' || str.charAt(i) == '/' || str.charAt(i) == '\\' || str.charAt(i) == '\'' || str.charAt(i) == '@' || str.charAt(i) == '!' || str.charAt(i) == '~' || str.charAt(i) == '`' || str.charAt(i) == '#' || str.charAt(i) == '$' || str.charAt(i) == '%' || str.charAt(i) == '^' || str.charAt(i) == '&' || str.charAt(i) == '(' || str.charAt(i) == ')' || str.charAt(i) == '_' || str.charAt(i) == '=' || str.charAt(i) == '?' || str.charAt(i) == '.' || str.charAt(i) == ',' || str.charAt(i) == ';' || str.charAt(i) == ':' || str.charAt(i) == '"' || str.charAt(i) == '{' || str.charAt(i) == '}' || str.charAt(i) == '[' || str.charAt(i) == ']' || str.charAt(i) == '<' || str.charAt(i) == '>' || str.charAt(i) == '|') return false;
        i++;
    }
    return true;
}

function IsNumeric(strString) {
    if (!/\D/.test(strString)) {
        return true;
    }
    else if (/^\d+\.\d+$/.test(strString)) {
        return true;
    } else return false;
}

function trim(String) {
    if (String == null) {
        return ("");
    }
    return String.replace(/(^\s+)|(\s+$)/g, "");
}

function isMailid(str) {
    var emailPat = /^[\w-\.]+\@[\w\.-]+\.[a-z]{2,4}$/;
    var matchArray = str.match(emailPat);
    if (matchArray == null) {
        alert("Please enter your valid email id");
        return false;
    }
}


$(document).ready(function () {
    $('.psq_white_paper_form').click(function () {
        var name = $.trim($("#name_title").val());
        var email = $.trim($("#email_title").val());
        var letters = /^[a-zA-Z\s]+$/;
        var emailPat = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		//var responseFields_2 = $("input#recaptcha_response_field").val();
		
		//var papper1 = $("input#papper1").val();
		//var papper2 = $("input#papper2").val();
		
		//var papper = $("input[type=checkbox]").is(':checked');
		
		var papp1 = $("input[id=papper1]").is(':checked');
		var papp2 = $("input[id=papper2]").is(':checked');
		if(papp1==true && papp2==false){
			var papper1 ="papper1";
			
		} else if (papp1==false && papp2==true){
			var papper2 ="papper2";
			
		} else if (papp1==true && papp2==true){
			var papper1 ="papper1";
			var papper2 ="papper2";
			
		//var papper1 = $("input#papper1").val();
		//var papper2 = $("input#papper2").val();
		}

		
		//alert("first"+papp1);
		//alert("second"+papp2);
		//alert("p1 ="+papper1);
		//alert("p2 ="+papper2);
		
       if (name == "") {
            alert("Please enter your name");
            $("#name_title").focus();
            return false;
        } else if (!name.match(letters)) {
            alert("Name field accept alphabets only");
            $("#name_title").focus();
            return false;
        } else if (email == "") {
            alert("Please enter your email id");
            $("#email_title").focus();
            return false;
        } else if (!email.match(emailPat)) {
            alert("Please enter your valid email id");
            $("#email_title").focus();
            return false;
        /*} else if (responseFields_2 == "") { // recaptcha code hide for alignment problem
            alert("Please enter the verification code ");
            $("#responseFields").focus();
            return false;*/
		} else if (papp1==false && papp2==false) {
            alert("Please select atleast one of the white paper");
            //$("#papper1").focus();
            return false; 
		}
		
        var changeFields1 = $("input#recaptcha_challenge_field").val();
        var responseFields1 = $("input#recaptcha_response_field").val();
        //var info = "firstname=" + name + "&email=" + email + "&recaptcha_challenge_field=" + changeFields1 + "&recaptcha_response_field=" + responseFields1;
		//var info = "firstname=" + name + "&email=" + email + "&recaptcha_challenge_field=" + changeFields1 + "&recaptcha_response_field=" + responseFields1 + "&papper1=" + papper1 + "&papper2=" + papper2 ;
		var info = "firstname=" + name + "&email=" + email + "&papper1=" + papper1 + "&papper2=" + papper2 ;
		$.ajax({
            type: "POST",
            url: "email_link_white.php",
            data: info,
            success: function (msg1) {
				//alert("message ="+msg1);
				var m=msg1;
				var temp = new Array();
				temp = m.split('@');
				 var m1=temp[0];
				 var m2=temp[1];
				 var m3=temp[2];
				//alert(m2);
				if(m2=="" || m2==null || m2=='undefined'){
					var msg2="";
				}
				else {
					 var msg2="p1="+m2;
				}
			   if(m3=="" || m3==null || m3=='undefined'){
					 var msg3="";
				}
				else{
					
					 var msg3="&p2="+m3;
				}
				
				//alert(msg2);
				//alert(msg3);
                if (m1 == 'successful') {
                    window.location = 'white_papers_thanks.php?'+msg2+msg3;
                }
                else {
                    Recaptcha.reload();
                    alert("Your verification code is wrong");
                    return false;
                }
            }
        });
    });
});





$(document).ready(function () {
    $('.psq_email_subscribe_button').click(function () {
        var email = $("#txtEmail").val();
        var emailPat = /^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i;
        if (email == "") {
            alert("Please enter your email id ");
            $("#txtEmail").focus();
            return false;
        }
        else if (!email.match(emailPat)) {
            alert("Please enter your valid email id");
            $("#txtEmail").focus();
            return false;
        }
        else if ($("#d11").is(':checked') == false && $("#d21").is(':checked') == false) {
            alert("Please subscribe / unsubscribe for news letter ");
            $("#d11").focus();
            return false;
        }
        else if ($("#d12").is(':checked') == false && $("#d22").is(':checked') == false) {
            alert("Please subscribe / unsubscribe for events and webinar invites ");
            $("#d12").focus();
            return false;
        }
        else if ($("#d13").is(':checked') == false && $("#d23").is(':checked') == false) {
            alert("Please subscribe / unsubscribe for news updates ");
            $("#d13").focus();
            return false;
        }
        else if ($("#d14").is(':checked') == false && $("#d24").is(':checked') == false) {
            alert("Please subscribe / unsubscribe for white paper / case studies ");
            $("#d14").focus();
            return false;
        }
        else {
            $("#s4").hide();
            $("#request_process").fadeIn();
        }
        var name1;
        if ($("#d11").is(':checked')) {
            name1 = $("#d11").val();
        }
        else if ($("#d21").is(':checked')) {
            name1 = $("#d21").val();
        }
        var name2;
        if ($("#d12").is(':checked')) {
            name2 = $("#d12").val();
        }
        else if ($("#d22").is(':checked')) {
            name2 = $("#d22").val();
        }
        var name3;
        if ($("#d13").is(':checked')) {
            name3 = $("#d13").val();
        }
        else if ($("#d23").is(':checked')) {
            name3 = $("#d23").val();
        }
        var name4;
        if ($("#d14").is(':checked')) {
            name4 = $("#d14").val();
        }
        else if ($("#d24").is(':checked')) {
            name4 = $("#d24").val();
        }
        if ((name1 == "unsubscribe") && (name2 == "unsubscribe") && (name3 == "unsubscribe") && (name4 == "unsubscribe")) {
            $("#thanks_sub_show").hide();
        }
        if (name1 == "unsubscribe") {
            $("#newsletter_sub").hide();
        }
        if (name2 == "unsubscribe") {
            $("#newupdate_sub").hide();
        }
        if (name3 == "unsubscribe") {
            $("#events_sub").hide();
        }
        if (name4 == "unsubscribe") {
            $("#whitepaper_sub").hide();
        }
        if ((name1 == "subscribe") && (name2 == "subscribe") && (name3 == "subscribe") && (name4 == "subscribe")) {
            $("#thanks_unsub_show").hide();
        }
        if (name1 == "subscribe") {
            $("#newsletter_unsub").hide();
        }
        if (name2 == "subscribe") {
            $("#newupdate_unsub").hide();
        }
        if (name3 == "subscribe") {
            $("#events_unsub").hide();
        }
        if (name4 == "subscribe") {
            $("#whitepaper_unsub").hide();
        }
        var info = "txtEmail=" + email + "&name1=" + name1 + "&name2=" + name2 + "&name3=" + name3 + "&name4=" + name4;
        $.ajax({
            type: "POST",
            url: "subscriber_confirmation.php",
            data: info,
            success: function () {
                $("#request_process").hide();
                $("#thank_you").fadeIn();
            }
        });
    });
});

function check1() {
    if (document.getElementById("ch1").checked == true) {
        document.getElementById("ch1").checked = true;
        document.getElementById("ch2").checked = false;
        document.getElementById("d11").checked = true;
        document.getElementById("d12").checked = true;
        document.getElementById("d13").checked = true;
        document.getElementById("d14").checked = true;
    } else {
        document.getElementById("ch1").checked = false;
        document.getElementById("d11").checked = false;
        document.getElementById("d12").checked = false;
        document.getElementById("d13").checked = false;
        document.getElementById("d14").checked = false;
    }
}

function check2() {
    if (document.getElementById("ch2").checked == true) {
        document.getElementById("ch2").checked = true;
        document.getElementById("ch1").checked = false;
        document.getElementById("d21").checked = true;
        document.getElementById("d22").checked = true;
        document.getElementById("d23").checked = true;
        document.getElementById("d24").checked = true;
    } else {
        document.getElementById("d21").checked = false;
        document.getElementById("d22").checked = false;
        document.getElementById("d23").checked = false;
        document.getElementById("d24").checked = false;
    }
}

function check3() {
    if (document.getElementById("d11").checked == true || document.getElementById("d12").checked == true || document.getElementById("d13").checked == true || document.getElementById("d14").checked == true) {
        document.getElementById("ch2").checked = false;
    }
    if (document.getElementById("d11").checked == true && document.getElementById("d12").checked == true && document.getElementById("d13").checked == true && document.getElementById("d14").checked == true) {
        document.getElementById("ch1").checked = true;
    }
}

function check4() {
    if (document.getElementById("d21").checked == true || document.getElementById("d22").checked == true || document.getElementById("d23").checked == true || document.getElementById("d24").checked == true) {
        document.getElementById("ch1").checked = false;
    }
    if (document.getElementById("d21").checked == true && document.getElementById("d22").checked == true && document.getElementById("d23").checked == true && document.getElementById("d24").checked == true) {
        document.getElementById("ch2").checked = true;
    }
}

function isText(str) {
    var i = 0;
    if (str.charAt(0) == ' ') i++;
    while (i < str.length) {
        if (str.charAt(i) >= '0' && str.charAt(i) <= '9' || str.charAt(i) == '+' || str.charAt(i) == '-' || str.charAt(i) == '*' || str.charAt(i) == '/' || str.charAt(i) == '\\' || str.charAt(i) == '\'' || str.charAt(i) == '@' || str.charAt(i) == '!' || str.charAt(i) == '~' || str.charAt(i) == '`' || str.charAt(i) == '#' || str.charAt(i) == '$' || str.charAt(i) == '%' || str.charAt(i) == '^' || str.charAt(i) == '&' || str.charAt(i) == '(' || str.charAt(i) == ')' || str.charAt(i) == '_' || str.charAt(i) == '=' || str.charAt(i) == '?' || str.charAt(i) == '.' || str.charAt(i) == ',' || str.charAt(i) == ';' || str.charAt(i) == ':' || str.charAt(i) == '"' || str.charAt(i) == '{' || str.charAt(i) == '}' || str.charAt(i) == '[' || str.charAt(i) == ']' || str.charAt(i) == '<' || str.charAt(i) == '>' || str.charAt(i) == '|') return false;
        i++;
    }
    return true;
}

function IsNumeric(strString) {
    if (!/\D/.test(strString)) {
        return true;
    } else if (/^\d+\.\d+$/.test(strString)) {
        return true;
    } else return false;
}

function trim(String) {
    if (String == null) {
        return ("");
    }
    return String.replace(/(^\s+)|(\s+$)/g, "");
}

function isMailid(str) {
    var emailPat = /^[\w-\.]+\@[\w\.-]+\.[a-z]{2,4}$/;
    var matchArray = str.match(emailPat);
    if (matchArray == null) {
        alert("Please enter your valid email id");
        return false;
    }
}

function imposeMaxLength(Object, MaxLen) {
    return (Object.value.length <= MaxLen);
}

function imposeUrl(Object) {
    var Url = "^[A-Za-z]+://[A-Za-z0-9-_]+\\.[A-Za-z0-9-_%&\?\/.=]+$";
    if (!Object.value.match(Url)) {
        alert('Please enter your valid url for example:http:\\www.example.com');
        Object.focus();
        return true;
    }
}


function formValidationCareers(x) {
	
	var name=trim($("#name"+x).val());
    var email=trim($("#email"+x).val());
	var fileatt=trim($("#fileatt"+x).val());
	var portfolio_file=trim($("#portfolio_file"+x).val());
   if(name == "") {
        alert("Please enter your name");
        $("#name"+x).focus();
        return false;
    } else if (!isText(name)) {
        alert("Please enter your name with alphabets only");
        $("#name"+x).focus();
        return false;
    }
	if((email == null) || (email == "")) {
        alert("Please enter your email id")
        $("#email"+x).focus()
        return false
    }
    if (isMailid(email) == false) {
        $("#email"+x).focus()
        return false
    }
	if (fileatt != "") {
        var path = fileatt;
        var len = (path).length
        var str = path.substring(path.lastIndexOf('.') + 1).toLowerCase();
        if (str == "doc" || str == "txt" || str == "rtf" || str == "pdf" || str == "docx" || str == "ppt" || str == "pptx") {
            var path1 = portfolio_file;
            var len1 = (path1).length;
            var str1 = path1.substring(path1.lastIndexOf('.') + 1).toLowerCase();
				if (path1 != "") {
						if (str1 == "zip" || str1 == "rar" || str1 == "exe" || str1 == "dll") {
							alert("The file formats (.zip, .rar, .exe, .dll) are not allowed");
							$("#portfolio_file"+x).focus();
							return false;
						}
						else {
							$("#form_"+x).submit();
							return true;
		
						}
				}
				else {
					$("#form_"+x).submit();
					return true;
				}
        } else {
            alert("Attach .doc, .docx, .ppt, .pptx, .rtf, .txt or .pdf files only");
        }
        return false;
    } else {
        alert("Please attach your resume");
        return false;
    }
   return false;
    
}

function fileAttach(x){
	$('#fileatt'+x).hide();
	 var v = $('#fileatt'+x).val();
	// var m = v.split('\\');
	 //alert(m);
    var str = v.substring(v.lastIndexOf('.') + 1).toLowerCase();
    if (str == "doc" || str == "txt" || str == "rtf" || str == "pdf" || str == "docx" || str == "ppt" || str == "pptx") {
        $(".file_remove_containetr"+x).show();
        $(".removebutton"+x).show();
        $(".added_file"+x).show().html(findfileName(v));
    } else {
        alert("Attach .doc, .docx, .ppt, .pptx, .rtf, .txt or .pdf files only");
        $("#fileatt"+x).focus();
        $(".removebutton"+x).hide();
        $("#fileatt"+x).val("").show();
        $(".added_file"+x).html("").hide();
        return false;
    }
}
function removefileAttach(x){
	 $(".removebutton"+x).hide();
    $("#fileatt"+x).val("").show();
    $(".added_file"+x).html("").hide();
	
}
function portfolioAttach(x){
	$('#portfolio_file'+x).hide();
	 var v = $('#portfolio_file'+x).val();
	// var m = v.split('\\');
    var str = v.substring(v.lastIndexOf('.') + 1).toLowerCase();
    if (str == "zip" || str == "rar" || str == "exe" || str == "dll") {
        alert("The file formats (.zip, .rar, .exe, .dll) are not allowed");
        $("#portfolio_file"+x).focus();
        $(".remove_portfolio_button"+x).hide();
        $("#portfolio_file"+x).val("").show();
        $(".added_portfolio_file"+x).html("").hide();
        return false;
    } else {
        $(".file_portfolio_remove_containetr"+x).show();
        $(".remove_portfolio_button"+x).show();
        $(".added_portfolio_file"+x).show().html(findfileName(v));
    }
}

function removeportfolioAttach(x){
    $(".remove_portfolio_button"+x).hide();
    $("#portfolio_file"+x).val("").show();
    $(".added_portfolio_file"+x).html("").hide();
}
function findfileName(str){
	s = str.substring(str.lastIndexOf('\\') + 1).toLowerCase();
	return s;
}