document.getElementById('clubazw').innerHTML = "
";
var clubazJC;
function loadScript( url, callback ) {
var script = document.createElement( 'script' )
script.type = 'text/javascript';
if(script.readyState) { //IE
script.onreadystatechange = function() {
if ( script.readyState === 'loaded' || script.readyState === 'complete' ) {
script.onreadystatechange = null;
callback();
}
};
} else { //Others
script.onload = function() {
callback();
};
}
script.src = url;
document.getElementsByTagName( 'head' )[0].appendChild( script );
}
loadScript('http://www.clubaz.ro/v/jquery-1.9.1.js', function() {
clubazJC = $.noConflict();
clubaz_load();
});
var clubaz_loaded = 0;
var clubaz_width = 0;
var clubaz_height = 0;
function clubaz_load()
{
clubaz_height = clubazJC(window).height();
clubaz_width_w = clubazJC(window).width();
clubaz_width = clubaz_width_w - 40;
if(clubaz_width > 630) clubaz_width = 600;
clubazJC('#clubaz_f').css('height', '100%');
clubazJC('#clubaz_f').css('width', clubaz_width + 'px');
clubazJC('#clubaz_f').css('display', 'block');
clubazJC('#clubaz_if').css('height', '100%');
clubazJC('#clubaz_if').css('width', clubaz_width + 'px');
clubazJC('#clubaz_f').css('margin-right', '-730px');
clubaz_com = clubazJC('#clubazw').attr('comunitate');
clubaz_ti = clubazJC('#clubazw').attr('titlu');
if(clubaz_width_w > 500)
{
clubazJC('#clubaz_l').html('');
clubazJC.getScript('http://www.clubaz.ro/v/prop.php?rew='+clubaz_com);
}
else
{
clubazJC('#clubaz_l').attr('class', 'clubaz_l_d');
clubazJC('#clubaz_l').html('');
}
clubaz_wpos = clubazJC('#clubazw').attr('wpos');
clubaz_hpos = clubazJC('#clubazw').attr('hpos');
if(clubaz_hpos == 'sus') clubazJC('#clubaz_l').css('top', '0px');
if(clubaz_hpos == 'jos') clubazJC('#clubaz_l').css('bottom', '0px');
if(clubaz_hpos == 'mijloc') clubazJC('#clubaz_l').css('bottom', '50%');
if(clubaz_wpos == 'stanga') clubazJC('#clubaz_l').css('left', '0px');
if(clubaz_wpos == 'dreapta') clubazJC('#clubaz_l').css('right', '0px');
}
function clubaz_open()
{
clubazJC('#clubaz_black_div').css('display','block');
clubazJC('#clubaz_f').css('opacity', '0');
clubazJC('#clubaz_f').animate({ 'margin-right' : '0px', opacity : '1' });
if(clubaz_loaded == 0) clubaz_load_if();
}
function clubaz_load_if()
{
clubaz_com = clubazJC('#clubazw').attr('comunitate');
if(clubaz_com != '')
clubazJC('#clubaz_if').attr('src', 'http://www.'+clubaz_com+'.clubaz.ro');
else
clubazJC('#clubaz_if').attr('src', 'http://www.clubaz.ro');
clubaz_loaded = 1;
}
function clubaz_close()
{
clubazJC('#clubaz_black_div').css('display','none');
clubazJC('#clubaz_f').animate({ 'margin-right' : '-730px', opacity : '0' });
}
function clubaz_navigate(obj)
{
h = clubazJC(obj).attr('h');
clubaz_loaded = 1;
clubaz_open();
clubazJC('#clubaz_if').attr('src', h);
}
function clubaz_curve_text()
{
var str = clubazJC('#clubaz_curved_text').html();
var curved = '';
for (var i = 0, len = str.length; i < len; i++) {
curved += '';
curved += str[i];
curved += '';
}
clubazJC('#clubaz_curved_text').html(curved);
}