var j = jQuery.noConflict();

j(document).ready(function(){
    Shadowbox.init({
        // let's skip the automatic setup because we don't have any
        // properly configured link elements on the page
        skipSetup: true
    });
    
    j(".flickr_set").each(function(index, domElement){
    	j(this).click(function(){
    		var href = j(this).find("a").attr("href");
    		var title = j(this).text();
    		Shadowbox.open({
    	        player:     'iframe',
    	        title:      title,
    	        content:	href,
    	        height:     400,
    	        width:      500
    	    });
    		return false;
    	});
    });
	
    j("#filmstrip > li > a").each(function(index, domElement){
    	j(this).click(function(){
    		var href = j(this).attr("href");
    		var title = j(this).text();
    		Shadowbox.open({
    	        player:     'iframe',
    	        title:      title,
    	        content:	href,
    	        height:     400,
    	        width:      500
    	    });
    		return false;
    	});
    });
    
    j(".youtube").each(function(index, domElement){
    	j(this).click(function(){
    		var href = j(this).attr("rel");
    		var title = j(this).text();
    		Shadowbox.open({
    	        player:     'swf',
    	        title:      title,
    	        content:	href,
    	        height:     344,
    	        width:      425
    	    });
    		return false;
    	});
    });
     
	j("#wpoi a").click(function(){
		var href = j(this).attr("href");
		var title = j(this).attr("title");
		Shadowbox.open({
	        player:     'iframe',
	        title:      title,
	        content:	href,
	        height:     250,
	        width:      275
	    });
		return false;
	});
    
});