function externalLinks(){
    if (!document.getElementsByTagName) return;
    
    var anchors = document.getElementsByTagName("a");
    
    for (var i=0; i<anchors.length; i++){
        var anchor = anchors[i];
        if(anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
            anchor.target = "_blank";
        }
    }
}

function showbig(cl) {
	$('#big_image > a > img').hide();
    $(cl).show();
}

function hl(num,act) {
	if(act=='on') {
		$('#mapa_woj').addClass('woj'+num);
	}
	if(act=='off') {
		$('#mapa_woj').removeClass('woj'+num);
	}
}

function dis(elem) {
	if($(elem).attr("disabled")) {
		$(elem).removeAttr("disabled");
	} else {
		$(elem).attr("disabled","disabled");
	}		
}

function playclip(base,movie,img,color) {
	$.scrollTo($('#menu'),200);
    flashembed(
        "player",{src:''+base+'/libs/flow/FlowPlayerDark.swf',bgcolor: '#000000', width: 320, height: 240},
        {config: {   
            videoFile: ''+base+'moviesdir/'+movie+'.flv',
            showMenu: false,
            initialScale: 'scale',
            autoPlay: true,
            autoBuffering: true,
            loop: false,
            autoRewind: true
        }}        
    );
    
    $('.clip_title').removeClass('now_playing_title_orange');
    $('.clip_title_red').removeClass('now_playing_title_red');
    $('.clip_title_blue').removeClass('now_playing_title_blue');
    
    $('img').removeClass('now_playing');
    
    $(img).addClass('now_playing');
    
    if(color=='orange') {
        $('.clip_text > .clip_title').addClass('now_playing_title_'+color);
    } else {
        $('.clip_text > .clip_title_'+color).addClass('now_playing_title_'+color);
    }
    
}

