<!--------------------------begin---------------------------------->
<!---------------------MINDTAKE SURVEY----------------------------->
	<!-- MINDTAKE POPUP-SURVEY INVITATION
	<!-- COPYRIGHT by www.mindtake.com
	<!-- CREATION_DATE 2001-10-15
	<!-- LAST ALTERED 2006-06-20 (virtual popup)
	<!-- AUTHOR benjamin.zotter@mindtake.com
	<!-- POPUP-LANGUAGE Slovene
	//----------------------CONFIGURATION-----------
	var mtIV_SAMPLE_SIZE                 = 10;   // one out mtIV_SAMPLE_SIZEs persons will see the popup (set to 0 and everybody will see it) 
	var mtIV_TIME_BEVORE_POPUP_SHOWS     = 0; // in seconds 
	var mtIV_NR_CLICKS_BEFORE_POPUP_SHOWS= 0;    // how often the person will have to revisit a page with this script till the popup shows 
	var mtIV_COOKIE_NAME                 = 'MTIV_Collection9510';
	var mtIV_COOKIE_VALID_PERIODE        = 3;    //in month
	var mtIV_USE_VIRTUAL_POPUP           = false; // do not open a conventional popup but display a "virtual popup" (html-layer) 
	var mtIV_USE_VIRTUAL_POPUP_AS_FALLBACK = true; // if a conventional Popup is to be used but Popup-Blocker prevents it, try to use a virtual Popup instead 

	var mtIV_PopupWidth = 650; //in pixel
	var mtIV_PopupHeight = 600; //in pixel;
	var mtIV_ShowPopupInTheMiddleOfTheScreen = true; // the Popup Window will be displayed in the middle of the screen 
	var mtIV_PopupPositionTop = 115; //default position X (note: if mtIV_ShowPopupInTheMiddleOfTheScreen is set this will have no effect!)
	var mtIV_PositionLeft = 150; //default position Y (note: if mtIV_ShowPopupInTheMiddleOfTheScreen is set this will have no effect!)
	var mtIV_autoMinimizeVirtualPopup = 20; //VirtualPopup is automatically minimized after x Seconds. (set to 0 in order to deactivate this feature)

	var mtIV_POPUP_URL = 'http://infocracks.com/ic/popup.php?encID=~AT9cLAB6XWgFNQ_3D_3D&lang=si';
	var mtIV_POPUP_WINDOW_PARAMETER = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no';
	//----------------------------------------------

	// private variables: 
	var mtIV_expirationDate = new Date ();
	mtIV_expirationDate.setTime( mtIV_expirationDate.getTime() + 1000 * 60 * 60 * 24 * 31 * mtIV_COOKIE_VALID_PERIODE);

	var mtIV_sampleX = 0;
	var mtIV_VirtPopupPositionLeft = mtIV_PositionLeft;
	var mtIV_VirtPopupPositionTop = mtIV_PopupPositionTop;

	if( mtIV_ShowPopupInTheMiddleOfTheScreen && screen.width && screen.height ){
		mtIV_PopupWidth  = Math.min( screen.width - 40, mtIV_PopupWidth );
		mtIV_PopupHeight = Math.min( screen.height - 60, mtIV_PopupHeight );
		mtIV_PositionLeft = Math.round( Math.max( 20, ( screen.width - mtIV_PopupWidth - 15 ) / 2 ) );
		mtIV_PopupPositionTop  = Math.round( Math.max( 20, ( screen.height - mtIV_PopupHeight - 40 ) / 2 ) );

		var frameWidth = null;
		var frameHeight = null;
		//--see if we can detect the size of the html-frame (of this web-page)
		if( self.innerWidth ){
			frameWidth = self.innerWidth;
			frameHeight = self.innerHeight;
		} else if( document.documentElement && document.documentElement.clientWidth ){
			frameWidth = document.documentElement.clientWidth;
			frameHeight = document.documentElement.clientHeight;
		} else if( document.body ){
			frameWidth = document.body.clientWidth;
			frameHeight = document.body.clientHeight;
		}
		if( frameWidth && frameHeight ){
			mtIV_VirtPopupPositionLeft = Math.round( Math.max( 20, ( frameWidth - mtIV_PopupWidth - 20 ) / 2 ) );
			mtIV_VirtPopupPositionTop  = Math.round( Math.max( 20, ( frameHeight - mtIV_PopupHeight - 50 ) / 2 ) );
		} else {
			mtIV_VirtPopupPositionLeft = mtIV_PositionLeft;
			mtIV_VirtPopupPositionTop = mtIV_PopupPositionTop;
		}
	}
	//-------
	function mtIV_showPopUP(){
		if( mtIV_isCookieSet( mtIV_COOKIE_NAME ) && eval( mtIV_getCookie( mtIV_COOKIE_NAME ) ) >= 10000 ) return;
		mtIV_setCookie( mtIV_COOKIE_NAME, mtIV_NR_CLICKS_BEFORE_POPUP_SHOWS + 10000, mtIV_expirationDate );
		if( mtIV_USE_VIRTUAL_POPUP ){
				mtIV_showVirtualPopUP( mtIV_POPUP_URL );
		} else {
			PopUp = window.open(
				mtIV_POPUP_URL,
				'PopUp',
				mtIV_POPUP_WINDOW_PARAMETER + ',width='+mtIV_PopupWidth+',height='+mtIV_PopupHeight+',screenX='+mtIV_PositionLeft+',screenY='+mtIV_PopupPositionTop+',left='+mtIV_PositionLeft+',top='+mtIV_PopupPositionTop
			);
			if( PopUp )
				PopUp.focus();
			else if( !PopUp && mtIV_USE_VIRTUAL_POPUP_AS_FALLBACK )
				mtIV_showVirtualPopUP( mtIV_POPUP_URL );
		}
	}

		//---returns 1 with a propability of ( 1/n ) , else returns 0
		function mtIV_sample( n ) {
			if( n < 2 ) return 1;
			mtIV_sampleX = Math.round( Math.random() * n );
			return ( mtIV_sampleX == 2 ) ? 1 : 0;
		}
		//---tests if Cookie with the specified name is set -> returns true or false
		function mtIV_getCookieVal( offset ) {
			var endstr = document.cookie.indexOf (";", offset);
			if (endstr == -1) { endstr = document.cookie.length; }
			return unescape(document.cookie.substring(offset, endstr));
		}

		function mtIV_getCookie( name ) {
			var arg = name + "=";
			var alen = arg.length;
			var clen = document.cookie.length;
			var i = 0;
			while (i < clen) {
				var j = i + alen;
				if (document.cookie.substring(i, j) == arg) return mtIV_getCookieVal (j);
				i = document.cookie.indexOf(" ", i) + 1;
				if (i == 0) break;
			}
			return null;
		}
		function mtIV_isCookieSet( name ) {
			var arg = name + "=";
			var alen = arg.length;
			var clen = document.cookie.length;
			var i = 0;
			while (i < clen) {
				var j = i + alen;
				if ( document.cookie.substring(i, j) == arg ) {
					return true;
				}
				i = document.cookie.indexOf(" ", i) + 1;
				if (i == 0) break;
			}
			return false;
		}
		//---sets a cookie to the specified value
		function mtIV_setCookie (name,value,expires,path,domain,secure) {
			document.cookie = name + "=" + escape (value) +
			((expires) ? "; expires=" + expires.toGMTString() : "") +
			((path) ? "; path=" + path : "") +
			((domain) ? "; domain=" + domain : "") +
			((secure) ? "; secure" : "");
		}
		if( mtIV_NR_CLICKS_BEFORE_POPUP_SHOWS == 0 ){
			if ( !mtIV_isCookieSet( mtIV_COOKIE_NAME ) && mtIV_sample( mtIV_SAMPLE_SIZE ) ) {
					//printCodeForVirtualPopup - just in case conventional popup cannot open:
					mtIV_printVirtualPopup();
					//schedule popup to appear:
					window.setTimeout("mtIV_showPopUP()", mtIV_TIME_BEVORE_POPUP_SHOWS * 1000);
			}
		} else {
			if( mtIV_isCookieSet( mtIV_COOKIE_NAME ) ){
				var cookieVal = eval( mtIV_getCookie( mtIV_COOKIE_NAME ) );
				if( cookieVal >= mtIV_NR_CLICKS_BEFORE_POPUP_SHOWS && cookieVal < mtIV_NR_CLICKS_BEFORE_POPUP_SHOWS + 9999 ){
					//printCodeForVirtualPopup - just in case conventional popup cannot open:
					mtIV_printVirtualPopup();
					//schedule popup to appear:
					window.setTimeout("mtIV_showPopUP()", mtIV_TIME_BEVORE_POPUP_SHOWS * 1000 );
				}
				mtIV_setCookie( mtIV_COOKIE_NAME, cookieVal + 1, mtIV_expirationDate );

			} else {
				if( mtIV_sample( mtIV_SAMPLE_SIZE ) ){
					mtIV_setCookie( mtIV_COOKIE_NAME, 1, mtIV_expirationDate );
				}
			}
		}

	//---- Virtual Popup
	//-- private variables: (do not change!!)
	var mtIV_autoMinimizeActive = true;
	var mtInf_DnDController = null;

	function mtIV_printVirtualPopup(){
		document.writeln(
			 '<style>'
			+'  table.MindTakeVirtPopup{ border: 2px ridge #c8c8c8; background-color: #c8c8c8;}'
      +'  table.MindTakeVirtPopup th.titleBar{'
      +'    background-color: #0a246a;'
      +'    background-image: url( http://infovalidator.com/ic/pics/virtPopup_TitleBar.gif );'
      +'    padding: 1px;'
      +'  }'
      +'  table.MindTakeVirtPopup td{ padding: 0px; }'
      +'  table.MT_TitleBar, table.MT_TitleBar th{'
      +'    border:0px;'
      +'    margin:0px;'
      +'    padding:0px;'
      +'    width:100%;'
      +'  }'
      +'  table.MT_TitleBar th{'
      +'    background-color: none;'
      +'    background-image: none;'
      +'    text-align: right;'
      +'    vertical-align: middle;'
      +'    font-family: Trebuchet MS, System, Arial;'
      +'    font-weight: bold;'
      +'    font-size: 10pt;'
      +'    color: white;'
      +'    white-space: nowrap;'
      +'    padding-left: 5px;'
      +'  }'
      +'</style>'
      +'<div style="position:absolute;top:100px;left:130px;z-index:9999;display:none;" id="MindTake_VirtPopup" >'
      +'  <table class="MindTakeVirtPopup">'
      +'    <tr id="MindTake_MaxPopupTitleBar">'
      +'      <th class="titleBar">'
      +'        <table class="MT_TitleBar" cellspacing="0" cellpadding="0" >'
      +'          <tr>'
      +'            <th style="text-align:left;" onmousedown="mtInf_titleBarMouseDown();" ondblclick="mtIV_minimize();" >Survey www.camping-adriatic.com 2010</th>'
      +'            <th><a href="#" onClick="{ mtIV_minimize(); return false; }"><img src="http://infovalidator.com/ic/pics/virtPopup_TitleBarMinimizeButton.gif" height="21" width="21" border="0" alt="minimize window" style="margin-right:0px;"/></a><a href="#" onClick="{ mtIV_hide(); return false; }"><img src="http://infovalidator.com/ic/pics/virtPopup_TitleBarCloseButton.gif" height="21" width="21" border="0" alt="close window" /></a></th>'
      +'          </tr>'
      +'        </table>'
      +'      </th>'
      +'    </tr>'
      +'    <tr id="MindTake_MinPopupTitleBar" style="display:none;">'
      +'      <th class="titleBar">'
      +'        <table class="MT_TitleBar" cellspacing="0" cellpadding="0" >'
      +'          <tr>'
      +'            <th style="text-align:left;" onClick="mtIV_maximize();">Survey www.camping-adriatic.com 2010</th>'
      +'            <th><a href="#" onClick="{ mtIV_maximize(); return false; }"><img src="http://infovalidator.com/ic/pics/virtPopup_TitleBarMaximizeButton.gif" height="21" width="21" border="0" alt="maximize window" style="margin-right:1px;"/></a><a href="#" onClick="{ mtIV_hide(); return false; }"><img src="http://infovalidator.com/ic/pics/virtPopup_TitleBarCloseButton.gif" height="21" width="21" border="0" alt="close window" /></a></th>'
      +'          </tr>'
      +'        </table>'
      +'      </th>'
      +'    </tr>'
      +'    <tr id="MindTake_PopupBody">'
      +'      <td ><div id="MindTake_PopupBodyContent" style="border: 0px;margin:0px;padding:0px;"></div>'
      +'      </td>'
      +'    </tr>'
      +'  </table>'
      +'</div>'
		);
	}
	function mtIV_showVirtualPopUP( popupURL ){
		popupURL = popupURL + '&iframe=1';
		if( document.getElementById( 'MindTake_PopupBodyContent' ) ){
		//init D&D controller and register eventhandler:
		mtInf_DnDController = new MtInfVal_DragNDropController();
		document.onmousemove = function( event ){ mtInf_DnDController.drag( event ); };
		document.onmouseup = function(){ mtInf_DnDController.dragstop(); }

		//---auto hide virtual popup
		if( mtIV_autoMinimizeVirtualPopup > 0 )	setTimeout( "mtIV_autoClose()", mtIV_autoMinimizeVirtualPopup * 1000 );

		//---fill virtual popup with content and show it:
		document.getElementById( 'MindTake_PopupBodyContent' ).innerHTML = (
			'<iframe src="' + popupURL + '"'
			+ ' frameborder="0" scrolling="yes"'
			+ ' border="0" width="'+mtIV_PopupWidth+'" height="'+mtIV_PopupHeight+'"'
			+ '></iframe>'
		);
		document.getElementById( 'MindTake_VirtPopup' ).style.display='';
		mtIV_position();
		}
	}
	function mtIV_hide(){
		document.getElementById( 'MindTake_VirtPopup' ).style.display='none';
		mtIV_autoMinimizeActive = false;
	}
	function mtIV_setPos( top, left ){
		document.getElementById( 'MindTake_VirtPopup' ).style.top = top;
		document.getElementById( 'MindTake_VirtPopup' ).style.left = left;
	}
	function mtIV_minimize(){
		mtIV_autoMinimizeActive = false;
		document.getElementById( 'MindTake_MinPopupTitleBar' ).style.display='';
		document.getElementById( 'MindTake_MaxPopupTitleBar' ).style.display='none';
		document.getElementById( 'MindTake_PopupBody' ).style.display='none';
		mtIV_setPos( 5, 5 );
	}
	function mtIV_maximize(){
		mtIV_autoMinimizeActive = false;
		document.getElementById( 'MindTake_MinPopupTitleBar' ).style.display='none';
		document.getElementById( 'MindTake_MaxPopupTitleBar' ).style.display='';
		document.getElementById( 'MindTake_PopupBody' ).style.display='';
		mtIV_position();
	}
	function mtIV_position(){ mtIV_setPos( mtIV_VirtPopupPositionTop, mtIV_VirtPopupPositionLeft ); }
	function mtIV_autoClose(){	if( mtIV_autoMinimizeActive ) mtIV_minimize(); }
	function MtInfVal_DragNDropController(){
		this.draggedObject_ = null;
		this.dragStartX_ = 0;
		this.dragStartY_ = 0;
		this.mousePosX_ = 0;
		this.mousePosY_ = 0;

		this.preExistingEventHandler_MouseMove = document.onmousemove;
		this.preExistingEventHandler_MouseUp = document.onmouseup;

		this.dragstop = function() { this.draggedObject_ = null; if( this.preExistingEventHandler_MouseUp ) this.preExistingEventHandler_MouseUp(); }
		this.drag = function( event ) {
			this.mousePosX_ = document.all ? window.event.clientX : event.pageX;
			this.mousePosY_ = document.all ? window.event.clientY : event.pageY;
			if( this.draggedObject_ != null) {
				this.draggedObject_.style.left = Math.max( 0, this.mousePosX_ - this.dragStartX_) + "px";
				this.draggedObject_.style.top = Math.max( 0, this.mousePosY_ - this.dragStartY_) + "px";
			}
			//--pass on to external eventhandler:
			if( this.preExistingEventHandler_MouseMove ) this.preExistingEventHandler_MouseMove( event );
		}
		this.dragstart = function( element ){
			this.draggedObject_ = element;
			this.dragStartX_ = this.mousePosX_ - this.draggedObject_.offsetLeft;
			this.dragStartY_ = this.mousePosY_ - this.draggedObject_.offsetTop;
		}

	}
	function mtInf_titleBarMouseDown(){
		if( document.getElementById('MindTake_VirtPopup') == null ) return;
		mtInf_DnDController.dragstart( document.getElementById('MindTake_VirtPopup') );
		mtIV_autoMinimizeActive = false;
	}
<!---------------------MINDTAKE SURVEY----------------------------->
<!--------------------------end------------------------------------>
