jQuery.noConflict();
jQuery(document).ready(function(){

        var item="";
        var href="";
        var list="";
        
        jQuery("#navigation li.specials-sitemap li").each(function() {

                item = (jQuery(this).text())+"\n\r";
                href = (jQuery("#navigation li.specials-sitemap li a").attr("href")+"\n\r");
                jQuery("#sitemap .subitem1 ul").append("<li><a href="+ href +" >" + item + "</a></li>");
        });
        jQuery("#navigation li.filmschema-sitemap li").each(function() {

                item = (jQuery(this).text())+"\n\r";
                href = (jQuery("#navigation li.filmschema-sitemap li a").attr("href")+"\n\r");
                jQuery("#sitemap .subitem2 ul").append("<li><a href="+ href +" >" + item + "</a></li>");
        });
        jQuery("#navigation li.news-sitemap li").each(function() {

                item = (jQuery(this).text())+"\n\r";
                href = (jQuery("#navigation li.news-sitemap li a").attr("href")+"\n\r");
                jQuery("#sitemap .subitem3 ul").append("<li><a href="+ href +" >" + item + "</a></li>");
        });
        jQuery("#navigation li.about-sitemap li").each(function() {

                item = (jQuery(this).text())+"\n\r";
                href = (jQuery("#navigation li.about-sitemap li a").attr("href")+"\n\r");
                jQuery("#sitemap .subitem4 ul").append("<li><a href="+ href +" >" + item + "</a></li>");
        });

        cardsHref = (jQuery("#navigation li.home-sitemap a").attr("href"));
        jQuery("#sitemap .sitemapitem1").append("<li><a href="+ cardsHref +" >Home</a></li>");
        
        cardsHref = (jQuery("#navigation li.cards-sitemap a").attr("href"));
        jQuery("#sitemap .sitemapitem6").append("<li><a href="+ cardsHref +" >Kaarten</a></li>");

        galleryHref = (jQuery("#navigation li.gallery-sitemap a").attr("href"));
        jQuery("#sitemap .sitemapitem7").append("<li><a href="+ galleryHref +" >Gallery</a></li>");
       
        
        

        // Film Schedule Zebra effect
        jQuery('.program_info').css("font-weight", "bold").css("text-transform", "uppercase");
        jQuery('.program_info td').css("padding", "10px");
        jQuery('.program_info tr:even').css("background-color", "#2b8200").css("color", "#FFF");
        //jQuery('.program_info td:even:last-child').addClass('cinema_number_even');
        //jQuery('.program_info td:odd:last-child').addClass('cinema_number_odd');
        jQuery('.program_info tr:odd').css("background-color", "#231f20").css("color", "#fff").css("text-transform", "uppercase");
        jQuery('.program_info .no_border').css("border", "none").css("color", "#fab82a");
        jQuery('.program_info table').css("width", "100%");


        // search results
        jQuery('#search_res li').addClass('result');

        //start Cufon
	//global
	Cufon.replace('h2', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'// this puts a soft shadow for your cufon text **FYI (R,G,B, opacity)**
        });
        Cufon.replace('.readmore', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });
        Cufon.replace('.news_readmore', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });

        //navigation
        Cufon.replace('#navigation a span.navi', {
            textShadow: '1px 1px rgba(154, 154, 154, 0.7)'
        });
        Cufon.replace('#navigation a', {
            hover: true
        });
        
        //VANDAAG
        Cufon.replace('#home #today table', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });

        //user
        Cufon.replace('#side span.user_sidebar', {
            textShadow: '1px 1px rgba(154, 154, 154, 0.2)'
        });
        
        //movies
        Cufon.replace('#movie #content ul li h3', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });
        Cufon.replace('#movie #side a');
        Cufon.replace('#movie_detail #side a');
        Cufon.replace('#home #login #login_submit', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });
        Cufon.replace('#movie_detail div.comments form button', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });
        Cufon.replace('#movie_detail #user_selection_movie_rating form button', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });
        Cufon.replace('.archive_backlink', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });
        Cufon.replace('#movie_detail #user_selection_movie_rating form label.rate', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });
        Cufon.replace('#movie_detail #user_selection_movie_rating form .radio_list', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });
        Cufon.replace('#news_category #side ul li a span');
        Cufon.replace('#static_content #side ul li a span');
        Cufon.replace('#corporate #side ul li a span');
        Cufon.replace('#news_detail #side ul li a span',{
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });
        Cufon.replace('#pager',{
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });
        Cufon.replace('#movie_pager');
        
       
        //newsletter
        Cufon.replace('#home #news_letter #login_submit span', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });
        Cufon.replace('#home #news_letter .cancel', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });


        //promotions
        Cufon.replace('#promotions li .title', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.5)'
        });
        Cufon.replace('#promotions li p', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.3)'
        });
        Cufon.replace('#promotions li a span', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.8)'
        });
        
        //top nav
        Cufon.replace('.language a', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.5)'
        });
        Cufon.replace('.home a:first-child', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.5)'
        });
        Cufon.replace('#top_nav li.user_login', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.5)'
        });     

        //contact submit
        Cufon.replace('#login_submit', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.5)'
        });

        //footer
        Cufon.replace('#film_news dt:first-child', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });
            Cufon.replace('#film_news a span', {
            textShadow: '1px 1px rgba(154, 154, 154, 0.7)'
            });
            Cufon.replace('#film_news a ', {
                hover: true
            });
        Cufon.replace('#tbl_cinemas_news dt:first-child', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });
            Cufon.replace('#tbl_cinemas_news a span', {
                textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
            });
            Cufon.replace('#tbl_cinemas_news a ', {
                hover: true
            });
        Cufon.replace('#contact dt:first-child', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });
            Cufon.replace('#contact dd a span', {
                textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
            });
            Cufon.replace('#contact a ', {
                hover: true
            });

        //film schema
        Cufon.replace('#film_schema', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });

        //film schema button
        Cufon.replace('#static_content #content .inner .download_filmschema', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });

        //wijzig gegevens button
        Cufon.replace('#personal #submit_button #submitReset', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });

        //search page button
        Cufon.replace('#top_nav li form input.btn_search', {
            textShadow: '1px 1px rgba(0, 0, 0, 0.2)'
        });

        //archive
       // jQuery('.archived-overview ul.archived-months').hide();

        jQuery('.archived-overview .archived-year').each(function(){
            jQuery(this).click(function(){
               
                if(jQuery(this).parent().children('.archived-overview ul.archived-months').is(':hidden')){

                    jQuery('.archived-overview ul.archived-months').hide();
                    jQuery(this).parent().children('.archived-overview ul.archived-months').show();
                    jQuery('.archived-overview .archived-year').removeClass('selected');
                    jQuery(this).addClass('selected');

                } else {
                    
                    jQuery('.archived-overview ul.archived-months').hide();
                    
                }

                
            });
        });

//       jQuery('.archived-overview .archived-year').click(function () {
//            jQuery('.archived-overview ul.archived-months').toggle();
//        });

        //teaser
        //Cufon.replace('div.info p');
        //Cufon.replace('div.info a');

        //galleries
        Cufon.replace('#galleries li h3');


       jQuery('#promotions ul li:last-child').addClass('remove');
       jQuery('#movie #content ul li:last').addClass('remove');
       

       //programma popup
       jQuery('.programma_overlay_open').click(function(){
           jQuery('#programma_overlay').fadeIn(300);
       });

       jQuery('#programma_content img.close').click(function(){
           jQuery('#programma_overlay').fadeOut(300);
       });

       //search submit
       jQuery('img.btn_search').click(function(){
           document.topsearch.submit();

       });

       

       //picasa
       jQuery("#content-container").pwi({
            username: '111720952363011807126',
                         maxResults: 15,
                         showAlbumDescription: false,
                         showPhotoCaption: true,
                         photoCaptionLength: 5,
                         thumbSize: 144,
                         showPhotoDate: false,
                         showPhotoCaptionDate: true
        });

       jQuery('#home #today ul li:last-child').css('border', 'none');
       /*jQuery('#today').css('cursor', 'pointer');
       jQuery('#today .fakeLink').css('display', 'none');

       jQuery('#today').click(function(){
           window.location=jQuery(this).find("a.fakeLink").attr("href");return false;

       }); */

       

         //gallery
       jQuery('#images a').lightBox();
        




});

   
