?
Path : /home/admin/domains/happytokorea.com/public_html_bk/new/includes/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/new/includes/js.css.php |
<?php //Find $key for url page $url = $_SERVER['REQUEST_URI']; $main_nav = array('index','about','programs','reservation','payment','contact'); $key = "index"; for($i=0 ; $i < count($main_nav) ; $i++){ if(strstr($url,$main_nav[$i])){ $key = $main_nav[$i]; } } ?> <!--################ Main CSS link #################--> <link rel="stylesheet" type="text/css" href="/css/main.css" /> <link rel="stylesheet" type="text/css" href="/css/page-format.css" /> <!--[if lt IE 8]><link rel="stylesheet" type="text/css" href="/css/fixed-ie7.css" /><![endif]--> <!--####################### Main Javascript for all pages #########################--> <script type="text/javascript" src="/js/jQuery-1.5.2.js"></script> <script type="text/javascript" src="/js/jquery.easing.1.3.js"></script> <script type="text/javascript" src="/js/jquery.corner.2.11.js"></script> <script type="text/javascript" src="/js/cufon/cufon-yui.js"></script> <script type="text/javascript" src="/js/cufon/PSL_Kanda_ModernSP.font.js"></script> <script type="text/javascript" src="/js/carouFredSel/jquery.carouFredSel-4.3.2-packed.js"></script> <!--[if lte IE 6]> <script type="text/javascript" src="/js/pngFix/jquery.pngFix.pack.js"></script> <script type="text/javascript"> $(document).pngFix(); </script> <![endif]--> <script type="text/javascript"> $(function(){ Cufon.replace("h1,h2,h3,h4,#main_nav,#side_bar ul li" , { hover : true }); //Main navigation indexting $("#main_nav a[rel='<?php echo $key?>']").find(".sub_nav").css({ 'background' : '#3c3127' }); //banner script $("#banner").carouFredSel({ scroll : { fx : 'crossfade' , duration : 1000 , pauseOnHover : true }, next : "#next_b", prev : "#prev_b" }); //Slide_tour script $("#slide_tour #slide").carouFredSel({ auto : 5000, circular : false, item : 1, scroll : { item : 1 , pauseOnHover : true }, next : "#next", prev : "#prev" }) //Side Bar ul sub_list show on click $("#side_bar ul li").click(function(){ $("li").not(this).find("ul.sub_list").stop(true,true).slideUp(300); $(this).find('ul.sub_list').stop(true,true).slideToggle(300); }); //add corner to elements $("#main_nav .sub_nav").corner("top"); }); </script> <!--######################## Script for Programs Pages #########################--> <?php if(strstr($url,'/programs')) {?> <script type="text/javascript"> $(function(){ $(document).scrollTop(500); }); </script> <?php }?> <!--######################## End Script for Programs Pages #########################--> <!--########################## Script for Contact ###########################--> <?php if(strstr($url,'/contact') || strstr($url,'/about')){?> <link rel="stylesheet" type="text/css" href="/js/FancyBox/jquery.fancybox-1.3.4.css" /> <script type="text/javascript" src="/js/FancyBox/jquery.fancybox-1.3.4.pack.js"></script> <script type="text/javascript"> $(function(){ $("a[rel='lightbox']").fancybox({ autoScale : false, transitionIn : 'elastic', transitionOut : 'elastic', speedIn : 500, speedOut : 500 }); }); </script> <?php }?> <!--######################## End script for Contact ##########################-->