$(document).ready(function(){
	$(".popLogin").colorbox({iframe:true, scrolling:false, overlayClose:false, innerWidth:300, innerHeight:300});
	$(".popRegister").colorbox({iframe:true,overlayClose:false, innerWidth:450, innerHeight:610});
	$(".popDBShow").colorbox({iframe:true,overlayClose:false, width:"80%", height:"80%"});
        $(".popSPBMovie").colorbox({iframe:true, scrolling:false, innerWidth:630, innerHeight:500, overlayClose:false });

        $(".popbewertung").colorbox({iframe:true, scrolling:true, innerWidth:500, height:670 });

        $(".popEditBox").colorbox({iframe:true, scrolling:true, innerWidth:970, height:"95%", onClosed:function(){ bookINIT();}  });

        $(".popEditBoxSmal").colorbox({iframe:true, scrolling:true, innerWidth:500, height:500, onClosed:function(){ bookINIT();}  });
        $(".popEditBoxSSmal").colorbox({iframe:true, scrolling:true, innerWidth:500, height:400, onClosed:function(){ location.reload(true);}  });

        $(".popEditBoxNL").colorbox({iframe:true, scrolling:true, innerWidth:970, height:"95%", onClosed:function(){ location.reload(true);}  });

        $(".popFunctionBox").colorbox({iframe:true, scrolling:true, innerWidth:970, height:"95%" });


        $(".changeBlog").live('click',function(){
		$.post("/ajaxCalls/ajax_gets_modul.php", {
			BLOG:$(this).attr('rel'),
			useFunction:'set_BlogType'
				}, function(data) {
			//	$('#debugg').html(data);
			bookINIT();
		});
	});

        $(".confirm").colorbox({iframe:true, scrolling:true, innerWidth:500, height:530, overlayClose:false });

	$("a[rel='userImport']").colorbox({iframe:true, scrolling:true, innerWidth:600, height:"80%", overlayClose:false,
		onClosed:function(){ location.reload(true); }
	});

        $("#fileUpload").colorbox({iframe:true, scrolling:true, innerWidth:450, innerHeight:400, overlayClose:false ,onClosed:function(){ location.reload(true); }  });
        $("#fileUpload2").colorbox({iframe:true, scrolling:true, innerWidth:450, innerHeight:400, overlayClose:false ,onClosed:function(){ location.reload(true); }  });

        $("#eventFileUpload").colorbox({iframe:true, scrolling:true, innerWidth:450, innerHeight:400, overlayClose:false ,onClosed:function(){  }  });

        $(".popLizenzBox").colorbox({iframe:true, scrolling:true, innerWidth:970, height:"98%", onClosed:function(){ window.location.reload();}  });
        $(".lizenzing").colorbox({iframe:true, scrolling:true, innerWidth:700, height:"98%", onClosed:function(){ window.location.reload();}  });

        $(".hmpos5").colorbox({iframe:true, scrolling:true, innerWidth:1002, innerHeight:595, scrolling:false });

        $('.button').hover( function () { $("img", this).fadeOut(200); }, function () { 
          $("img", this).fadeIn(200);
          if($('input:[name="isSetBlogType"]').val()=='userblog') {$('#menUserBlog').hide();} 
          if($('input:[name="isSetBlogType"]').val()=='adminblog') {$('#menAdminBlog').hide();} 
        });

        $('#PopInfoFadeOutIcon').toggle(function() {
          $("#popInfoText").animate({"height": "show"}, { duration: 200});
          $('td.subAkt').removeClass('popSubMenuLine').addClass('popSubMenuLineOff');

        }, function() {
          $("#popInfoText").animate({"height": "hide"}, { duration: 200 });
          $('td.subAkt').removeClass('popSubMenuLineOff').addClass('popSubMenuLine');
        });

});
