function Vote(i)
{
    $('starRating').load(url + "&rating=" + i + "&service=7000000");
}

function _getIdParamStr()
{
    var el = document.getElementsByName("DC.identifier");
    
    if(el.length > 0 && el[0].content)
    {
        el2 = el[0].content.split(":");
        if(el2.length == 3)
        {
            return "&id=" + el2[2];
        }
    }
    
    return "";
}

function resize()
{
    var x = $('doc_contact').offsetHeight - 32;
    $('doc_share').setStyle("height", x+"px");
    
    var y = $('doc_top').offsetHeight - 32;
    var z = $('doc_min').offsetHeight - 32;
    
    if (y > z){
        $('doc_min').setStyle("height", y+"px");
    }else if (z > y){
        $('doc_top').setStyle("height", z+"px");
    }
}

function PlayerPopUp(fileUrl, playState, position, volumeLevel)
{
	var url = 'player.html?feedUrl='+escape(fileUrl)+'&play='+playState+'&position='+position+'&volume='+volumeLevel;               
	var win = window.open(url, "docsOnOnePlayer", "menubar=0, resizable=0, status=0,directories=0,location=0,scrollbars=0,toolbar=0,titlebar=0,width=340, height=370");
	win.focus();
}

function loadPlayer(atomfeed,play){
     var obj = new Swiff('swf/MP3Player.swf', {
        id: 'player',
        container: $("flashcontent"),
        width: 300,
        height: 55,
        vars: {
			autoStart: play,
            feedUrl:atomfeed,
            popup:1
        }
    });
}

function showPlayer(url)
{
	PlayerPopUp(url,true,1,1)
}

function equalizeCols(name) {
			
			name.each(function(it, i){
				var el= $(it);
				if(el && el.get('tag') == 'div'){
					name.splice(i,1,el);
				} else {
					name.splice(i)
				}
			});
			
			var max_height = 0;

			name.each(function(item) {
				max_height = Math.max(max_height, item.getSize().y) - 20;
			});
			
			name.each(function(el,i){el.setStyle('min-height', max_height)});
			name.each(function(el,i){el.setStyle('height', max_height)});
		}

		
