Merge pull request #1823 from mahagr/develop

Merge changes from K3.0.1
KunenaTemplate->addScript never finds a "-min" version

Adding proper path to the filecheck.

It should also be considered to change JFactory::getDocument ()->addScript() to JHTML::Script() to allow overriding using the site template. See http://www.babdev.com/blog/139-use-the-media-folder-allow-overridable-media for this
Declare variables

The mediaboxAdvanced uses some variables which are not declared properly: container and closeLink. This can cause issues if this are used elsewhere.
In my case container is used as an id in my template which caused issues in IE.
Merge pull request #1841 from Bakual/patch-2

Properly declare variables in mediaboxAdv.js
Merge pull request #1840 from Bakual/patch-1

KunenaTemplate->addScript never finds a "-min" version