function hidediv(id) {
    try{
	    document.getElementById(id).style.display = 'none';
    }catch(e){}
}
 function CreateBookmarkLink(url) {

 title = "TRENDZ.PL - moda, trendy, design"; 
  // Blogger - Replace with <$BlogItemTitle$> 
  // MovableType - Replace with <$MTEntryTitle$>

 
  // Blogger - Replace with <$BlogItemPermalinkURL$> 
  // MovableType - Replace with <$MTEntryPermalink$>
  // WordPress - <?php bloginfo('url'); ?>

	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		return true; }
 }
 
 
function showdiv(id) {
/*
		var IE = document.all ? true : false;
	if (!IE) document.captureEvents(Event.MOUSEMOVE);
if (IE) {
tempX = event.clientX + document.body.scrollLeft;
tempY = event.clientY + document.body.scrollTop;
} else {
tempX = e.pageX;
tempY = e.pageY;
}

355,425
alert(tempX);	
	*/
	
    try{
	    document.getElementById(id).style.display = 'block';
    

	
	}catch(e){}
	
	
	
	
}


function changeNews(id){
	
	for (i=0; i<marts.length; i++) {

		tmpnews = document.getElementById("mart_"+marts[i]);
		tmpnews2 = document.getElementById("sart_"+marts[i]);
		if(id==marts[i]){
			tmpnews.style.display='block'
			tmpnews2.className='bred';
		}else{

			tmpnews.style.display='none';
			tmpnews2.className='bbez';
		}
	}
}

function newsRotator(){
	
for (i=0; i<marts.length; i++) {

		tmpnews = document.getElementById("mart_"+marts[i]);
		tmpnews2 = document.getElementById("sart_"+marts[i]);
		if(mid==i){
			tmpnews.style.display='block'
			tmpnews2.className='bred';
		}else{

			tmpnews.style.display='none';
			tmpnews2.className='bbez';
		}
	}

	mid = (mid+1)%6;

	setTimeout("newsRotator()",10000);
		}

function togglediv(id) {
    if(document.getElementById(id).style.display == 'none') {
        document.getElementById(id).style.display = 'block';
    } else {
        document.getElementById(id).style.display = 'none';
    }
}

function aktywuj(id){
	document.getElementById(id).className="aktywny";
}

function ukryj(id){
	document.getElementById(id).className="ukryty";
}


function aktywuj_menu(id1, id2){
	document.getElementById(id1).className="aktywny";
	document.getElementById(id2).className="aktywny_link";
}

function ukryj_menu(id1, id2){
	document.getElementById(id1).className="ukryty";
	document.getElementById(id2).className="ukryty_link";
}

