    var arrayBigPicrutes = new Array;
	function MM_preloadImages() { //v3.0
		var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
			var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
			if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}

	function MM_swapImgRestore() { //v3.0
		var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}

	function MM_findObj(n, d) { //v4.01
		var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
			d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
		if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
		for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
		if(!x && d.getElementById) x=d.getElementById(n); return x;
	}

	function MM_swapImage() { //v3.0
		var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
			if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}

	function foto(dir,id) {
		window.open('foto.php?dir='+dir+'&id='+id,'','width=800,height=600,left=50,top=50');
	}	
	
	function showWhoWearPicture( imgFile, imgName, productID, optionID, showOptionPicture, dbPicture ) {
		var sendedValues = '';
		window.open( '/showPictureBigWhoWear.php?imgFile=' + imgFile + '&imgName=' + imgName + '&productID=' + productID + '&optionID=' + optionID + '&showOptionPicture=' + showOptionPicture + '&dbPicture='+dbPicture +''+sendedValues, 'showProductsPicture', 'width=480, height=540, left=50, top=50' );
	}
	
	
	function showPictureOptions( imgFile, imgName, productID, optionID, showOptionPicture, dbPicture ){
		var arraySend = "";
		var arraySendNames = "";
		for( var i = 0; i < arrayAllPictures.length; i++ ){
			if( arraySend != "" ){
				arraySend = arraySend + "^" + arrayAllPictures[i];
			}else{
				arraySend = arrayAllPictures[i];
			}
		}
		
		for( var i = 0; i < arrayAllPicNames.length; i++ ){
			if( arraySendNames != "" ){
				arraySendNames = arraySendNames + "^" + arrayAllPicNames[i];
			}else{
				arraySendNames = arrayAllPicNames[i];
			}
		}
		window.open( '/showPictureOptions.php?imgFile=' + imgFile + '&imgName=' + imgName + '&productID=' + productID + '&optionID=' + optionID + '&showOptionPicture=' + showOptionPicture + '&dbPicture=' + dbPicture + "&pictureSelect=" + arraySend + "&picSelectNames=" + arraySendNames, 'showProductsPicture', 'width=480,height=560,left=50,top=50,resizable=1,status=no,toolbar=no,location=no' );
	}	
	
	function showProductsPictureFlash( imgFile, imgName, productID, optionID, showOptionPicture, dbPicture ) {
		window.open( '/showPictureBig.php?imgFile=' + imgFile + '&imgName=' + imgName + '&productID=' + productID + '&optionID=' + optionID + '&showOptionPicture=' + showOptionPicture + '&dbPicture='+dbPicture, 'showProductsPicture', 'width=720, height=630, left=50, top=50' );
	}
	
	function showFlashVideo( imgFile ){
		window.open( '/showFlashVideo.php?imgFile=' + imgFile, 'showFlashVideo', 'width=720, height=630, left=50, top=50' );
	}

	function showDocument( docId, docSett ) {
		window.open( '/showDocument.php?docId=' + docId + '&' + docSett,'showDocument', 'scrollbars=yes,width=600,height=550,left=50,top=50' );
	}

	function showDocumentSmall( docId, docSett ) {
		window.open( '/showDocument.php?docId=' + docId + '&' + docSett,'showDocument', 'scrollbars=yes,width=300,height=550,left=50,top=50' );
	}
  

	function foto2(dir,id,pripona) {
		window.open('foto_upload.php?dir='+dir+'&id='+id+'&pripona='+pripona,'foto','width=500,height=395,left=50,top=50,scrollbars=0');
	}

	function showForm( formType ) {
		window.open( '/showForm.php?formType=' + formType,'showForm', 'scrollbars=yes,width=550,height=550,left=50,top=50' );
	}
	
	function showCatalogue2( id ){
		window.open( '/showCatalogueWindow.php?id=' + id, 'showCatalogue','scrollbars=yes,width=736,height=680,left=50,top=50' );
	}



	function productShow(id){
		productStart(0);
		var table		= document.getElementById('productTable_'+id);
		var images		= document.getElementById('productImages_'+id);		
		table.style.display	= 'block';
		images.style.display	= 'block';
		
		if( document.getElementById('showCrossDiv_'+id) ){
			var crossProd		= document.getElementById('showCrossDiv_'+id);
			crossProd.style.display = 'block';
		}
		
		if( document.getElementById("bigPicBack_"+id) ){
			if( document.getElementById("bigPicBack_"+id).style.display == "block" ){
				document.getElementById("bigPicBack_"+id).style.display = "none";
				document.getElementById("bigPic_"+id).style.display = "block";
			}
		}
		
		return false;
	}
  
	function productStart(from) {
		for ( var x = from; x < defProductsCount; x++ ){
			var table		= document.getElementById('productTable_'+x);
			var images		= document.getElementById('productImages_'+x);			
			table.style.display	= 'none';
			images.style.display	= 'none';
			
			
			if( document.getElementById('showCrossDiv_'+x) ){
				var crossProd		= document.getElementById('showCrossDiv_'+x);
				crossProd.style.display = 'none';
			}
		}
	}
	
	
	function productOptShowPic( fId, id, all){
		productOptShowPicStart(fId, 0, all);
		var table		= document.getElementById('showProdDetailID_'+fId+'_'+id);
		var images		= document.getElementById('showProdID_'+fId+'_'+id);
		table.style.display	= 'block';
		images.style.display	= 'block';
		return false;
	}
  
	function productOptShowPicStart( fFrom, from, all) {
		for ( var x = from; x < all; x++ ){
			var table		= document.getElementById('showProdDetailID_'+fFrom+'_'+x);
			var images		= document.getElementById('showProdID_'+fFrom+'_'+x);
			table.style.display	= 'none';
			images.style.display	= 'none';
		}
	}
  
    function littleProductShow(id){
    littleProductStart(0);
     for (var i=0;i<defProductsCount;i++){
      var div = document.getElementById('littleProducts_'+i+'_'+id);
      var a   = document.getElementById('AlittleProducts_'+i+'_'+id);
      //alert('littleProducts_'+i+'_'+id);
      //alert(div);
      div.style.display = '';
      //alert(a);
      a.className = 'active';
      }      
    }
  
    function littleProductStart(from){
    for (var x=0;x<defProductsCount;x++){
     for (var i=from;i<defAllProductsCount;i++){
      var div = document.getElementById('littleProducts_'+x+'_'+i);
      var a   = document.getElementById('AlittleProducts_'+x+'_'+i);
      //alert(div);
      div.style.display = 'none';
      a.className = '';
      }
    }
    }
    
  function processRequest(_id,httpRequest)
  {
    if (httpRequest.readyState == 4){
      if(httpRequest.status == 200){
        var mistoZobrazeni = document.getElementById(_id);
        mistoZobrazeni.innerHTML = httpRequest.responseText;
        mistoZobrazeni.style.display = '';
        setTimeout('hideBasket()',10000);
       }else{
          alert("Chyba pri nacitani stanky"+ httpRequest.status +":"+ httpRequest.statusText);
      }
    }
  }
  
  function chooseAjax(url,_id)
  {if (url != 0)
     {if (window.ActiveXObject){
          httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
        }else{
          httpRequest = new XMLHttpRequest();}
        httpRequest.open("GET", url, true);
        document.getElementById(_id).innerHTML = "Loading ...";
	httpRequest.onreadystatechange= function () {processRequest(_id,httpRequest); } ;
        httpRequest.send(null);
      }
      else{document.getElementById(_id).innerHTML = "";}
      return false;
    }
    
  function chooseAjax1(url,_id)
  {if (url != 0)
     {if (window.ActiveXObject){
          httpRequest1 = new ActiveXObject("Microsoft.XMLHTTP");
        }else{
          httpRequest1 = new XMLHttpRequest();}
        httpRequest1.open("GET", url, true);
        //document.getElementById(_id).innerHTML = "Loading ...";
        httpRequest1.onreadystatechange= function () {processRequest(_id,httpRequest1); } ;
        httpRequest1.send(null);
      }
      else{document.getElementById(_id).innerHTML = "";}
      return false;
    }

  function chooseAjax2(url,_id)
  {if (url != 0)
     {if (window.ActiveXObject){
          httpRequest2 = new ActiveXObject("Microsoft.XMLHTTP");
        }else{
          httpRequest2 = new XMLHttpRequest();}
        httpRequest2.open("GET", url, true);
        //document.getElementById(_id).innerHTML = "Loading ...";
        httpRequest2.onreadystatechange= function () {processRequest(_id,httpRequest2); } ;
        httpRequest2.send(null);
      }
      else{document.getElementById(_id).innerHTML = "";}
      return false;
    }

    function hideBasket(){
     var selects = document.getElementsByTagName('select');
     //alert (selects.length);
     for (x=0;x<selects.length;x++)
       selects[x].style.visibility = 'visible';
     var mistoZobrazeni = document.getElementById('addToBasketInfoBox');
     mistoZobrazeni.style.display = 'none';
   } 


    function addToBasket( iOption, iProduct ){

        var size  = $('#size_'+iOption);
        var count = parseInt( $('#count_'+iOption).val() );
        var price = $('#price_'+iOption).val();
        var show  = true;

        if ( size != null) {
            if (size.val() == '') {
                alert( strSelectSize );
                show = false;
            }
        }
        if ( count == 0) {
            show = false;
        }

        if ( show ) {

            sData    = 'iProductId=' + iProduct + '&';
            sData   += 'optionId=' + iOption + '&';
            if ( size != null ) {
                sData   += 'size=' + size.val() + '&';
            }
            sData   += 'count=' + count;

            $('#addToBasket').load( '/addToBasket.php', sData, function(){
                $.getJSON( '/cartStuff.php', function(json){
                    $('#cartPcs').text(json['itemsC']);
                    $('#cartPrice').text(json['price']);
                });
                $('select').css({'visibility':'hidden'});
                $('#addToBasket').fadeIn();
                setTimeout( function() {
                    $('#addToBasket').fadeOut();
                    $('select').css({'visibility':'visible'});
                }, 10000 );
            });

        }

    }

  function popUp(theURL,winName,features) { 
    var winObj;
    winObj = window.open(theURL,winName,features);//return winObj
  } 



	function showNextPicture( defMax ) {		
		defActiveItemID	= parseInt( document.getElementById('activeItem').value );
		if( isNaN( defActiveItemID ) ){
			defActiveItemID = 0;
		}
		
		defActiveItem	= 'pictureItem_' + defActiveItemID;
		defNextItemID	= defActiveItemID + 1;
		defNextItem	= 'pictureItem_' + defNextItemID;
		document.getElementById(defActiveItem).style.display			= 'none';
		document.getElementById(defNextItem).style.display			= 'block';
		document.getElementById('activeItem').value				= defNextItemID;
		if ( defNextItemID == 0 ) {
			resizeWindow( 'showPhoto' );
		} else {
			resizeWindow( 'showPhoto'+defNextItemID );
		}
		if ( defNextItemID == 0 ) {
			document.getElementById('linkPrevious').style.display		= 'none';
		} else {
			document.getElementById('linkPrevious').style.display		= 'block';
		}
		if ( defNextItemID == defMax ) {
			document.getElementById('linkNext').style.display		= 'none';
		} else {
			document.getElementById('linkNext').style.display		= 'block';
		}
	}


	function showPreviousPicture( defMax ) {
		defActiveItemID	= parseInt( document.getElementById('activeItem').value );
		defActiveItem	= 'pictureItem_' + defActiveItemID;
		defNextItemID	= defActiveItemID - 1;
		defNextItem	= 'pictureItem_' + defNextItemID;
		document.getElementById(defActiveItem).style.display			= 'none';
		document.getElementById(defNextItem).style.display			= 'block';
		document.getElementById('activeItem').value				= defNextItemID;
		if ( defNextItemID <= 0 ) {
			document.getElementById('linkPrevious').style.display		= 'none';
		} else {
			document.getElementById('linkPrevious').style.display		= 'block';
		}
		if ( defNextItemID <= defMax ) {
			document.getElementById('linkNext').style.display		= 'none';
		} else {
			document.getElementById('linkNext').style.display		= 'block';
		}
		if ( defNextItemID == 0 ) {
			resizeWindow( 'showPhoto' );
		} else {
			resizeWindow( 'showPhoto'+defNextItemID );
		}
	}



	function hideErrorMsg () {
		document.getElementById('showError').style.display			= "none";
	}


	function resizeWindow( itemID ) {
//		alert( "WIDTH: " + document.getElementById('showPhoto'+document.getElementById('activeItem').value).width );
//		alert( "HEIGHT: " + document.getElementById('showPhoto'+document.getElementById('activeItem').value).height );
		if( navigator.appName == "Microsoft Internet Explorer" ){
			if( navigator.appVersion == "4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)" ){
				window.resizeTo( document.getElementById('showPhoto'+document.getElementById('activeItem').value).width + 30, document.getElementById('showPhoto'+document.getElementById('activeItem').value).height + 220 );
			}else{
				window.resizeTo( document.getElementById('showPhoto'+document.getElementById('activeItem').value).width + 30, document.getElementById('showPhoto'+document.getElementById('activeItem').value).height + 260 );	
			}
    		}else if( navigator.appName == "Opera" ){
    			
			/*iWidth 	= document.body.clientWidth;
       			iHeight = document.body.clientHeight;
			
			iWidth2 	= ( document.getElementById(itemID).width + 30 ) - iWidth;
			iHeight2	= ( document.getElementById(itemID).height + 170 ) - iHeight;
			
			window.resizeBy( iWidth2, iHeight2 );
			window.resizeTo( iWidth2, iHeight2 );*/
			
			document.getElementById( itemID ).onload = function (){
				window.resizeTo( document.getElementById(itemID).width + 30, document.getElementById(itemID).height + 200 );
			} 
			
		}else{
			window.resizeTo( document.getElementById(itemID).width + 30, document.getElementById(itemID).height + 220 );
		}
	}

	function showCatalogue() {
		window.open( '/vyskoc.php?', 'showGallery', 'width=792, height=640, left=50, top=50' );
	}

	function showPicture( imgFile, imgDir ) {
		window.open( '/showPictureBigX.php?imgFile=' + imgFile + '&imgDir=' + imgDir, 'USPHOTO', 'width=720, height=630, left=50, top=50' );
	}
	
	function showOptionPicture( iID, sType ){

        if ( sType == 'left' || sType == 'right' ) {
            $('#optionPicture_'+iID).hide();
            $('#optionPictureBack_'+iID).hide();
            $('#backSideLink_1_'+iID).show();
            $('#backSideLink_2_'+iID).hide();
            $('#optionPictureLeft_'+iID).hide();
            $('#optionPictureRight_'+iID).hide();
        }

        if ( sType == 'left' ) {
            $('#optionPictureLeft_'+iID).show();
        }

        if ( sType == 'right' ) {
            $('#optionPictureRight_'+iID).show();
        }

        if ( sType == 'back' ) {

            $('#optionPictureLeft_'+iID).hide();
            $('#optionPictureRight_'+iID).hide();

            if ( $('#optionPicture_'+iID).is(':hidden') ) {
                $('#optionPicture_'+iID).show();
                $('#optionPictureBack_'+iID).hide();
                $('#backSideLink_1_'+iID).show();
                $('#backSideLink_2_'+iID).hide();
            } else {
                $('#optionPicture_'+iID).hide();
                $('#optionPictureBack_'+iID).show();
                $('#backSideLink_1_'+iID).hide();
                $('#backSideLink_2_'+iID).show();
            }

        }

	}



    // Funkce pro zobrazeni obrazku

    function showProductsPicture( imgFile, imgName, productID, optionID, showOptionPicture, dbPicture ) {

        if( arrayBigPicrutes.length != 0 ){

            var arraySend = "";
            var arraySendNames = "";
            for( var i = 0; i < arrayBigPicrutes.length; i++ ){
                if( arraySend != "" ){
                    arraySend = arraySend + "^" + arrayBigPicrutes[i];
                }else{
                    arraySend = arrayBigPicrutes[i];
                }
            }
            for( var i = 0; i < arrayBigPicNames.length; i++ ){
                if( arraySendNames != "" ){
                    arraySendNames = arraySendNames + "^" + arrayBigPicNames[i];
                }else{
                    arraySendNames = arrayBigPicNames[i];
                }
            }
            var sValues = '&sendPictures=' + arraySend + '&sendPicNames=' + arraySendNames;

        }else{

            var sValues = '';

        }

        window.open( '/showPictureBig.php?imgFile=' + imgFile + '&imgName=' + imgName + '&productID=' + productID + '&optionID=' + optionID + '&showOptionPicture=' + showOptionPicture + '&dbPicture='+dbPicture +''+sValues, 'showProductsPicture', 'width=480, height=540, left=50, top=50' );

    }


    // Prepinani variant z otevreneho okna

    function productShowOptions(id){
        window.opener.showOption(id);
    }


    // Funkce pro zobrazovani 

    function showProductOption( iProduct, iOption ) {
        $('#P_'+iProduct+' .iOption').hide();
        $('#PO_'+iProduct+'_'+iOption).show();
    }

    function showOption( iOption ) {
        $('.productOption').hide();
        $('#productOption_'+iOption).show();
    }

    function changeProductThumb( iProduct ) {
        $('.productThumb').hide();
        $('#productThumb_'+iProduct).show();
    }


    var arrayPictures       = new Array;
    var arrayPicNames       = new Array;
    var arrayAllPictures    = new Array;
    var arrayAllPicNames    = new Array;
    var arrayBigPicrutes    = new Array;
    var arrayBigPicNames    = new Array;


    function isValidEmailAddress(emailAddress) {
        var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
        return pattern.test(emailAddress);
    }


    function checkNewsletter( cForm, LANG ) {

        var cError = '';

        errorMsg_1 = 'you did not fill up your email adress';
        errorMsg_2 = 'you did not fill up correct email adress';
        errorMsg_3 = 'you did not agree with terms and conditions';
        errorMsg_4 = 'Your request can not be processed because of these errors:';

        if (LANG == 1 || LANG == 13){
            errorMsg_1 = 'nevyplnili jste e-mailovou adresu';
            errorMsg_2 = 'nevyplnili jste platnou e-mailovou adresu';
            errorMsg_3 = 'nezatrhli jste souhlas s obchodními podmínkami';
            errorMsg_4 = 'Formulář nemohl být zpracován kvůli těmto chybám:';
        } else if (LANG == 5) {
            errorMsg_1 = 'u bent vergeten uw e mail adres in te geven';
            errorMsg_2 = 'het ingevulde e mail adres is onjuist';
            errorMsg_3 = 'u heeft de algemene voorwaarden niet geaccepteerd';
            errorMsg_4 = 'Uw verzoek kan niet worden verwerkt. Mogelijke oorzaken staan hier:';
        }

        if ( $('#nlEmail').val() == '' ) { cError += '- ' + errorMsg_1 + ' \n' }
        if ( ! isValidEmailAddress($('#nlEmail').val()) ) { cError += '- ' + errorMsg_2 + ' \n' }
        if ( ! $('#nlCheck').is(':checked') ) { cError += '- ' + errorMsg_3 + ' \n' }

        if ( cError != '' ) {
            cError = errorMsg_4 + ' \n' + cError;
            alert( cError );
        } else {

            $.ajax({
                type: 'POST',
                url: $(cForm).attr('action'),
                dataType: 'json',
                data: 'nlEmail=' + $('#nlEmail').val(),
                success: function(data){
                    alert(data);
                }
            });

        }

        return false;

    }



function selectTransport(item) {
    item_id     = $(item).val();
    item_text   = $('#delivery_text_' + item_id).text();
    if (item_text == '') {
        $('#deliveryText').hide();
    } else {
        $('#deliveryText').show();
    }
    $('#deliveryText').text(item_text);
    $('.payment_item').attr('disabled', true);
    $(payments[item_id]).each(function(i){
        item_data = this.split('|');
        if (i == 0) {
            $('#payment_' + item_data[0]).attr('checked', true);
        }
        $('#payment_' + item_data[0]).attr('disabled', false);
    });

    clearOtherPaymentText();

    var price = getPaymentPrice();
    if( price != false ){
        clearAllOtherDeliveryPrices();
        $('#priceInfo_'+item_id).text('( '+price+' )');
    }
}

function selectPayment(item) {
    item_id_pay      = $(item).val();
    item_text_pay    = $('#payment_text_' + item_id_pay).text();
    if (item_text_pay == '') {
        $('#paymentText').hide();        
    } else {
        $('#paymentText').show();
    }
    $('#paymentText').text(item_text_pay);

    var price = getPaymentPrice();
    if( price != false ){
        var delivery = $('input[id^="delivery_"]:checked');
        var del_id = $(delivery).val();
        clearAllOtherDeliveryPrices();
        $('#priceInfo_'+del_id).text('( '+price+' )');
    }
}

function clearOtherPaymentText(){
    var data = $('input[type="radio"][id^="payment_"]:checked');
    if(data.length == 1){
        selectPayment($(data));
    }
}

function clearAllOtherDeliveryPrices(){
    $('span[id^="priceInfo_"]').text('');
}

function checkPostPayment(paymentID) {    
    $('#payment_'+paymentID).attr('checked',true);
    selectPayment($('#payment_'+paymentID));
}

function checkPostDelivery(deliveryID) {
    $('#delivery_'+deliveryID).attr('checked',true);
    selectTransport($('#delivery_'+deliveryID));
}

function getPaymentPrice() {
    var delivery = $('input[id^="delivery_"]:checked');
    if( delivery.length == 1 ){
        var deliveryID = $(delivery).val();
    }else{
        return false;
    }
    
    var payment = $('input[id^="payment_"]:checked');
    if( payment.length == 1 ){
        var id = $(payment).val();
    }else{
        return false;
    }    

    if( payments.length ){
        for(var i = 0; i < payments[deliveryID].length; i++){
            if( String(payments[deliveryID][i]).indexOf(String(id)+'|') != -1 ){
                var constant = String(payments[deliveryID][i]).split('|');
                var width = constant.length;
                return constant[(width - 1)];
                break;
            }
        }
    }
    
    return false;
}

function firstRun()
{
    var checkedDelivery = $('input[id^="delivery_"][type="radio"]:checked');
    if( checkedDelivery.length == 1 ){
        selectTransport($(checkedDelivery));
    }
}

function indexGallery()
{
    /*var i = 0;
    var t = $('.pIndexRight img').length;
    setInterval( function(){
        $(".pIndexRight #item_"+i).hide();
        $(".pIndexRight #item_"+(i+1)).show();
        i++;
        if( i == t ){
            i = 0;
            initGallery();
        }
    }, 3000 );*/
    setInterval( function(){
        initRandomGallery();
    }, 3000 );
}


function initGallery(){
    $('.pIndexRight img').hide();
    $('.pIndexRight #item_0').show()
}

function initRandomGallery(){
    var t = $('.pIndexRight img').length;
    var rand = Math.floor(Math.random()*t);    
    if($('.pIndexRight #item_'+rand+'').length){
        $('.pIndexRight img').hide();
        $('.pIndexRight #item_'+rand+'').show()
    }
}

jQuery(document).ready(function() {
    $('.pictureThumbsList').jcarousel({
        scroll: 1
    });
    $('.hideOption').hide();
});

